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

IntelliSense Stops Working - cancelled sequence number #10735

Closed
waderyan opened this issue Sep 6, 2016 · 38 comments
Closed

IntelliSense Stops Working - cancelled sequence number #10735

waderyan opened this issue Sep 6, 2016 · 38 comments
Assignees
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified VS Code Tracked There is a VS Code equivalent to this issue

Comments

@waderyan
Copy link

waderyan commented Sep 6, 2016

There are open issues on IntelliSense problems in VS Code. The commonality is IntelliSense stops working. I could use some guidance on where I can look to get to the bottom of this.

Related Issues

I opened two of the issues as I observed them. The commonality with all many of issues is an output that includes the phrase "canceled request with sequence number x"

image

What could be causing this?
Are there other logs I can look at to try and debug the problem?

@waderyan
Copy link
Author

waderyan commented Sep 8, 2016

I'm seeing this again today in the same ways described in the above issues.

I am also seeing it in a new way. I am trying to recreate the issue described here. The process involves a symbol rename symbol operation.

Note that there is only one small file in bin

sequencenumberissue

@dbaeumer
Copy link
Member

dbaeumer commented Sep 9, 2016

If requests can be canceled inside VS Code that means they are still in the VS Code's queue. To allow cancelation we only sent requests to the tsserver one by one. In this situation it means that the tsserver is busy processing a request. @waderyan if this happens is there any unusual CPU usage with the tsserver?

@dbaeumer
Copy link
Member

dbaeumer commented Sep 9, 2016

In the specific example the quick info request never returns hence we don't send the rename request over the wire.

@dbaeumer
Copy link
Member

dbaeumer commented Sep 9, 2016

@waderyan do you have any errors in the dev console.

@waderyan waderyan self-assigned this Sep 9, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Sep 9, 2016

Can you share the tsserver log in these cases?

@waderyan
Copy link
Author

waderyan commented Sep 9, 2016

@mhegazy where is the tsserver log? Is it different than what I'm seeing in the output window?

@dbaeumer I will grab a screenshot of the dev console when I see it again. I have checked before and haven't seen any errors.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 9, 2016

first you need to set the environment variable TSS_LOG=-level verbose. there should be a log file written next to tsserver.js that would have the form of .log[0-9]+

@waderyan
Copy link
Author

I have not been able to reproduce this issue for the last couple of days. This issue came into day, and it might be related - microsoft/vscode#11938

Asked OP to follow the advise on capturing logs.

@mhegazy mhegazy added the Needs More Info The issue still hasn't been fully clarified label Sep 14, 2016
@waderyan waderyan added the VS Code Tracked There is a VS Code equivalent to this issue label Sep 16, 2016
@waderyan waderyan changed the title canceled request with sequence number IntelliSense Stops Working Sep 16, 2016
@waderyan waderyan changed the title IntelliSense Stops Working IntelliSense Stops Working - cancelled sequence number Sep 16, 2016
@waderyan
Copy link
Author

@mhegazy setting the env variable for logging is not working for me.

Am I missing something?

image

@mhegazy
Copy link
Contributor

mhegazy commented Sep 22, 2016

that is mac? i am not a mac user, but i guess you should be are you using setenv to set it... or something

@waderyan
Copy link
Author

waderyan commented Sep 23, 2016

This came up again today. Repeated twice. Here were the steps.

mkdir test
cd test
yo node-express
# choose no for everything

code-insiders .

Go to app.js

Type express.

image

Note I am on release-2.0.5 bits. I was testing the auto acquire typings experience.

@waderyan
Copy link
Author

@mhegazy I setup the env variable properly. Can I specify the location for the log file?

@waderyan
Copy link
Author

@mhegazy I'm not seeing the log file in the location of tsc.js. Please advise.

image

@mhegazy
Copy link
Contributor

mhegazy commented Sep 23, 2016

I setup the env variable properly. Can I specify the location for the log file?

yes, it should be something of the form -log verbose -file filepath

@mhegazy
Copy link
Contributor

mhegazy commented Sep 24, 2016

I could not get this to repro locally using this yoman template. are there other things you did after opening app.js?

@waderyan
Copy link
Author

I did not do anything after opening app.js.

@waderyan
Copy link
Author

waderyan commented Sep 28, 2016

Saw the same issue today recreating @Mousetrap's issue here.

This is what I saw in the TypeScript output.

See TSServer exited with code: 7. Do you know what that could be from?

image

I have the env variable setup correctly but I'm not seeing a log file. If someone could take a look at this too, that would be helpful.

export TSS_LOG="-log verbose -file /Users/waander/.tslog"

Also tried

export TSS_LOG="-level verbose -file /Users/waander/.tslog"

export TSS_LOG="-level verbose -file '/Users/waander/.tslog'"

@mhegazy mhegazy added the Bug A bug in TypeScript label Dec 15, 2016
@ianmurrays
Copy link

I'm constantly getting this error now for some reason.

TSServer exited with code: unknown

macOS 10.11.6
VSC 1.8.0

Using the global typescript installation gets rid of the error though:

{
   "typescript.tsdk": "/Users/myuser/.nvm/versions/node/v4.4.0/lib/node_modules/typescript/lib"
}

@vladima
Copy link
Contributor

vladima commented Dec 16, 2016

@ianmurrays can you please share a repro so we can try to isolate the root cause of the problem?

@ghost
Copy link

ghost commented Jan 30, 2017

Just when opening vscode with a file. After this error every request gets canceled.

[Trace - 10:17:47] Sending request: navtree (4). Response expected: yes. Current queue length: 2
Arguments: {}
[Trace - 10:19:26] TypeScript Service: canceled request with sequence number 16
[Error - 10:20:33] TSServer exited with code: 3
[Error - 10:20:33] 'navtree' request failed with error.
Error: Service died.
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\out\typescriptServiceClient.js:442:46
    at Array.forEach (native)
    at TypeScriptServiceClient.serviceExited (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\out\typescriptServiceClient.js:441:37)
    at ChildProcess.<anonymous> (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\out\typescriptServiceClient.js:362:35)
    at emitTwo (events.js:111:20)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[Info  - 10:20:33] Using tsserver from location: c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\node_modules\typescript\lib\tsserver.js

@mhegazy
Copy link
Contributor

mhegazy commented Jan 30, 2017

@con-ssc do you have a consistent repro for this?

@ghost
Copy link

ghost commented Jan 31, 2017

No, it is a customer project.

@ghost
Copy link

ghost commented Jan 31, 2017

I also encounter this a lot, when not starting as admin.
"typescript": "^2.1.5",
image

[Info  - 08:23:01] Using tsserver from location: d:\repositories\git\aurelia-subscription-form\node_modules\typescript\lib\tsserver.js
[Error - 08:23:01] TSServer exited with code: 1

@mhegazy
Copy link
Contributor

mhegazy commented Jan 31, 2017

Can you share the tssever log file. see https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-(tsserver)#logging.

you need to set the TSS_LOG environment variable to -level verbose -file <path to file>, start VSCode from the same console, and share the log with us.

@ghost
Copy link

ghost commented Feb 1, 2017

I'm afraid that is not possible since the tsserver is logging the whole file content and I can publish those files.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 1, 2017

feel free to redact parts you do not want to share. we care most about the set of actions before the error occurs.
Also we would be happy to sign any necessary NDA's to get access to the log and/or the code base.

@pocesar
Copy link

pocesar commented Feb 9, 2017

getting "TSServer exited with code: 3" with 2.2.0-dev.20170209 randomly on a plain clone of https://github.com/rangle/typescript-react-redux-example

died

not sure if it's a problem with VSCode or TS nightly. When I try to see the dev tools on vscode, the editor freezes

@mhegazy
Copy link
Contributor

mhegazy commented Mar 24, 2017

@pocesar, I am unable to reproduce this locally on latest. is this still an issue? if so can you share any more information to help reproduce the issue.

@mhegazy
Copy link
Contributor

mhegazy commented Mar 24, 2017

There has not been any actionable leads in this issue. closing for now. If you are experiencing similar symptoms, please file a new issue and provide us with a project that you experience the server crash on, and/or tssever log file.

@mhegazy mhegazy closed this as completed Mar 24, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

8 participants