TS Server crashes once TS file is open #15716
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
From Amin Pakseresht (@aminpaks) on May 9, 2017 11:21
- VSCode Version: 1.12.1
- OS Version: macOS 10.12.4 (16E195)
The project is private so I can't share the code or steps to reproduce it though I'm going to provide some logs, hopefully will be enough. If you need something else please ask.
The file that I open is about 1100 lines and it's a pure typescript file that is importing some of lodash, d3 and angular v4.
As soon as I open this file TS Server crashes and nothing will work anymore! TS Server restarts but it gets stuck at binding forever, and the only way to get Code to work is to restart.
This issue started right after updating to 1.12
Here is the TS Server log file
Here is the ChromeDevTools console
Copied from original issue: microsoft/vscode#26299
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Activity
mjbvz commentedon May 10, 2017
From Amin Pakseresht (@aminpaks) on May 9, 2017 17:43
So apparently the issue is with Typescript v2.3.x, it works with v2.2.x
Should I inform Typescript team, or you guys can move this?
mjbvz commentedon May 10, 2017
Moving over to TypeScript repo since it sounds like the issue only happens when TypeScript 2.3 is used. I don't see anything suspicious in the log file or the the developer tools screenshot
Amin Pakseresht (@aminpaks) Can you try setting
"typescript.tsserver.trace": "verbose"in VSCode and reproducing the issue. Then open the output panel and share the output from theTypeScriptoutput section. This may provide some additional clues to what is going wrongAlso does this happen for all projects, or just the one project you are working in?
aminpaks commentedon May 10, 2017
Sure Matt,
This happens only on a few files of one specific project so far.
Here is the TS Server trace log
westonpace commentedon May 11, 2017
This seems very similar to #15028 . I've recorded my observations there but it's about the same, crashes as soon as I open (actually it won't crash until I try and resolve a particular symbol in my file), doesn't occur on 2.2 but does on 2.3, etc.
aminpaks commentedon Jul 12, 2017
Andy (Andrewkraft) (@Andy-MS) I'd really like to help, and I tried to reproduce it with
typescript@nextbut no luck.I'll keep you posted if I had a chance to catch it.
mhegazy commentedon Aug 16, 2017
closing for now. please reopen if you see the issue again.