question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to Detect Deno

See original GitHub issue

I’m experiencing the same issue as https://github.com/justjavac/vscode-deno/issues/78; starting a new issue here since this seems to be the location of new development.

Mac Mojave 10.14.6 VS Code 1.45.0 VS Code Deno Extension version 1.27.0 Deno 1.0.0

Environment

$ deno info
DENO_DIR location: "/Users/ME/.deno"
Remote modules cache: "/Users/ME/.deno/deps"
TypeScript compiler cache: "/Users/ME/.deno/gen"
$ deno eval 'console.log(JSON.stringify(Deno.version))'
{"deno":"1.0.0","v8":"8.4.300","typescript":"3.9.2"}
$ env | grep -i deno
DENO_INSTALL=/Users/ME/.deno
DENO_DIR=/Users/ME/.deno
$ which deno
/Users/ME/.deno/bin/deno

I use zsh as my main shell environment.

I tracked the error down to https://github.com/denoland/vscode_deno/blob/9a684b5a735b17b6bedae9a64e68f0223cfe0988/client/src/utils.ts#L64 and saw it’s using execa. From the execa README.

Unless the shell option is used, no shell interpreter (Bash, cmd.exe, etc.) is used, so shell features such as variables substitution (echo $PATH) are not allowed.

I export DENO_INSTALL and DENO_DIR in my .zshrc file and add it to the path. Perhaps execa isn’t finding Deno because it’s not in the standard PATH locations?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
justjavaccommented, May 15, 2020

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

0reactions
hossam-magdycommented, May 21, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing | Manual
While the test run will report on the success or failure of each test, the overall test run will always fail if any...
Read more >
Deno unexpected internal error encountered - ubuntu
The TyperError in the message is fetch failing. The Uncaught Promise part of the error is due to missing await to properly propagate...
Read more >
Deno chatbot app will not deploy - Build debugging
I'm trying to deploy a deno app using the grammy library; ... deploying my deno app, however. flyctl was unable to detect my...
Read more >
5 Changes Coming Soon to Deno
As you may know, Deno provides full support for TypeScript. ... is automatically initiated, and the compiler will issue error declarations.
Read more >
Everything You Need to Know to Get Started with Deno
Deno is a runtime for JavaScript and TypeScript based on the V8 JavaScript engine and the Rust programming language. It was created by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found