vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

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

Open mikoloism opened this issue 6 months ago • 10 comments

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

mikoloism avatar Dec 10 '23 09:12 mikoloism

If you do which deno what output do you get?

bartlomieju avatar Dec 12 '23 08:12 bartlomieju

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'?

mikoloism avatar Dec 12 '23 12:12 mikoloism

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

bartlomieju avatar Dec 12 '23 14:12 bartlomieju

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?

mikoloism avatar Dec 12 '23 15:12 mikoloism

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.

Strajk avatar Dec 31 '23 07:12 Strajk

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.

ilmatic avatar Jan 14 '24 00:01 ilmatic

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

guizmo avatar Jan 15 '24 05:01 guizmo

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

RepComm avatar Feb 10 '24 20:02 RepComm

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

riderx avatar Mar 27 '24 15:03 riderx

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.

zing-rsa avatar Apr 15 '24 09:04 zing-rsa