Typescript Service Not Working with Version 2.6.2

When I upgrade my Typescript version from 2.5.3 to 2.6.2 (latest as of this posting), PhpStorm's Typescript service does not register code changes without restarting the service.

For example, if I have a Typescript error showing in the errors window, and then I change the line to remove the type error, the errors window does not update until I restart the Typescript service. This behavior is not the same as if I am using Typescript version 2.5.3. In that version, the service updates on file save.

Every time I make a change to any file in my project, this is the error that is thrown in the Typescript service console to indicate that the service failed to update:

```Process: Error processing message: Debug Failure. False expression. Error: Debug Failure. False expression.
at ProjectService.getOrCreateScriptInfoWorker (evalmachine.<anonymous>:103948:30)
at ProjectService.getOrCreateScriptInfoOpenedByClientForNormalizedPath (evalmachine.<anonymous>:103911:29)
at ProjectService.openClientFileWithNormalizedPath (evalmachine.<anonymous>:104124:33)
at IDESession.changeFileEx (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/typescript/ts-session-new.js:341:42)
at IDESession.updateFilesEx (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/typescript/ts-session.js:204:30)
at IDESession.executeCommand (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/typescript/ts-session-new.js:247:33)
at IDESession.Session.onMessage (evalmachine.<anonymous>:99403:35)
at IDESession.onMessage (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/typescript/ts-session.js:43:40)
at TypeScriptLanguagePlugin.onMessage (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/typescript/ts-plugin.js:130:23)
at Interface.<anonymous> (/Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/js-language-service.js:105:39)```

I'm not sure what this means, but every time I make changes in a file I see this error message in the Typescript service console. As I said before, this does not happen when using Typescript version 2.5.3. Is anyone else running into this issue? 

0
2 comments

What PHPStorm version do you use? Typescript integration in PHPStorm < 2017.3 doesn't work with 2.6.+ due to breaking API changes. Please consider upgrading to 2017.3 that provides full Typescript 2.6.* support

2
Avatar
Permanently deleted user

Ah, I was using PhpStorm version 2017.2. Just upgraded to 2017.3 and now the Typescript service works with version 2.6.2. Didn't even think about that. Thanks!

1

Please sign in to leave a comment.