[TxMt] Re: Broken comment line / selection

James Edward Gray II james at grayproductions.net
Wed Mar 14 13:20:01 UTC 2007


On Mar 14, 2007, at 4:23 AM, Udo Wendler wrote:

> James Edward Gray II
> <james at grayproductions.net> wrote:
>
>> On Mar 12, 2007, at 6:18 AM, Udo Wendler wrote:
>>
>>> When I use the command *Comment Line* then comes no text but only:
>>> /tmp/temp_textmate.fQZTsU:119: warning:
>>>
>>> Can anyone Help?  Sorry for my little english.
>>> Udo Wendler
>>>
>>>
>>> My Versions:
>>> Mac mini Intel
>>> Mac OS X Version 10.4.8 (8L2127)
>>> TextMate Version 1.5.5 (1368)
>>>
>>> cat '/Library/Application Support/TextMate/Support/version'
>>> 6716
>>>
>>> /usr/bin/ruby --version
>>> ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
>>
>> I just tried the command with the built-in Ruby and it seemed to work
>> OK.  That script only requires one file and it's a simple file that
>> ships with TM, so it's hard to imagine what the problem would be.
>>
>> You don't have an old bundle checkout somewhere, right?  If so, you
>> really should look into reverting:
>>
>> http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles
>
> I tested it.  The original from TM is identical.  The error is in the
> Line 119 the asterisk:
>
> | out *lines unless lines.empty?
>       ^
>
> For what is the asterisk good?

That turns a Ruby like:

   some_meth(*[1, 2, 3])

into:

   some_meth(1, 2, 3)

In other words, it unwraps an Array of arguments into the arguments  
themselves.

You would also have to have a pretty old Ruby for that to be a  
problem.  Are you still on Panther by chance?

James Edward Gray II



More information about the textmate mailing list