question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown problem with vue language server crash

See original GitHub issue
  1. Install vscode extention.
  2. Go to .vue file
  3. Get error Couldn't start client Vue Language Server.
  4. Zuck.

Google setup for vetur extention for vscode.

  1. Update vetur.config.js from this.

    module.exports = {
        projects: [{ root: './nuxt' }]
    }
    

    To this

    module.exports = {
        projects: [{ root: './nuxt', globalComponents:  './components/**/*.vue' }]
    }
    
  2. Nothing changes.

  3. Go to vscode settings.

  4. Found vetur.dev.vlsPath.

  5. Install globally vls npm install vls -g

  6. Setup in vscode settings.json:

    "vetur.dev.vlsPath": "C:/Users/admin/AppData/Roaming/nvm/v14.15.3/vls.cmd"
    
  7. Doesn’t work at all.

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

How do I get this thing to work? Is it really possible to do it?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
igolka97commented, Mar 5, 2021

Hello @yoyo930021, thank you for contributing to this issue. I just got the same behavior. As you said earlier I tried to run Vetur: Show Output Channel command, I got following: Command 'Vetur: Show Output Channel' resulted in an error (command 'vetur.showOutputChannel' not found)

Tried to run VLS on clean vue-cli project and it works, so I getting this error only at my project with quasar framework. How I can help you to find a solution?

One thing that I got it from VSC DevTools: Снимок экрана 2021-03-05 в 23 52 26

1reaction
PotatoesFallcommented, Jun 9, 2021

I had this problem as well and fixed it in the following way

In vetur.config.js before

// vetur.config.js
/** @type {import('vls').VeturConfig} */
module.exports = {
    settings: {},
    projects: [
        "./packages/repo1",
        {
            // many comments here from template
        }
    ]
};

Note the empty {} curly braces. I commented them out:

In vetur.config.js after

// vetur.config.js
/** @type {import('vls').VeturConfig} */
module.exports = {
    settings: {},
    projects: [
        "./packages/repo1",
        // {
            // many comments here from template
        // }
    ]
};

and then I no longer got the error. Hope this helps!! Obviously there are settings and more projects and a ton of comments in my actual vetur.config.js, I removed them for simplicity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Settings Reference for Python - Visual Studio Code
Python settings reference. The Python Extension for Visual Studio Code is highly configurable. This page describes the key settings you can work with....
Read more >
The Vue Language Server server crashed 5 times in the last 3 ...
Problem. The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. Reproducible Case.
Read more >
Why is VSCode "Unable to open Extension. An unknown error ...
It happens that, this is a problem with the Egyptian ISPs' default DNS servers, which are most probably blocking some of Microsoft servers....
Read more >
500 Internal Server Error | Apigee Edge
Shows example 500 Internal Server Errors caused by a failure in backend server and shows steps to resolve the errors. Symptom. The client...
Read more >
FAQ | Vetur - GitHub Pages
You can run the command Vetur: Restart VLS (Vue Language Server) to restart VLS. However, we'd appreciate it if you can file a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found