[TxMt] Re: what is 'qri' and why is it messing up my Ruby Documentation feature?

Matt Neuburg matt at tidbits.com
Mon May 5 22:24:58 UTC 2008


On 5/5/08 2:24 PM, in article
884BEC33-1BA4-4D54-BDA0-D39E089F6BCF at grayproductions.net, "James Gray"
<james at grayproductions.net> wrote:

> On May 5, 2008, at 4:13 PM, Matt Neuburg wrote:
> 
>> On 5/5/08 1:44 PM, in article
>> 6A269DA0-1BE6-438F-9892-F4229B4DDD13-AUi9nNu29NfWNcQ1/nO7itHuzzzSOjJt at public.
>> gmane.org, "James Gray"
>> <james at grayproductions.net> wrote:
>> 
>>> On May 5, 2008, at 3:30 PM, Matt Neuburg wrote:
>>> 
>>>> When I press Control-H in a Ruby document, I don't get documentation
>>>> on
>>>> what's selected; instead, I get an error message like this:
>>>> 
>>>> /usr/local/bin/qri:17: undefined method `require_gem' for
>>>> main:Object
>>>> (NoMethodError)
>>>> 
>>>> This just recently started happening (perhaps after updating some
>>>> gems).
>>>> 'qri' itself may have been updated, as its date is April 23.
>>>> 
>>>> What is 'qri'?
>>> 
>>> It's part of the fastri gem.  We prefer to use it in TextMate because
>>> it works a lot better than the ri program included with Ruby.
>>> 
>>>> It seems to be what's broken; if I just say "qri" in the
>>>> Terminal I get the same message.
>>> 
>>> I believe you are using a pretty old version of RubyGems.  Update
>>> that
>>> and I bet the problem will disappear.
>> 
>> $ gem --version
>> 1.1.1
>> 
>> That's not "pretty old".
> 
> No it's not.  My mistake.
> 
> Are we talking about two different Ruby installs here by chance?  What
> does:
> 
>    which gem
> 
> say, both from the command-line and when you control-r that line in
> TextMate?

Fixed it by re-installing fastri via direct download and running setup.rb,
i.e. NOT as a gem. I think there might be something wrong with the gem.
Anyhow, I'm up and running again with Control-H (with all the new pop-up
menu goodness, which I never had in the past). Thanks!!!! m.

-- 
matt neuburg, phd = matt at tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>






More information about the textmate mailing list