Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

>>> 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.

like image 766
Drupal Noob Avatar asked Jul 31 '15 08:07

Drupal Noob


2 Answers

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.

like image 85
Damien McKenna Avatar answered Sep 22 '22 23:09

Damien McKenna


This looks like it's an issue with the celluloid gem. Take a look at the Github Issue.

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.

like image 41
Sculper Avatar answered Sep 24 '22 23:09

Sculper