Open tobwes opened 1 year ago
Both the debug adapter and the language server are a bit janky when it comes to multi platform projects. None of the contributors work with multiplatform, so support for it is at a bare minimum. Some issues: https://github.com/fwcd/kotlin-language-server/issues/447, https://github.com/fwcd/kotlin-language-server/issues/376 .
There is also the added issue with projects with multiple modules in the debug adapter: #77 . So far the max depth it checks is 2 or 3 or something if I remember correctly.
As the title says, debugging is not possible, because classes can't be resolved. Apparently, kotlin-debug-adapter fails to find dependencies. In emacs, dap reports:
Pretty printed gradle error:
I'm not sure whether I have correctly set up my project in gradle, because I'm new to Kotlin and gradle, but everything else seems to work until now. Here is my projects build.gradle.kts. I want to debug the jvmTest compilation (although, because resolving the classpath didn't work, I've created a fat jar testJar, I'm currently extracting this to build/classes/kotlin/jvm/main and then i run debug. This doesn't work either, because it doesn't stop at breakpoints...):