rails console fails with `Switch to inspect mode` in windows

ironsand picture ironsand · May 10, 2014 · Viewed 19.9k times · Source

I create a rails project by rails new foo, then cd foo, and run rails c.

Then I got message like this.

DL is deprecated, please use Fiddle
Loading development environment (Rails 4.0.2)
Switch to inspect mode.

That's all. I can't use rails console.

Have you any idea what am I doing wrong?

I'm using railsinstaller with ruby 1.9.3 and 2.0.0 both, and ruby 2.0.0p451 (2014-02-24) [i386-mingw32] from Rubyinstaller. All versions fails with same error.

There is no problem with simple irb command.

Edit

By following Graeme's advice, I updated rb-readline from 0.5.0 to 0.5.1. and uninstalled old one.

$ gem list | grep rb-readline
rb-readline (0.5.1)

But the message remains same.

Answer

mahemoff picture mahemoff · Sep 27, 2015

In case anyone gets this error with Docker, I got it because I ran docker run rails but needed -it.

> docker run rails
Switch to inspect mode. # fail
> docker run -it rails
irb(main):001:0> # yay