Ray Rahke
03/02/2024, 8:09 PMmain.kt
file with a simple hello world print. There is no boilerplate or folder structure, just project/main.kt
3. I install Kotlin
extension by fwcd.
I receive the output error
... 3 more
Caused by: org.javacs.kt.util.KotlinLSException: No repositories found at $MAVEN_REPOSITORY, $MAVEN_HOME, $M2_HOME or $HOME/.m2
at org.javacs.kt.classpath.HomeKt.<clinit>(Home.kt:22)
... 21 more
[Error - 8:01:49 PM] Kotlin Language Client client: couldn't create connection to server.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.ExceptionInInitializerError
This does not happen on my actual machine, where all the intellisense just works after installing the extension. I assume I am missing something I need to download, but can't figure out what. On previous attempts I tried installing kotlinc and openjdk-18, but neither fixed the issue, unless I did not configure them correctly. Can someone please tell me what dependencies are required to get this to work assuming a totally fresh system with no java/kotlin/intellij stuff installed previously?cpe
03/03/2024, 9:34 AMMaven
? I'd try to get maven running, then check if the error is still occurring.
Caused by: org.javacs.kt.util.KotlinLSException: No repositories found at $MAVEN_REPOSITORY, $MAVEN_HOME, $M2_HOME or $HOME/.m2
Joffrey
03/03/2024, 2:15 PMRay Rahke
03/03/2024, 4:05 PMsudo apt install maven
did not fix it. Is there a more specific way I am supposed to install maven or commands I need to run after installing?Ray Rahke
03/03/2024, 4:15 PM