简体   繁体   English

未找到Susy2文件或无法读取的Susy2文件,通过Gulp与Compass一起编译

[英]Susy2 File to Import not found or unreadable, compiling with Compass via Gulp

Getting Compass and Susy to work together under Gulp - frustrating. 让Compass和Susy在Gulp下一起工作-令人沮丧。

I can't seem to get Susy 2 working with gulp and compass unless I import the files manually (using the "Manual Start" directions from the Susy documentation). 除非我手动导入文件(使用Susy文档中的“手动开始”说明),否则似乎无法使Susy 2使用gulp和罗盘。

(I've asked once before, but wasn't able to find any relevant information... this is an ongoing issue for me across multiple development environments, so I'm asking again with as much background information as possible...) (我之前曾问过一次,但是找不到任何相关信息...这对我来说是跨多个开发环境的一个持续问题,因此我要再次询问尽可能多的背景信息...)

Trying to import susy through compass using the simple install or bundler install fails for me every time, as follows: 每次尝试通过简单安装或捆绑器安装通过罗盘导入可疑文件时,每次都会失败,如下所示:

Gemfile 宝石文件

source 'https://rubygems.org'
gem 'compass'
gem 'sass'
gem 'breakpoint'
gem 'susy'

bundle install 捆绑安装

and: bundle list 和:捆绑包列表

Gems included by the bundle:
  * breakpoint (2.5.0)
  * bundler (1.7.2)
  * chunky_png (1.3.1)
  * compass (1.0.1)
  * compass-core (1.0.1)
  * compass-import-once (1.0.5)
  * ffi (1.9.3)
  * multi_json (1.10.1)
  * rb-fsevent (0.9.4)
  * rb-inotify (0.9.5)
  * sass (3.4.3)
  * sassy-maps (0.4.0)
  * susy (2.1.3)

config.rb config.rb

# Require any additional compass plugins here.
require 'breakpoint'
require 'susy'

Style.scss Style.scss

@import 'susy';
Results In: 结果是:
 error sass/style.scss (Line 2: File to import not found or unreadable: susy. Load paths: ... Compilation failed in 1 files. events.js:72 throw er; // Unhandled 'error' event ^ Error: error sass/style.scss (Line 2: File to import not found or unreadable: susy. Load paths: ... 

Notably- the "Load Paths" seem to be missing the susy dir. 值得注意的是-“加载路径”似乎缺少可疑的目录。 For instance, I can see the path for other gems, such as breakpoint: /usr/local/lib/ruby/gems/2.1.0/gems/breakpoint-2.5.0/stylesheets 例如,我可以看到其他gem的路径,例如断点:/usr/local/lib/ruby/gems/2.1.0/gems/breakpoint-2.5.0/stylesheets

Yet the "susy" gem path doesn't display there ("bundle show susy" points to:) /usr/local/lib/ruby/gems/2.1.0/gems/susy-2.1.3 但是“ susy” gem路径没有显示在那里(“ bundle show susy”指向:) /usr/local/lib/ruby/gems/2.1.0/gems/susy-2.1.3

Am I doing something wrong or missing a step? 我是在做错什么还是错过了一步?

Alright, I doubt anyone else will ever encounter this situation, but just in case you do, I did eventually figure it all out. 好吧,我怀疑其他任何人都不会遇到这种情况,但是以防万一,我最终还是想通了。

It had absolutely nothing to do with my Sass / Gem config. 它与我的Sass / Gem配置完全没有关系。 It was entirely an ongoing system problem. 这完全是一个持续的系统问题。 The computer I'm working on has been part of a design studio for some time and has previously had all sorts of tools installed (beyond what I had set up myself). 我正在使用的计算机已经成为设计工作室的一部分,并且以前已经安装了各种工具(超出了我自己设置的范围)。 This included various versions of Ruby, CodeKit, Fire.App, etc on it. 其中包括各种版本的Ruby,CodeKit,Fire.App等。 My problem was that there were all sorts of other gem paths defined. 我的问题是定义了各种各样的其他宝石路径。 I'm not even referring to the shell path variable, or bundler specific paths, as I'm sure I had checked those settings as part of my troubleshooting. 我什至没有提到shell路径变量或捆绑程序特定的路径,因为我确定自己已在故障排除过程中检查了这些设置。

When it finally came down to it, I removed all the old apps and cleaned up as much as I could find. 当它最终归结到它时,我删除了所有旧应用程序并进行了尽可能多的清理。 I think it was specifically removing Fire.app that finally did the trick. 我认为正是删除Fire.app才最终成功了。 When I went through and reinstalled the bundles again, things finally started to work. 当我检查并再次重新安装捆绑包时,事情终于开始起作用。 Hooray! 万岁!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Susy2与Compass / SASS结合使用? - How to use Susy2 with Compass / SASS? Sass::SyntaxError:未找到要导入的文件或无法读取:生产中的指南针 - Sass::SyntaxError: File to import not found or unreadable: compass in production 找不到导入文件或无法读取文件:指南针手表无法运行 - File to import not found or unreadable: compass watch cant run 语法错误:找不到导入文件或不可读:指南针/ css3 - Syntax error: File to import not found or unreadable: compass/css3 错误:要导入的文件未找到或不可读:指南针。 在轨道3.1 - Error: File to import not found or unreadable: compass. in rails 3.1 Sass :: SyntaxError:在Rails 3中找不到要导入的文件或不可读的文件 - Sass::SyntaxError: File to import not found or unreadable In Rails 3 找不到导入文件或文件不可读:引导程序错误行#5 - File to import not found or unreadable: bootstrap error line #5 无法加载此类文件-Ruby / Compass / Susy - Cannot load such file - Ruby / Compass / Susy Rails + Twitter Bootstrap:导入未找到或不可读的文件:twitter / bootstrap - Rails + Twitter Bootstrap: File to import not found or unreadable: twitter/bootstrap 找不到导入的Sass文件或文件不可读,文件确实存在 - Sass file to import not found or unreadable, file does exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM