juicer icon indicating copy to clipboard operation
juicer copied to clipboard

With fresh install, `juicer` command causes an error

Open zachschultz opened this issue 9 years ago • 8 comments

I have just installed juicer and when I try to run juicer install yui_compressor or just juicer I get this error:

/Users/<my account>/.rvm/gems/ruby-2.2.1/gems/cmdparse-3.0.1/lib/cmdparse.rb:796:in `initialize': wrong number of arguments (2 for 0) (ArgumentError)
from /Users/zach/.rvm/gems/ruby-2.2.1/gems/juicer-1.2.0/lib/juicer/cli.rb:16:in `new'
from /Users/zach/.rvm/gems/ruby-2.2.1/gems/juicer-1.2.0/lib/juicer/cli.rb:16:in `parse'
from /Users/zach/.rvm/gems/ruby-2.2.1/gems/juicer-1.2.0/lib/juicer/cli.rb:37:in `run'
from /Users/zach/.rvm/gems/ruby-2.2.1/gems/juicer-1.2.0/bin/juicer:6:in `<top (required)>'
from /Users/zach/.rvm/gems/ruby-2.2.1/bin/juicer:23:in `load'
from /Users/zach/.rvm/gems/ruby-2.2.1/bin/juicer:23:in `<main>'
from /Users/zach/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/zach/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

zachschultz avatar Apr 17 '15 16:04 zachschultz

I don't maintain Juicer anymore, I suggest you look for an alternative.

cjohansen avatar Apr 17 '15 20:04 cjohansen

I'm sorry to hear that. I'm very grateful for Juicer, as it served me well for many years. Would you mind recommending an alternative, or a good starting point to look for alternatives?

ghost avatar May 08 '15 22:05 ghost

BTW, answering the original question, the problem is that Juicer doesn't seem to play well with cmdparse 3.0.1. To fix it, this worked for me:

$ gem uninstall cmdparse $ gem install cmdparse --version 2.0.6

ghost avatar May 08 '15 22:05 ghost

@lucianop Thanks for the fix/workaround. :) Also, if anyone has found any alternatives to Juicer, please post here. I primarily use it to merge and minify css files only.

rareyman avatar May 14 '15 21:05 rareyman

Yeah! indeed it solved the issue! Thanks a lot for the input.

monecchi avatar May 16 '15 09:05 monecchi

@cjohansen maybe you write that in the readme? Would be nice. Thx.

lkwg82 avatar May 20 '15 09:05 lkwg82

Thank you @lucianop for the fix. Worked for me.

sys0dm1n avatar Mar 25 '16 14:03 sys0dm1n

@lucianop Thank you so much for posting your workaround.

quicken avatar Jun 18 '17 23:06 quicken