-
Notifications
You must be signed in to change notification settings - Fork 440
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
Force javac instead of eclipse jdt as compiler #3007
Comments
The issue is not related to eclipse jdt compiler. @dawosch Could you try the following:
See https://github.com/dawosch/vscode-java-extension-compiler-error/blob/main/app/pom.xml#L54 |
Thanks for your answere. But i'm wondering why the language server needs to recompile all files. |
The issue is related to the Java Service Provider. The provider configuration have to be packed into a jar file.
|
Hey, i'm using visual studio code with the "extension pack for java" extension.
Local i have installed java 17 (microsoft edition).
When i build my project with
mvn -U clean install
there will be classes generated and everything is fine.But when i press
shift + alt + B
like your readme says, the code will be compiled with the eclipse jdt compiler, which seems to have problems with a dependecy calledMapStruct
.Here is one file compiled with maven:
And here is the same file after pressing
shift + alt + B
:Have a look at line 20.
When i start my project the java extension always recompile my code (with the eclipse compiler).
I disabled the auto build feature, but that changed nothing.
I also configured the runtimes for java 17 in hope that this version will be used for compiling my code, but it doesn't.
Here is a repository i created to reproduce the error: Repository
Here are also some settings of vscode:
Environment
Steps To Reproduce
mvn -U clean install
in the terminalTestMapperInterfaceImpl.java
on line 20 (the setter)shift + alt + B
to compile the projectTest repository: Link to the repository
Current Result
The eclipse jdt compiler messed something up so the generated files are not working.
Expected Result
The compiler i defined in the runtime settings should be used to compile my code.
Additional Informations
I also opened a issue at the microsoft/vscode-spring-dashboard extension because i first thought that the error is a problem ob this extension because i started my project over this extension. But i noticed that before it starts it will be recompiled.
Link to the issue of the spring boot extension
The text was updated successfully, but these errors were encountered: