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

HTML language server broken in insiders #21743

Closed
aeschli opened this issue Mar 2, 2017 · 2 comments
Closed

HTML language server broken in insiders #21743

aeschli opened this issue Mar 2, 2017 · 2 comments
Assignees
Milestone

Comments

@aeschli
Copy link
Contributor

aeschli commented Mar 2, 2017

Version 1.11.0-insider
Commit 4db944b
Date 2017-03-02T07:25:36.875Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

  • open an HTML file

The HTML Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.

Error: Cannot find module 'typescript'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/share/code-insiders/resources/app/extensions/html/server/out/modes/javascriptMode.js:9:10)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
[Info - 10:57:08 AM] Connection to server got closed. Server will restart.
modul

@varadero
Copy link

varadero commented Mar 2, 2017

Version 1.11.0-insider
Commit 4db944b
Date 2017-03-02T07:10:18.838Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

I observed a strange behavior - I often use tsc to compile the project - yesterday I used it a lot with stable VSCode version. Today after I have installed VSCode insiders, executing tsc or tsc -v caused the following error:

'tsc' is not recognized as an internal or external command
operable program or batch file.

Looks like VSCode insiders messes with current (global) typescript installation ? I needed to install typescript again with

npm install -g typescript

It happens if you open "clean" code-insiders (or open any folder and then select File-Close Folder), add new file, place only this inside it:

<html>
</html>

And save it as index.html - the error happens immediately.

Error: Cannot find module 'typescript'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (c:\Program Files (x86)\Microsoft VS Code Insiders\resources\app\extensions\html\server\out\modes\javascriptMode.js:9:10)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
[Error - 12:23:56] Connection to server got closed. Server will not be restarted.

Opening the same folder with stable VSCode version works as expected - no errors occur.

@aeschli aeschli closed this as completed in 27d1dbd Mar 2, 2017
@aeschli
Copy link
Contributor Author

aeschli commented Mar 2, 2017

@varadero VSCode contains its own bundled typescript node module. The error Error: Cannot find module 'typescript' has to do with that node module missing some files.
I doubt 'tsc' is not recognized as an internal or external command is related to that.

@aeschli aeschli added this to the March 2017 milestone Mar 2, 2017
@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
None yet
Projects
None yet
Development

No branches or pull requests

3 participants