svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Misses to detect syntax error on some imports

Open Treverix opened this issue 3 years ago • 2 comments

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

Treverix avatar Jun 15 '21 10:06 Treverix

Huh, interesting. Thanks for reporting.

tomblachut avatar Jun 15 '21 10:06 tomblachut

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 avatar Jul 22 '21 20:07 tomblachut

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

tomblachut avatar Aug 01 '23 12:08 tomblachut