Motivation:
I'd like to try if compile-time annotation processing fits my problem. It needs to work out of the box, no compiler arguments etc.
Current state:
I have:
- The annotation
- An annotation processor
- A .jar containing both of these and a javax.annotation.processing.Processor file containing the FQCN of my processor in META-INF/services
What should happen:
- It should autodetect the processor
- It should process the annotation and create a new class (WiredAnnotated)
- I should be able to use this class in one step of compilation (not multiple phases)
- I wan't the editor to accept this class is generated (e.g. AndroidAnnotations manages this as well)
What actually happens:
- It autodetects the processor
- It creates a new class (in out/production/*/generated/)
- I am able to use this class
- The source code looks right
- When decompiling it looks ok too
- The editor cannot resolve the class (see screenshot)
What I tried:
- Restarting IntelliJ
- Invalidating caches
- Checking for output of the annotation processor
Screenshot:
When compiling, it actually works as expected. I guess it has something to do with inspecting the wrong directories.
Does anyone have an idea/clue on what I'm doing wrong? Did I miss information which could help you help me?
Thanks in advance, Till