Replies: 1 comment
-
Yes that's correct. In the coffee editor example I had a quick look at your code and everything looks fine to me. I think you are receiving this error because you are importing |
Beta Was this translation helpful? Give feedback.
-
I want to setup the backend launcher, so that the glsp-server is started, when the browser-app is started. For this I followed the implementation in the coffe-editor in project (coffee-server)[https://github.com/eclipsesource/coffee-editor/blob/master/web/coffee-serve].
The (backend-module.ts) [https://github.com/eclipsesource/coffee-editor/blob/master/web/coffee-server/src/node/backend-module.ts] describes two different LaunchOptions (LaunchOptions and GLSPLaunchOption) I understood, that for starting the ecore-glsp-server, I do only need the GLSPLaunchOptions (with a different path to the jar of course) - is that correct?
Following this I removed also the rebinding for the LaunchOption in the constructor (the If-statement in line 24-28).
I wired up the projects correctly and the backend is started correctly. But on the log-output I see an error, that the LaunchOption is undefined:
Though this seems not to be an issue regarding functionality, I wondered why the LaunchOption is undefined. When I looked into modelserver-api.js I saw, that the LaunchOptions are initialized with default values, when they are not explicitly rebound.
Thus, I am wondering if it is necessary to register the GLSPLaunchOption as LaunchOption aswell?
Or is there a misconception on my site regarding which LaunchOptions I need?
The current setup can be inspected (here)[https://github.com/jonny3576/ecore-glsp/tree/docker/client/theia-glsp-server/src/node]
original thread by Jonas Ebel
Beta Was this translation helpful? Give feedback.
All reactions