我只是无法弄清楚我的 Susy 设置有什么问题。我在 OS X 10.7.4
我一直跟着这里:http ://susy.oddbird.net/guides/getting-started/
错误
Syntax error: File to import not found or unreadable: susy.
Load paths:
Users/simon/Websites/wpsvntree/trunk/sass
/Users/simon/.gem/ruby/1.8/gems/compass-0.11.7/frameworks/blueprint/stylesheets
/Users/simon/.gem/ruby/1.8/gems/compass-0.11.7/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 2 of /Users/simon/Websites/wpsvntree/trunk/sass/_base.sass
from line 2 of /Users/simon/Websites/wpsvntree/trunk/sass/screen.sass
我安装的宝石:
*** LOCAL GEMS ***
chunky_png (1.2.6, 1.2.5)
compass (0.12.2, 0.11.7)
compass-boilerplate-plugin (0.1.0)
compass-h5bp (0.0.5, 0.0.2)
compass-rails (1.0.3)
fssm (0.2.9, 0.2.8.1)
html5-boilerplate (2.1.0)
sass (3.2.1, 3.1.15)
susy (1.0.3)
我的 config.rb 文件位于项目的根目录中
require 'susy'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
_base.scss
// ---------------------------------------------------------------------------
// Imports
@import "susy";
/* GRID SETUP
----------------------------------------------------------------------------------*/
$total-columns : 12;
$column-width : 4em;
$gutter-width : 1em;
$grid-padding : $gutter-width;
$show-grid-backgrounds : true;
/* SECTION
----------------------------------------------------------------------------------*/
屏幕.scss
@import "base";
.container {
@include container;
@include susy-grid-background;
}
我从目录 wpsvntree: compass create trunk -r susy -u susy
with success运行了这个命令。
然后compass watch trunk/
查看我的项目,我看到了上面的第一个错误。
我看不出我哪里出错了。
谢谢。