Open Svetlovsky opened 4 months ago
@rsmckinney hi! are there any updates/plans on this?
Not yet . . .
Fixing this is a bit involved. Internally, IJ shares the same type definition with both Java nd Kotlin. Since manifold extensions are necessarily applied directly to the type, the manifold plugin must override Kotlin plugin functionality to prevent it from resolving references manifold extension methods.
It's non-trivial, but not a big project either. I just need to set aside time to implement it for Kotlin. Apologies for the wait.
I see, no problem, I was just checking in, thank you for explaining!
Describe the bug In a mixed project, where Java is a production code and Kotlin is a test code, when using Manifold plugin IntelliJ shows kotlin's
map
,filter
and other collection functions as if they come from Java and crosses them out as if they are deprecated, which leads to another issue when infix functions are shown as unresolved reference. However, this issue is just visual, because tests passTo Reproduce Steps to reproduce the behavior:
./gradlew test
to verify tests are passingAppTest.kt
file to see the issueRepository also contains screenshots that demonstrate the behavior
Expected behavior Manifold IntelliJ plugin should use kotlin functions when working with kotlin files in a mixed project (i.e. Java + Kotlin)
Screenshots
Desktop (please complete the following information):