-
-
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
tab completion hinting slows down paste on Windows #56884
Comments
Seems like that we should use this command Base.active_repl.options.hint_tab_completes = false But this command cannot be executed at PS just as uncomfortable as ios18, which removes the video review bar in its photos app, what a pity. |
My guess is that in windows the REPL see this as just entering characters quickly (since no bracket paste mode) and the tab complete suggestion will run after every character. This would indeed slow things down. |
Maybe it's true for windows. We really don't need this superfluous prompt. If I want to, I can press Tab handily. By the way, is there any other method to speed up? Since I catch this problem today. There is a saying: "I could have withstood darkness, if I had never seen brightness". If I learn Julia from version 1.11.2, I would recognize this 10 seconds for 100 line of code as a normal speed. 💀 |
I tried to emulate this with |
@WalterMadelim the instructions to disable tab complention hinting in startup.jl is here and here
We need to figure out how to implement cancelling completion generation on the next keystroke. It's discussed here #55434 (comment) |
Otherwise, is there any way to identify when stuff is being pasted in in Windows, so we can disable hinting temporarily? |
@IanButterworth Thanks, it works. |
@IanButterworth, we could maybe piggy back on julia/stdlib/REPL/src/options.jl Lines 26 to 27 in dde5028
|
Can a windows user check the proposed fix here #56895 |
I use win11. The text editor is VScode. I use the portable version of Julia release.
If a block of code is copied from a *.jl text file, and pasted to a julia REPL in VScode, then the code can be checked and executed.
This workflow worked well, until yesterday I decided to use the latest stable release of Julia, which is 1.11.2.
Then I found that the code refreshing speed is manifestly slowed, compared with the previous version (1.10.2).
Could you tell me the reason and ways to sort it out?
I really did an experiment to exhibit this difference. For a 100-line code block, If 1.10.2 is used, the finishing time of code checking is 1.87 seconds.
If 1.11.2 is used, the time is 10.55 seconds.
(in Julia REPL, after the code is pasted)
The code review process of 1.10.2 seems to be line-by-line and it is fast, which is pleasant.
But the code review process of 1.11.2 seems to be word-by-word and it is very slow, which is annoying.
I append the code block (it is an expression indeed, you can easily use another block instead) here for convenience
The text was updated successfully, but these errors were encountered: