Compass无法在项目中找到文件 [英] Compass unable to find files in project
问题描述
我正在编辑一个使用SASS的wordpress模板。当我编辑.scss文件并保存时,CodeKit会抛出这个错误。
Compass无法编译一个或多个文件在项目中:
error app.scss(第9行:_settings.scss:文件导入未找到或不可读:基础/函数
加载路径:
/ 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)
相同app.css
(此操作是由对_colors.scss的更改触发的)
编辑:我刚升级到CodeKit 2,这是新的输出:
Compass无法运行,因为您的Mac安装的Sass和/或Compass
的旧版本与CodeKit中的较新版本存在冲突。您必须删除3.3.rc6以下的所有
版本的Sass以及1.0.alpha18以下的所有Compass版本。
通过运行'sudo gem uninstall sass'
和'sudo gem uninstall compass'在命令行执行此操作。
但是我有Sass 3.3.4和Compass 0.12.5(这是AFAIK比提到的1.0.alpha18)安装...
你只需要删除任何旧版本的sass和罗盘就好:
sudo gem卸载sass,sudo gem卸载指南针
例如:
$ sudo gem卸载sass
选择gem卸载:
1. sass-3.2.19
2。 sass-3.3.5
3.所有版本
只保留最新版本sass and compass and codekit will like like charm:)
我解决了这个问题
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...
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
这篇关于Compass无法在项目中找到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!