xorcery / coyote

A speedy tool for combining and compressing your JavaScript and CoffeeScript source files.
http://imulus.github.com/coyote
20 stars 2 forks source link

Fails with errors #7

Closed littke closed 12 years ago

littke commented 12 years ago

$ coyote styles.less:styles.css

BruceClark commented 12 years ago

$ coyote -w styles.less:styles.css

You didn't give Coyote a command for what to do. I always recommend checking the page help or examples.

We should improve error handling though. Hope this helps.

littke commented 12 years ago

I tried that too!

$ coyote -w styles.less:styles.css

/var/lib/gems/1.8/gems/coyote-1.1.0/lib/coyote/cli.rb:16: private method `split' called for nil:NilClass (NoMethodError)
  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
  from /var/lib/gems/1.8/gems/coyote-1.1.0/bin/coyote:5
  from /var/lib/gems/1.8/bin/coyote:19:in `load'
  from /var/lib/gems/1.8/bin/coyote:19
BruceClark commented 12 years ago

Less compiling is dependent on installation of lessc, do you have that installed?

caseyohara commented 12 years ago

@littke what version of Ruby are you running?

littke commented 12 years ago
$ gem list | grep less
less (2.2.1)

$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
caseyohara commented 12 years ago

@littke It looks like an issue with Ruby 1.8.7. We're working on supporting older versions of Ruby. Thanks for the issue.

littke commented 12 years ago

Thanks.

I took for granted my version of Ruby was the latest one. Not a Ruby hacker, here. Might want to add a 'Dependencies' section in the README that includes version numbers. Thanks guys.

littke commented 12 years ago

It seems 1.8 is the latest version I'm able to run in Debian stable. Ruby 1.9.1 is available, but rubygems1.9 isn't.

I tried this:

$ /usr/bin/ruby1.9.1 /var/lib/gems/1.8/gems/coyote-1.1.0/bin/coyote

but that failed:

<internal:lib/rubygems/custom_require>:29:inrequire': no such file to load -- term/ansicolor (LoadError)`

Is there anything I can do? I don't know my way around here. Thanks. Really appreciate it.

littke commented 12 years ago

(same thing happened with -w file.less:file.css.)

littke commented 12 years ago

hello?

brycehammond commented 12 years ago

@littke I'd recommend trying rbenv (https://github.com/sstephenson/rbenv) to get local copies of Ruby 1.9.2 and the corresponding gemset. Either way, you'll need to do a 'gem install coyote' in whatever ruby you are using. Trying to execute ruby gems in gemsets from other rubys isn't going to work nicely.

littke commented 12 years ago

Thanks.

On 29 maj 2012, at 16:45, Bryce Hammond reply@reply.github.com wrote:

@littke I'd recommend trying rbenv (https://github.com/sstephenson/rbenv) to get local copies of Ruby 1.9.2 and the corresponding gemset. Either way, you'll need to do a 'gem install coyote' in whatever ruby you are using. Trying to execute ruby gems in gemsets from other rubys isn't going to work nicely.


Reply to this email directly or view it on GitHub: https://github.com/imulus/coyote/issues/7#issuecomment-5985507