drewdeponte / sublime_guard

Sublime Text 2 Guard Plugin - helps create a smoother development workflow.
MIT License
175 stars 15 forks source link

When rvm installed as multi-user, Guard won't start Spork #49

Closed dugsmith closed 12 years ago

dugsmith commented 12 years ago

Guard does load RSpec, and runs the tests. However, it fails to load Spork. I get the same error I receive when I try to run guard from a terminal without "rvmsudo".

Starting Spork for RSpec
/usr/local/rvm/gems/ruby-1.9.3-p194/bin/spork:23:in `load': cannot load such file -- /usr/local/rvm/gems/ruby-1.9.3-p194/gems/spork-1.0.0rc3/bin/spork (LoadError)
    from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/spork:23:in `<main>'

Guard does load Spork correctly when I do this:

$ rvmsudo bundle exec guard
drewdeponte commented 12 years ago

What you are doing seems all bad. You shouldn't have to sudo your bundle exec guard. My guess at this point is that you have it setup incorrectly with respect to accounts or permissions and that is most likely the cause.

dugsmith commented 12 years ago

You're right, there are permissions issues in my multi-user setup of rvm. I'm setting up a new environment for multiple developers to use, and having some issues. It isn't an issue with Sublime. Thanks for the feedback.