Skip to content

Commit d6f9709

Browse files
committed
Get kotlin-language-server working
1 parent 8c34c64 commit d6f9709

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,12 @@ val uploadPlugin by tasks.creating {
138138
instance.uploader.upload(pluginId, pluginZip.outputs.files.singleFile)
139139
}
140140
}
141+
142+
// For use with kotlin-language-server.
143+
tasks.register("classpath") {
144+
doFirst {
145+
File("classpath").writeText(
146+
sourceSets["main"].runtimeClasspath.asPath
147+
)
148+
}
149+
}

classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
# No idea why kotlin-language-server cannot find these.
3+
# Generated with ./gradlew classpath, except this header is manually added at
4+
# the moment.
5+
# Must be copied to ~/.config/kotlin-language-server/classpath
6+
# TOOD: Automate all that.
7+
8+
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"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy