arrow-kt / arrow-meta

Functional companion to Kotlin's Compiler
https://meta.arrow-kt.io
Apache License 2.0
396 stars 42 forks source link

[BUG] "Packages cannot be imported" when importing object members #764

Open BenWoodworth opened 4 years ago

BenWoodworth commented 4 years ago

Describe the bug Arrow Meta causes imports for object members to give the error "Packages cannot be imported". The code compiles and runs fine without Arrow Meta.

To Reproduce Enable Arrow Meta IDE plugin, and add this code to a Kotlin scratch file:

import kotlin.properties.Delegates
import kotlin.properties.Delegates.observable

val x by Delegates.observable(4) { property, old, new ->
}

val y by observable(4) { property, old, new ->
}

Expected behavior No errors

Screenshots image

Environment (please complete the following information):

raulraja commented 4 years ago

Thanks @BenWoodworth !

MairwunNx commented 4 years ago

+1. I've the same problem. Fixed by temporary disabling extension Arrow Meta.

i-walker commented 4 years ago

Thanks @BenWoodworth ! I was able to reproduce it with the Quotes Ide Plugin.

krzykrucz commented 3 years ago

I have the same problem when importing org.assertj.core.api.Assertions.assertThat, which by the way is used in the arrow-meta-examples project.

What's more, and I don't know if that's related or should I raise a separate issue, but with the plugin enabled Auto-Imports don't work for me in any project.