tvooo / sublime-grunt

Moved to https://github.com/sptndc/sublime-grunt
296 stars 35 forks source link

Could not find 'compass' #52

Closed agassiyzh closed 10 years ago

agassiyzh commented 10 years ago

Hi,

My configure is

{
    "exec_args": {
        "path": "/Users/yuzhuohui/.rvm/gems/ruby-2.0.0-p247/bin:/Users/yuzhuohui/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/yuzhuohui/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/yuzhuohui/.rvm/bin:/Users/yuzhuohui/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/npm/bin"
    }
}

I use yeoman angular-fullstack generator,when i run grunt server:

Running "serve" task

Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "concurrent:server" (concurrent) task

    Running "copy:styles" (copy) task

    Done, without errors.

    Running "coffee:dist" (coffee) task
    File .tmp/scripts/app.js created.
    File .tmp/scripts/app.js.map created.
    File .tmp/scripts/controllers/login.js created.
    File .tmp/scripts/controllers/login.js.map created.
    File .tmp/scripts/controllers/main.js created.
    File .tmp/scripts/controllers/main.js.map created.
    File .tmp/scripts/services/loginService.js created.
    File .tmp/scripts/services/loginService.js.map created.

    Done, without errors.
        Warning: /Users/yuzhuohui/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 29 total gem(s) (Gem::LoadError)
        from /Users/yuzhuohui/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:309:in `to_spec'
        from /Users/yuzhuohui/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
        from /Users/yuzhuohui/.rvm/gems/ruby-2.0.0-p247/bin/compass:22:in `<main>'
        from /Users/yuzhuohui/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
        from /Users/yuzhuohui/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>' Use --force to continue.

        Aborted due to warnings.
    [Finished in 4.0s with exit code 6]

How can i do?

VirtueMe commented 10 years ago

Hi, @agassiyzh

And this works from the command line?

This looks like a related issue I found on Stackoverflow

It looks like you have to set up rvm to use compass correctly with a wrapper.

rvm wrapper 2.0.0@compass --no-prefix compass
VirtueMe commented 10 years ago

As there has been no follow up on this it will be closed as not related to the plugin.