Reputation: 132
I'm getting so tired of this problem right now. I've been put off so many times trying to get this going. I feel this is my last attempt in solving what is wrong. Here goes:
I install compass
sudo gem update --system
sudo gem install compass
I create my test project (named test)
compass create test
That generates this
directory test/
directory test/sass/
directory test/stylesheets/
create test/config.rb
create test/sass/screen.scss
create test/sass/print.scss
create test/sass/ie.scss
I try to compile the project
compass compile [path/to/test]
All I get is this error message: "Nothing to compile. If you're trying to start a new project, you have left off the directory argument."
I try to google the problem but I can't find anything to help me. Anyone here that knows what's going on? Am i missing something important?
Im running OSX 10.6.8
Upvotes: 4
Views: 12555
Reputation: 71
Carefully check the paths in your config.rb file. This error can be caused by any error in the path definitions that lead to a non-existent directory.
Upvotes: 2
Reputation: 4928
Missing config.rb
produces the same error. Create a minimal one in your basic sass directory containing just
sass_dir = '.'
Upvotes: 5
Reputation: 175
Check to see if you have special characters in your filepath. I had "[" and "]" wrapping a directory name. This apparently causes Compass to choke. Removing those fixed my issue.
Seeing as though there are lot's of different scenarios that lead to this same error message, it would seem that some additional info in the debugging output might be helpful. I spent a couple of hours on this, thinking it was my config.rb file! Oh well, hope this post saves someone else some time.
Upvotes: 16