Skip to content

The declared package "package" does not match the expected package ""- ( Java(536871240) ) #1715

Open
@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions