georgi
11/25/2023, 8:57 AMThrowable.stackTraceToString
but it's giving me only the generated Javascript source files, rather than the Kotlin ones (see 🧵). I did a bit of searching online but I'm not sure showing the Kotlin source files is even possible right now. Feels like a sourcemap issue to me.
Is it possible to set this up so that the Kotlin sources are visible in the stacktrace?georgi
11/25/2023, 8:58 AMSignatureMismatch
at SignatureMismatch_getInstance (/app/bin/thecodinglove-kmp-appBackend.js:71495:7)
at $verifyRequestCOROUTINE$9.protoOf.qh (/app/bin/thecodinglove-kmp-appBackend.js:71714:32)
at $computeCOROUTINE$<http://1.protoOf.ae|1.protoOf.ae> (/app/bin/thecodinglove-kmp-appBackend.js:14370:33)
at $computeCOROUTINE$1.protoOf.v3 (/app/bin/thecodinglove-kmp-appBackend.js:14417:17)
at CancellableContinuationImpl.protoOf.lp (/app/bin/thecodinglove-kmp-appBackend.js:20751:24)
at ScheduledMessageQueue.protoOf.p11 (/app/bin/thecodinglove-kmp-appBackend.js:21534:19)
at /app/bin/thecodinglove-kmp-appBackend.js:21459:14
at processTicksAndRejections (node:internal/process/task_queues:78:11)
georgi
11/25/2023, 8:59 AMEdoardo Luppi
11/25/2023, 9:04 AMgeorgi
11/25/2023, 9:09 AMEdoardo Luppi
11/25/2023, 9:11 AMgeorgi
11/25/2023, 9:12 AMEdoardo Luppi
11/25/2023, 9:13 AMEdoardo Luppi
11/25/2023, 9:13 AMgeorgi
11/25/2023, 9:14 AMTry to change the source maps config to embed the Kotlin sources.Do you have an example of how to do that?
georgi
11/25/2023, 9:16 AMEdoardo Luppi
11/25/2023, 9:18 AMKotlinIrLink
.
Not a the pc now so can't check.Edoardo Luppi
11/25/2023, 9:20 AMgeorgi
11/25/2023, 9:20 AM./backend/slack-data/src/commonMain/kotlin/com/gchristov/thecodinglove/slackdata/usecase/SlackVerifyRequestUseCase.kt","../../../../.
andylamax
11/25/2023, 9:54 AMEdoardo Luppi
11/25/2023, 9:55 AMgeorgi
11/25/2023, 4:02 PM--enable-source-maps
apparently.
When I added this to my Docker command, I started getting the correct source path with no other changes.
CMD exec node --enable-source-maps thecodinglove-kmp-appBackend.js
👇
Cancelled
at Cancelled_getInstance (/app/bin/thecodinglove-kmp-appBackend.js:70582:7)
at RealSlackAuthUseCase$invoke$slambda.protoOf.qh (/backend/slack-data/src/commonMain/kotlin/com/gchristov/thecodinglove/slackdata/usecase/SlackAuthUseCase.kt:33:20)
at RealSlackAuthUseCase$invoke$slambda.protoOf.n5e (/app/bin/thecodinglove-kmp-appBackend.js:70628:16)
at l (/app/bin/thecodinglove-kmp-appBackend.js:70749:16)
at startUndispatchedOrReturn (/backend/appBackend/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/coroutines_13/IntrinsicsJs.kt:99:43)
at withContext (/opt/teamcity-agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/js/src/CoroutineContext.kt:61:5819)
at RealSlackAuthUseCase.protoOf.v5d (/backend/slack-data/src/commonMain/kotlin/com/gchristov/thecodinglove/slackdata/usecase/SlackAuthUseCase.kt:29:88)
at $handleHttpRequestAsyncCOROUTINE$0.protoOf.qh (/backend/slack/src/commonMain/kotlin/com/gchristov/thecodinglove/slack/SlackAuthHttpHandler.kt:46:16)
at SlackAuthHttpHandler.protoOf.g5m (/app/bin/thecodinglove-kmp-appBackend.js:73847:16)
at BaseHttpHandler$handleHttpRequest$slambda.protoOf.qh (/backend/common-service/src/commonMain/kotlin/com/gchristov/thecodinglove/commonservice/BaseHttpHandler.kt:55:17)
The error corresponds exactly to the line where the exception was throwngeorgi
11/25/2023, 4:04 PMEdoardo Luppi
11/25/2023, 4:05 PMgeorgi
11/25/2023, 4:07 PM