简体   繁体   English

在行[“ 179”] .. data.rb上编译Compass LoadError时出错:无法加载此类文件

[英]Error compiling Compass LoadError on line [“179”] .. data.rb: Cannot load such file

I've trawled every possible Ruby resource looking for a solution to this error but can't for the life of me figure out what I'm doing wrong. 我已经拖了所有可能的Ruby资源,以寻找解决此错误的方法,但是我一生无法弄清自己在做什么错。

I'm trying to get my sass compiler working for a Drupal build from a previous project. 我正在尝试让我的sass编译器为先前项目中的Drupal构建工作。 Using the following stack: Ruby 2.3.0, Sass 3.4.22, Compass & Compass Core 1.0.3, Bundler 1.11.2. 使用以下堆栈:Ruby 2.3.0,Sass 3.4.22,Compass和Compass Core 1.0.3,Bundler 1.11.2。 I've already tried uninstalling and reinstalling the gems but to no avail. 我已经尝试过卸载并重新安装gems,但无济于事。

The error occurs when I run the bundle exec compass watch command, which results in the following output: 当我运行bundle exec compass watch命令时,将发生以下错误:

LoadError on line ["179"] of /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/data.rb: cannot load such file -- breakpoint
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/data.rb:179:in `require'
  /Users/somedude/Sites/devdesktop/taronga-dev/docroot/sites/tarongazoo/themes/custom/taronga/config.rb:9:in `get_binding'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `eval'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `parse_string'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:15:in `block in _parse'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `open'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `_parse'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:7:in `block in new_from_file'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/inheritance.rb:207:in `with_defaults'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:6:in `new_from_file'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:19:in `configuration_for'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:69:in `add_project_configuration'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:37:in `add_project_configuration'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:25:in `configure!'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:15:in `initialize'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/commands/update_project.rb:41:in `initialize'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `new'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `perform!'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:15:in `run!'
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/bin/compass:30:in `block in '
  /Users/somedude/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/bin/compass:44:in `'
  /Users/somedude/.rvm/gems/ruby-2.3.0/bin/compass:23:in `load'
  /Users/somedude/.rvm/gems/ruby-2.3.0/bin/compass:23:in `'
  /Users/somedude/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
  /Users/somedude/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `'

Has anyone else encountered something similar when trying to get their SASS compiler to run? 其他人在尝试使其SASS编译器运行时是否遇到过类似情况? ANY help would be much appreciated. 任何帮助将非常感激。

Thanks, 谢谢,
Mark. 标记。

Resolved! 解决! It was such a simple oversight. 这是一个简单的监督。

It turns out I just needed to call the missing gems via my Gemfile : 事实证明,我只需要通过我的Gemfile来调用丢失的宝石:

gem 'compass'
gem 'sass'
gem 'sass-globbing'
gem 'breakpoint'

There were also a few version conflicts, but these were resolved by reinstalling gems by specific version, for example: 还存在一些版本冲突,但是可以通过按特定版本重新安装gem来解决,例如:

gem install breakpoint -v 2.5.0

Hopefully this points anyone else having similar issues in the right direction. 希望这可以指出在正确方向上有类似问题的其他任何人。

Cheers. 干杯。

应该自动安装依赖项,但是您可以尝试手动安装找不到的断点gem:

gem install breakpoint

暂无
暂无

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

相关问题 Ruby罗盘-无法加载此类文件-罗盘/核心(LoadError) - Ruby compass - cannot load such file — compass/core (LoadError) 软件包安装错误后,kernel_require.rb:55:在'require'中:无法加载此类文件—捆绑程序(LoadError) - after bundle install error kernel_require.rb:55:in `require': cannot load such file — bundler (LoadError) 脚本/服务器custom_require.rb:36:在`require':无法加载这样的文件 - test / unit / error(LoadError) - script/server custom_require.rb:36:in `require': cannot load such file — test/unit/error (LoadError) LoadError:无法加载此类文件-…/ advertisement_controller_spec.rb - LoadError: cannot load such file — …/advertisement_controller_spec.rb LoadError(无法加载此类文件-static_helper.rb): - LoadError (cannot load such file — static_helper.rb): Ruby错误:无法加载此类文件--wdm(LoadError) - Ruby error: cannot load such file — wdm (LoadError) 机架错误 - LoadError:无法加载此类文件 - Rack Error — LoadError: cannot load such file rails 6应用程序测试绿色,但在生产中产生了怪异的效果:LoadError(无法加载此类文件-rb-readline) - rails 6 app tests green but in production wierd effect: LoadError (cannot load such file — rb-readline) Active_support / dependencies.rb:247`require':无法加载此类文件 - 2.1 / pg_ext(LoadError) - Active_support/dependencies.rb:247 `require': cannot load such file — 2.1/pg_ext (LoadError) /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:在'require'中:无法加载此类文件-cassandra(LoadError) - /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file — cassandra (LoadError)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM