找不到导入文件或不可读:可疑 [英] File to import not found or unreadable: susy
问题描述
我只是不知道Susy的设置有什么问题。
我在OS X 10.7.4上
我在这里一直遵循: http://susy.oddbird.net/guides/getting-started/
错误
语法错误:找不到导入文件或不可读:可疑。
$的第2行中的/Websites/wpsvntree/trunk/sass/_base.sass
加载路径:
用户/ simon /网站/ 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
在/ Users / simon的第2行/Users/simon/Websites/wpsvntree/trunk/sass/screen.sass
p $ p>
我安装的宝石:
***本地宝石** *
chunky_png(1.2.6,1.2.5)
罗盘(0.12.2,0.11.7)
罗盘-样板插件(0.1.0)
罗盘h5bp(0.0.5,0.0.2)
罗盘导轨(1.0.3)
fssm(0.2.9,0.2.8.1)
html5-boilerplate(2.1.0 )
sass(3.2.1,3.1.15)
sussy(1.0.3)
我的config.rb文件位于项目的根目录中
需要怀疑
#在这里需要其他指南针插件。
#部署时将其设置为项目的根目录:
http_path = /
css_dir = stylesheets
sass_dir = sass
images_dir = images
javascripts_dir = javascripts
#您可以在此处选择您喜欢的输出样式(可以通过命令行覆盖):
#output_style =: expand或:nested或:compact或:compressed
#通过罗盘辅助功能启用相对于资产的路径。取消注释:
relative_assets = true
_base.scss
// --------------------------------- ------------------------------------------
//导入
@import可疑;
/ *网格设置
---------------------------------- ------------------------------------------------ * /
总列数:12;
$ column-width:4em;
$ gutter-width:1em;
$ grid-padding:$ gutter-width;
$ show-grid-backgrounds:true;
/ *部分
--------------------------------------- ------------------------------------------- * /
screen.scss
@import base;
.container {
@include容器;
@include susy-grid-background;
}
我从目录wpsvntree运行了此命令:
compass创建中继-r susy -u susy
成功。
然后
罗盘监视箱/
查看我的项目时,我看到了上面的第一个错误。
我看不到哪里出了问题。
谢谢。
解决方案在此处遵循了解决方案。固定。
https://github.com/ericam/susy/issues/21I just can't figure out what is wrong with my setup with Susy. I am on OS X 10.7.4
I have followed along here: http://susy.oddbird.net/guides/getting-started/
Error
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
My installed Gems:
*** 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)
My config.rb file which is sitting in the root of the project
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 ----------------------------------------------------------------------------------*/
screen.scss
@import "base"; .container { @include container; @include susy-grid-background; }
I ran this command from the directory wpsvntree:
compass create trunk -r susy -u susy
with success.then
compass watch trunk/
Viewing my project I see the first above error.
I can't see where I have gone wrong.
Thanks.
解决方案Followed the solution here. Fixed. https://github.com/ericam/susy/issues/21
这篇关于找不到导入文件或不可读:可疑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!