tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

Misses to detect syntax error on some imports #229

Closed Treverix closed 1 year ago

Treverix commented 3 years ago

Me again ;) I was just puzzled that a svelte file that 'looked' good didn't compile. I missed one single quotation mark on an import and both me and the svelte plugin didn't see that.

Works on typescript files and it is indepedent of the svelte language level (happens on js and ts).

It only happens when we import a full script, not just from a script.

And thanks again for the great plugin!

image

tomblachut commented 3 years ago

Huh, interesting. Thanks for reporting.

tomblachut commented 3 years ago

Hello :) Could you see if adding any code after the import, still inside script tag prevents this problem? I suspect last error inside script tag is getting lost.

tomblachut commented 1 year ago

Migrating GH issues to YouTrack. I've created a new issue: WEB-62296 missing syntax error for unclosed string literal in ESM import statement