redhat-developer / redhat-developer/vscode-java

[regression] Compilation issues for the missing imports are not highlighting for the copy paste java code

Offen
#1,458 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@testforstephen arbeitet bereits daran.

Seit 20.5.2020.

bug diagnostics regression standalone files
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

The compilation issues for the missing imports are not highlighting for the copy-paste java code.

Environment
  • Operating System: Windows 10
  • JDK version: Java 1.8.0_231
  • Visual Studio Code version: 1.45.1
  • Java extension version: 0.91
Steps To Reproduce
  1. Copy-paste a simple java program without imports (For Example I copy-pasted the code Calendar cal = Calendar.getInstance();)
  2. Verify that the compilation issue is not highlighted for the missing import of the class Calendar.

Note:

  1. We can easily correct it for small programs but it will be difficult for the big programs since we can identify the import missing issue only when we run the program.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.