Getting autocomplete to work with Ruby Gems in Sublime Text 2, with SublimeCodeIntel and RVM

I tried (unsuccessfully) all morning to get a SublimeCodeIntel (forked from Komodo CodeIntel function) for Sublime Text 2 , to automatically populate stuff from installed Ruby Gems, in conjunction with (or without, for that matter) RVM on my Mac. He doesn't seem to have any problems with built-in things or even a rake for that matter, but he doesn't seem to be able to pick up any gems.

With RVM, I installed Ruby 1.9.3, then with the global gemset installed by Mustache :

$ rvm install 1.9.3 $ rvm --default use 1.9.3 $ gem install mustache $ irb >> require 'mustache' => true 

So far so good. Now I run Sublime, with SublimeCodeIntel, and create a file. By typing require ' , then CMD + J displays a pop-up window, as expected, with available modules / directories. However, mustache not one of them. (e.g. abbrev , base64 and rake )

I check the CodeIntel configuration, find that it still uses the ruby ​​system, so I switch it:

 { "Ruby": { "ruby": "~/.rvm/bin/default_ruby" } } 

Still no dice. I switched to the system ruby, installed a mustache there and tried again, no luck.

After switching back, I realized that perhaps CodeIntel simply cannot find the file, although Ruby can, so I explicitly added the gem bin directory to the configuration file:

 "rubyExtraPaths":["~/.rvm/gems/ruby-1.9.3-p0/bin"] 

And this STILL does not work.

Now I'm still new to working with Ruby, Gems, and RVM, so maybe I am missing something painfully obvious, but I looked through all the documentation that I could find on any of them to find something.

Does anyone know what could be wrong here?

+7
source share
1 answer

This is an old CodeIntel error: http://bugs.activestate.com/show_bug.cgi?id=72335

Nobody seems to be going to fix it.

+4
source

All Articles