Rails console issues using JRuby: no prompt character, no tab completion, broken arrow keys, etc

前端 未结 2 821
北海茫月
北海茫月 2021-02-20 12:02

I\'m having various issues with my Rails console under JRuby, including

  • No prompt character
  • Tab completion not working (literal tab gets insert
2条回答
  •  别那么骄傲
    2021-02-20 12:59

    Running the console with the following fixed these sorts of problems for me:

    jruby -Xlaunch.inproc=true -S rails c
    

    If you don't like running that command every time, you can set an environment variable:

    set JRUBY_OPTS=-Xlaunch.inproc=true
    

    or

    export JRUBY_OPTS=-Xlaunch.inproc=true
    

    then

    rails c
    

提交回复
热议问题