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

How can I connect with multiple LSP clients? #1421

Open
lepantella opened this issue Apr 28, 2020 · 5 comments
Open

How can I connect with multiple LSP clients? #1421

lepantella opened this issue Apr 28, 2020 · 5 comments

Comments

@lepantella
Copy link

I tried setting up CLIENT_PORT environment variable to 3344, but as I read in the documentation, the eclipse.jdt.ls actually connects to client instead of client connecting to the server. I have multiple monaco editors in multiple browsers (angular) and I can't launch a 500 MB Java instance for every one of them. What is the point of the server then if not to serve things? That's also the main thing that confused me with XML LSP lemminx.

@fbricon
Copy link
Contributor

fbricon commented Apr 28, 2020

jdt.ls is not designed to communicate with multiple clients. I am not aware of any LSP implementations capable of connecting with multiple clients to be honest.
The goal for this project is to be able to provide the same feature across different client types, communicating with a common protocol, not to serve simultaneous clients (that would need to work on the exact same workspace)

@GNSubrahmanyam
Copy link

@lepantella @fbricon How you solved this problem? How you planned your scaling? We use jdt.ls as the backend to provide code intelligence to our users. We plan to allow potentially 500+ users to edit Java code at the same time. We use monaco editor and monaco language client.

@rvignesh123
Copy link

Guys still this open ? I need a solution too.

@goldfita
Copy link

goldfita commented Oct 28, 2022

In addition, it would be nice to allow the client to connect to the LS as a server even if only one client is supported. The client may not have a static address or it may be on a private network. This is creating a problem for the way I would like to be able to use it.

It would be nice if it could run as a service so that it's always available. Each time I start LSP in Emacs, it has to start jdt.ls.

@ivan-kzn
Copy link

ivan-kzn commented Dec 9, 2024

hi guys:) have anyone succeeded in this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants