vyfor
vyfor
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
No description
31 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
I've spent days trying to figure out this issue, and it turns out that the build fails whenever I explicitly specify a Ktor engine. The Kord native build fails on linux (irrelevant of dependencies) with the following error:
The /home/runner/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_send_wrapper76: error: undefined reference to 'curl_ws_send'
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_meta_wrapper77: error: undefined reference to 'curl_ws_meta'
The /home/runner/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_send_wrapper76: error: undefined reference to 'curl_ws_send'
/tmp/konan_temp5888808197062752774/kord-test.kexe.o:out:function libcurl_curl_ws_meta_wrapper77: error: undefined reference to 'curl_ws_meta'
84 replies
KKord
Created by vyfor on 8/9/2024 in #help
Cancelling the event listener job inside the event listener
Is it possible to cancel the Job returned by Kord#on inside its scope? I doubt it, but would something like this do the trick:
var job: Job? = null
job = kord.on<Event> {
job?.cancel()
}
var job: Job? = null
job = kord.on<Event> {
job?.cancel()
}
3 replies
KKord
Created by vyfor on 8/9/2024 in #help
Is Kord#getApplicationInfo() cached?
Is Kord#getApplicationInfo() backed by a cache? I'd like to check if the message author is the owner of the application.
4 replies
KKord
Created by vyfor on 7/14/2024 in #help
Compilation error with KSP
Hello, I'm facing this particular error when compiling my project and its ksp subproject:
> Task :kspKotlinMingwX64 FAILED
e: Could not find "org.jetbrains.kotlinx:kotlinx-datetime-cinterop-date" in [C:\Users\1\Desktop\kotlin\Cordex, D:\.konan\klib, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\common, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\platform\mingw_x64]
> Task :kspKotlinMingwX64 FAILED
e: Could not find "org.jetbrains.kotlinx:kotlinx-datetime-cinterop-date" in [C:\Users\1\Desktop\kotlin\Cordex, D:\.konan\klib, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\common, D:\.konan\kotlin-native-prebuilt-windows-x86_64-1.9.22\klib\platform\mingw_x64]
The root project has only two main dependencies:
dependencies {
api("dev.kord:kord-core:feature-native-SNAPSHOT")
api("dev.kord.x:emoji:feature-mpp-SNAPSHOT")
}
dependencies {
api("dev.kord:kord-core:feature-native-SNAPSHOT")
api("dev.kord.x:emoji:feature-mpp-SNAPSHOT")
}
16 replies