Skip to content

Debug Failure: tsserver throws after some move refactorings #25458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cevek opened this issue Jul 5, 2018 · 4 comments
Closed

Debug Failure: tsserver throws after some move refactorings #25458

cevek opened this issue Jul 5, 2018 · 4 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@cevek
Copy link

cevek commented Jul 5, 2018

TypeScript Version: 3.0.0-dev.20180626

Search Terms:

Code

Error: Debug Failure. False expression.
    at mergeSymbol (/usr/local/lib/node_modules/typescript/lib/tsserver.js:29904:26)
    at /usr/local/lib/node_modules/typescript/lib/tsserver.js:29965:49
    at Map.forEach (native)
    at mergeSymbolTable (/usr/local/lib/node_modules/typescript/lib/tsserver.js:29964:20)
    at mergeModuleAugmentation (/usr/local/lib/node_modules/typescript/lib/tsserver.js:29978:17)
    at initializeTypeChecker (/usr/local/lib/node_modules/typescript/lib/tsserver.js:54255:25)
    at Object.createTypeChecker (/usr/local/lib/node_modules/typescript/lib/tsserver.js:29636:9)
    at Object.getTypeChecker (/usr/local/lib/node_modules/typescript/lib/tsserver.js:82503:79)
    at InferredProject.Project.updateGraph (/usr/local/lib/node_modules/typescript/lib/tsserver.js:114332:59)
    at InferredProject.Project.getLanguageService (/usr/local/lib/node_modules/typescript/lib/tsserver.js:114030:26)
    at /usr/local/lib/node_modules/typescript/lib/tsserver.js:118169:51
    at ProjectService.forEachProject (/usr/local/lib/node_modules/typescript/lib/tsserver.js:115200:21)
    at IOSession.Session.getEditsForFileRename (/usr/local/lib/node_modules/typescript/lib/tsserver.js:118161:37)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/usr/local/lib/node_modules/typescript/lib/tsserver.js:117018:61)
    at /usr/local/lib/node_modules/typescript/lib/tsserver.js:118343:88
    at IOSession.Session.executeWithRequestId (/usr/local/lib/node_modules/typescript/lib/tsserver.js:118334:28)
    at IOSession.Session.executeCommand (/usr/local/lib/node_modules/typescript/lib/tsserver.js:118343:33)
    at IOSession.Session.onMessage (/usr/local/lib/node_modules/typescript/lib/tsserver.js:118363:35)
    at Interface.<anonymous> (/usr/local/lib/node_modules/typescript/lib/tsserver.js:119618:27)
@cevek cevek changed the title tsserver throws after some move refactorings Debug Failure: tsserver throws after some move refactorings Jul 5, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Jul 5, 2018

Can you share your tsserver log file?

@mhegazy
Copy link
Contributor

mhegazy commented Jul 5, 2018

You can upload logs using

  1. With "typescript.tsserver.log": "verbose" enabled
  2. Restart vscode or vscode insiders
  3. Reproduce the problem
  4. Run code --upload-logs on the command line (or code-insiders --upload-logs if using vscode insiders) and follow instructions
  5. Share the log file ID

@mhegazy mhegazy added this to the TypeScript 3.0.1 milestone Jul 5, 2018
@mhegazy mhegazy added Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified labels Jul 5, 2018
@amcasey
Copy link
Member

amcasey commented Jul 5, 2018

The specific refactoring appears to be getEditsForFileRename, so @Andy-MS might want to take a look. Also, @sandersn for mergeSymbolTable.

@sandersn
Copy link
Member

sandersn commented Jul 5, 2018

@cevek This should be fixed by #25463 in typescript@next, which should be available tomorrow.

@sandersn sandersn assigned sandersn and unassigned amcasey Jul 5, 2018
@mhegazy mhegazy closed this as completed Jul 5, 2018
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Needs More Info The issue still hasn't been fully clarified labels Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants