welaika/wordless — Issue #36: LoadError (Sprockets and Compass)
Author: johanbrook
Created: 2011-12-22 16:50:37+00:00
State: open

While setting up Wordless, I encountered these issues:

"/Users/Johan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs':
Could not find compass (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)

from /Users/Johan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/Johan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem'
from /Users/Johan/.rvm/gems/ruby-1.9.2-p0/bin/compass:18:in `

'

and

/Users/Johan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- sprockets (LoadError)
from /Users/Johan/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/Johan/Sites/dev/wordpress/wp-content/plugins/wordless/wordless/preprocessors/sprockets_preprocessor.rb:5:in `

'

Seems like the scripts can't use `sprockets` and `compass`, even though I have these gems installed (through RVM). I've configured my Compass and Ruby paths in the Wordless preferences file:

Wordless::set_preference("compass.compass_path", "/Users/Johan/.rvm/gems/ruby-1.9.2-p0/bin/compass");
Wordless::set_preference("sprockets.ruby_path", "/Users/Johan/.rvm/rubies/ruby-1.9.2-p0/bin/ruby");

Do I really have to create a gemset in order to make Wordless compile Sass and CoffeeScript?