Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Miscellaneous
-
Labels:None
-
Environment:Mac OSX 10.6.8, Ruby 1.9.3 preview 1, gem 1.8.10, rake 0.9.2.1,
-
Number of attachments :
Description
When drying to run the ant dist build task, there is a failure for the spec task. This is how I'm running the build task:
ant -Djruby.default.ruby.version=1.9 dist
The following error is displayed:
[echo] Running rake install_dist_gems
[echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
[java] (in /Users/chriswhite/github/jruby)
[java] rake aborted!
------------------------------------------------------------------------
[java] undefined method `full_gem_path' for nil:NilClass
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:157:in `(root)'
------------------------------------------------------------------------
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:1874:in `in_namespace'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:908:in `namespace'
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:16:in `(root)'
[java] org/jruby/RubyKernel.java:996:in `load'
[java] /Users/chriswhite/github/jruby/rakelib/spec.rake:1612:in `load'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2430:in `load_imports'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2380:in `raw_load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2007:in `load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2058:in `standard_exception_handling'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:2006:in `load_rakefile'
[java] /Users/chriswhite/github/jruby/lib/ruby/1.9/rake.rb:1991:in `run'
[java] /Users/chriswhite/Ruby/ruby-1.9.3/bin/rake:32:in `(root)'
The particular line indicated by spec.rake:157 is:
rake_location = File.join(Gem.loaded_specs['rake'].full_gem_path, "lib")
A quick look at an irb session shows that Gem.loaded_specs is an empty hash, which would explain the issue. Unfortunately I'm not yet able to pinpoint why it's empty.
Why are you using the 1.9 mode in the dist target? I'm not sure if it gives you anything special.
Also, we've had problems with the dist target recently, so this could very well be a variation of that problem.
As of this writing (b9d59b0), the above command succeeds on my machine: https://gist.github.com/1226000
Please try again. If confirmed, I'll resolve this as "Fixed".