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

Vue Language Server crashing with latest version. #352

Closed
2 tasks done
tiago-plank opened this issue Jul 25, 2017 · 12 comments
Closed
2 tasks done

Vue Language Server crashing with latest version. #352

tiago-plank opened this issue Jul 25, 2017 · 12 comments

Comments

@tiago-plank
Copy link

Info

  • Platform: Windows 8.1
  • Vetur version: 0.9.3
  • VSCode version: 1.14.2

Problem

Code will present the message "The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted." upon opening any .vue file.

Reproducible Case

  • Disable all installed extensions except for Vetur
  • Open a project with a jsconfig.json/tsconfig.json including only project files (I'm testing it with a clean copy of https://github.com/octref/veturpack )
  • Open any .vue file
@octref
Copy link
Member

octref commented Jul 25, 2017

Any more error info? I'm guessing maybe it's only on Windows.

@tiago-plank
Copy link
Author

Where would I be able to find more detailed error information? The developers tools' console only says "The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.".

Is there anywhere else I could check?

@ckaczor
Copy link

ckaczor commented Jul 26, 2017

I get this on Windows:

Error: Cannot find module 'lodash' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:8:11) at Object.<anonymous> (C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\node_modules\vue-language-server\dist\vueServerMain.js:227:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)

@octref
Copy link
Member

octref commented Jul 27, 2017

@ckaczor Go to C:\Users\chris\.vscode\extensions\octref.vetur-0.9.3\client\ and run npm install.

@octref
Copy link
Member

octref commented Jul 27, 2017

@tiago-plank

Where would I be able to find more detailed error information?

In output panel, find Vue Language Server.

image

@ckaczor
Copy link

ckaczor commented Jul 27, 2017

@octref That fixed it - thanks! Not sure how those weren't there but I probably should have though of that.

@tiago-plank
Copy link
Author

Turns out I was getting the same error as @ckaczor, except the suggested fix did not work.

On the other hand, reinstalling the extension (which in hindsight, I should have tried from the start) did fix it.

@octref
Copy link
Member

octref commented Jul 27, 2017

@tiago-plank Thanks for letting me know. Yeah sometimes when VSCode upgrade extensions, dependencies are not installed correctly, and that might be causing the problem.

@capgros
Copy link

capgros commented Aug 29, 2017

I had this issue when opening a folder from a network resource in windows directly : code \\server\shared\folder\proj1
Vue Languaje Server shows: unable to open file \server\shared\folder\proj1\whatever.vue
(note the single slash in front of server)
As a workaround I mapped it to a unit letter and worked.
Not sure if it's some kind of bug or just a windows limitation.

@472647301
Copy link

As you said did not work, I reinstall it solved

@pilot-study-test
Copy link

Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/f1a623ff-9d58-4945-8ae6-2ec46ad23a1d
module.js:472
throw err;
^

Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/1ab41303-376e-4fda-bbef-cdce5bbc963d
module.js:472
throw err;
^

Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Info - 15:00:19] Connection to server got closed. Server will restart.
Debugger listening on port 6005.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:6005/59ce3be6-2ad3-4c08-a9b4-919a39851583
module.js:472
throw err;
^

Error: Cannot find module '/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/server/dist/vueServerMain.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Server. (/Users/bianlin/.vscode-insiders/extensions/octref.vetur-0.11.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart.js:110:9)
at emitOne (events.js:96:13)
at Server.emit (events.js:191:7)
at Pipe.onconnection (net.js:1486:8)
[Error - 15:00:19] Connection to server got closed. Server will not be restarted.

@zjt9363
Copy link

zjt9363 commented Oct 19, 2018

thanks

@ericettensohn ericettensohn mentioned this issue Feb 6, 2019
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants