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

Error: spawn crystal ENOENT #143

Closed
Sija opened this issue Aug 7, 2016 · 5 comments
Closed

Error: spawn crystal ENOENT #143

Sija opened this issue Aug 7, 2016 · 5 comments
Labels

Comments

@Sija
Copy link

Sija commented Aug 7, 2016

It happens with latest atom-crystal on OS X El Capitan.

'crystal' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

Crystal executable is in my $PATH, installed via homebrew.

~ ❯ which crystal
/usr/local/bin/crystal

Seems connected to steelbrain/linter#726.

@steelbrain
Copy link
Owner

OSX eh, it has a PATH issue that we work around, it only works for the popular shells though. Which one do you use?

@Sija
Copy link
Author

Sija commented Aug 8, 2016

Yap, OSX indeed. I use ZSH.

@steelbrain
Copy link
Owner

So the PATH detection is failing, can you open the dev console (View -> Developer Tools -> Console) and execute this and send a screenshot of what you get (also make sure to black out anything sensitive)?

const os = require('os')
console.log(require(os.homedir() + '/.atom/packages/linter-crystal/node_modules/consistent-env')().PATH)

@Sija
Copy link
Author

Sija commented Aug 8, 2016

image

@steelbrain
Copy link
Owner

Aaha! linter-crystal doesn't use atom-linter anymore as of crystal-lang-tools/linter-crystal@3b132e7 (otherwise you won't be getting this error as we work it around)

You could ping the author and ask them to use this module so you can use it on your Mac without doing some PATH vodoo magic 😄

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

2 participants