warbler
warbler copied to clipboard
warble compiled not working => 1.3.2 (on Windows)
"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?
Can you add --trace
on the command line and also include the output of bundle install
?
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.
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.
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.
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
I see this as well using jRuby 1.6.4, Rails 3.0.10, Warbler 1.3.2, Windows 7 64bit.
Running bundle exec warble compiled
do you get same result?
@guilleiguaran, yes I see the same stack trace as above when running bundle exec warble compiled
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: 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')
Ok, thanks.
It looks like v1.3.3 fixes the issue.
Any word on a rubygems release date for 1.3.3?
Thanks for your feedback
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.
Same problem her.
rails (3.0.10) warbler (1.3.2)
Jruby: jruby 1.6.4
OS: macosx (10.6.8)
Reopened
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
warble war:debug
shows this: WEB-INF/vendor/cache/rake-0.9.2.2.gem -> vendor/cache/rake-0.9.2.2.gem
Is this related to #37?