scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

Fix parsing crash for update in later phases

Open bracevac opened this issue 5 months ago • 3 comments
trafficstars

Fixes #23389

bracevac avatar Jun 18 '25 10:06 bracevac

@odersky I'm not quite sure I understand why the Feature.ccEnabled check fails in subsequent phases inside modOfToken. If I test this with erased, it seems to work no problem.

bracevac avatar Jun 18 '25 11:06 bracevac

The ccEnabled test asks whether it's enabled for the current compilationUnit. Is that set correctly for rendering? That's where I would look.

odersky avatar Jun 18 '25 11:06 odersky

In fact, no, the compilation unit is "<highlighting>"

odersky avatar Jun 18 '25 11:06 odersky