-
Notifications
You must be signed in to change notification settings - Fork 208
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
Spring Boot language server interfering with Eclipse Gradle Buildship automatic project synchronization #1087
Comments
Try disabling "Reconciling Java Sources" under Preferences Spring -> OpenRewrite. Did it make a difference? (Might be that events in Eclipse generated from "Automatic Project Synchronization" are causing the expensive OpenRewrite reconciling to kick in over and over again) Do you see progress bars in Eclipse Progress view constantly appearing/disappearing? |
Disabling OpenRewrite settings did not have an effect. Only disabling "Start Language Server at startup if Spring Boot is a dependency" did have an effect. I see progress bars constantly appearing/disappearing with message |
@MahatmaFatalError It might be worth to enable the log output for the Spring language servers via the preferences ( The logging into the Console View might be a bit annoying over time, so feel free to disable that again for your regular work. Just keep in mind that you need to restart the IDE in order to have those changes take effect. Many many thanks upfront!!! |
@martinlippert I enabled console logging according to your recommendation.
the logs are flowing in rapidly. It only stopped after disabling gradle auto sync. The gradle console log is repeating
|
The Boot LS log clearly shows that the Rewrite reconciling is not the culprit. Looks to me that Buildship keeps building the project which likely results in the classpath update event. Perhaps we can check if classpath has indeed changed before firing project changed event on the Boot LS side. |
I'd bring up the constant re-build problem with the Buildship. |
@MahatmaFatalError Did you have the chance to try a latest snapshot build from https://dist.springsource.com/snapshot/STS4/nightly-distributions.html? (Please make sure you pick the snapshot build on Eclipse 2023-06 (4.28) and not (yet) jump on the Eclipse 2023-09 milestone builds...) ;-) |
I was also troubled by similar symptoms, but when I tried nightly Eclipse 2023-06 (4.28), it seems to have been resolved. |
Closing this then as fixed, probably via e21343a |
Describe the bug
I have a big multi-module gradle project, with Gradle Automatic Project Synchronization enabled.
Since the update to latest Eclipse 4.19.0.RELEASE, I noticed very high CPU load at start when projects are loaded and build.
In Eclipse Progress window I found that "Spring Boot Language Server" was running and apparently it triggered a "Synchronize gradle projects with workspace" process repeatedly/continuously (and probably infinitely).
I needed to disable "Automatic Project Synchronization" in the Gradle settings in order to break the loop.
I don't know if Spring Boot language server or Gradle Buildship is the culprit, at least it is a regression because it worked with old Eclipse 2022-12
Version: 4.19.0.RELEASE
Build Id: 202306150758
Eclipse Buildship 3.1.7.v20230428-1602
To Reproduce
Start IDE with a gradle project
Sample
I try to provide a sample repo
The text was updated successfully, but these errors were encountered: