Open nizam-betterapp opened 2 months ago
I add this below code that writes all the dependencies into the classpath.sh and tried it. Initially I was getting the 'Classpath has not changed. Fetching from cache' log line. after i manually added another dependency, this got fixed.
`tasks.register("writeDepsToFile") { doLast { val home = System.getProperty("user.home") val outputFile = file("$home/.config/kotlin-language-server/classpath.sh") outputFile.parentFile.mkdirs() // Ensure the directory exists
val classpath = configurations.compileClasspath.get()
.joinToString(":") { it.absolutePath }
outputFile.writeText("#!/bin/bash\necho $classpath\n")
// Make the file executable
outputFile.setExecutable(true)
}
}`
I am wondering whether this should be part of https://github.com/fwcd/kotlin-language-server/blob/main/shared/src/main/kotlin/org/javacs/kt/classpath/DefaultClassPathResolver.kt If I am going in the right direction, please let me know. will send a PR request.
I was trying to build the kotlin server to get started on contributing the project.
Running installedDist worked fine
But warning in the IDE after the indexing is done
Attached logs for your reference kls.ownserver.log
When I run build, it's failed
Please let me know what I am doing wrong. Are those warnings with red underlines expected?