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

TypeScript server not working on Ubuntu 16.04 #15963

Closed
ghost opened this issue Nov 23, 2016 · 3 comments
Closed

TypeScript server not working on Ubuntu 16.04 #15963

ghost opened this issue Nov 23, 2016 · 3 comments
Assignees
Labels
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@ghost
Copy link

ghost commented Nov 23, 2016

  • VSCode Version: Code 1.7.2 (7ba55c5, 2016-11-21T22:14:18.217Z)
  • OS Version: Linux x64 4.4.0-47-generic
  • Extensions:
Extension Author Version
xml DotJoshJohnson 1.6.0
java redhat 0.0.6

Hi Microsoft!

I'm very happy with vscode in general - good work!
However, I'm unable to get embedded TypeScript server to work on Ubuntu 16.04 with Node.js. vscode was installed using the .deb file.

Steps to Reproduce:

  1. Install node.js version 6.9.1 LTS
  2. npm init
    3: npm install express --save
    4: Create .js file and import any core module (for instance 'express' or 'fs'.

Recieving the following error in output:

[Info - 3:14:09 PM] Using tsserver from location: /usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js
[Error - 3:14:22 PM] 'completions' request failed with error.
Error processing request. Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at getCompletionEntriesFromTypings (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:48215:79)
at getCompletionEntriesForNonRelativeModules (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:48094:17)
at getStringLiteralCompletionEntriesFromModuleNames (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47985:31)
at getStringLiteralCompletionEntries (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47889:28)
at Object.getCompletionsAtPosition (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47773:24)
at IOSession.Session.getCompletions (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:54974:64)
at Session.handlers.ts.createMap._a.(anonymous function) (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:54219:61)
at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:55286:28)
at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:55306:35)
at Interface. (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:56389:27)

@mjbvz mjbvz added javascript JavaScript support issues typescript Typescript support issues labels Nov 28, 2016
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 28, 2016

I believe this issue was fixed on the TS side by microsoft/TypeScript@6ea5c22 which is not present in TS 2.0.10 . We should pick it up in ts 2.1.x (I confirmed that it is already in 2.1.1).

@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Nov 28, 2016
@ghost
Copy link
Author

ghost commented Nov 29, 2016

So fixed in next release of VSCode then?

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 29, 2016

Yes, we are waiting on the release of TS 2.1.3. Adopting it is being traced by #15535.

@mjbvz mjbvz closed this as completed Nov 29, 2016
@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
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants