Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Cant Convert Class to String - Jruby Rake #23

Open
charliedavi opened this issue Feb 2, 2012 · 2 comments
Open

Cant Convert Class to String - Jruby Rake #23

charliedavi opened this issue Feb 2, 2012 · 2 comments

Comments

@charliedavi
Copy link

Hey,

I am trying to run the gem in JRUBY and get the following error while its trying to load under Rake..

'''rake aborted!
can't convert Class into String
''''

I can isolate the issue right down to gem by removing it and Rake runs fine. This is under all versions of JRUBY - even upto the recent 1.6.6

Thanks.

@langhorst
Copy link
Contributor

I tried to replicate this, but no luck. I installed JRuby 1.6.6 with RVM.

full_version: "jruby 1.6.6 (ruby-1.8.7-p357) (2013-02-07 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_37) [darwin-x86_64-java]

This comes with rake 0.8.7. Then I issued the following commands:

> rvm use jruby-1.6.6
> rvm gemset create uuid
> rvm gemset use uuid
> bundle install
> rake test

No issue. Then I did the following:

> rake install

Within "Rakefile":
require 'rubygems'
require 'uuid'

> rake test

Again, no issue. I then removed the "require 'rubygems'" for good measure / still no issue. I followed the same procedure in the current version of JRuby 1.7.2 (rake 0.8.7):

full_version: "jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]

Again, no issue. Maybe it had to do with a combination of something going on in the gem and jruby/rake?

@langhorst
Copy link
Contributor

btw, this was all using uuid-2.3.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants