Skip to content

After ./mvnw clean package, the java file generated in the output directory target is re-identified as a project file by the vscode-java plugin. #3838

@mozhuanzuojing

Description

@mozhuanzuojing

After the maven is packaged, the java file generated in the output directory target is re-recognized as a project file by the vscode-java plugin, and then a lot of diagnostic information is sent. (until the file becomes normal after opening the file in vscode (recompiling again)).

Because these java source files are compiled in the vscode-java plugin, the source code and dependencies of the module in which they are located are not added, resulting in a compilation error that does not recognize import class of module.

step

  1. git clone https://gitee.com/mozhuanzuojing/bug02.git
  2. open bug02 and wait java status Ready
  3. exec ./mvnw clean package
  4. watch PROBLEMS output

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions