-
Hi all, I currently experiment with GLSP. For this purpose, I managed to get the worfklow example (external server) running from https://github.com/eclipse-glsp/glsp-vscode-integration. Furthermore, I tried to adapt this example with my own language and got stuck on the maybe last step of the server initialization. General setup:
For the running workflow example, I get two interesting debug/info log messages on the server side:
For my own example however, only the first message '[...] Starting GLSP server for client [...]' gets logged---but not the second one. That means to me, the server does not get the 'initializeClientSession' message due to some reason. Debugging on client side (I'm not very firm with TS/JS right now) seems to show the same behavior as for the workflow example, i.e., initializeGLSPClient() in GlspDiagramEditorContext is successfully executed and a message seems to be sent to the server. However on the server side, process(ActionMessage) in DefaultGLSPServer gets not called at all. Are there any ideas what I might have missed to bind or to configure? Amongst other things, I am very unsure about all the IDs on the client side and how much they influence the communication with the server. For example, I did not found anything on server side matching the client ID settings PORT_ARG_KEY = 'WF_GLSP', readonly id = 'glsp.workflow', extensionPrefix = 'workflow' (all part of workflow-glsp-diagram-editor-context.ts), and 'viewType': 'workflow.glspDiagram' (tsconfig.json), thus, I just adapted these ones by a pure guess (diagramType matches). The server side looks quite good from my point of view, but who knows. Is the client side even from the right Github repo? In the last post from Rob someone pointed to https://github.com/eclipse-glsp/glsp-client, where the workflow example looks very different. Best, original thread by Joerg Holtmann |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, your general setup looks fine to me.
Let me try to clarify some of the IDs and their usage.
The glsp-client repository contains the workflow example 'core' (https://github.com/eclipse-glsp/glsp-client/tree/master/examples/workflow-glsp) (i.e. sprotty/glsp configuration and bindings). Typically you also need to write some glue code to integrate this core package into the surrounding application (e.g. Theia, VSCode or Eclipse). In the glsp-client repository we provide a sample integration (https://github.com/eclipse-glsp/glsp-client/tree/master/examples/workflow-standalone) using plain html and js. |
Beta Was this translation helpful? Give feedback.
-
[Joerg Holtmann] Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
your general setup looks fine to me.
Let me try to clarify some of the IDs and their usage.
PORT_ARG_KEY: You can ignore this,…