Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby 1.7.5 issues with Rails Console on Windows #1096

Closed
avinmathew opened this issue Oct 8, 2013 · 10 comments
Closed

JRuby 1.7.5 issues with Rails Console on Windows #1096

avinmathew opened this issue Oct 8, 2013 · 10 comments
Labels
Milestone

Comments

@avinmathew
Copy link

I just tried updating to JRuby 1.7.5 but found that Rails Console on Windows has the following issues:

  • There is no console prompt by default. I had to add IRB.conf[:PROMPT_MODE] = :SIMPLE to my .irbrc. This isn't required under 1.7.4.
  • The first command does not echo back to terminal. Subsequent commands are fine and echo properly.
  • Typing exit and pressing enter doesn't immediately return to the terminal prompt and I have to press enter again to do so.
  • Tab completion isn't working. However, it does work with standard IRB now.

I noticed that Switch to inspect mode is outputted during the load process. This isn't there under 1.7.4.

I'm using Java 1.7.0_25 and Rails 3.2.14. The problems occur in Command Prompt, PowerShell and Git Bash.

@hathawad
Copy link

This is still a problem in Jruby 1.7.6

@nikoma
Copy link

nikoma commented Feb 8, 2014

Still a problem on 1.7.10

@hathawad
Copy link

2nd answer in this thread fixes most of these problems:
http://stackoverflow.com/questions/13649437/rails-console-issues-using-jruby-no-prompt-character-no-tab-completion-broken

Using the -Xlaunch.inproc=true flag is the solution, not sure exactly what its doing though

@headius
Copy link
Member

headius commented Feb 21, 2014

The display and interactivity issues are likely a tty problem. We've long meant to do a better rework of all subprocess launching, partially to propagate tty correctly, but it is a large job that may wait until 9k.

The inproc flag makes the exec'ed subprocess run in the same JVM, and as a result it is able to reuse the same tty.

There are also issues with subprocess launches on Windows since we have to emulate exec logic in some places. We try to do what MRI does, but it's hard to do without having the C code in place.

I will move this to 1.7.12 and we'll try again to address it.

@headius headius modified the milestones: JRuby 1.7.12, JRuby 1.7.10 Feb 21, 2014
@RaVbaker
Copy link

+1 for fixing it!

@enebo enebo modified the milestones: JRuby 1.7.13, JRuby 1.7.12 Apr 15, 2014
@sidfarkus
Copy link

Another vote for this issue; I use JRuby to debug Java but it's hard if jirb has these limitations.

@enebo enebo modified the milestones: JRuby 1.7.14, JRuby 1.7.13 Jun 24, 2014
@enebo enebo modified the milestones: JRuby 1.7.14, JRuby 1.7.15 Aug 27, 2014
@eliaszica
Copy link

eliaszica commented Aug 22, 2016

UPDATE: don't mind, I switched to Ubuntu and everything is ok.

+1

Gitbash: git version 2.9.3.windows.1
JRuby: jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.74-b02 on 1.8.0_74-b02 +jit [mswin32-x86_64]

@headius
Copy link
Member

headius commented Aug 23, 2016

This can't still be an issue, right? @enebo Do you try Rails console when you verify 1.7 releases on Windows?

@hathawad
Copy link

I haven't seen this issue on 1.7.25 windows

@headius
Copy link
Member

headius commented Aug 23, 2016

@hathawad Thanks! 👍

@headius headius closed this as completed Aug 23, 2016
@headius headius modified the milestones: JRuby 1.7.25, JRuby 1.7.15 Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants