Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 396
ironsand Avatar asked May 10 '14 07:05

ironsand


1 Answers

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
like image 118
mahemoff Avatar answered Sep 18 '22 00:09

mahemoff