redhat-developer / redhat-developer/vscode-java
The declared package "package" does not match the expected package ""- ( Java(536871240) )
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When I package the Java file and I package it with the name of the upper directory, it shows the error at title.
Environment
- Operating System: Windows 10
- JDK version: 15
- Visual Studio Code version: Latest Stable Build
- Java extension version: Latest
Current Result
error highlight
Expected Result
No error highlight
Additional Informations
It works fine when I compile and run but it highlights the name and shows a error in editor
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the package-name diagnostic in VS Code using the reported Windows 10, JDK 15, and Java extension setup, comparing the editor result with compilation and execution. Trace the Java extension's diagnostic handling to determine why a valid packaged file is flagged; done means the false error highlight is absent while compilation and running still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100