<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Apr 23, 2007, at 10:59 AM, Constantinos Neophytou ♎ wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">if the last line of the javascript file is a comment with no new line at the end of it,<SPAN class="Apple-converted-space">  </SPAN>then the command "Minimize current file" produces this output:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">/Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/jsmin.rb:73:in `<=': comparison of Fixnum with String failed (ArgumentError)</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/jsmin.rb:73:in `mynext'</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/jsmin.rb:122:in `action'</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/jsmin.rb:168:in `jsmin'</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/jsmin.rb:197</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">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.</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>eep!</DIV><DIV>I'll fix that up right swift.</DIV><DIV>Thanks for the heads up!</DIV><DIV><BR><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>