Rails console double prompt

Answered

Since the last update 2018.2 the rails console is showing the standard prompt and the RM simple prompt:

Loading development environment (Rails 5.0.2)

irb(main):001:0> >>
irb(main):002:0> >>

I got the same in the past with some weird setup of non-standard IRBs, but I don't remember howto suppress the extra prompt.

Thanks

6 comments

Hello Domizio,

could you please check how it goes in the Rails console launched in Terminal? 

0

In the terminal there is only the regular prompt irb(main):001:0>, but that is exactly the point. RM was suppressing the original rails console prompt and using only the simple prompt >>. Now the original prompt irb(main):001:0> is there along with the simple prompt resulting in irb(main):001:0> >>.

The original prompt is appearing before the command, then when you enter a command RM adds the simple prompt, the command and the result. The only wrong thing is that the original prompt is emitted as usual (actually as in the terminal).

Thanks

0

Another detail that may be clue: IRB works perfectly. That problem happens only with the rails console.

0

I temporarily solved it by appending "-- --noprompt" to the IRB arguments. Wondering why it stopped working without though.

0

Added the workaround there. Thanks.

0

Please sign in to leave a comment.