-
Notifications
You must be signed in to change notification settings - Fork 446
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
supposed compilation errors when using java 17 modules in visual studio code #3376
Comments
I find it hard to follow your example - can you attach a zip with a reproducer? |
Good morning Max, thank you for your help, I will send you the link to the repository with the complete project and instructions to execute it. |
This is an upstream Eclipse issue.
A workaround: move the feeding directory to a separate project. |
Amm what is upstream Eclipse issue? There is not solution for vsc? Is that for each module-info. java file I would have create separate projects? Amm There will be some way to disable that false compilation error because in the end the code does work, it's just those red lines that cause confusion |
See eclipse-jdt/eclipse.jdt.core#1465
Right. |
I understand the truth, creating independent projects for each module-info seems a bit inappropriate. Maybe there is an option in the visual studio code to disable build error warnings only in specific project folders, perhaps by manipulating the settings or launch json? |
As I happened to find this issue just now, I tried the steps in the description using ecj instead of javac, and there's only one warning I see in all this:
Other than that compilation and running works flawlessly. Apparently, this is not a problem of the compiler, but of how vscode configures the "project". Is a project in vscode directly mapped to what jdt calls a project? How does vscode invoke the compiler, from which directory, which options are being passed? |
Environment
The text was updated successfully, but these errors were encountered: