eschulte / rinari

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)
http://rinari.rubyforge.org
GNU General Public License v3.0
412 stars 68 forks source link

Rinari Console doesn't take into account rbenv #61

Closed seanhagen closed 11 years ago

seanhagen commented 11 years ago

When I try to run rinari-console, I keep getting errors about certain gems not being installed. If I run 'bundle install' ( from eshell or from a seperate terminal window ), rinari-console continues to complain about the missing gems.

What really confounds me is that rinari-web-server runs fine without any issues.

Is there any way to get rinari-console to take into account the local rbenv environment, or am I out of luck?

purcell commented 11 years ago

Okay... this works fine for me, so I need to ask you for some more info:

-Steve

seanhagen commented 11 years ago

More info!

purcell commented 11 years ago

Hmm, okay. And are you using the bundled ruby-compilation and the inf-ruby from the git submodule? Rinari uses the latter for rinari-console and the former for rinari-web-server.

(BTW, I strongly recommend installing rinari from either Marmalade or MELPA -- that's the setup which "just works" for me, and it ensure the correct dependencies are installed. The Marmalade version is currently in need of an update, but the MELPA package is built a fully-working git snapshot.)

purcell commented 11 years ago

Oh, and other thoughts: which Rails version are you using? And do you have console and server scripts under RAILS_ROOT/script?

Sorry for all the questions... I'd really like to help you get this working. :-)

seanhagen commented 11 years ago

I'm using Rails 3.2.8. The only file in RAILS_ROOT/script is rails. To get a Rails console or Rails server, I usually just run rails c or rails s, respectively.

No worries! I'll answer any questions you've got, I want to get this working too! =D

purcell commented 11 years ago

Now, rinari will actually run RAILS_ROOT/script/rails if it exists, which might not be the same rails you see from the command line; perhaps try running it directly with console and server to see if it behaves correctly.

seanhagen commented 11 years ago

Sorry it's been a while since I posted on this issue, life got in the way.

Since I last posted, I've started completely from scratch with a brand new Emacs install ( brand new Ubuntu install, to be honest ). Apparently I might have had a rvm.el file floating around somewhere, because now rinari console works just fine!

I feel pretty darn stupid, but at least this issue seems to have resolved itself. I'm going to close the issue, but thanks for all your help!

purcell commented 11 years ago

No problem -- very happy to hear things are working for you now.