问题
I am editing the a wordpress template that makes use of SASS. When I edit the .scss file and save it, CodeKit throws out this error.
Compass was unable to compile one or more files in the project:
error app.scss (Line 9 of _settings.scss: File to import not found or unreadable: foundation/functions.
Load paths:
/Library/WebServer/Documents/dev/ecpr_sgoc/scss
/Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets
/Applications/CodeKit.app/Contents/Resources/engines/bourbon/bourbon/app/assets/stylesheets
/Applications/CodeKit.app/Contents/Resources/engines/neat
/Applications/CodeKit.app/Contents/Resources/engines/susy/sass
Compass::SpriteImporter)
identical app.css
(This action was triggered by a change to _colors.scss)
EDIT: I just upgraded to CodeKit 2 and this is the new output:
Compass failed to run because your Mac has an older version of Sass and/or Compass
installed that conflicts with the newer versions in CodeKit. You must remove all
versions of Sass below 3.3.rc6 and all versions of Compass below 1.0.alpha18.
Do this at the command line by running 'sudo gem uninstall sass'
and 'sudo gem uninstall compass'.
But I have Sass 3.3.4 and Compass 0.12.5 (which, AFAIK, is more recent than the mentioned 1.0.alpha18) installed...
回答1:
you just need to remove any old version of sass and compass like so :
sudo gem uninstall sass, sudo gem uninstall compass
ex:
$ sudo gem uninstall sass
Select gem to uninstall:
1. sass-3.2.19
2. sass-3.3.5
3. All versions
and just keep only the newest version of sass and compass and codekit will work like charm :)
I solved my Problem with this
来源:https://stackoverflow.com/questions/22895961/compass-unable-to-find-files-in-project