我正在尝试使用sass在具有禅主题的网站上进行一些css更新。我在ubuntu dev机器上安装了所有最新的gem。我使用compass watch
命令得到以下错误:
NameError on line ["7"] of /var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze/middleware_compiler.rb: uninitialized constant Innate::MiddlewareCompiler
Did you mean? Innate::MIDDLEWARE
我不确定如何解决这个问题,或者确实是什么导致问题,以及如何让它选择正确的选项。根据我的研究,我发现这似乎是RAMAZE宝石的常见问题。他们有一些升级说明,但它们都没有任何意义,因为我不知道在何处或如何指定固有版本,或如何使它选择正确的功能。 http://ramaze.net/documentation/file.upgrading.html。
以下是指南针监视命令的跟踪:
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze/middleware_compiler.rb:1:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze.rb:40:in `<module:Ramaze>'
/var/lib/gems/2.3.0/gems/ramaze-2012.04.14/lib/ramaze.rb:12:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.3.0/gems/zen-0.4.3/lib/zen.rb:2:in `<top (required)>'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
/var/lib/gems/2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/data.rb:179:in `require'
/var/www/html/phisigmarho.org/sites/all/themes/psrmodern/config.rb:30:in `get_binding'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `eval'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:24:in `parse_string'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:15:in `block in _parse'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `open'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/serialization.rb:14:in `_parse'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:7:in `block in new_from_file'
/var/lib/gems/2.3.0/gems/compass-core-1.0.3/lib/compass/configuration/inheritance.rb:207:in `with_defaults'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/file_data.rb:6:in `new_from_file'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:19:in `configuration_for'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb:69:in `add_project_configuration'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:37:in `add_project_configuration'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:25:in `configure!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/project_base.rb:15:in `initialize'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/commands/update_project.rb:41:in `initialize'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `new'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:42:in `perform!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/var/lib/gems/2.3.0/gems/compass-1.0.3/bin/compass:30:in `block in <top (required)>'
/var/lib/gems/2.3.0/gems/compass-1.0.3/bin/compass:44:in `<top (required)>'
这是我的gemlist,基本上是从gem install compass
bcrypt (3.1.11)
bcrypt-ruby (3.1.5, 3.0.1)
bigdecimal (1.2.8)
bundler (1.13.2)
chunky_png (1.3.7)
compass (1.0.3)
compass-core (1.0.3)
compass-import-once (1.0.5)
did_you_mean (1.0.2, 1.0.0)
diff-lcs (1.2.5, 1.1.3)
ffi (1.9.14)
innate (2015.10.28)
io-console (0.4.6, 0.4.5)
json (2.0.2, 1.8.3)
loofah (2.0.3, 1.2.1)
mini_portile2 (2.1.0)
minitest (5.9.1, 5.8.4)
multi_json (1.12.1)
net-telnet (0.1.1)
nokogiri (1.6.8.1)
power_assert (0.3.1, 0.2.7)
psych (2.1.1, 2.0.17)
rack (2.0.1, 1.6.4)
rake (11.3.0, 10.5.0, 0.9.2.2)
ramaze (2012.12.08, 2012.04.14)
ramaze-asset (0.2.3)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rdoc (4.2.2, 4.2.1)
sass (3.4.22)
sass-globbing (1.1.5)
sequel (4.39.0, 3.35.0)
shebang (0.1)
test-unit (3.2.1, 3.1.7)
zen (0.4.3)
zen-grids (2.0.3)
我开始怀疑可能会回滚到早期版本的指南针,但我不会那样能解决它触发的任何依赖冲突。