Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k-k1 opened this issue Oct 3, 2012 · 3 comments
Open

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

k-k1 opened this issue Oct 3, 2012 · 3 comments

Comments

@k-k1
Copy link

k-k1 commented Oct 3, 2012

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
@mkristian
Copy link
Member

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

@k-k1
Copy link
Author

k-k1 commented Oct 10, 2012

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!

@mkristian
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants