-
Notifications
You must be signed in to change notification settings - Fork 399
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 server refreshing the workspace (cleaning and building) for each restart #1948
Conversation
… restart Signed-off-by: Snjezana Peco <[email protected]>
} | ||
}.schedule(); | ||
@Override | ||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why do we need a clean build here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the JDT settings has been changed.
Just have a try on VS Code with eclipse.jdt.ls project itself. Without the PR: With the PR: Looks like it improves the performance of project reimport. |
What OS have you used? Could you, please, try it on Linux? |
It takes a few seconds to reload the eclipse.jdt.ls with the PR on Fedora 34. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is worth getting in, given how much it improves re-opening a project. I occasionally still see the build happening on a simple re-opening of the project, but the "clean workspace" job is eliminated, so it seems worth it for that.
I tried on macOS. It spent much time on updating project, definitely there is still room to optimize the reload performance. When you tried eclipse.jdt.ls on Linux, did you install vscode-pde extension? Without it, eclipse.jdt.ls project actually won't load successfully. |
No, I didn't. I will check. Could you, please, test a maven/gradle/eclipse project? |
This is an upstream vscode-pde issue. I have created testforstephen/vscode-pde#37
|
I saw we added a m2e tag |
You are right. Could you, please, create a new issue and PR? |
Try commenting out the m2e tag, and the reimport performance will drop to about 1 minutes. I'll push a fix after the 1.1.0 version is released. |
@testforstephen could you, please, test https:/snjeza/vscode-test/raw/master/java-1.2.3.vsix |
Try your java-1.2.4.vsix with |
@testforstephen java-1.2.4.vsix with -Djava.ls.doNotSetDefaultJVM=true takes a few seconds to reload the eclipse.jdt.ls on Fedora 34 and Windows 10. |
I'm on macOS. Here is the log. |
Fixes redhat-developer/vscode-java#2222 and redhat-developer/vscode-java#2208
Signed-off-by: Snjezana Peco [email protected]