redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 441 forks source link

Can not import generated classes #3858

Open mamilic opened 1 week ago

mamilic commented 1 week ago

When I try to autocomplete/import generated class it can not find it.

Steps:

  1. Open this project, demo.zip
  2. Build project with
    ./gradlew build
  3. Navigate to DemoApplication.java at line 10, and try to import/autocomplete TestMapperImpl, though class can be found at ./build/generated/sources/annotationProcessor/java/main/com/example/demo/TestMapperImpl.java

Same is applied for test classes, the import can not found there either.

github-actions[bot] commented 1 week ago

We have found issues that are potential duplicates:

If any of the issues listed above are a duplicate, please consider closing this issue & upvoting/commenting the original one. Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.