Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crystal compiler not found after upgrade vscode to 1.26.0 #63

Closed
TsumiNa opened this issue Aug 17, 2018 · 5 comments
Closed

Crystal compiler not found after upgrade vscode to 1.26.0 #63

TsumiNa opened this issue Aug 17, 2018 · 5 comments
Labels

Comments

@TsumiNa
Copy link

TsumiNa commented Aug 17, 2018

microsoft/vscode#56659

Hi! I got some issue when use this extension in vscode 1.26.0 or higher.
My crystal version is 0.26.0

@faustinoaq
Copy link
Member

Hi @TsumiNa, Do you still have this issue?

@watzon
Copy link
Contributor

watzon commented Jun 9, 2019

I'm having this issue on Debian with Code 1.35. I'm using asdf version manager to install crystal, but I did try including the absolute path to crystal in the settings and it didn't work

@dprobinson
Copy link

I'm having the same problem too. VSCode 1.34 with Crystal 0.28.0 (installed from Arch repos at /usr/bin/crystal). I've also tried changing the path in the settings to no avail.

@watzon
Copy link
Contributor

watzon commented Jun 10, 2019

@faustinoaq seems like this needs to be reopened.

@fabon-f
Copy link
Contributor

fabon-f commented Jun 22, 2019

In my case, executing crystal env in crystalUtils.ts(js) caused an error like this.

Error: Command failed: /usr/local/bin/crystal env
Missing ENV key: "HOME" (KeyError)
from Path::home:Path
from Path#expand:Path
from File::expand_path:String
from Crystal::CacheDir#compute_dir:String
from Crystal::Command#run:(Bool | Crystal::Compiler::Result | Nil)
from main
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

When I add { cwd: ROOT, env: CRENV, stdio: ["ignore", "pipe", "pipe"] } as second argument of execSync, the error disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants