-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Getting "io/console not supported; tty will not be manipulated" on Windows #1614
Comments
This issue prevents a command line app from hiding a user's password when entered via STDIN.
Text is still echoed back to the console in Windows. |
Please fix. |
Same error here using rake on windows, e.g. rake -T C:\> jruby -v
jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13 +jit [Windows 8.1-amd64] C:\>java -version
java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) |
I'm getting the same thing on the appveyor (CI for Windows). Quite curiosly I have a build where the error pops up after gem install bundler and it continues to run and one where the error pops up and console output halts. Unfortunately there are more of the latter ones... :-/ That the output stops could also be on appveyors side... edit: for me that's using jruby-1.7.19 |
Getting as well on: |
I am getting the same message on Windows and Solaris with JRuby 1.7.19. It does not occur on JRuby 1.7.18. Windows
Solaris
|
This is usually caused when some native support can't load. Windows should be falling back on a dummy implementation. Of course I just got back up and running in my OS X env, so I'm not going to be looking at this in the short term, but if someone wants to poke around the code is in lib/ruby/1.9/io/console.rb. At the very least it should be possible to sort out what supressed errors are causing it to fall into the noisy path. |
For solaris, it looks to me like you're just missing a sunos/solaris string in the regex check. |
For Solaris I would not expect to see the error since it will try and stty and I would have thought that would work on Solaris but @djberg96 is right in that we should probably be following the first if in io/console.rb: if RbConfig::CONFIG['host_os'].downcase =~ /darwin|openbsd|freebsd|netbsd|linux/ @mjstrasser can you print out RbConfig::CONFIG['host_os'] on Solaris. I believe it will be 'sunos' but I For Windows, we clearly never do anything but try to stty which we know will fail in the next if statement where we unconditionally warn and setup dummy IO. So I guess we can at least eliminate the bogus stty check (unless perhaps we try it in cygwin or mingw? ), but that does not solve the warning and warning is meaningful. Short of trying to port windows side of ext/io/console.c I am not sure the best way to solve this. |
It returns
On JDK 7:
|
@mjstrasser If you could modify the regexp in io/console.rb and try it out it would help in resolving this since I have no immediate access to Solaris instance. Your observation re Java 6/7 is interesting...perhaps we are not properly invoking processes correctly? on Java 6 it appears the stty path must have worked but not on Java 7 :| |
I tried the following edit:
Then, with
On JDK 6:
Does this shed any light? |
@mjstrasser Ok that was somewhat unexpected. The error indicates that our native support (which allows us to bind to native shared libraries is not loading on your machine. I wonder it host_os changed somewhat recently from sunos to solaris? Can you now type in:
It should say:
If not then we should figure out this second issue... |
No luck. With the changes I made yesterday to the regexps in
On JDK 6 I get this:
|
The original issue was about io/console not loading properly on Windows, and since then I'm sure we've had several JRuby releases tested and working on Windows. For all of you seeing this problem on other platforms, please file new issues with your platform information so we can sort out who is having what problems. This bug has grown to cover too much. |
This is confirmed fixed on Windows (just double-checked). |
This is still a problem in 1.7.20 on Windows. C:\>jruby -v -e ""
jruby 1.7.20 (1.9.3p551) 2015-05-04 3086e6a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 +jit [Windows 8.1-amd64]
io/console not supported; tty will not be manipulated |
The issue is also reproducible on Windows 7 64bit
and on Windows 2012 R2 64bit
On the mentioned operating systems for me this was no issue using JRuby-1.7.17. I guess it's worth reopening the ticket. |
This is still in 9.0.1.0, Windows Server 2008 R2 D:\> jruby -version
jruby 9.0.1.0 (2.2.2) 2015-09-02 583f336 Java HotSpot(TM) 64-Bit Server VM 24.51-b03 on 1.7.0_51-b13 +jit [Windows Server 2008 R2-amd64] |
I still see this issue with Windows platform for JRuby 9.0.4, 1.7.16, 1.7.23. I have tried giving
It said: Still the error Is there any workaround for this. |
@aparajitahait - I'm also seeing it. Windows 10, Java 8, JRuby 1.7. |
@aparajitahait - I'm also seeing it. Windows 10, Java 1.8.0_77, JRuby 1.7. |
What specific JRuby 1.7 version is this? It is apparently fixed in 1.7.24 (see #3550 that was referred to above). |
Same here. When will this be addressed? |
@adriannotimportant can you also specify which version of JRuby you are using? I do not see this occurring in either 1.7.27 nor 9.1.8.0 (although I am on win7). If you are seeing it with the latest versions of JRuby then perhaps explain a little more about run you run and something about the env. |
@thomas_enebo,
I guess you're talking about 1.7.26, unless you're planning a maintenance
release on the 1.7 branch.
I could not see this tag/release anyway.
I confirm that this bug is gone both in my personal setup (win10home) and
professional setup (win7pro).
…On Tue, Mar 14, 2017 at 3:01 PM, Thomas E Enebo ***@***.***> wrote:
@adriannotimportant <https://github.com/adriannotimportant> can you also
specify which version of JRuby you are using? I do not see this occurring
in either 1.7.27 nor 9.1.8.0 (although I am on win7). If you are seeing it
with the latest versions of JRuby then perhaps explain a little more about
run you run and something about the env.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1614 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAA9ahNZex0DdiaqKqOTgRk75GK-L5c_ks5rlp3TgaJpZM4Bww5A>
.
|
@cmichon yeah I did mean 1.7.26 and we do mean to release a 1.7.27; so if people are still seeing this we want to make sure we address it. I am hoping it was just an older release though. |
The text was updated successfully, but these errors were encountered: