GitHub user matthiasblaesing added a comment to the discussion: 
annotationProcessorPaths editor dosen't recognized imported class

Ok, looked into the processor of Jstachio and there I find:

https://github.com/jstachio/jstachio/blob/6b19a1a8cf36003513031230fe78404e1a46d50d/compiler/apt/src/main/java/io/jstach/apt/TextFileObject.java#L94-L102

And indeed. When run by the NB infrastructure and break in line 100, I check 
the two options:

- `env.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", 
name).toUri().toString()` yields 
`file:NBINDEXDIR/s136/java/15/classes/jstachio/mustache/user.mustache`
- `env.getFiler().getResource(StandardLocation.SOURCE_PATH, "", 
name).toUri().toString()` yields 
`file:/home/matthias/Downloads/jstach/src/main/resources/jstachio/mustache/user.mustache`

The first variant is used in the code, the second is documented in the code as 
the "right" variant and indeed the second does the right thing.

Easiest solution: Convince JStachio developers to check both options and use 
the most sensible one.

GitHub link: 
https://github.com/apache/netbeans/discussions/8549#discussioncomment-13328324

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to