subtleGradient / javascript-tools.tmbundle

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

Validate with JSHint displays #9

Closed antlong closed 12 years ago

antlong commented 12 years ago

When i run Validate with JSHint In the webpreview window, i see the following text:

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb:23:in e_url': private methodgsub' called for nil:NilClass (NoMethodError) from (erb):20:in header' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/htmloutput.rb:90:inheader' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/web_preview.rb:4:in `html_head' from -:4

I am running ruby 1.8.7 on snow leopard.

On a side note, it doesn't appear to interfere with any functionality.

subtleGradient commented 12 years ago

I'm not sure how to reproduce this. What steps do I need to take?

ipaintcode commented 12 years ago

I'm getting a message in the html output as well:

/Users/Mark/Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript Tools.tmbundle/Support/bin/jshint.textmate.js:74 + TextMate.href(encodeURIComponent(process.env.TM_FILEPATH), message.line, mes ^ TypeError: Cannot read property 'line' of null at report (/Users/Mark/Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript Tools.tmbundle/Support/bin/jshint.textmate.js:74:100) at Array.forEach (native) at FAIL (/Users/Mark/Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript Tools.tmbundle/Support/bin/jshint.textmate.js:62:19) at /Users/Mark/Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript Tools.tmbundle/Support/bin/jshint.textmate.js:14:31 at [object Object]. (fs.js:114:5) at [object Object].emit (events.js:64:17) at afterRead (fs.js:1081:12) at Object.wrapper as oncomplete

subtleGradient commented 12 years ago

let me know if this is still happening in TM2alpha and the latest master. Not sure if I fixed this or not