Rails console starts without a hint

When I start the rails console, I got something like this:

Loading development environment (Rails 3.2.3) /Users/sebastiannowak/.rvm/gems/jruby-1.6.7@global/gems/bundler-1.1.0/lib/bundler.rb:254 warning: shadowing outer local variable - path Switch to inspect mode. Time.now Time.now 2012-06-27 09:27:21 +0200 

As you can see, I can interact with the console, but this is rather inconvenient. I am running JRuby 1.6.7. Does anyone have such a problem?

+6
ruby-on-rails jruby console
source share
2 answers

Most likely, somewhere you have ~/.irbrc , you do:

 IRB.conf[:PROMPT_MODE] = :XMP 

Try deleting this line. Or change it to:

 IRB.conf[:PROMPT_MODE] = :SIMPLE 
+13
source share

In the new JRuby version, the Rails console has many other problems for me:

  • The command is duplicated on the next line
  • A few keystrokes required to exit
  • The first command is not displayed during input

Running the console with the following fixes for me:

 jruby -Xlaunch.inproc=true -S rails c 
+3
source share

All Articles