我似乎无法成功加载Breakpoint。
终端中的错误日志显示:
Running "compass:dev" (compass) task
error _/components/sass/styles.scss (Line 4: File to import not found or unreadable: breakpoint.
Load paths:
Compass::SpriteImporter
/Users/i835059/Desktop/sassycompass/_/components/sass
/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets
/Library/Ruby/Gems/2.0.0/gems/susy-2.1.3/sass)
Compilation failed in 1 files.
我的css文件中发布的错误日志如下:
Error: File to import not found or unreadable: breakpoint.
Load paths:
Compass::SpriteImporter
/Users/i835059/Desktop/sassycompass/_/components/sass
/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets
/Library/Ruby/Gems/2.0.0/gems/susy-2.1.3/sass
on line 4 of /Users/i835059/Desktop/sassycompass/_/components/sass/styles.scss
1: @import "compass";
2: @import "compass/reset";
3: @import "susy";
4: @import "breakpoint";
5:
6: @import "variables";
7: @import "mixins";
8: @import "base";
9: @import "layout";
Backtrace:
/Users/i835059/Desktop/sassycompass/_/components/sass/styles.scss:4
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/import_node.rb:66:in `rescue in import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/import_node.rb:45:in `import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/import_node.rb:28:in `imported_file'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/import_node.rb:37:in `css_import?'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:294:in `visit_import'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:152:in `block in visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/stack.rb:79:in `block in with_base'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/stack.rb:115:in `with_frame'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/stack.rb:79:in `with_base'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:152:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in `map'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:161:in `block in visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:173:in `with_environment'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:160:in `visit_children'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:180:in `visit_root'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:151:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:8:in `visit'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/root_node.rb:36:in `css_tree'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/tree/root_node.rb:20:in `render'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/engine.rb:268:in `render'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/plugin/compiler.rb:486:in `update_stylesheet'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/plugin/compiler.rb:214:in `block in update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/plugin/compiler.rb:208:in `each'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.0/lib/sass/plugin/compiler.rb:208:in `update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_compiler.rb:40:in `compile!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/update_project.rb:49:in `perform'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/base.rb:18:in `execute'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/project_base.rb:19:in `execute'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:30:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `call'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `<top (required)>'
/usr/bin/compass:23:in `load'
/usr/bin/compass:23:in `<main>'
答案 0 :(得分:2)
我能够通过运行来解决这个问题:
bundle clean --force
bundle install
不确定宝石在哪里被打破,并且说要小心运行捆绑清洁,但是为我工作了!
答案 1 :(得分:1)
我遇到了同样的问题所以我刚创建了一个 omega 4子主题
我认为某些宝石有一些糟糕的更新,所以我将 omega主题中的所有 gemfiles 复制到我的子主题中。
从子主题中运行:
bundle install
然后:
bundle exec guard
现在一切都好了
答案 2 :(得分:0)
你应该检查你真的有&#34;断点&#34;你电脑上的宝石。
在您的期刊中键入此内容并尝试查找&#34;断点&#34;:
gem list --local
如果没有这个gem,你应该安装:
gem install breakpoint
在项目中还有另一种使用断点的方法,在文档中你可以找到:
#it no longer has any Ruby requirements and can be run as a Sass package
所以你可以通过Bower直接下载断点源,或者直接从你的样式表中的Github和@import下载简单的* .scss文件