-
Notifications
You must be signed in to change notification settings - Fork 411
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
eclipse.jdt.ls doesn't respect Gradle output directory #1400
Comments
Gradle support is provided by the Buildship project. Separating the output directories of Eclipse and CLI builds is a design decision, basically to prevent conflicts between IDE and CLI builds. More about here: https://discuss.gradle.org/t/eclipse-plugin-did-not-configure-default-output-directory-to-build/7586. Adding @rubensa's comment from redhat-developer/vscode-java#1187 (comment) :
|
That makes sense, but wouldn't it also make sense for the language server to override Buildship's default setting? Users of the server will be working with Gradle (or whatever the build system is) and not Eclipse directly. |
This applies to jdt.ls clients too, they're the IDEs, they will see the conflicts |
Is there a language server command for refreshing the build that I'm not aware of? I ran into this issue because I was running tests through java-debug, one failed due to an issue in a resource file, and the language server didn't pick up the resource change once I fixed it. The test kept failing until I either restarted the language server, or ran |
Any solution or workaround for this problem. We use |
Yeah, there's a poorly-documented command |
related to eclipse-buildship/buildship#1131 |
Gradle by default uses
build
as its output directory, and Eclipse usesbin
, but it doesn't look like there's a way to tell the language server to use Gradle's settings without installing a separate Eclipse plugin. This has caused me problems when updating resources; theprocessResources
task copies files over tobuild
, but the language server can't see them because it's usingbin
.The text was updated successfully, but these errors were encountered: