In a open Kotlin Native project the code analysis ...
# intellij
n
In a open Kotlin Native project the code analysis doesn't complete. When showing the Actions dialog and typing something in (eg Reopen) no suggestions appear. With a open Kotlin JVM project code analysis completes and the Actions dialog behaves normally.
Here is the output after running the linuxMainBinaries Gradle task. The protocol error message might be the reason why IntelliJ is behaving erratically.
What is interesting is that IntelliJ works fine with the KPad project ( https://gitlab.com/napperley/kpad ) even though it is using Kotlin Native. Very puzzled why the other Kotlin Native project causes IntelliJ to behave erratically.
@Alexey Belkov [JB] - I have submitted a issue from IntelliJ about the stuck code analysis issue with the Kotlin Native project. Where can I find the submitted issue? Need to add additional details to the issue.
a
It should be on YouTrack probably. I can't find it with the query https://youtrack.jetbrains.com/issues/IDEA?q=InvalidProtocolBufferException
Oh, you probably just submitted an exception with a "Report to JetBrains" button. These are sent to a separate system called Exception analyzer. You can try looking here with your account: https://ea.jetbrains.com/browser/ea_reports
n
I'm able to login via https://ea.jetbrains.com/browser/ea_reports however the system mentions that I have not submitted any reports. Where has my submitted issue headed off to
I think the issues occurring in IntelliJ might be related to the serious library linking regression (shows up as a protocol error) in Kotlin 1.3.40.
Below is the truncated contents of the protocol error:
Copy code
Executing task 'linuxMainBinaries'...


> Configure project :
Kotlin Multiplatform Projects are an experimental feature.

> Task :cinteropMqttLinux UP-TO-DATE

> Task :linkMqtt_clientDebugExecutableLinux FAILED
e: Compilation failed: Protocol message tag had invalid wire type.

 * Source files: main.kt
 * Compiler version info: Konan: 1.3 / Kotlin: 1.3.40
 * Output kind: PROGRAM

e: org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
	at org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99)
	at org.jetbrains.kotlin.protobuf.CodedInputStream.skipField(CodedInputStream.java:262)
	at org.jetbrains.kotlin.protobuf.GeneratedMessageLite.parseUnknownField(GeneratedMessageLite.java:73)
	at org.jetbrains.kotlin.metadata.konan.KonanProtoBuf$LinkDataPackageFragment.<init>(KonanProtoBuf.java:1074)
	at org.jetbrains.kotlin.metadata.konan.KonanProtoBuf$LinkDataPackageFragment.<init>(KonanProtoBuf.java:1033)
	at org.jetbrains.kotlin.metadata.konan.KonanProtoBuf$LinkDataPackageFragment$1.parsePartialFrom(KonanProtoBuf.java:1167)
	at org.jetbrains.kotlin.metadata.konan.KonanProtoBuf$LinkDataPackageFragment$1.parsePartialFrom(KonanProtoBuf.java:1162)
	at org.jetbrains.kotlin.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:137)
	at org.jetbrains.kotlin.protobuf.AbstractParser.parseFrom(AbstractParser.java:168)
	at org.jetbrains.kotlin.protobuf.AbstractParser.parseFrom(AbstractParser.java:180)
	at org.jetbrains.kotlin.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
	at org.jetbrains.kotlin.metadata.konan.KonanProtoBuf$LinkDataPackageFragment.parseFrom(KonanProtoBuf.java:1453)
	at org.jetbrains.kotlin.serialization.konan.KonanDeserializationUtilsKt.parsePackageFragment(KonanDeserializationUtils.kt:6)
	at org.jetbrains.kotlin.serialization.konan.KonanPackageFragment$protoForNames$2.invoke(KonanPackageFragment.kt:57)
	at org.jetbrains.kotlin.serialization.konan.KonanPackageFragment$protoForNames$2.invoke(KonanPackageFragment.kt:35)
a
Can you please report this directly to the Kotlin Native team (Kotlin YouTrack or Kotlin Native Github)? Otherwise they won't see your report in time.