Search code examples
cssrubygemssasscompass-sass

Sass --compass --watch Error: Cannot load compass


I am working with sass and compass and trying to use the new sourcemap feature as Chrome 27 requires the new method of sourcemap to show the actual sass files and line numbers in the chrome console panel.

I am able to run the following sass command sass --sourcemap --watch style.scss:style.css

however if I append the --compass argument like the following sass --compass --sourcemap --watch style.scss:style.css

I get the following error in the windows cmd panel: "ERROR: Cannot load compass".

I have tried following some of methods that apparently worked for some people on the github issue page https://github.com/chriseppstein/compass/issues/1108

The methods I have tried are using the sass 3.3.0.alpha.177 with compass 0.12.2 (this producers an error every time I try and execute the compass gem which is almost identical to this issue Why does "compass watch" say it cannot load sass/script/node (LoadError)?)

Currently my setup is the following:

  • sass 3.3.0.alpha.177
  • compass 0.13.alpha.4
  • Windows 7

Is there a way that I can use Sass with compass and at the same time generate the sourcemaps which are needed for css debugging?


Solution

  • Works with Sass 3.3.0.alpha.149 and compass 0.12.2 on windows 7