redhat-developer / redhat-developer/vscode-java

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

Open
#1,458 4 comments 0 reactions 1 assignee View on GitHub

@testforstephen is already working on this.

Since May 20, 2020.

bug diagnostics regression standalone files
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.