If the project is reverted to a previous commit ( ...
# kotlin-native
n
If the project is reverted to a previous commit ( https://gitlab.com/napperley/prometheus-manager/commit/54ca3a199fcc935fc46e82e25fe7f9f44d31b1d1 ), and the same Gradle task is executed then there is no Konan error. Here is the link to the project: https://gitlab.com/napperley/prometheus-manager
👀 1
a
Ok, we figured it out. The root cause here was the
label
named argument in the suspend function signature. Until it will be fixed, consider renaming it somehow. I tried with
Copy code
private suspend fun HttpClient.callListLabelValuesRoute(labelName: String, serverUrl: String): SeriesQueryResponse {
and everything worked.
🙏 1
n
Seems to be the strangest Kotlin Native compiler 🐛 I have come across. That workaround will be sufficient until the fix arrives. Is the 🐛 caused when the named arguments (including the data types) in two or more defined suspend functions are the same?
a
In two words, it’s about the internal representation of a suspend function. There is a field named
label
, added for some technical purposes. And when it has to be used, the compiler cannot find it using
.single
(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/single.html) function over a list of fields and breaks up.