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

a 夏天 提交于 2019-12-04 02:31:00

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

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!