-
Notifications
You must be signed in to change notification settings - Fork 463
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
Java Model Exception: Java Model Status [<parent POM project name here> does not exist] #2093
Comments
I've seen similar error, usually related to parent projects without any java files. It's possible that we didn't cover the case well, but at a first glance I don't obvious connection with the action "jump to definition".
looks like it's called by below delegate command @jdneo can you take a look where do you call this command, and does it handle parent pom project (possibly without java nature) well? |
@tigerinus Would you share the entire server log? F1 -> Java: Open Java Language Server Log File Also it helps if you could share .project/.classpath files, which is in the same directory as your pom.xml. |
Looks like these are two different problems. The error |
How can I share it in a confidential way? Sharing company server log in public is against our policy. |
The "Java Model Exception" has been fixed by PR eclipse-jdtls/eclipse.jdt.ls#1865. It will be included in next version of vscode-java extension. You can also try the CI build to verify it. If Go-To-Definition issue still persists, we need more information to find the root cause. |
@tigerinus is the problem fixed? |
I haven't seen the issue happening recently. I guess we can close this one for now. I will report again if it still happens. |
[provide a description of the issue]
Environment
This is running on a SSH remote environment - not sure if it happens locally or not since we don't have such setup.
Remote OS: Oracle Linux 8.
Java related settings in VSCode (remote):
Steps To Reproduce
pom.xml
looks like:where
common
is a non-Spring simple Maven project;service*
are all Spring projects.service*
project, hold [Ctrl] and click on a class name.Current Result
The editor keeps thinking for about 1~2 minutes, then write following message 10x times in the output:
Expected Result
It should just jump the the class definition being clicked.
Additional Informations
This happens intermittently. Sometime it works, sometime it doesn't.
When it doesn't work, even cleaning Java workspace doesn't help.
Sometime it doesn't work right after cleaning Java workspace for other reasons.
There is no clear pattern on how this happens. It's hard to capture the exact steps.
The text was updated successfully, but these errors were encountered: