[TxMt] Bug in Ruby bundle: Control-Q comment reformatting produces an error for long words

James Gray james at grayproductions.net
Tue Mar 25 18:36:25 UTC 2008


On Mar 25, 2008, at 1:22 PM, Bill McNeill wrote:

> I've found a bug in the Ruby bundle for Textmate.  Under certain  
> circumstances, using Control-Q to reformat comment code raises an  
> exception that spews error code into the source.

Actually that command, Reformat Comment, is in the Source bundle.

> Is this the right forum to post bugs in Ruby bundles?

Sure, this is a fine place.

> The problem occurs if you have a comment that contains a single word  
> that goes past column 79.  For example, in the following code (also  
> attached) the x's in the comment extend out to column 80:
>
> #  
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> def func(x,y)
>   x+y
> end

I can duplicate the error here, so I'll look into it as I have some  
time.

Thanks for letting us know.

James Edward Gray II



More information about the textmate mailing list