warbler icon indicating copy to clipboard operation
warbler copied to clipboard

warble compiled not working => 1.3.2 (on Windows)

Open joekarl opened this issue 12 years ago • 18 comments

"warble" seems to work just fine, when I run "warble compiled" I get the following error

Bundler::GemNotFound: Could not find rake-0.9.2 in any of the sources materialize at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/spec_set.rb:88 map! at org/jruby/RubyArray.java:2376 materialize at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/spec_set.rb:82 specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:90 specs_for at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:135 requested_specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:124 requested_specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/environment.rb:23 setup at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:11 setup at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:107 (root) at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/setup.rb:17

I'm using jruby-1.6.4 and windows xp 32bit.

Any ideas?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446674-warble-compiled-not-working-1-3-2-on-windows?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).

joekarl avatar Aug 25 '11 16:08 joekarl

Can you add --trace on the command line and also include the output of bundle install?

nicksieger avatar Aug 25 '11 21:08 nicksieger

GEMFILE

source 'http://rubygems.org'

gem 'rails', '3.0.10'

gem 'jruby-openssl'

gem 'composite_primary_keys' gem 'activerecord-jdbc-adapter'


C:\work\SurveyBuilder> warble compiled --trace ** Invoke compiled (first_time) ** Invoke war:compiled (first_time) ** Execute war:compiled Bundler::GemNotFound: Could not find rake-0.9.2 in any of the sources materialize at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/spec_set.rb:88 map! at org/jruby/RubyArray.java:2376 materialize at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/spec_set.rb:82 specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:90 specs_for at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:135 requested_specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:124 requested_specs at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/environment.rb:23 setup at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:11 setup at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:107 (root) at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/setup.rb:17 ** Execute compiled


C:\work\SurveyBuilder> bundle install Fetching source index for http://rubygems.org/ Using rake (0.9.2) Using abstract (1.0.0) Using activesupport (3.0.10) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.10) Using erubis (2.6.6) Using rack (1.2.3) Using rack-mount (0.6.14) Using rack-test (0.5.7) Using tzinfo (0.3.29) Using actionpack (3.0.10) Using mime-types (1.16) Using polyglot (0.3.2) Using treetop (1.4.10) Using mail (2.2.19) Using actionmailer (3.0.10) Using arel (2.0.10) Using activerecord (3.0.10) Using activerecord-jdbc-adapter (1.1.3) Using activeresource (3.0.10) Using bouncy-castle-java (1.5.0146.1) Using bundler (1.0.18) Using composite_primary_keys (3.1.10) Using jruby-openssl (0.7.4) Using rdoc (3.9.3) Using thor (0.14.6) Using railties (3.0.10) Using rails (3.0.10) Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

joekarl avatar Aug 25 '11 22:08 joekarl

I also tried this on linux with ruby (as opposed to jruby) and get the exact same stack trace and error.

Also note, this is with the 1.3.2 gem from rubygems.org.

joekarl avatar Aug 26 '11 02:08 joekarl

I am seeing the same issue (1.3.2 with jRuby 1.6.4).

The run_javac line seems to be the issue here - if I form the same line and execute it from the command line, it works. But from within the warbler environment, it fails with the same message listed above.

tamizhan avatar Sep 07 '11 03:09 tamizhan

I am unable to reproduce this on JRuby 1.6.2, Rails 3.0.9, Warbler 1.3.2

rvm use 1.6.2
rails new mytest
cd mytest
bundle install
warble compiled

Works fine, .class files are created. Can you try bundle exec warble compiled

rohitn avatar Sep 08 '11 00:09 rohitn

I see this as well using jRuby 1.6.4, Rails 3.0.10, Warbler 1.3.2, Windows 7 64bit.

atambo avatar Sep 08 '11 00:09 atambo

Running bundle exec warble compiled do you get same result?

guilleiguaran avatar Sep 08 '11 17:09 guilleiguaran

@guilleiguaran, yes I see the same stack trace as above when running bundle exec warble compiled

atambo avatar Sep 08 '11 18:09 atambo

Ok, so by putting the git version of warbler, I was able to get the compiled version to work.

In my Gemfile gem 'warbler', :git => 'git://github.com/jruby/warbler.git'

I tried bundle install and that succeeded, but it then couldn't find the warbler gem. So I did 'bundle install --path vendor/bundle' to install it locally in my app. Then running 'bundle exec warbler compiled' works like a charm

This bumped the warbler gem version to 1.3.3

I guess my next question is now that it spits out the class files, how do I assemble just the class files into a war?

joekarl avatar Sep 23 '11 14:09 joekarl

joekarl: The "compiled" feature does that for you. If you look at the .rb files in the war, all they do is this:

require __FILE__.sub(/\.rb$/, '.class')

nicksieger avatar Sep 23 '11 16:09 nicksieger

Ok, thanks.

It looks like v1.3.3 fixes the issue.

Any word on a rubygems release date for 1.3.3?

joekarl avatar Sep 23 '11 18:09 joekarl

Thanks for your feedback

guilleiguaran avatar Sep 23 '11 18:09 guilleiguaran

I think this issue needs to be reopened. After some digging I'm still getting the 'could not find rake-0.9.2' error with a locally built 1.3.3 gem.

I had thought it was working cause it wasn't erroring out by using 'bundle install --path' to bundle the app. However that seems to trip up warbler and not do the compile correctly (doesn't spit out .class files). When I switched back to using 'bundle install --system' I start getting the 'could not find rake-0.9.2' errors again.

Doing some testing on Debian shows it to be working there.

Long story short, warbler compiled is still not working for me on windows.

joekarl avatar Oct 06 '11 15:10 joekarl

Same problem her.

rails (3.0.10) warbler (1.3.2)

Jruby: jruby 1.6.4

OS: macosx (10.6.8)

RobWu avatar Oct 29 '11 19:10 RobWu

Reopened

guilleiguaran avatar Oct 29 '11 22:10 guilleiguaran

Error message:

Bundler::GemNotFound: Could not find rake-0.9.2.2 in any of the sources
      materialize at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/spec_set.rb:88
             map! at org/jruby/RubyArray.java:2358
      materialize at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/spec_set.rb:82
            specs at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90
        specs_for at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:135
  requested_specs at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:124
  requested_specs at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/environment.rb:23
            setup at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:11
            setup at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:110
           (root) at /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/setup.rb:17

RobWu avatar Oct 31 '11 06:10 RobWu

warble war:debug

shows this: WEB-INF/vendor/cache/rake-0.9.2.2.gem -> vendor/cache/rake-0.9.2.2.gem

RobWu avatar Oct 31 '11 06:10 RobWu

Is this related to #37?

colindean avatar Nov 14 '11 20:11 colindean