vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 594 forks source link

global vls command not working #3687

Open Andreashoj opened 1 year ago

Andreashoj commented 1 year ago

System Information - Macbook Air M1, 13.2.1

VLS info

I tried both 8.5 and 8.4. Which makes me think something with my installation is wrong. Node 19.8.1

Problem Description

I'm trying to setup my lsp for my nvim config and for that reason I'm trying to install vls on my system. I was running :LspInfo to see why I was getting no auto completion and I couldn't see vls as one of the installed lsp servers. I then tried running vls as a global command I am getting this error. I tried the same thing on my windows pc and got the same output

Expected Output

Actual Output

Console output when running vls -vvv

vls -vvv
Error: Connection input stream is not set. Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'
    at /opt/homebrew/lib/node_modules/vls/dist/vueServerMain.js:1:129839
    at e.createConnection (/opt/homebrew/lib/node_modules/vls/dist/vueServerMain.js:1:130159)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/vls/dist/vueServerMain.js:1:130269)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/vls/bin/vls:2:1)

Node.js v19.8.1

Steps to Reproduce

npm install -g vls vls -vvv

Last Recorded LSP Requests

GeekchanskiY commented 1 month ago

got same issue.

Error: Connection input stream is not set. Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}' after vls --version tried to reinstall, didnt help ubuntu 24.04 Node.js v18.19.1