question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TSServer (Intellisense) Errors after Formatting

See original GitHub issue

the TSServer Errors after Formatting the Code Ouput:

[Info  - 4:09:42 AM] Started TSServer
// formatting here
[Error  - 4:10:05 AM] 'getOutliningSpans' request failed with error.
Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at visitArray (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21685:26)
    at visitNodes (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15138:24)
    at forEachChild (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15593:21)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21671:21)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15133:24)
    at forEachChild (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15586:21)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21671:21)
    at visitArray (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21703:25)
    at visitNodes (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15138:24)
    at forEachChild (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15555:24)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21671:21)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21675:29)
    at visitArray (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21703:25)
    at visitNodes (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15138:24)
    at forEachChild (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15368:24)
    at visitNode (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21671:21)
    at updateTokenPositionsAndMarkElements (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21652:13)
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21499:13)
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15652:47)
    at updateLanguageServiceSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111154:44)
    at SyntaxTreeCache.getCurrentSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111100:30)
    at Object.getOutliningSpans (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111722:46)
    at IOSession.Session.getOutliningSpans (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:118898:45)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:118082:61)
    at C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:88
    at IOSession.Session.executeWithRequestId (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119522:28)
    at IOSession.Session.executeCommand (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:33)
    at IOSession.Session.onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119551:35)
    at Interface.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:120805:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)
[Error  - 4:10:05 AM] 'navtree' request failed with error.
Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21463:22)
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15652:47)
    at updateLanguageServiceSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111154:44)
    at SyntaxTreeCache.getCurrentSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111100:30)
    at Object.getNavigationTree (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111690:71)
    at IOSession.Session.getNavigationTree (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119231:44)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:118219:61)
    at C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:88
    at IOSession.Session.executeWithRequestId (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119522:28)
    at IOSession.Session.executeCommand (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:33)
    at IOSession.Session.onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119551:35)
    at Interface.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:120805:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)
[Error  - 4:10:06 AM] 'navtree' request failed with error.
Error processing request. Debug Failure. False expression.
Error: Debug Failure. False expression.
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:21463:22)
    at Object.updateSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:15652:47)
    at updateLanguageServiceSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111154:44)
    at SyntaxTreeCache.getCurrentSourceFile (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111100:30)
    at Object.getNavigationTree (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:111690:71)
    at IOSession.Session.getNavigationTree (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119231:44)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:118219:61)
    at C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:88
    at IOSession.Session.executeWithRequestId (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119522:28)
    at IOSession.Session.executeCommand (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119531:33)
    at IOSession.Session.onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:119551:35)
    at Interface.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:120805:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

and then after restarting the tsserver it works normal

Windows 10 (Pro) (Insider Builds) VSCode User 1.26.1 Prettier (VSCode) 1.6.1 (cant provide the code, because it is in an private Project) ESLint 5.4.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Introvertuouscommented, Oct 24, 2018

no need to apologise, you did nothing wrong, my aggression is mostly at the “your computer is having a bad day, so lets close this” comment, which is incredibly useless for everyone.

1reaction
CiGitcommented, Sep 12, 2018

Let’s say it was a bad day for your computer 🔥 and close this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatter & IntelliSense stops working! · Issue #43427 - GitHub
So it shows you a loading IntelliSense menu and after this, formatting & other IntelliSense stop working!
Read more >
Javascript intellisense and formatting only works in safe mode ...
No Instance(s) Available. And is running while the solution is open after I first open a js file: >wmic process where caption="node.exe" get...
Read more >
VSCode: typescript/intellisense not responding to an auto ...
I'm generating some files with a node script, and occasionally new version causes type errors, that shows immediately in webpack but not in ......
Read more >
Troubleshooting - ticehurst.com
No IntelliSense, formatting, refactoring, etc. If the language service for JavaScript & TypeScript doesn't appear to be working at all, basic installation, ...
Read more >
So, my development experience is just getting worse after ...
Intellisense freezing is something that always happened to VS, ever since old versions. To fix that, just call the "Restart TS Server" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found