[TxMt] JavaScript Tools bundle bug
Constantinos Neophytou ♎
jaguarcy at gmail.com
Mon Apr 23 14:59:54 UTC 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1288 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070423/5177f65d/attachment.p7s>
More information about the textmate
mailing list