fwcd / kotlin-debug-adapter

Kotlin/JVM debugging for any editor/IDE using the Debug Adapter Protocol
MIT License
120 stars 24 forks source link

Fixup Kotlin multiplatform path #53

Closed koush closed 4 years ago

koush commented 4 years ago

Fixes https://github.com/fwcd/kotlin-debug-adapter/issues/52

koush commented 4 years ago

Looking at the "gradle properties" command line invocation, one can find the build directory. However, for multiplatform projects, that is still buildDir: /Volumes/Dev/scratch/core/build. There's no runtime jvm hint. I'll need to investigate how it is done for source paths.

MrRogerHuang commented 4 years ago

Looking at the "gradle properties" command line invocation, one can find the build directory. However, for multiplatform projects, that is still buildDir: /Volumes/Dev/scratch/core/build. There's no runtime jvm hint. I'll need to investigate how it is done for source paths.

Please try to test my GradleProjectInfoPlugin plugin: https://github.com/MrRogerHuang/GradleProjectInfoPlugin See also: https://github.com/fwcd/kotlin-debug-adapter/pull/44#issuecomment-656707540

You can modify this Gradle project to a Kotlin multiplatform project and check if Gradle Tooling API can get correct buildDir. Thanks. If it works, I hope someone can integrate this plugin to kotlin-debug-adapter.