-
Notifications
You must be signed in to change notification settings - Fork 799
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
Doubts about centralized servers #31
Comments
Hi @menduz:
There are debates in the open market as to which is a better model. The Che viewpoint is that it would be difficult to have a clean abstraction where a single language server services many clients at the same time. While you get multi-tenanted intellisense, those same clients are going to need other tools like compilers, package managers, and debuggers which are not governed by the same protocol and distinct per workspace - so seems that just having multi-tenanted language server without the rest will create unforeseen challenges. This is our perspective and not a universally shared one. |
Thanks @TylerJewell !
|
Che's server and each workspace created by Che are in different containers. So a user with 2 workspaces has two isolated runtimes. We install the language server into the workspace runtime where our RESTful adapter is applied. The RESTful interfaces that we have are published on github.com/eclipse/che, but you don't really need to understand them. We will accept any local language server operating against this JSON local protocol. We then have a common editor plugin that communicates between the browser and our RESTful adapter. So all you have to do is provide a language server according to this spec, add installation details on how the server can be launched. We'll provide a public registry where language servers can be added for discovery by various IDEs. |
Thank you @TylerJewell |
Hey @TylerJewell any chance you could provide a link to the adapter code that manages the language-servers in Che? Had a poke around the Che github and the closest I could find is this which doesn't appear to be in master. |
Ahh never mind, found it on the "language-server" branch.. I'm an idiot |
@TylerJewell I gotta ask - how can you proxy an RPC protocol (remote procedure call) through HTTP and call it RESTful (representational state transfer)? RPC and REST are total opposites |
We have a RESTful wrapper around the JSON RPC protocol. It's not very granular to reflect the detail that is within the specification here, but it is the structure of how Che editors interact with language servers. I should have been more explicit with my language. And we should produce a nice architecture graphic that reflects this. |
Really curious how that looks like if it is really RESTful. What level is that wrapper on the Richardson Maturity Model? |
The entirety of communications between the IDE and the workspace is RESTful for initiating actions. There are selective points where streaming content is then transitioned over to a websocket channel. In the case of the language server protocol, there are certain major actions which are RESTful, and some that are not - I don't think our granularity of the RESTful interface reflects the RPC protocol that closely. I am not familiar with the RMM, it is a concept that is new -- if it was intriguing for you to know, i can ask some engineers to look at it and compare against what we did. |
Yeah, sure - the filter on all of the language server issues committed into Che is here. https://github.com/eclipse/che/pulls?q=is%3Apr+Language+Server+is%3Aclosed. I think you want the commits associated with PR #2452. eclipse-che/che#2452. I haven't poured through enough of the code to know the granularity for it, but given that the implementation was done in 4 months, I suspect it is coarse grained. |
@menduz regarding 2.): currently the protocol assumes that there is a 1:1 mapping between [tool instance, workspace] and language server. Major reason being that the protocol as no spec for document sharing between tools. Consider for example two different editors opening the same workspace on a local machine and sharing the same language server. If we want to support the protocol must spec how modification on the same text document in the two tools should be handled. |
@dbaeumer Thanks! |
To keep the number of issues in our inbox at a manageable level, we’re closing issues that have been on the backlog for a long time but haven’t gained traction. I think the current state of the protocol and intended uses cases have been explained. If we think we should change this then we need concrete proposal we should work on. Thank you for your time and understanding. If you disagree and feel that this issue is crucial: we’re happy to listen and to reconsider. |
I have some questions about this protocol and how is meant to be implementated.
The text was updated successfully, but these errors were encountered: