-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Windows REPL autocomplete gets mixed up #4519
Comments
I don't claim to understand the repl code, but the following "wrong" change seems to make things work again.
|
I digged some more and libuv seems to do everything right as far as I can tell, I don't see why it's not working. I'm running on Windows 8 (64 bit Windows, 32 bit Julia). I was going to try it out on a WinXP machine, but I gave up after seeing some dbghelp.dll version issues (I'm opening a separate issue). It would be interesting to know if anybody else sees this problem? |
Please don't until you've read #4419, which is almost certainly the same thing. |
@StefanKarpinski reported similar problems in #4357, although since I could reproduce this issue on OS X without that PR I think the cause might be #2056. I'm not sure if it's worth trying to fix this before REPL.jl. |
Setting uv_tty_set_mode does a lot more than just configure the terminal: it also installs read/write hooks so that terminal formatting and utf8 characters come through correctly. Something in all that logic could be getting confused. |
I finally got around to trying out Julia on a WinXP machine. To my surprise the REPL autocomplete worked perfectly fine. There seems to be a difference in console behavior between WinXP and later versions, likely related to the The discussion here suggests a possible solution. As the current REPL is soon-to-be obsolete I suppose this isn't much of a priority, but I'll leave the issue open until the new REPL is enabled. |
This issue seems to have been fixed for me by #5973, so I'm closing it. Thanks. |
Sounds good. Yes that commit made the repl parsing much happier |
Within the ordinary Windows REPL (i.e. running julia.bat), autocomplete initially works:
However, if I run any other command first the REPL no longer responds to the tab key, I also need to press enter for the autocomplete info to appear:
Edit: Just came to think of it, some other commands also seem to leave hanging around waiting for an extra
enter
key.The text was updated successfully, but these errors were encountered: