mirah / pindah

Tools for building Android applications with Mirah
Apache License 2.0
228 stars 27 forks source link

Project with only basic Activity doesn't compile (0.13) #33

Closed donokuda closed 11 years ago

donokuda commented 11 years ago

Steps to reproduce

  1. pindah create com.example.hello helloworld HelloActivity 2 . cd helloworld
  2. Running $ rake debug errors on the compile step and the compiled apk doesn't load as expected.
-compile:
compiling Mirah source in /Users/donokuda/helloworld/src/. to /Users/donokuda/helloworld/bin/classes
Exception in thread "Thread-8" java.lang.ExceptionInInitializerError
    at org.mirah.ant.Compile$__xform_tmp_13.run(compile.mirah:66)
    at java.lang.Thread.run(Thread.java:680)
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `start_with?' for #<Java::OrgJrubyAstJava_signature::ArrayTypeNode:0x5d5e3b92>
    at RUBY.as_java_type(/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/compiler/java_signature.rb:20)
    at RUBY.parameters(/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/compiler/java_signature.rb:48)
    at RUBY.each(file:/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/jruby.jar!/jruby/java/java_ext/java.util.rb:7)
    at org.jruby.RubyEnumerable.map(org/jruby/RubyEnumerable.java:718)
    at RUBY.parameters(/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/compiler/java_signature.rb:48)
    at RUBY.types(/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/compiler/java_signature.rb:54)
    at RUBY.java_signature(/Users/donokuda/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/core_ext/class.rb:44)
    at RUBY.MirahCommand(src/org/mirah/mirah_command.rb:25)
    at RUBY.(root)(src/org/mirah/mirah_command.rb:22)
    at org.mirah.ant.Compile$__xform_tmp_13.run(compile.mirah:66)

Full log dump here

abscondment commented 11 years ago

Can you give me four bits of info?

I can currently get things working with two configurations:

There are a couple of different problems that can interplay here, but I'm pretty sure we can get you running.

abscondment commented 11 years ago

Ok, followup: after all the compatibility debugging I've done this week, I recognize this error as using Mirah 0.0.12 with JRuby 1.7+.

I'm going to close this, since that's a known bad combination, and we now note that (see #42) in the README. If my reading of the tea leaves is incorrect, please reopen.

donokuda commented 11 years ago

@abscondment :+1: Thank you (and everyone) for all the debugging. Sorry I wasn't able to give you the info in a timely fashion but I'll be sure to try out the recommended requirements and report back if there are any issues!

abscondment commented 11 years ago

Awesome, thanks!