I've installed the compass-susy-plugin gem successfully and included it in my config.rb file (require 'susy') but when I import susy into my base stylesheet I get the following error:
error sass/screen.scss (Line 9: File to import not found or unreadable: susy.
If I then try including the container mixin it says it's undefined—as it's not loading susy.
It's also not in the load paths. The full error output is:
error sass/screen.scss (Line 16: File to import not found or
On further testing this seems to be more a problem with the location of the config.rb file when using a non-standard Compass directory structure. I was using the following directory structure:
which resulted in the error. Moving the config.rb file to the stylesheets directory seems to resolve this issue however:
Is this intended behaviour? I could find no mention of this in any of the Compass/Susy docs.
I have the same problem and I also modified the default compass directory structure.
Note, that the CSS is in the project root directory. But it did also not work when I move the CSS into a css or stylesheets directory. Interestingly the CSS can be compiled on the initial compass create command. Only compile and watch do not work.
I've put the output of compass create, compass compile and compass frameworks in a Gist: https://gist.github.com/81c79904af7bb8e80070
I've heard of this before, but the solution has always been on the config/ruby end which I know very little about. The best place to ask is on the compass google group. Sorry I was awol for so long, hope it's been sorted out.
I also had this and found that I didn't need to reorder the file structure. Instead of compiling and watching with sass --watch sass/style.scss:style.css from the project folder, I just used compass watch, and that worked.
sass --watch sass/style.scss:style.css
In advance of this, the project was set up with compass create . -r susy -u susy
compass create . -r susy -u susy
Dude, thank you very much! This "fix" should be posted somewhere. But, what cause this error?
I am also facing the same problem when using as a framework of "compass".
I do the installing susy as a gem. Still having this error .. till this night.
@DeivisonMaster You will have to speak English here. :)
@DeivisonMaster best I can translate that, you're having trouble loading Susy in a Ruby environment? I think -r susy might be from Compass, and not something Sass does internally? But I am not an expert on Sass load paths or ruby rems.