vscode_deno: could not find deno in path, please install deno
I hoped for intellisence on deno commands in .ts files and .js files when installing this extension.
I’m on Ubuntu , gnome
Steps to reproduce
- i created a docker container
- started container
- connected vscode to docker container
- inside container switched user, added sudo rights
- installed deno with curl according the docs.
- updated .bashrc for new user with export path 7.reload vscode
deno
works in terminal- installed deno vscode extension 10 added .vscode/settings.json to root of project { “deno.enable”: true }
- added .ts or .js file to project and tried deno. --> no intellisence, only “Could not find ‘deno in your $PATH’…” at bottom right of screen
**Allready tried **
- reinstalling extension
- reinstalling deno under root user
- changed settings.json to different locations
tnx for any advice or help
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 9
- Comments: 26 (5 by maintainers)
I had the same issue. I resolved it with:
sudo ln -s /home/losintikfos/.deno/bin/deno /usr/bin
Restart vscode.
Same issue, perhaps related to fish shell
Work around for a homebrew installed deno was
sudo ln -s /opt/homebrew/bin/deno /usr/local/bin/
Could I request a interim fix being a option to override to a manually entered path to a Deno Executable?
I would add that just in general as a backup as sometimes you may want to run a specific version of Deno as opposed to the global one and a workspace override would allow for that.
@JSchermers
which deno
andecho $PATH
from the integrated terminal within vscode please…Thanks. That worked! Didn’t need to give the flatpak access to that directory since it already has host access.
On Wed, 6 Mar 2024, 07:13 Andrey Dudnik, @.***> wrote:
I still have this issue, installed Deno via Homebrew but the extension can’t seem to find the executable.
I have to manually set
deno.path
in VS Codesettings.json
as a workaround.which deno
shows/opt/homebrew/bin
which is already inecho $PATH
.I am using
oh-my-zsh
so I suspect that VS Code gives a different environment to the extension, without loading up the omz plugins? The homebrew PATH comes from~/.zprofile
instead of~/.zshrc
which maybe the clue here.The contents of my
.zprofile
has only one line:Note: for me, the workaround is not starting VS Code “normally” (ie. from the /Applications folder or the Launchpad). When I instead navigate to my project directory in the terminal and then start VS Code with
code .
it works.I have the same issue on macOS. Screenshot is from the VS Code internal terminal.