Skip to content

Generated source file's import declarations do not work with Maven dependencies #522

@ChrisTrenkamp

Description

@ChrisTrenkamp

I'm using Immutables to generate builder source files. The oracle.oracle-java VSCode extension appears to work correctly for discovering and running your project's annotation processors. However, the language server doesn't appear to work correctly on these generated source files:

Image

The broken import statements from the above screenshot are Maven dependencies, and the source file does compile when I manually run mvn compile. It seems the language server is not examining the project's dependencies and local project classes for discovering the import declarations. It does, however, find the import declarations from the standard Java library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions