You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently that plugin won't work with local coffee binaries, located inside node_modules/bin of your project.
In CoffeeScript.sublime-settings I added that line "binDir": "node_modules/.bin", yet, I get the error FileNotFoundError: [Errno 2] No such file or directory: 'coffee'. Do I really have to npm-install coffee globally?
You could define an absolute path to the binary on a per-project basis, so you could have one default binDir in your CoffeeScript.sublime-settings, then a project-specific binDir in your projectname.sublime-project file. To define project-specific coffeescript settings, add them to a "CoffeeScript" section of the "settings" portion of your .sublime-project file.
For instance, for the project sublime-better-coffeescript, I'd have the following file:
Activity
markalfred commentedon Jun 5, 2015
You could define an absolute path to the binary on a per-project basis, so you could have one default
binDirin yourCoffeeScript.sublime-settings, then a project-specificbinDirin yourprojectname.sublime-projectfile. To define project-specific coffeescript settings, add them to a"CoffeeScript"section of the"settings"portion of your.sublime-projectfile.For instance, for the project
sublime-better-coffeescript, I'd have the following file:/users/markalfred/repos/sublime-better-coffeescript/project.sublime-project:{ "folders": [ { "follow_symlinks": true, "path": "." } ], "settings": { "CoffeeScript": { "binDir": "/users/markalfred/repos/sublime-better-coffeescript/node_modules/.bin" } } }This should override your global
binDirfor this particular project. Let me know if this works for youbinarykitchen commentedon Oct 14, 2015
yes, this worked
binarykitchen commentedon Oct 14, 2015
no, this is still not good enough. it should accept relative paths:
because the .sublime-project file is shared among developers and everyone has a different absolute path. and
"./node_modules/.bin"doesn't work.