Skip to content
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

using the kotlin lsp server with emacs eglot #15

Closed
jave opened this issue Jun 13, 2018 · 2 comments
Closed

using the kotlin lsp server with emacs eglot #15

jave opened this issue Jun 13, 2018 · 2 comments
Labels
bug Something isn't working question

Comments

@jave
Copy link

jave commented Jun 13, 2018

Hello, I'm trying to use kotlin lsp with the emacs eglot lsp impllementation, but I'm having some problems.

Is it supposed to work to use the stdio mode, or is there a port to connect to? Is there some basic sanity checks I can do by hand to see that the kotlin lsp responds correctly?

@fwcd
Copy link
Owner

fwcd commented Jun 13, 2018

@jave The server does indeed communicate via stdio:

val server = KotlinLanguageServer()
val input = ExitOnClose(System.`in`)
val threads = Executors.newSingleThreadExecutor({ Thread(it, "client")})
val launcher = LSPLauncher.createServerLauncher(server, input, System.out, threads, { it })
server.connect(launcher.remoteProxy)
launcher.startListening()

After cloning the repo and installing the server using ./gradlew build, the start scripts (for Bash or Windows) should be located in build/install/kotlin-language-server/bin. Did you try adding the path to this start script in eglot-server-programs?

Let me know if I can help you further.

@fwcd fwcd added bug Something isn't working question labels Jun 13, 2018
@fwcd
Copy link
Owner

fwcd commented Jun 13, 2018

Closing this as resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question
Projects
None yet
Development

No branches or pull requests

2 participants