Tag Archives: Note to self

Debugger messes up rdoc

Sometimes it seems that ruby still has a way to go in terms of maturity. Today I got a strange error message when trying to build the rdoc files:

uninitialized constant RubyToken::AlreadyDefinedToken (NameError)

Any idea what it means? It turns out that I forgot to remove a require 'ruby-debug' somewhere in the code, which in turn includes some files from irb, which in turn is incompatible with rdoc. Duh…

RadRails and Locomotive

First day at work, and I finally figured out how to have RadRails to work together with the Locomotive rails package for the Mac.

This really took me hours, because no matter how you configure RadRails with Locomotive, it will hate you. It won’t recognise the rails commands, even if configured, and claim that it found none of the tools. I guess it’s because it relies on some path settings from the environment, that are not accessible from the GUI. So you’re stuck. Unless you do the following:

  • Open Locomotive
  • Open the Terminal from Locomotive, so that it has all the path settings
  • Start RadRails from the command line, like this:
    open /Developer/Applications/radrails/RadRails.app