简体   繁体   English

运行罗盘钟表时参数数量错误

[英]Wrong number of arguments when run compass watch

When I run "compass watch" I got this error: 当我运行“罗盘手表”时,我收到此错误:

LoadError on line ["54"] of /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- susy
Run with --trace to see the full backtrace

I managed to fix it with: 我设法修复它:

sudo gem update
sudo gem install susy

When I run compass again, css files were generated and I got a new error: 当我再次运行罗盘时,生成了css文件,我收到了一个新错误:

>>> Compass is watching for changes. Press Ctrl-C to Stop.
    write css/ie10_and_higher.css
    write css/ie9.css
    write css/style.css
D, [2015-07-31T10:36:12.805795 #5675] DEBUG -- : Celluloid 0.17.0 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
ArgumentError on line ["48"] of /var/lib/gems/2.1.0/gems/celluloid-0.17.0/lib/celluloid/calls.rb: wrong number of arguments (2 for 1)
Run with --trace to see the full backtrace

And now I can't find any solution in google. 而现在我在谷歌找不到任何解决方案。

This looks like it's an issue with the celluloid gem. 这看起来像是赛璐珞宝石的问题。 Take a look at the Github Issue . 看看Github问题

I sifted through the compass source, and it does not appear that celluloid is referenced anywhere - I am doubtful that compass is related. 我通过指南针源进行筛选,并且看起来似乎并未在任何地方引用赛璐珞 - 我怀疑指南针是否相关。 If you're not using it anywhere in your project, one of your other gems must be doing so. 如果您没有在项目的任何地方使用它,那么您的其他宝石之一必须这样做。 You'll need to run a full trace to figure out which one it is. 您需要运行完整的跟踪来确定它是哪一个。

I ran into this problem too. 我也遇到了这个问题。 I had updated everything - ruby, gem --system, all the gems, compass, etc, but it still kept throwing the error. 我已经更新了所有东西 - 红宝石,宝石 - 系统,所有的宝石,指南针等,但它仍然不断抛出错误。 What I had to do was use "gem uninstall listen" repeatedly to remove the multiple 2.7.x versions that were installed - once they were all removed and only listen 3.x existed would it work correctly again. 我必须做的是反复使用“gem uninstall listen”来删除已安装的多个2.7.x版本 - 一旦它们全部被删除,只听到3.x存在它会再次正常工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM