-
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
NoSuchMethodError on JavaProject.internalDefaultRootModules and Project Load issue in Multi-module Gradle Spring App #3986
Comments
A duplicate of eclipse-jdtls/eclipse.jdt.ls#3401 . This is an issue with vscode-gradle. See microsoft/vscode-gradle#1651 . |
@rgrunber thanks for the update. So should we expect these to be resolved then the vscode-gradle issue to be resolved as well? |
You could try reverting to vscode-java 1.39.0, which should avoid the |
I reverted to vscode-java 1.39.0, no "NoSuchMethodError on JavaProject.internalDefaultRootModules" error anymore but still "resolving modules and reports cyclic dependencies" issues are there. |
@rgrunber any comment for creating the new issue for "resolving modules and reports cyclic dependencies" errors ? |
Can you confirm that You could try setting it to I know that there are limitations around cyclic dependencies in Buildship (the Gradle builder used when vscode-gradle isn't installed) but this looks like it would be generated by vscode-gradle so eclipse-buildship/buildship#460 shouldn't be the problem. Maybe similar to microsoft/vscode-gradle#1154 ? I would file a new bug here if you can see the issue with |
@rgrunber yes, java.gradle.buildServer.enabled was set to
|
Update regarding "java.gradle.buildServer.enabled" - off After ~2hours, it completed the our project import but i see a lot reported errors for our project. It looks like it is related to the issue that it didn't discover dependencies or java classes from the project properly. So, "java.gradle.buildServer.enabled" - off doesn't work for us for now. |
Hi,
We have a multi-module Gradle-based Java Spring application. When trying to open it in Cursor IDE with the Language Support for Java plugin enabled, the project does not fully load and takes a long time to partially initialize.
We observed the following error in the logs:
Our project uses a bit sophisticated module naming pattern similar to ::[:]
Last part of the module ( subtype/type ) can be same for multiple modules like api or impl.
foo:module1:api
foo:module1:impl
foo:module2:api
foo:module2:impl
...
...
The plugin seems to struggle with resolving modules and reports cyclical dependencies, although our setup doesn't have actual circular dependencies.
We don't have any cyclic dependecy issues with our project. Our project works perfectly fine while working with IntelliJ IDEA or building / running it with gradle from command line.
We use the following versions:
Do you have any idea why we are facing with weird errors and loading issue ? We want to switch to Cursor IDE and the current problem is blocker for us.
It would be good if you can guide us in any someway for finding a solution for it.
Thanks in advance
Ramazan
The text was updated successfully, but these errors were encountered: