denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.46k stars 139 forks source link

Deno Language Server client: couldn't create connection to server. #1005

Open mikoloism opened 7 months ago

mikoloism commented 7 months ago

Describe the bug

VSCode Output of Deno Language Server

Launching server using command /${userHome}/.deno/bin/deno failed. Error: spawn /${userHome}/.deno/bin/deno ENOENT

Versions

vscode: 1.85.0 deno: 1.38.5 extension: v3.29.0

bartlomieju commented 7 months ago

If you do which deno what output do you get?

mikoloism commented 7 months ago

It is in "$HOME/.deno/bin/deno" and I configured this path to ".vscode/settings.json".

Is there a way to use Deno without config the 'deno.path' property inside '.vscode/settings.json'?

bartlomieju commented 7 months ago

It should already work this way - are you sure the VSCode is resolving ${userHome} to the right directory?

mikoloism commented 7 months ago

It should already work this way

Yes should Work but not!

are you sure the VSCode is resolving ${userHome} to the right directory?

How can i testing this?

Strajk commented 6 months ago

I had deno installed via homebrew and was getting this error. Got so frustrated trying to fix it that I uninstalled the brew instance, installed it via curl -fsSL https://deno.land/x/install/install.sh | sh, restarted VSCode and now it works ¯_(ツ)_/¯

Maybe it will help someone Googling this error.

ilmatic commented 5 months ago

I had deno installed via homebrew and was getting this error. Got so frustrated trying to fix it that I uninstalled the brew instance, installed it via curl -fsSL https://deno.land/x/install/install.sh | sh, restarted VSCode and now it works ¯(ツ)

Maybe it will help someone Googling this error.

Helped me! If it's not an easy fix might be worth sticking a note in the extension description that it doesn't work with homebrew installs.

guizmo commented 5 months ago

I had deno installed via homebrew and was getting this error. Got so frustrated trying to fix it that I uninstalled the brew instance, installed it via curl -fsSL https://deno.land/x/install/install.sh | sh, restarted VSCode and now it works ¯(ツ)

Maybe it will help someone Googling this error.

Perfect !!!! Thanks

brew uninstall deno
curl -fsSL https://deno.land/x/install/install.sh | sh
RepComm commented 5 months ago

Re-installing deno on ubuntu using similar instructions as mentioned already also solved this for me.

riderx commented 3 months ago

Can we just get the extension accept brew install that doesn't make sense

zing-rsa commented 2 months ago

In my case, I hadn't installed deno with homebrew, but running curl -fsSL https://deno.land/x/install/install.sh | sh resolved the issue anyway.