-
Notifications
You must be signed in to change notification settings - Fork 455
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
Intermittent Class Loading Issues with Java Core Packages in VSCode #3797
Comments
Seems really similar to #3793 . Update: Ok there's some slight differences. In that issue, basic JDK classes also didn't resolve. Here they seem to be resolving, just completion isn't showing them at all. |
In the past, I don’t recall experiencing import suggestion issues, so I checked older versions. Checked import suggestion functionality with Map, List, Set, SimpleDateFormat, LocalDateTime, etc. Method to check suggestion functionality:
v1.22.0-work-well-mute.mp4v1.22.1-dose-not-work-mute.mp4Versions where there are no issues with Java standard library import suggestions:
Versions where Java standard library import suggestions start to occasionally fail:
💡 It seems that the regression issue might have started occurring when upgrading from v1.22.0 to v1.22.1. |
@fp024 Could you, please, check https://github.com/snjeza/vscode-test/raw/refs/heads/master/java-1.37.0.vsix ? |
I manually installed the file from the link and confirmed it. |
This is an upstream JDT issue. JDT sometimes doesn't initialize indexes properly. |
@snjeza , do you know when this started happening upstream ? Are they aware of this ? |
The issue doesn't happen in Eclipse because of https://github.com/eclipse-jdt/eclipse.jdt.ui/blob/8f8fafd02eac6cf56c98d5941ab5df1a4460eb3e/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java#L419 |
Thanks! After installing the file, the import suggestion issues no longer occur. This has been very helpful! |
The long-standing problem has finally been solved |
Studying Java with vscode-java has become fun again. Thanks for the support. 👍 |
[provide a description of the issue]
Environment
Steps To Reproduce
1.While using the Java extension in VSCode, I encountered an issue where the classes from the Java core packages (such as String) cannot be loaded correctly, which leads to malfunctioning autocomplete features. However, even though these core package classes fail to load, I am still able to use methods from the String class, such as String.length() and String.substring(), which work properly and provide autocomplete. Moreover, this issue does not occur every time.

[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: