one of my kt files, I type `println("aa")` and it ...
# javascript
d
one of my kt files, I type
println("aa")
and it inserts
kotlin.io.println("aa")
- and it does this for almost everything I type, inserts fully qualified path. Does anyone know why this happens and how to avoid it? in this file it also flags some used imports as unused, if I remove them of course then the identifiers become unknown in the code.
k
mishaxz: who inserts fqn? Do you mean IntelliJ IDEA?
d
yes intellij, just on the one kt file. It was constantly doing that, it was annoying. However, I did some refactoring for other reasons and I have extracted the code to another class. So the problem is gone. I think it was not doing that all over the file, but isolated the area I was working on (which was within the fun in this code
Copy code
override val completed
        get() = Promise<Int> { resolve, reject ->
            fun process() {
- anything I typed in there would get qualified immediately... I guess it is not a common problem.
b
@Dalinar do you able reproduce it? If so could you please report it to the tracker kotl.in/issue