[TxMt] JavaScript Tools bundle bug
Thomas Aylott (subtleGradient)
oblivious at subtlegradient.com
Mon Apr 23 15:31:03 UTC 2007
On Apr 23, 2007, at 10:59 AM, Constantinos Neophytou ♎ wrote:
> if the last line of the javascript file is a comment with no new
> line at the end of it, then the command "Minimize current file"
> produces this output:
>
> /Library/Application Support/TextMate/Bundles/JavaScript
> Tools.tmbundle/Support/bin/jsmin.rb:73:in `<=': comparison of
> Fixnum with String failed (ArgumentError)
> from /Library/Application Support/TextMate/Bundles/JavaScript
> Tools.tmbundle/Support/bin/jsmin.rb:73:in `mynext'
> from /Library/Application Support/TextMate/Bundles/JavaScript
> Tools.tmbundle/Support/bin/jsmin.rb:122:in `action'
> from /Library/Application Support/TextMate/Bundles/JavaScript
> Tools.tmbundle/Support/bin/jsmin.rb:168:in `jsmin'
> from /Library/Application Support/TextMate/Bundles/JavaScript
> Tools.tmbundle/Support/bin/jsmin.rb:197
>
>
> The problem lying in the mynext method of jsmin.rb, where the while
> (true) loop checking for the end of the comment doesn't check for
> EOF. should be a simple fix.
eep!
I'll fix that up right swift.
Thanks for the heads up!
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070423/59e1aa52/attachment.html>
More information about the textmate
mailing list