Closed onomesotu closed 1 year ago
This can also be seen using the federation-example project. https://github.com/Netflix/dgs-federation-example/tree/master/reviews-dgs
The EntitiesGraphQLQuery class is not resolvable according to IntelliJ, despite the test being runnable and passing.
Dropping the codegen plugin to 5.1.0 allows IntelliJ to be able to resolve the classes.
Turns out this is an issue with IntelliJ's version of Kotlin.
When viewing the sources, IntelliJ could not decompile because the version of Kotlin used was 1.7, whereas I was on an older version of Kotlin. The code used in DGS 5.1.0 must have been using older versions of Kotlin.
Ensure that you have the latest version of Kotlin by going Preferences -> Languages & Frameworks -> Kotlin and updating to the latest version.
Closing as it was an issue with the Intellij Kotlin plugin.
Please read our contributor guide before creating an issue.
Expected behavior
Using DGS 5.0.5 as shown above and codegen plugin 5.1.17, I am able to use the following classes in tests:
Actual behavior
After updating DGS to 5.4.0, I am unable to reference the classes above with compilation errors. As they cannot be resolved.
Moving DGS to 5.3.0 fixes
And I need to revert the plugin down to 5.1.17 to fix
I have read the release docs and can't find anything, in particular, that's causing this issue.
Steps to reproduce
Note: A test case would be highly appreciated, but we understand that's not always possible