Giter Site home page Giter Site logo

Failed to Detect Deno about vscode_deno HOT 9 CLOSED

denoland avatar denoland commented on May 25, 2024 1
Failed to Detect Deno

from vscode_deno.

Comments (9)

justjavac avatar justjavac commented on May 25, 2024 1

Other people have encountered the same problem, so I should fix this problem

from vscode_deno.

justjavac avatar justjavac commented on May 25, 2024

I will rewrite the deno executable finder

from vscode_deno.

yc51 avatar yc51 commented on May 25, 2024

@justjavac 老兄,windows也提示在$PATH找不到deno,你代码写的在ProgramFiles里面找,windows默认安装路径是%userprofile%\.deno\

from vscode_deno.

justjavac avatar justjavac commented on May 25, 2024

@justjavac 老兄,windows也提示在$PATH找不到deno,你代码写的在ProgramFiles里面找,windows默认安装路径是%userprofile%.deno\

💡 please use English, or Google Translate

Windows also prompts that deno cannot be found in $PATH.

from vscode_deno.

justjavac avatar justjavac commented on May 25, 2024

maybe which is a good choice

from vscode_deno.

bfsmith avatar bfsmith commented on May 25, 2024

If I get some time today, I'll try and get the extension running locally and test out which

from vscode_deno.

bfsmith avatar bfsmith commented on May 25, 2024

I was able to fix this without changing the extension by fully restarting VS Code. I think what happened was I had an instance of VS Code open before I installed Deno and set up the PATH to include it. When I opened a new VS Code instance and installed this extension, the new instance didn't rerun my .zshrc file to pick up the new PATH. I'm guessing VS Code sources it once and uses it for all instances (maybe this is Mac specific behavior).

After fully quitting VS Code and opening it back up, the extension was able to find Deno in the path. Getting Deno. intellisense and all. Thanks for your work on this @justjavac!

tl;dr: Make sure deno is on your path and fully quit VS Code, then open it back up and see if it works.

from vscode_deno.

willconant avatar willconant commented on May 25, 2024

I had the same problem while using the remote-ssh plugin to work on a remote server. In my case, I had connected to the remote before installing deno, so I had to restart the VS Code agent on the remote before the plugin could find it. Restarting my local VS Code had no effect because the remote agent stays running. It should have been obvious, but I didn't think of it until I had a good sleep.

from vscode_deno.

hossam-magdy avatar hossam-magdy commented on May 25, 2024

same problem encountered here too.

In case anyone lands here from google, a workaround is adding this to the end of ~/.zshrc:

[ ! -f "/usr/local/bin/deno" ] && ln -s "$DENO_INSTALL/bin/deno" "/usr/local/bin/deno"

… at least until the extension is fixed, to detect the executable from $DENO_INSTALL

from vscode_deno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.