Skip to content

[DO NOT MERGE] Toolbox refactor #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Get kotlin-language-server working
  • Loading branch information
code-asher committed Sep 13, 2024
commit d6f970930a427e5d22ffcf3a1ec86cdd0eb97ab1
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,12 @@ val uploadPlugin by tasks.creating {
instance.uploader.upload(pluginId, pluginZip.outputs.files.singleFile)
}
}

// For use with kotlin-language-server.
tasks.register("classpath") {
doFirst {
File("classpath").writeText(
sourceSets["main"].runtimeClasspath.asPath
)
}
}
8 changes: 8 additions & 0 deletions classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# No idea why kotlin-language-server cannot find these.
# Generated with ./gradlew classpath, except this header is manually added at
# the moment.
# Must be copied to ~/.config/kotlin-language-server/classpath
# TOOD: Automate all that.

echo "/home/coder/src/jetbrains-coder/build/classes/java/main:/home/coder/src/jetbrains-coder/build/classes/kotlin/main:/home/coder/src/jetbrains-coder/build/generated/ksp/main/classes:/home/coder/src/jetbrains-coder/build/resources/main:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.jetbrains.toolbox.gateway/gateway-api/2.5.0.32871/3229b64b648a9f0125f1bc8589d60c5b66f5ad7d/gateway-api-2.5.0.32871.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-serialization-json-okio-jvm/1.5.0/2241ed280031e325cbc8c9e02d9b39e9bbe26539/kotlinx-serialization-json-okio-jvm-1.5.0.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-serialization-json-jvm/1.5.0/f2355f60f5c027da0326c8af2d9c724d39aa0ce9/kotlinx-serialization-json-jvm-1.5.0.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-serialization-core-jvm/1.5.0/d701e8cccd443a7cc1a0bcac53432f2745dcdbda/kotlinx-serialization-core-jvm-1.5.0.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-moshi/2.8.2/7af80ce2fd7386db22e95aa5b69381099778c63b/converter-moshi-2.8.2.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.8.2/8bdfa4e965d42e9156f50cd67dd889d63504d8d5/retrofit-2.8.2.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/4.12.0/2f4525d4a200e97e1b87449c2cd9bd2e25b7e8cd/okhttp-4.12.0.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.7.3/2b09627576f0989a436a00a4a54b55fa5026fb86/kotlinx-coroutines-core-jvm-1.7.3.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.8.21/67f57e154437cd9e6e9cf368394b95814836ff88/kotlin-stdlib-jdk8-1.8.21.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.15.1/753fe8158eae76508bf251afd645101f871680c4/moshi-1.15.1.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/com.squareup.okio/okio-jvm/3.7.0/276b999b41f7dcde00054848fc53af338d86b349/okio-jvm-3.7.0.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.8.21/7473b8cd3c0ef9932345baf569bc398e8a717046/kotlin-stdlib-jdk7-1.8.21.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.23/dbaadea1f5e68f790d242a91a38355a83ec38747/kotlin-stdlib-1.9.23.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.zeroturnaround/zt-exec/1.12/51a8d135518365a169a8c94e074c7eaaf864e147/zt-exec-1.12.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/2.0.3/deef7fc81f00bd5e6205bb097be1040b4094f007/slf4j-api-2.0.3.jar:/home/coder/.local/share/gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/23.0.0/8cc20c07506ec18e0834947b84a864bfc094484e/annotations-23.0.0.jar"