I have created a small test repository to be able ...
# arrow-meta
j
I have created a small test repository to be able to work on arrow-meta. But I can't solve a few build issues. The repo is at https://github.com/jansorg/arrow-meta-test. I assume that it's missing arrow-annotations and added the dependency I could find. But it's not yet working properly. Does anyone know a solution to this? (cc @Rachel) Errors:
Copy code
> Task :compileKotlin FAILED
e: /IslandWork/source/arrow-test/src/main/kotlin/arrow/Person.kt: (6, 12): Unresolved reference: synthetic
e: /IslandWork/source/arrow-test/src/main/kotlin/arrow/Person.kt: (10, 8): Unresolved reference: synthetic
e: /IslandWork/source/arrow-test/src/main/kotlin/arrow/Person.kt: (14, 12): Unresolved reference: synthetic
r
Right @Joachim Ansorg, that errors come from a missing arrow-annotations:
compileOnly "io.arrow-kt:arrow-annotations:0.10.3"
I'm going to check out your repository in case I can help you with other issues
j
thanks, I had
0.10.0-SNAPSHOT
, which was apparently missing
synthetic
. I pushed the change to my repo
👍 1
i
Yes the arrow-synthetic annotation is missing there is an PR for that https://github.com/arrow-kt/arrow-meta/pull/115
r
@Imran/Malic, I think it's already in arrow-annotations
i
Oh, but then we need to change it to
AnnotationRetention.SOURCE
and not
AnnotationRetention.RUNTIME
. If you want I can create the PR and you’ll review it, no.
I cant say confidently why
RUNTIME
works in the TestEnvironment, but I had similar issues running the compiler when I tried integrating it to
arrow
turning the AnnotationRetention to
SOURCE
solved that issue.
But their might be also another solution for this if we want
arrow.synthetic
to stay a RUNTIME annotation.
@Joachim Ansorg did it work when you added
AnnotationRetention.SOURCE
?
j
I was using this in a module outside of arrow-meta. I switched to the dependency posted by Rachel and that worked. As far as I can tell the current IDE implementation needs the annotation at runtime,
SOURCE
wouldn't be enough
This may change when I have some results for my current task, but it's too early to tell
i
Perfect, 🙂 thanks @Rachel