manastech / atom-crystal-tools

Atom package that integrates crystal tools
https://atom.io/packages/crystal-tools
MIT License
10 stars 1 forks source link

/bin/sh: crystal: command not found OSx #4

Closed stephan-nordnes-eriksen closed 8 years ago

stephan-nordnes-eriksen commented 8 years ago

I have added crystal to my path variable, but I still get /bin/sh: crystal: command not found when using this plugin in atom.

I added crystal to my path by the following method:

1:

sudo nano /etc/paths

2: Add /path/to/my/crystal/bin

3: Restart Atom.

This did not resolve my issue. I can verify that crystal is in my path by echo $PATH, but for some reason atom-crystal-tools does not find it :( What can I do to resolve this?

(I have also tried system reboot, with no luck)

bcardiff commented 8 years ago

It should be detected if it is in your path. But as a workaround you can set the real path in the package settings.

screen shot 2015-10-06 at 11 53 45 am

The default is just crystal and that's why it should work.

stephan-nordnes-eriksen commented 8 years ago

When setting it manually, it worked.

If I leave it blank it does not work. Weird

bcardiff commented 8 years ago

@r00takaspin glad you figured it out. On some environments I also noticed that atom needs to be started from the console/terminal in order to have crystal in it's path.