指南针无法在项目中找到文件

时间:2014-04-06 15:23:44

标签: rubygems sass compass-sass codekit

我正在编辑一个使用SASS的wordpress模板。当我编辑.scss文件并保存它时,CodeKit会抛出此错误。

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)

编辑:我刚刚升级到CodeKit 2,这是新输出:

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'.

但是我安装了Sass 3.3.4和Compass 0.12.5(其中,AFAIK,比最近提到的1.0.alpha18更新)......

1 个答案:

答案 0 :(得分:0)

你需要删除任何旧版本的sass和指南针,如下所示:

sudo gem uninstall sass,sudo gem uninstall compass

前:

$ sudo gem uninstall sass

Select gem to uninstall:
 1. sass-3.2.19
 2. sass-3.3.5
 3. All versions

并且只保留最新版本的sass和指南针,而codekit将像魅力一样工作:)

我用这个解决了我的问题