-
14 Mar 2012 8:24 AM #1
Can't compile css files with compass
Can't compile css files with compass
I'm starting to get slightly frustrated here. I've generated a project using the Terminal and the ST2 SDK following the tutorial. I've got everything set up and working. The only thing I can't get to work is that damn "compass compile" command.
To begin with, I really, really do not like working with the Terminal in OSX. I don't get it. Whats wrong with a nice intuitive UI? Anyway, I've read a few posts (there are really only 2 or 3) where someone mention this problem but the solutions does not work for me.
Here's the thing
When i compile i cd to the resources/sass folder and run the command "compass compile". The error I get is: "Nothing to compile. If you're trying to start a new project, you have left off the directory argument."
I'm running:
Compass version 0.12.1
Sass version 3.1.15
I've got all my paths sett up as they should in config.rb (file was generated)
Could anyone please explain the problem? (and please do not use Terminal lingo without explaining because I don't get it
)
-
16 Mar 2012 4:59 AM #2
Really, no-one else got this problem?
Edit:
Just to be on the safes side (although the project file structure was generated by the SenchaSDKTools)
My config.fb file inside app/resources/sass/
The project file structure:Code:# Get the directory that this configuration file exists in dir = File.dirname(__FILE__) # Load the sencha-touch framework automatically .load File.join(dir, '..', '..', 'sdk', 'resources', 'themes') # Compass configurations sass_path = dir css_path = File.join(dir, '..', 'css') # Require any additional compass plugins here .images_dir = File.join(dir, '..', 'images') output_style = :compressed environment = :production output_style = :expanded # by Compass.app
Screen shot 2012-03-16 at 5.14.10 PM 1.jpg
-
18 Mar 2012 6:01 PM #3
Have you tried running
Usually in terminal, I just CD into the directory that has all the config.rb file and run COMPASS WATCH. I had make sure theHTML Code:compass watch
was in the correct place. Mine was failing to compile because it couldn't find those.HTML Code:resources/themes/stylesheets/sencha-touch/default
Can you let me know what kind of errors you are getting?
-
19 Mar 2012 1:56 AM #4
Yes, i have tried that command as well but with the same error (Nothing to compile. If you're trying to start a new project, you have left off the directory argument).
The SDKTools generates this path:
@import 'sencha-touch/default/all';
I don't know if 'sencha-touch' is an alias but I've read I should change it to:
@import '../themes/stylesheets/sencha-touch/default/all';
Looking at my config.rb file and at my file structure print screen, those are int the right place right?
If you look at my print screen above that default folder is located here:
/sdk/resources/themes/stylesheets/sencha-touch/default/all
Should i move that folder to within sdk sibling folder resources?
Also, you write the path without the 'all' part. Is that how it should be?


Reply With Quote