subtleGradient / javascript-tools.tmbundle

Essential Tools for developing Javascript in TextMate
602 stars 53 forks source link

⌘S doesn't save #8

Closed vicapow closed 12 years ago

vicapow commented 13 years ago

Hello! cool bundle but I had to uninstall it. for some reason, it overrided ⌘S and gives an error that it cant find NodeJS instead of saving the document like you would expect. just thought you might like to know. Once you get all the bugs worked out, I'd love to use it.

Best,

kapowaz commented 13 years ago

I noticed this too — it appears you have to install Node.js to use JSHint validation. You can install Node.js with Homebrew which will fix this issue.

As an aside, it appears that the default save command is now JSHint instead of JSLint, which has slightly different behaviour for a JS document without any validation issues. With JSLint you're only given output when there are errors or warnings, whereas JSHint gives you a tooltip even if there were no issues. Is there any way this could be disabled? What are the benefits of JSHint over JSLint?

vicapow commented 13 years ago

I actually do have NodeJS installed but not via Homebrew. I'll give that a try.

kapowaz commented 13 years ago

In that case, ensure you have the path to the node binary in your TextMate environment variables. Type which node at the command prompt, and add that path to the end of the value for PATH under Shell Variables in Preferences > Advanced.

vicapow commented 13 years ago

cool. thanks for taking the time to help me out. works great now!

subtleGradient commented 12 years ago

Note: even though you see the error about node, TextMate should still have saved the file.

I plan to add docs to help explain what requirements this bundle needs and how to install and configure them.