-
Notifications
You must be signed in to change notification settings - Fork 344
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
VSCode Extension doesn't resolve auto value dependencies #193
Comments
autovalue is an annotation processor. Annotation Processors are not executed by vscode-java (see redhat-developer/vscode-java#339). If you're using Maven, you can try that solution as a workaround: redhat-developer/vscode-java#339 (comment) |
Here are some instructions to get autovalue work in vscode-java: https://github.com/redhat-developer/vscode-java/wiki/Annotation-Processing-support-for-Maven-projects |
@plooploops can the instructions help address the issue? |
It is not related to java debug, close it here, if the problem is not resolved, please recreate it on https://github.com/redhat-developer/vscode-java/issues |
Unfortunately it's still not quite picking up the dependencies for being able to run the Java debugger in VSCode. What level of the pom do we want to place this in? |
Reopen it |
@andxu any updates? |
@plooploops Java debugger doesn't do anything special, it just uses the source and class path from Java Language Server(short jdt.ls at https://github.com/eclipse/eclipse.jdt.ls) to lunch your application and jdt.ls will use your pom xml for the project generation so make sure pom.xml
FoobarValue.java
App.java
launch.json
|
@andxu Thanks. I'll see if I can adapt this work around with mvn package. When do we expect jdt.ls to support auto-values? |
I will work on jdt.ls on project support in next sprint, I can hardly give you the timeline, but will update the progress in this issue. |
@andxu: laguage server already support this one, please verify this: |
I have verified on latest java language support 0.27.0 on auto-value, it now supports the compilation of auto-value, then you are not required to run mvn package manually, please take a try @plooploops. |
Close this one as been fixed. |
I'm building a project that utilizes com.google.auto.value.AutoValue to create builders which are placed in both the target folder and in the jar files. However, VSCode isn't picking these up either at run time and statically.
I believe the pom file is updated for the project as well so it should pick it up from the path.
Environment
Steps To Reproduce
Current Result
The build doesn't pick up the dependency.
Expected Result
The build should pick it up at run time and statically.
Additional Information
If we need to do a live chat, please let me know.
The text was updated successfully, but these errors were encountered: