骑车已经有一段时间了。从安装中看到了很多相同的问题:gem install compass --pre来修复你在grunt中的路径。
我正在使用Fedora 24,它似乎没有任何问题。宝石更新工作没有错误。
来自cli $ gem列表的我的宝石版本:
*** LOCAL GEMS ***
bigdecimal (1.2.8)
breakpoint (2.7.0)
chunky_png (1.3.6)
compass (1.0.3)
compass-core (1.0.3)
compass-import-once (1.0.5)
did_you_mean (1.0.2, 1.0.0)
ffi (1.9.14)
io-console (0.4.6, 0.4.5)
json (2.0.2, 1.8.3)
multi_json (1.12.1)
power_assert (0.3.0)
psych (2.1.0, 2.0.17)
rake (11.2.2, 10.4.2)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rdoc (4.2.2)
sass (3.4.22)
sassy-maps (0.4.0)
susy (2.2.12)
test-unit (3.2.1, 3.2.0)
Sass工作正常。指南针工作正常。
当我打开我的清单scss文件时,我使用Vim和syntastic安装我得到了这个错误:
||要导入的文件未找到或不可读:susy。加载路径: /home/s/.gem/ruby/gems/compass-core-1.0.3/stylesheets Compass :: SpriteImporter在第4行的第4行的_grids.scss中 style.scss使用--trace进行回溯。
来自cli:宝石哪个susy
/home/s/.gem/ruby/gems/susy-2.2.12/lib/susy.rb
来自我的config.rb文件:
1 require 'compass/import-once/activate'
2 # Require any additional compass plugins here.
3 require "susy"
4
5 # Set this to the root of your project when deployed:
>> 6 http_path = "/"
>> 7 css_dir = "stylesheets"
>> 8 sass_dir = "sass"
>> 9 images_dir = "images"
>> 10 javascripts_dir = "javascripts"
11
12 # You can select your preferred output style here (can be overridden via the command line):
13 # output_style = :expanded or :nested or :compact or :compressed
14
15 # To enable relative paths to assets via compass helper functions. Uncomment:
16 # relative_assets = true
17
18 # To disable debugging comments that display the original location of your selectors. Uncomment:
19 # line_comments = false
20
21
22 # If you prefer the indented syntax, you might want to regenerate this
23 # project again passing --syntax sass, or you can uncomment this:
24 # preferred_syntax = :sass
25 # and then run:
26 # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
>>标记错误用于已分配但未使用的变量。很确定不是问题所在。
据我所知,由于安装的版本超出了已经提到的任何版本,并且我没有使用rails,grunt等,所以没有旧帖子适用。
很明显路径不起作用,但我不知道如何修复它。
由于