Closed artagnon closed 11 years ago
Have you tried this with Mirah 0.0.12 and the latest Pindah from Git?
This currently works for me under the following configurations:
I want to resolve #28 & ship this latest version of Pindah, but I want to make sure folks can work with it too. Let me know.
Brendan Ribera wrote:
Have you tried this with Mirah 0.0.12 and the latest Pindah from Git?
Sorry about the delay. I just got myself a brand new Arch Linux install.
This currently works for me under the following configurations:
Java 6/7, JRuby 1.6.8, Mirah 0.0.12, Pindah from master
Nope. I've left a comment on #39.
Java 6/7, JRuby 1.7.2, Mirah built from local master, Pindah from master (Mirah build is finicky right now)
Nope, doesn't work. What am I missing?
$ rake -T --trace
rake aborted!
cannot load Java class org.mirah.macros.Macro
org/jruby/javasupport/JavaClass.java:1227:in `for_name'
org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class'
file:/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/jruby.jar!/jruby/java/core_ext/object.rb:26:in
java_import' org/jruby/RubyArray.java:2361:in
map'
file:/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/jruby.jar!/jruby/java/core_ext/object.rb:22:in
java_import' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:5:in
AST'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:2:in
Mirah' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:1:in
(root)'
org/jruby/RubyKernel.java:1027:in require' /home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform.rb:1:in
(root)' org/jruby/RubyKernel.java:1027:in
require'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform.rb:21:in
(root)'
org/jruby/RubyKernel.java:1027:in require' /home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah.rb:1:in (root)' org/jruby/RubyKernel.java:1027:in
require'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:60:in
require' /home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:55:in
require'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah.rb:26:in (root)' org/jruby/RubyKernel.java:1046:in
load'
/home/artagnon/.ruby/gems/pindah-0.1.3.dev/lib/pindah.rb:1:in (root)' /home/artagnon/.ruby/gems/pindah-0.1.3.dev/lib/pindah.rb:14:in
(root)'
/home/artagnon/src/chwall/Rakefile:1:in (root)' /home/artagnon/src/chwall/Rakefile:2:in
(root)'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/rake_module.rb:1:in
(root)' /home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/rake_module.rb:25:in
load_rakefile'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:581:in
raw_load_rakefile' /home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:87:in
load_rakefile'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:158:in
standard_exception_handling' org/jruby/RubyKernel.java:1046:in
load'
/home/artagnon/.rbenv/versions/jruby-1.7.2/bin/rake:23:in `(root)'
How did you build/install Mirah from master? On Feb 14, 2013 4:06 AM, "Ramkumar Ramachandra" notifications@github.com wrote:
Brendan Ribera wrote:
Have you tried this with Mirah 0.0.12 and the latest Pindah from Git?
Sorry about the delay. I just got myself a brand new Arch Linux install.
This currently works for me under the following configurations:
Java 6/7, JRuby 1.6.8, Mirah 0.0.12, Pindah from master
Nope. I've left a comment on #39.
Java 6/7, JRuby 1.7.2, Mirah built from local master, Pindah from master (Mirah build is finicky right now)
Nope, doesn't work. What am I missing?
$ rake -T --trace rake aborted! cannot load Java class org.mirah.macros.Macro org/jruby/javasupport/JavaClass.java:1227:in
for_name' org/jruby/javasupport/JavaUtilities.java:34:in
get_proxy_class'file:/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/jruby.jar!/jruby/java/core_ext/object.rb:26:in
java_import' org/jruby/RubyArray.java:2361:in
map'file:/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/jruby.jar!/jruby/java/core_ext/object.rb:22:in `java_import'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:5:in `AST'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:2:in `Mirah'
/home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform/ast_ext.rb:1:in
(root)' org/jruby/RubyKernel.java:1027:in
require'/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform.rb:1:in
(root)' org/jruby/RubyKernel.java:1027:in `require'/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah/transform.rb:21:in
(root)' org/jruby/RubyKernel.java:1027:in `require'/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36:in
require' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah.rb:1:in
(root)' org/jruby/RubyKernel.java:1027:in `require'/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:60:in `require'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:55:in
require' /home/artagnon/.ruby/gems/mirah-0.1.0.pre-java/lib/mirah.rb:26:in
(root)' org/jruby/RubyKernel.java:1046:inload' /home/artagnon/.ruby/gems/pindah-0.1.3.dev/lib/pindah.rb:1:in
(root)' /home/artagnon/.ruby/gems/pindah-0.1.3.dev/lib/pindah.rb:14:in(root)' /home/artagnon/src/chwall/Rakefile:1:in
(root)' /home/artagnon/src/chwall/Rakefile:2:in `(root)'/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/rake_module.rb:1:in `(root)'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:581:in `raw_load_rakefile'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:87:in `load_rakefile'
/home/artagnon/dotfiles/.rbenv/versions/jruby-1.7.2/lib/ruby/gems/shared/gems/rake-10.0.2/lib/rake/application.rb:158:in
standard_exception_handling' org/jruby/RubyKernel.java:1046:in
load' /home/artagnon/.rbenv/versions/jruby-1.7.2/bin/rake:23:in `(root)'— Reply to this email directly or view it on GitHubhttps://github.com/mirah/pindah/issues/37#issuecomment-13544692.
Like this:
~/src/mirah$ gem build mirah.gemspec
~/src/mirah$ gem install mirah-0.1.0.pre-java.gem
I have good news and bad news.
Bad news: mirah master is currently pretty broken. See mirah/mirah#190 mirah/mirah#201 mirah/mirah#202 for some particularly bad bugs that have developed since 0.0.12. And master is the only thing I can get to work with JRuby 1.7+.
Good news: here's how you can make it to work and work around the bugs.
Please reopen if you follow the steps in the gist and it still doesn't work for you.
(And, yes, doing this is a big pain. Right now I use JRuby 1.6.8 and Mirah 0.0.12 for real projects. But when the bugs are fixed and Mirah 0.1.0 is released, it'll be a good option.)
When I try to compile the template application: