-
-
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
Blinking of text cursor not suspended when moved on nightly Windows #26422
Comments
On the same Windows 7 machine, the behavior depends on the shell
|
In my case this is problem of Julia-0.7. On Julia-0.6.3 work fine, on cmd.exe, powershell - fine too. My systems: Windows 8.1, 10 - 64 bit. |
I don't really understand the problem and can't test it, could you describe a sequence of actions which lead to the problem? |
On 64bit Windows 7 for me
|
Same problem on Julia v1.0.0 |
Same problem here on Windows 7 (Julia 1.0.0), and using bash does not help. This is a major, major annoyance... |
Problem confirmed on 1.0.* on Windows 7 + 10 with powershell and cmd.exe. Working fine in the cygwin terminal. |
I'm afraid that someone with one of these systems is going to have to do some sleuthing to figure out what's going on here. |
I am trying but find it very hard, because using the REPL while debugging the REPL is somehow difficult :-) |
Yes debugging REPL code is tricky! What I do is to have a file that I If I need to print-debug, I simply write to macro showerr(exs...)
blk = Expr(:block)
for ex in exs
push!(blk.args, :(println(stderr, $(sprint(Base.show_unquoted,ex)*" = "),
repr(begin value=$(esc(ex)) end))))
end
push!(blk.args, :(flush(stderr)))
return blk
end Now |
@rfourquet Great advice, thank you! |
I tried bisecting the issue, but I have trouble compiling versions earlier than March 2018 when I first discovered the issue. Recent versions (v1.0.0 and v1.0.1) compile fine on my system. |
@jaakkor2 can you explain how you are compiling on windows? I can't circumvent the Cygwin linking errors. |
I just followed https://github.com/JuliaLang/julia/blob/master/README.windows.md If I remember correctly, last winter there was a period of time when nightlies were not available for Windows, so maybe building for Windows was then broken. |
Finally I was able to find out which change introduced this bug: Commit f60dd61 libuv: upgrade to v2 master fork changed the behaviour of the cursor in the REPL. It would be great if others could try to confirm my finding. For successful windows builds I followed the cygwin cross build path using the appveyor_build.sh script. Details and links are described here: https://discourse.julialang.org/t/building-julia-1-0-for-windows/15897/4 This build path typically results in errors for sysimg.jl like:
This error in SharedArrays.jl can be fixed by changing line Other similar error messages in other files typically complain about Pkg not in the path, e.g.:
All these can be fixed by changing line To find out the "evil" commit I followed the commit path printed by
Commits with working REPL are:
Not working REPL starts with commit Next steps would be to analyse the changes in libuv. |
Thanks for investigating this far—that's very helpful! |
FWIW, https://julialang-s3.julialang.org/bin/winnt/x64/1.1/julia-1.1.0-rc1-win64.exe still shows problematic behavior on Windows 7. Compared to v1.0.3, libuv was updated in #30046 , but that did not help here. |
I've done some testing and noticed that I believe this should be fixed by microsoft/terminal#269 |
Downloaded from
https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe
When the cursor is moved on the terminal window (REPL), the cursor disappears until left or right keys are not pressed. Editing a line becomes thus very difficult.
Behavior on 0.6.2 is fine.
Wikipedia describes the wanted behavior nicely
https://en.wikipedia.org/wiki/Cursor_(user_interface)
The text was updated successfully, but these errors were encountered: