-
Notifications
You must be signed in to change notification settings - Fork 217
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
Could not find or load main class org.javacs.kt.MainKt #201
Comments
I think you're using the wrong compiled binary. It should be at |
Thanks, you were right I was pointing to the wrong binary. Changing my coc nvim configuration to point to the path you specified made it work. I'm now encountering an error from the language server so that's a start! The error I'm seeing is:
How can I fix this? Please let me know if I should move this question somewhere else like StackOverflow or a new issue as it's unrelated to the original issue I raised. |
I'm not sure how coc works, but you should be able to provide a config of some sort to your LSP provider. Here's a solution from another issue: |
Thanks for the pointer, I should be able to find a way to configure that in my editor. Please close this issue and thanks for your help it's much appreciated! |
I'm going to close this issue, since I assume your problem was resolved. If not, feel free to reopen. ^^ |
Hi there,
Pardon my ignorance as I am completely new to the Java/Kotlin ecosystem and so understand very little about all the tools. I tried to search for similar issues but was unable to find anything which matched the exact problem I'm having. I will try to explain as much about my setup as possible so that it makes it easier for you to help me :)
When I open a kotlin file in nvim using coc, I am unable to start KLS due to the following error:
I set up a project by using https://start.spring.io/ and selecting Kotlin, Java 11, Gradle and Spring Boot 2.2.6 with the Web dependency.
I have also installed the Kotlin compiler separately and added it's
bin/
folder to my path sokotlinc
is available.I'm able to build the project using
./gradlew build
and also run it successfully using./gradlew bootRun
.If I run
java -version
on my machine I get the following output:Appreciate any help I can get as I would be really happy to continue using vim instead of switching to IntelliJ for a new Kotlin project that I will be a part of!
The text was updated successfully, but these errors were encountered: