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

前端 未结 2 806
北海茫月
北海茫月 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
    
    0 讨论(0)
  • 2021-02-20 13:04

    I had this issue with Windows and the fix was to increase the "Number of Buffers" in the Command prompt settings. Command Prompt -> Properties -> Options -> Number of Buffers Default is 4, I changed to 8 and all worked well (I think 5 would work though)

    0 讨论(0)
提交回复
热议问题