Has anyone else seen incorrect linting of Kotlin files in Android Studio related to certain collection classes? I'm having trouble with HashMap and ArrayList for example. Compilation yields no errors, only IDE parsing within the editor. I'm using v1.2.30.
g
gildor
03/09/2018, 3:18 AM
incorrect parsing? What do you mean?
j
J-Rojas
03/09/2018, 4:54 AM
I'm using a Kotlin multiplatform project and I'm experiencing inconsequential parsing/type checking errors in the editor. The Gradle build completes with no errors and the Android app executes perfectly well, however the editor persistently shows what it believes as fatal errors (red underlined text). Also certain basic Kotlin collection types aren't resolved and I see type checking failures in the editor window.
J-Rojas
03/09/2018, 4:57 AM
I think there's some sort of ambiguity with JVM types (HashMap, ArrayList), although I'm not importing any of these Java types into my common project.
o
orangy
03/09/2018, 7:48 AM
@mglukhikh please take a look, sounds similar to what we have with
arrayListOf
ambiguity we’ve seen recently
j
J-Rojas
03/09/2018, 5:51 PM
Yes, this sounds likely to be similar. I'm seeing that error for
arrayListOf
"overload resolution ambuiguity", and a reference to unresolved 'java.util.ArrayList' in one file and unresolved references to Kotlin collections ArrayList and HashMap in other files.
J-Rojas
03/09/2018, 5:53 PM
There's also another error for unresolved StringBuilder.
J-Rojas
03/12/2018, 10:25 PM
So this bug report does describe some of what I'm seeing, but there are other errors beyond