[TxMt] Problem with ctrl-h in ruby mode

7 views
Skip to first unread message

Martin

unread,
Jul 2, 2010, 4:02:50 PM7/2/10
to TextMate users
Hello,

in ruby on rails mode ctrl-h should show me the documentation of the
selected method. But I always get a window with the ri-documentation.
The headline is 'Documentation for xxxxx', but the content is the help
text of ri.

any ideas?

TIA,
Martin

_______________________________________________
textmate mailing list
text...@lists.macromates.com
http://lists.macromates.com/listinfo/textmate

Martin Kühl

unread,
Jul 2, 2010, 4:22:33 PM7/2/10
to TextMate users
On Fri, Jul 2, 2010 at 22:02, Martin <html...@gmx.de> wrote:
> in ruby on rails mode ctrl-h should show me the documentation of the
> selected method. But I always get a window with the ri-documentation. The
> headline is 'Documentation for xxxxx', but the content is the help text of
> ri.

Recent versions of RDoc have, for whatever reason, removed the "plain"
output type from the `ri` command, which TextMate uses for the Ruby
documentation command. If you have installed/upgraded rdoc manually,
this might be what causes your problem.

Downgrade the rdoc gem to an older version (I use 2.4.3, current is
2.5.8, if I remember correctly 2.5.3 is broken as well) and you should
be fine.

HTH,

Martin

unread,
Jul 2, 2010, 4:29:38 PM7/2/10
to text...@lists.macromates.com
Am 02.07.10 22:22, schrieb Martin Kühl:

> Downgrade the rdoc gem to an older version (I use 2.4.3, current is
> 2.5.8, if I remember correctly 2.5.3 is broken as well) and you should
> be fine.
>

thanks, maybe this is the problem.
I'm using rvm. When using the system installation of ruby I get the
docs. With any rvm-installed ruby I have the problems.

Do I have to generate anything after downgrading rdoc?

Martin

unread,
Jul 2, 2010, 5:15:01 PM7/2/10
to text...@lists.macromates.com
Am 02.07.10 22:29, schrieb Martin:

> Am 02.07.10 22:22, schrieb Martin Kühl:
>
>> Downgrade the rdoc gem to an older version (I use 2.4.3, current is
>> 2.5.8, if I remember correctly 2.5.3 is broken as well) and you should
>> be fine.
>>
>
> thanks, maybe this is the problem.
> I'm using rvm. When using the system installation of ruby I get the
> docs. With any rvm-installed ruby I have the problems.
>
> Do I have to generate anything after downgrading rdoc?

it seems to me that I have trouble uninstalling rdoc 2.5.8 and
installing 2.4.3.
I'll try to solve this problem first ...

Martin Kühl

unread,
Jul 2, 2010, 5:37:08 PM7/2/10
to TextMate users
On Fri, Jul 2, 2010 at 23:15, Martin <html...@gmx.de> wrote:
> Am 02.07.10 22:29, schrieb Martin:
>>
>> Am 02.07.10 22:22, schrieb Martin Kühl:
>>
>>> Downgrade the rdoc gem to an older version (I use 2.4.3, current is
>>> 2.5.8, if I remember correctly 2.5.3 is broken as well) and you should
>>> be fine.
>>>
>>
>> thanks, maybe this is the problem.
>> I'm using rvm. When using the system installation of ruby I get the
>> docs. With any rvm-installed ruby I have the problems.
>>
>> Do I have to generate anything after downgrading rdoc?
>
> it seems to me that I have trouble uninstalling rdoc 2.5.8 and installing
> 2.4.3.
> I'll try to solve this problem first ...

You should be able to just `gem install rdoc --version 2.4.3`, at
least the wrapper scripts for ri et al will be overwritten by that,
and if you have anything that depends on rdoc 2.5.8 it'll still be
able to load that.
As for regenerating docs, I don't think you should have to, but I'm
not entirely certain, sorry.

Reply all
Reply to author
Forward
0 new messages