autaut03 / kottle

Kotlin language provider for Forge 1.13.2+
GNU Lesser General Public License v3.0
30 stars 13 forks source link

NoSuchMethodError when grabbing annotations #4

Closed ejektaflex closed 5 years ago

ejektaflex commented 5 years ago

It seems that net.minecraftforge.forgespi.language.ModFileScanData.getAnnotations() cannot be found. Using:

Forge 25.0.63 Kotlin 1.3.21 Kottle 1.0.5

It seems that between forgespi v0.6.0 to v0.10.0 this method now returns a Set<AnnotationData> instead of a List<AnnotationData, which may be the cause of the error (It cannot find a method with the matching JVM signature, since the return type has changed)

build.gradle: https://gist.github.com/ejektaflex/ee929bfceecc131d704422d61ae4d13c

Log: https://gist.github.com/ejektaflex/4b64858f227cc2b4c8f9d3b7103f1f9d

It would be easier to talk to you on Discord, if you have one you can message me at Ejektaflex#4616 :)

ejektaflex commented 5 years ago

Pull request added in #5 fixing said issue!

autaut03 commented 5 years ago

Merged #5 and released 1.0.6.

Offtop PS: I couldn't contact you on Discord, because you have friend requests disabled, but you can contact me instead, I now have the info in my profile.