I'm trying to add the textmate bundle for coffeescript. I've followed the instructions on github - https://github.com/jashkenas/coffee-script-tmbundle
When I try to compile & display JavaScript I get the following error -
/tmp/temp_textmate.8hqQGD: line 12: coffee: command not found
I'm fairly certain it's due to my path being incorrect in textmate's preferences.
I'm trying to follow the instructions on this question - CoffeeScript TextMate Run Command but I must be doing something wrong as It's not working.
When I do which coffee I get /usr/local/bin/coffee
I've no TM_PATH variable in textmate's preferences only a PATH So, what should I put in my PATH variable in textmate? I currently have /usr/bin:/bin:/usr/sbin:/sbin
I've tried changing it to /usr/local/bin/ but when I try to run a command I get
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/bash_init.sh: line 27: dirname: command not found
Any ideas?
Add /usr/local/bin/
to the existing path, instead of replacing it entirely:
/usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin
should work for you. Personally, I'm using
~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
and the bundle is working correctly for me:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With