Thursday, October 21, 2010

`load_missing_constant': uninitialized constant Debugger::CommandProcessor

To make a long story short, I've been having some development configuration issues. I've switched to rvm and bundler, but sometimes my old gems bit me when I'm not expecting it.

While trying to restore sanity to my development environment, I came across this error.
"`load_missing_constant': uninitialized constant Debugger::CommandProcessor "

In my Gemfile, I was specifying:
gem 'ruby-debug'
gem 'ruby-debug-base'
gem 'ruby-debug-ide'

According to this thread, http://youtrack.jetbrains.net/issue/RUBY-5341, if I'm using RubyMine, I do not need to include ruby-debug which is for the command line.

My new Gemfile includes just
gem 'ruby-debug-base'
gem 'ruby-debug-ide'


Also on this journey, I decided to uninstall all my old system gems. I was able to do this with opening a new terminal window, rvm use system, gem list --local, sudo gem uninstall GEMNAME. I was able to get rid of most of them this way, but a few were still lingering around. I did an gem env and removed some directories including:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
/Library/Ruby/Gems/1.8



I'm still on 10.5