jruby-maven-plugins icon indicating copy to clipboard operation
jruby-maven-plugins copied to clipboard

ruby:irb did not work on jruby-1.7.0-*

Open k-k1 opened this issue 13 years ago • 3 comments
trafficstars

Using 0.29..1

This is a problem of jruby-1.7.0*? However, ruby:jruby is worked.

Anybody have any ideas?

$ mvn ruby:irb
[INFO] Scanning for projects...
... snip ...
[INFO] --- jruby-maven-plugin:0.29.1:irb (default-cli) @ jruby_test ---
SyntaxError: file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/lc/ja/encoding_aliases.rb:7: syntax error, unexpected kEND

end
  ^
         eval at org/jruby/RubyKernel.java:1065
    real_load at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/locale.rb:134
         load at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/locale.rb:110
   initialize at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/locale.rb:32
  init_config at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/init.rb:114
        setup at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb/init.rb:16
        start at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/1.9/irb.rb:53
       (root) at jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/bin/jirb:17
         load at org/jruby/RubyKernel.java:1045
       (root) at -e:1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.142s
[INFO] Finished at: Wed Oct 03 12:00:45 JST 2012
[INFO] Final Memory: 13M/31M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:jruby-maven-plugin:0.29.1:irb (default-cli) on project jruby_test: error in executing jruby: some error in script [-e, ENV['JBUNDLE_SKIP']='true';load('jar:file:/home/k1/.m2/repository/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/bin/jirb'), --]: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

k-k1 avatar Oct 03 '12 03:10 k-k1

sorry for the late response.

I can not reproduce the error. it looks like you have some 'ja' LC settings. could you please provide me with

$ env | grep LC

and

$ env | grep LANG

with loale en_IN thngs works OK.

  • Kristian

mkristian avatar Oct 07 '12 12:10 mkristian

Thank you for the advice. to be sure, my environment is 'ja' locale on ubuntu-12.04.

$ env |grep LC
(... No LC are set up. ...)
$ env |grep LANG
LANG=ja_JP.UTF-8

It worked by LANG=C. It avoids now.

$ LANG=C mvn ruby:irb

thx!

k-k1 avatar Oct 10 '12 02:10 k-k1

thanx, now I can reproduce the issue - looks tricky . . . ;)

mkristian avatar Oct 11 '12 09:10 mkristian