-
Notifications
You must be signed in to change notification settings - Fork 440
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
Imports for Java packages #3757
Comments
Do you see any other errors in the problems view, or just the ones about those imports not being found ? Seems like a misconfigured JDK might cause this, given that you're still seeing import suggestions from other 3rd party libraries. |
I've been having this problem on & off while now. When it happens I run the "Clean Java Language Server Workspace" command which sorts it out. Nothing obvious in the Problem / Output panels. Environment
Ill have a play around to see if I can figure out what is triggering the issue. |
Duplicate of #3715 |
I almost expected the reaction to be a misconfigured JDK. But that is not the case. The projects work and can be compiled and executed. |
Yeah it definitely seems like #3715 . I've run into it once or twice before, and also found it went away when I cleaned the workspace. I saved my client/server logs from around when this happened and can clearly see the imports not being sent back during that period of time. However there isn't anything odd in terms of errors. Just that the server completely left out the code actions regarding imports but did include others (so it wasn't an outright failure). |
I also have this issue where the java.util.* package is not being suggested, which is quite frustrating. It happens from time to time, and I have to restart VSCode or clear the cache. When will this issue be fixed? |
I would try the vscode-java pre-release build tomorrow. There's a good chance this has been fixed now. |
Imports for Java packages such as java.util.* or java.time.* are no longer suggested or added in the Code Editor.
Environment
Steps To Reproduce
Only imports from third-party libraries are offered, e.g com.fasterxml... or com.springframework...
The text was updated successfully, but these errors were encountered: