Skip to content
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

[Insiders] Intelli Sense fails for TypeScript #22996

Closed
lafe opened this issue Mar 22, 2017 · 6 comments
Closed

[Insiders] Intelli Sense fails for TypeScript #22996

lafe opened this issue Mar 22, 2017 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug typescript Typescript support issues

Comments

@lafe
Copy link

lafe commented Mar 22, 2017

  • VSCode Version: 1.11.0-insider (Commit 32942fd... from 2017-03-22T07:11:40)
  • OS Version: Windows Server 2008 R2

Steps to Reproduce:

  1. Open Visual Studio Code Insiders
  2. Open TypeScript file
  3. Try to get Intelli Sense information for a variable
  4. You only get a list of "known" variables but not type specific Intelli Sense

Output-Tab shows the following issue:

[Error - 9:18:11 AM] 'quickinfo' request failed with error.
Error processing request. Mismatched request id, expected undefined, actual 60
Error: Mismatched request id, expected undefined, actual 60
    at Object.resetRequest (c:\Entwicklung\<Project>\node_modules\typescript\lib\cancellationToken.js:57:27)
    at IOSession.Session.resetCurrentRequest (c:\Entwicklung\<Project>\node_modules\typescript\lib\tsserver.js:73291:40)
    at IOSession.Session.executeWithRequestId (c:\Entwicklung\<Project>\node_modules\typescript\lib\tsserver.js:73299:26)
    at IOSession.Session.executeCommand (c:\Entwicklung\<Project>\node_modules\typescript\lib\tsserver.js:73305:33)
    at IOSession.Session.onMessage (c:\Entwicklung\<Project>\node_modules\typescript\lib\tsserver.js:73325:35)
    at Interface.<anonymous> (c:\Entwicklung\<Project>\node_modules\typescript\lib\tsserver.js:74477:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:188:7)
    at Interface._onLine (readline.js:232:10)
    at Interface.<anonymous> (readline.js:365:12)

The project uses TypeScript 2.2.1 and Visual Studio Code has been configured to use the workspace version of TypeScript instead of the built-in version. The identical project worked with yesterdays Insiders build and still works with the current stable build. Switching from the Workspace TypeScript to the built-in TypeScript fixes the issue as well.
`

@zhengbli
Copy link

Same thing. My error log:

[Info  - 1:31:58 AM] Using tsserver from location: C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js
[Error - 1:31:59 AM] 'compilerOptionsForInferredProjects' request failed with error.
Error processing request. Mismatched request id, expected undefined, actual 1
Error: Mismatched request id, expected undefined, actual 1
    at Object.resetRequest (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\cancellationToken.js:57:27)
    at IOSession.Session.resetCurrentRequest (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js:74836:40)
    at IOSession.Session.executeWithRequestId (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js:74844:26)
    at IOSession.Session.executeCommand (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js:74850:33)
    at IOSession.Session.onMessage (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js:74870:35)
    at Interface.<anonymous> (C:\Users\lizhe\AppData\Roaming\nvm\v7.5.0\node_modules\typescript\lib\tsserver.js:76022:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:188:7)
    at Interface._onLine (readline.js:232:10)
    at Interface.<anonymous> (readline.js:365:12)

@JimiC
Copy link
Contributor

JimiC commented Mar 22, 2017

Same here. In my case, the expected id is undefined and actual are 2 and 4.

@schmuli
Copy link

schmuli commented Mar 22, 2017

This is related to #22437

@schmuli
Copy link

schmuli commented Mar 22, 2017

If you use the bundled TS version (2.2.2-insiders) the error doesn't occur.

@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug typescript Typescript support issues labels Mar 22, 2017
@mjbvz mjbvz closed this as completed in 301d64e Mar 22, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Mar 22, 2017

Thanks everyone.

Yes #22437 is the root cause here. I forgot that although the cancellation token API was added in TS 2.2.0, it is broken in releases before TS-2.2.2 insiders. 301d64e should fix the gating. Until then, try upgrading the workspace version of TypeScript to the latest 2.2.2-insiders build or using VSCode's bundled version

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

6 participants
@schmuli @zhengbli @JimiC @lafe @mjbvz and others