Doing a ⌃H document lookup in a Ruby on Rails file won't lead me to the desired documentation. Instead, the lookup disambiguation menu loops infinitely.
This is, I assume, a problem with my Ruby installation, but it particularly bites me in TextMate, and I hope someone here can point me to a solution. I am running Ruby 1.8.6 (supplied with Leopard), Rails 1.2.6 (supplied with Leopard), ri 1.0.1 - 20041108, and TextMate 1.5.7 (1455). I am not aware of having installed any additional Ruby or Rails.
If I type "delete" in a Ruby on Rails document, and press ⌃H to look it up in the documentation, I find among the many choices "ActiveRecord::Base::delete". Selecting that does not produce the documentation window, but shows a second context menu containing:
ActiveRecord::Base::delete 1 ActiveRecord::Base::delete_all 2 ActiveRecord::Base::delete 3 ActiveRecord::Base::delete_all 4
Selecting one of these simply reopens the menu, and I'm stymied. I can't get my documentation.
"ri delete" on the command line produces a list in which every entry is duplicated. Refining to ActiveRecord::Base::delete shows ActiveRecord::Base::delete, ActiveRecord::Base::delete_all, ActiveRecord::Base::delete, ActiveRecord::Base::delete_all … and once again, I'm stymied. That's why I conclude it's a Ruby/ Rails installation problem. I'm not experienced enough to trace it.
Can anyone offer/point me to a fix?
— F
On Jan 9, 2008, at 11:33 AM, Fritz Anderson wrote:
Doing a ⌃H document lookup in a Ruby on Rails file won't lead me to the desired documentation. Instead, the lookup disambiguation menu loops infinitely.
This is a known bug in ri. :(
This is, I assume, a problem with my Ruby installation, but it particularly bites me in TextMate, and I hope someone here can point me to a solution.
Sure:
1. Launch TextMate 2. Select "Release Notes" from the "Help" menu 3. Push control-s to activate the incremental search 4. Type "fastri" without the quotes 5. Read and follow the instructions in the entry the search highlights.
Hope that helps.
James Edward Gray II
On 9 Jan 2008, at 12:21 PM, James Gray wrote:
On Jan 9, 2008, at 11:33 AM, Fritz Anderson wrote:
Doing a ⌃H document lookup in a Ruby on Rails file won't lead me to the desired documentation. Instead, the lookup disambiguation menu loops infinitely.
This is a known bug in ri. :(
This is, I assume, a problem with my Ruby installation, but it particularly bites me in TextMate, and I hope someone here can point me to a solution.
Sure:
[Install and build index for fastri.]
Looks good, thanks, but after
$ sudo gem install fastri $ # (yields a lecture about installing from the tarball instead, but says it did it) $ fastri-server -b
… what do I do? I don't get a fastri command on my path, and using ri on the command line still displays the double-listing bug.
TM QUESTION: TextMate displays the new behavior immediately, but it no longer includes Rails documentation. How do I get that back?
fastri-server --help doesn't guide me. There's no man page.
— F
On 09/01/2008, Fritz Anderson fritza@manoverboard.org wrote:
Looks good, thanks, but after
$ sudo gem install fastri $ # (yields a lecture about installing from the tarball instead, but says it did it) $ fastri-server -b
[snip]
TM QUESTION: TextMate displays the new behavior immediately, but it no longer includes Rails documentation. How do I get that back?
I just had the same problem. I ran these two commands (neither worked in isolation):
fastri-server -B fastri-server -b
It appears to have magically re-indexed all my installed gems! :-)
And there's always Noobkit.app...
-- Graham Ashton http://effectif.com