Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compass and SASS: Nothing to compile error

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

like image 707
Patrik Avatar asked Nov 29 '22 16:11

Patrik


1 Answers

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.

like image 79
chrisfree Avatar answered Dec 06 '22 12:12

chrisfree