oracle/javavscode

Build errors not listed in the VS Code problems tab

Closed this issue · 2 comments

I have a Java project (release version set to Java 21) using Maven as its build tool. I use the most recent versions of Maven, VS Code and the Oracle Java extension with OpenJDK 22 as my default JDK.

Currently, the project contains 33 build errors, which do appear in the output of the Oracle Java SE Language Server - but the build seems to be interpreted as successful as I don't see any errors in the VS Code problems tab (which is set to show errors and warnings):

starting jdk.build.workspace
...
Scanning for projects...

(output omitted)

33 errors 
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  4.812 s
Finished at: 2024-07-23T23:50:39+02:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project foobar: Compilation failure: Compilation failure: 

(errors omitted)

-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.

Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:

[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
finished jdk.build.workspace in 6624 ms with result true

I would expect that build errors are listed in the problems tab such that one can navigate to the problematic code and fix things.

Hey @d4span,
Could you please provide more details about the issue you're facing? Specifically, let us know the version of the extension you're using, any reproducible steps or code samples, and any other relevant information that might help us understand and resolve the problem.

Closing due to inactivity. Feel free to re-open this issue, if you still have some clarifications.