View modules are not recompiled after triggering compilation error of unmatched tag in template files

I’ve run into a Phoenix issue that doesn’t seem to have been reported by anyone else based on my searches.

View modules are not recompiled after compiling error of unmatched tag in template files.

Compiling 1 file (.ex)
** (Phoenix.LiveView.Tokenizer.ParseError) lib/demo_web/components/layouts/root.html.heex:44:1: unmatched closing tag.

To fix it, I have to run mix clean, start the dev server again.

I’m not sure if others have encountered this issue, or if this is just my specific situation.

I’ve already filed a bug report to Phoenix project, but I’m curious whether this is just something unique to my setup or if it’s an existing issue that others might have missed. If anyone has some time, could you help test this scenario and see if you can reproduce the same problem?

You can find the complete steps here:

1 Like

Ah, I think I’ve encountered that or a similar error. But was never able to find a reliable reproduction case for it. I’m glad you did and filed an issue for it :tada: