December 2010


Just uploaded kojslint to komodo extension site: a komodo jslint integration with additional feature of auto-fix some of the most common jslint warnings.

Kojslint is a fork of kjslint: thanks Ben Smawfield, the author of kjslint.

Give it a try if you use komodo IDE or Edit. Currently kojslint inherits all features from kjslint, and added some more (check out details on the project kojslint):

  • provide UI to modify all available JSLint options
  • save jslint options as profiles (called modes) which are shared for all files/projects
  • add/delete profiles (modes)
  • auto-fix some common jslint warnings
  • all jslint warnings on the same line are grouped in the “JSLint errors” output tab
  • profiles can be locked (it can’t be changed/deleted until unlocked)
  • bundled with JSLint 2010-12-08

After asking in komodo extension forum, and then digging in google search result, I finally found out how to record all errors in chrome (including all komodo extensions)  in the error console window:

According to this MDN article on how to setup mozilla extension development, set javascript.options.showInConsole = true would log errors in chrome files to the Error Console.

In order to change this option, I think “Komodo developer extension” extension has to be installed, so you can access a JSShell. Once in a JSShell, run window.openDialog("about:config", "_blank"); to open a config UI to change that option. Alternatively, with the same extension, there is actually a control on the UI to set this option for you automatically: ‘Tools” -> “Extension Developer” -> “Enable Debugging Preferences” (according to the source file, this control toggles the following 3 boolean options:  “nglayout.debug.disable_xul_cache”, “javascript.options.showInConsole”, “browser.dom.window.dump.enabled”)

Now all chrome errors should show up in the Error Console, but Komodo does not provide a UI control to open it. Dock Error Console extension can be installed, or the following line of js code can be executed in JSShell to open one:

window.openDialog("chrome://global/content/console.xul", "ErrorConsole");