Open shoffmeister opened 6 years ago
There's a known limitation in Eclipse JDT where you can not apply annotation processors in the same workspace as where they're defined. i.e. you can't have: workspace:
For reference: The Baeldung link seems to point to the setup you describe - and seems to work.
My setup here is even worse: The annotation processor implementation is embedded into the project which is being annotated. Self-modifying code at build-time, if you like.
If it won't work in Eclipse, then it won't work in vscode-java. Sorry.
I have access to a specific (large) project here which makes use of
to create an annotation processor
for an annotation
the.namespace.TheAnnotation
in that projectwhich produces an interface (e.g.
GeneratedInterfaceSpecificMapper
, see below) with plenty ofdefault
. In the very same project, this annotation is also applied to some classes,Evidently, maven discovers the annotation, the annotation processor, runs code generation through the processor (files appear in generated-sources/annotations/...) and is able to also compile the source files that make use of the GeneratedInterfaceSpecificMapper.
The vscode plugin flags the type cannot be resolved to a type". This seems to indicate that the vscode plugin is not aware of the generated artefacts in generated-sources/annotations/...
GeneratedInterfaceSpecificMapper
as faulty, with "[Java]I have had a look at https://www.baeldung.com/java-annotation-processing-builder to see whether this produces the error - alas, that setup there seems to be too clean / too simplistic to trigger the problem.
Environment
Steps To Reproduce
<large project, will try to find time to reduce>
Current Result
Expected Result
Additional Informations
Not sure whether this related to the issues reported for Lombok - e.g #580 or #458