Skip to content

Vue Language Server crashing with latest version.Β #352

Closed

Description

@tiago-plank

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

Activity

  1. octref commented on Jul 25, 2017

    @octref
    Member

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

  2. tiago-plank commented on Jul 25, 2017

    @tiago-plank
    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?

  3. ckaczor commented on Jul 26, 2017

    @ckaczor

    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)

  4. octref commented on Jul 27, 2017

    @octref
    Member

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

  5. octref commented on Jul 27, 2017

    @octref
    Member

    @tiago-plank

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

    In output panel, find Vue Language Server.

    image

  6. ckaczor commented on Jul 27, 2017

    @ckaczor

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

  7. tiago-plank commented on Jul 27, 2017

    @tiago-plank
    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.

  8. octref commented on Jul 27, 2017

    @octref
    Member

    @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.

  9. capgros commented on Aug 29, 2017

    @capgros

    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.

  10. 472647301 commented on Sep 22, 2017

    @472647301

    As you said did not work, I reinstall it solved

  11. CodeUndefind commented on Dec 7, 2017

    @CodeUndefind

    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.

  12. zjt9363 commented on Oct 19, 2018

    @zjt9363

    thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions