vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

False-Negative Error Messages Reported When There Aren't Any Actual Compiler Errors

Open limey-git opened this issue 9 years ago • 1 comments

Several falsely reported errors are shown in the VS Code editor. There are a variety of different false-negative errors reported even though no such errors exist in the project source files. These include error messages such as...

duplicate class: com.example.Foo
com.example.Bar is not abstract and does not override abstract method baz(T) in com.example.Bumpf
method does not override or implement a method from a supertype
etcetera...

They are "false negatives" because if I open the same source files in eclipse — with no changes — then eclipse does not report any such errors. Also, if I compile the same source files manually — either on the Windows command shell or in the VS Code terminal — the source code compiles perfectly fine.

Environment
  • Operating System: Windows 7 Professional
  • JDK version: Oracle Java(TM) version "1.8.0_112" (build 1.8.0_112-b15)
  • Visual Studio Code version: 1.8.1
  • Java extension version: v0.0.8
Steps To Reproduce
  1. Open a maven-based project
  2. Open a java source file
  3. Work in the VS Code editor as normal
  4. Unpredictably, false-negative error messages are reported in perfectly legal source files

A video screencast is attached. The issue can be seen at the 1:53 mark of the video.

Current Result

False Negative Error Messages Are Reported In Java Files That Are Perfectly Legal According To The Compiler

Expected Result

If The java Compiler Doesn't Report Any Errors When The Exact Same Files/Project Is Compiled In The VS Code Terminal, Then The Redhat Java Plugin Should Not Report Any Errors In VS Code Editor

Additional Informations

See Attached Video — (at the 1:53 mark) — To Observe The Unpredictable Occurence Of The False "duplicate class" Error Message.

limey-git avatar Dec 28 '16 12:12 limey-git

UPDATE: I'd forgotten that I had previously installed the georgewfraser.vscode-javac Java Language support extension.

That extension was still enabled when I installed and enabled the Redhat Java Support extension. After disabling the georgewfraser.vscode-javac Java Language support extension, it looks now like the false-negative error messages have stopped.

I will continue with the georgewfraser.vscode-javac Java Language support extension disabled for a couple days. If the error messages no longer appear, I will close this ticket.

limey-git avatar Dec 28 '16 13:12 limey-git