EternallyCurious
EternallyCurious

Reputation: 2415

Webstorm does not refresh corrected code

I am using Webstorm for a Typescript project. It does not remove the red flags (or code highlighted in red) even after I've corrected the error that's causing it. The error continues to show. I suppose, Webstorm does not recompile the project everytime a file is changed - to see if the error is still there. How can I fix this issue?

Upvotes: 8

Views: 3306

Answers (3)

Ali Balbars
Ali Balbars

Reputation: 81

Click TypeScript button at the bottom right of Webstorm. Then click the Restart TypeScript Service

Version: WebStorm 2022.3.2

Upvotes: 8

Travis
Travis

Reputation: 2145

It might help to try forcing the File Watcher to run.

Select a project root folder, hit Ctrl+Shift+A -> Ctrl+Shift+A to enable non-menu actions -> type "run file " -> choose Run File Watchers....

This was part of an answer to another question.(answer by user Lena)

Upvotes: 5

lena
lena

Reputation: 93868

Try File/Invalidate caches, Restart. If it doesn't help, file an issue to youtrack (http://youtrack.jetbrains.com/issues/WEB), provideing your idea.log and steps to recreate

Upvotes: 2

Related Questions