For a while, there was this great feature in RubyMate. When you select a term in your script and press control-H, RubyMate would consult ri (or fri or whatever it is) and, if there were multiple alternatives found, would list them all in a little tooltip or popup menu beneath the mouse. So if you said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a menu so you could click an alternative and do a lookup of that in the help. Very nice.
The thing is, though, that this feature has completely vanished as if I'd only dreamt it. Does anyone know how I can get it back?
RubyMate's ri interface was really pretty good, because so much of it was clickable links. The Terminal ri interface is very inconvenient because none of it is clickable links, but that's pretty much what I'm stuck with now. It's so disappointing that I'm thinking of writing my own ri interface app for Mac OS X (stop me if there is one already). m.
On 6/27/08 9:43 AM, in article C48A66D5.3E413%matt@tidbits.com, "Matt Neuburg" matt@tidbits.com wrote:
For a while, there was this great feature in RubyMate. When you select a term in your script and press control-H, RubyMate would consult ri (or fri or whatever it is) and, if there were multiple alternatives found, would list them all in a little tooltip or popup menu beneath the mouse. So if you said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a menu so you could click an alternative and do a lookup of that in the help. Very nice.
The thing is, though, that this feature has completely vanished as if I'd only dreamt it. Does anyone know how I can get it back?
Just to answer my own question - made it reappear, apparently by reinstalling fastri *again*. It seems that this feature depends upon fastri and that fastri itself has a mysterious random tendency to vanish from my machine...? m.
On Jun 28, 2008, at 12:06 PM, Matt Neuburg wrote:
On 6/27/08 9:43 AM, in article C48A66D5.3E413%matt@tidbits.com, "Matt Neuburg" matt@tidbits.com wrote:
For a while, there was this great feature in RubyMate. When you select a term in your script and press control-H, RubyMate would consult ri (or fri or whatever it is) and, if there were multiple alternatives found, would list them all in a little tooltip or popup menu beneath the mouse. So if you said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a menu so you could click an alternative and do a lookup of that in the help. Very nice.
The thing is, though, that this feature has completely vanished as if I'd only dreamt it. Does anyone know how I can get it back?
Just to answer my own question - made it reappear, apparently by reinstalling fastri *again*. It seems that this feature depends upon fastri and that fastri itself has a mysterious random tendency to vanish from my machine...? m.
We definitely favor fastri, because it's so much more accurate. However, the command is suppose to work without the install as well.
I'm not sure how you lost the fastri install. It lives in Ruby's lib directories with other gems you have installed, so it shouldn't randomly vanish without outside help.
About the only solution I dream up is that you could have two Ruby installs on your machine and something changed to affect which one TextMate uses. You might try typing the following in a TextMate document and pressing control-R on that line to see if it's using the Ruby you expect it to:
which ruby
I admit that I'm totally guessing there though.
James Edward Gray II
On 7/2/08 8:30 AM, in article FCB5CA52-3950-4E7C-BE88-BFB1F277486E@grayproductions.net, "James Gray" james@grayproductions.net wrote:
About the only solution I dream up is that you could have two Ruby installs on your machine and something changed to affect which one TextMate uses. You might try typing the following in a TextMate
Hi, James - No, that isn't it; one machine where the feature in question suddenly disappeared and has now reappeared is a Leopard machine with just one Ruby installation. If you're interested in tracking down this problem, let me know and I'll bring up the matter again if it disappears again. It has, in the past, disappeared on BOTH my machines, but right now it is working on both. I didn't say anything before this because I assumed every other Ruby user was seeing the same problem and that it would just "get fixed" eventually... :) m.
On Jul 4, 2008, at 10:42 PM, Matt Neuburg wrote:
On 7/2/08 8:30 AM, in article FCB5CA52-3950-4E7C-BE88-BFB1F277486E@grayproductions.net, "James Gray" james@grayproductions.net wrote:
About the only solution I dream up is that you could have two Ruby installs on your machine and something changed to affect which one TextMate uses. You might try typing the following in a TextMate
Hi, James - No, that isn't it; one machine where the feature in question suddenly disappeared and has now reappeared is a Leopard machine with just one Ruby installation. If you're interested in tracking down this problem, let me know and I'll bring up the matter again if it disappears again. It has, in the past, disappeared on BOTH my machines, but right now it is working on both. I didn't say anything before this because I assumed every other Ruby user was seeing the same problem and that it would just "get fixed" eventually... :) m.
Yes, if it disappears again on any machine, please feel free to email me privately. I would be happy to try and find a solution for this.
James Edward Gray II