Webstorm incorrectly reporting many hundreds of errors in a TypeScript file

Pretty often I find WebStorm gets in this state where it reports hundreds of errors in a file. But the file doesn't actually have any errors. I confirm that by running `tsc --noemit` in a terminal against this codebase and tsc reports zero errors. 

It seems like WebStorm confuses itself or gets into a bad state? How can I tell WebStorm to "rerun" this file and make all the errors go away?

 

 

WebStorm 2020.3.2
Build #WS-203.7148.54, built on January 25, 2021
Runtime version: 11.0.9.1+11-b1145.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-65-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Non-Bundled Plugins: IdeaVIM, gdscript, mdx.js
Current Desktop: MATE

0
1 comment

Similar issue is tracked at https://youtrack.jetbrains.com/issue/WEB-43175 and linked tickets.

Unfortunately we don't know what causes this problem, so we would be thankful if you can help us with it. If the problem recurs periodically, please add the key - #com.intellij.lang.javascript.service.JSLanguageServiceQueue:trace to Debug log settings (Help -> Diagnostic Tools -> Debug Log Settings...), reopen the IDE and, when the problem appears again, attach logs (Help-> Show Log in...) to the youtrack ticket.

2

Please sign in to leave a comment.