Twitter: raymondcamden


Address: Lafayette, LA, USA

Quick FYI - JSHint for CFBuilder

05-17-2014 2,758 views ColdFusion Comments

I'm still using Brackets as my primary editor, but as I use CFBuilder more and more I run into things that I think may be helpful to others. Today - it is adding JSHint support. I'm a huge fan of JSHint so I did a quick Google to see if there was an Eclipse plugin for it.

Turns out - there was: jshint-eclipse. Screen shot stolen from the web site:

However, to install this in ColdFusion Builder, you may want to be careful when using the Update functionality. The update URL for CFB is currently broken and will throw an error. It tends to return quite a bit too. When you select the option to install new software, you should click past the initial error and then select "Kepler Repository" in the Work with drop down.

The error you see comes from the fact that the CFB update site wasn't set up properly yet. This is being fixed now. As in - very soon. Maybe even by the time you read this. Anyway, I followed the directions at the install page for jshint-eclipse and grabbed "Eclipse Marketplace", mainly because it looked kinda slick. That worked great.

One more tip though. The plugin will display errors in the Problems panel, and for me, this was showing issues for all my JavaScript files in the project. Man, do I have a lot of problems.

There is a little downward caret on the upper right side of the panel that lets you filter to the current selection, which is not selected text in the current file, but the selected file.

Hope this helps!

0 Comments

Post Reply

Please refrain from posting large blocks of code as a comment. Use Pastebin or Gists instead. Text wrapped in asterisks (*) will be bold and text wrapped in underscores (_) will be italicized.

Leave this field empty