Closed alexisvincent closed 2 years ago
Hi @alexisvincent,
Thank you for the detailed report, and apologies for the long delay.
Unfortunately your example works locally and I'm unable to reproduce it, so I'm still trying to understand the issue and have a few more questions :)
When is the ClassNotFoundException thrown? When loading the code at the REPL or while trying to AOT compile the project? Both?
Also, are you able to define a mapper for other classes in your schema, for example: (pronto/defmapper m2 [com.authzed.api.v1.Core$SubjectReference])
?
Hi there - so cool to see this being worked on!
Appologies ahead of time for the super long issue, however I thought it would probably be useful to have as much info as possible.
I'm trying to build a library for GRPC lib for Authzed's GRPC endpoint
https://buf.build/authzed/api/tree/main/authzed/api/v1
.They have a library which generates the java client, currently against this branch
When I try to define a mapper using pronto for the generated Java Lib:
I get a
java.lang.ClassNotFoundException pronto.protos.IObjectId_java_lang_Object
.Reproduce
brew install bufbuild/buf/buf
- im not sure if this is actually required for the builddeps.edn
src/authzed.clj
Full Exception
Macro expansion of
(pronto/defmapper mapper [Core$Relationship])