Typescript inspections sometimes unreliable and/or slow

There are times when TS inspections are slow -- meaning when I fix an error, WS can take several seconds or even longer to clear the error.

Other times, it seems like it never wants to clear the error.  I have to delete the code I just typed, type it again, then WS is satisfied.

Still other times, there are false positives -- WS doesn't report a TS error when it should have.

Has anyone else noticed this?  Is this a WS or TS issue?

3 comments

please try invalidating caches (File | Invalidate caches, Invalidate and restart) - does the issue persist?

Also, do you have typescript service enabled in Settings | Languages & Frameworks | TypeScript? if yes, what Typescript and IDE versions do you use?

0

Thank you, invalidating the caches helped a little bit.  However, inspections, and clearing errors, is still sometimes slow/delayed.  For example, when I make an update to an interface in a types file, then use those definitions in some code, it sometimes takes several seconds (20, 30, more?) to recognize  that the type changed, and for the inspector to be happy again.

I'm on WS 2017.2.5.  I'm using the typescript service with TS 2.6.2.

0

Try changing Typescript version to the bundled one - does it help? Typescript 2.6 includes breaking API changes that cause problems using TSServer integration; issue is fixed in 2017.3

0

Please sign in to leave a comment.