-
Notifications
You must be signed in to change notification settings - Fork 456
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
Autocompletion overwrites following characters #352
Comments
This works fine in Eclipse, so definitely a bug in jdt.ls side |
Is this bug fixed in 0.13.0? I still have this bug. |
Yes it's supposed to be fixed. Can you still reproduce this issue consistently? |
Yes. I tried several times. This bug still appear consistently. I am using OpenJDK8_151 now. |
@fly1n please set |
I know that this bug does not happen when I wait for few seconds, but you can't expect every user to wait for few seconds before autocompletion, right? |
Sorry, I thought this does not happen after waiting for few seconds but did not really test it. I test it again for few times, it happens even after I wait for about 10 seconds. I also found another behavior. |
I still can't reproduce the issue with VS Code Java 0.13.0. Please take a look at https://www.screencast.com/t/vTKvleEJcvk |
I tried to use the same file as you, and this bug did not happen in that file. I can send you my project. Since it is my course project, I do not want to upload it to github, can you give me your email please? |
I've tried very hard to autocomplete as fast as I can (definitely sub second) and can't reproduce it either. |
@fly1n try to reinstall the VS Code Java LS extension. It is possible that you are using an older version. |
I reinstalled the whole VS code with only Java extension, this bug still appears. |
Can you try to just type lower case "ls" before "()", and then select the first autocompletion ("LSR"). This setting is able to reproduce the bug in my side. |
I have tried it, but can't reproduce the issue. @fly1n Could you check your VS Code Java LS version? |
See this: https://www.screencast.com/t/7s73x82XKb, it is 0.13.0. |
@fly1n could you disable other extensions? |
https://www.screencast.com/t/aKkFvziNcJt2 |
@fly1n could you try with https://drive.google.com/open?id=1nckes1kPJrj791B0KYzv2E0kgEgq_Kj7 ? |
Unfortunately the bug still happens. |
@fly1n I suppose you have a very fast machine. What hardware are you using? |
Cool! This version works for me. Now I do not have that bug. |
This bug happens much less after I use your newest version, but it still happens few times when I wrote code. So, I think this solution is still not a radical one. |
I used the newest one for one day. It seems that this bug is completely resolved in the newest version. |
with @snjeza's fix, not only is autocompletion more robust, it's also now super fast! |
Autocompletion overwrites following characters
Environment
Steps To Reproduce
This bug can be easily reproduced on all java files.
Current Result
Sometimes "ArrayListInteger>", sometimes "ArrayListeger>", sometimes "ArrayList<Integer>"
Expected Result
"ArrayList<Integer>"
The text was updated successfully, but these errors were encountered: