-
Hi, I have the following project structure:
The server works fine, and also I can build my client component with The problem now is the glsp-theia integration. I took the glsp-theia-integration project as a template. But this template refers again to the official dependency of the glsp-workflow example
Of course I can not use this in my own project. But changing this dependency to my own project also don't work
because yarn complains that the dependency First I tried with linking packages which ended up in a total mess. after some hours I tried to add the following dependency into the parent package.json "dependencies": { But this leads still to warnings like this one:
I know that this is a yarn problem, but as a Jakarta EE Developer I have not the experience to figure out the correct project structure for the GLSP concept of Sever/Client/Theia-Integration. Can someone help me out of this yarn hell? I need an example how the glsp-theia-integration has to be used in case you don't want to test the glsp-workflow example only ;-) My project can be seen on Github : https://github.com/imixs/imixs-bpmn.glsp |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @rsoika, First and foremost I recommend to checkout the minimal example of the glsp-examples repository. It basically outlines the minimal configuration needed to fully integrate GLSP in a Theia application and you could use the project structure as a reference template. In the GLSP project we use a combination of lerna and the yarn workspaces feature to manage and link multiple local packages in a so called monorepository. If everything is setup correctly there should be no need for manual linking. I had a quick look at your source code and the problem with your current project structure is that the To solve this issue you have to combine all packages in one lerna repository (directory).
So the final project structure should look like this:
Then add Note: There is currently an issue with the version range of Theia dependencies in
{
...
"resolutions": {
"**/@theia/core": "1.20.0",
"**/@theia/editor": "1.20.0",
"**/@theia/filesystem": "1.20.0",
"**/@theia/markers": "1.20.0",
"**/@theia/messages": "1.20.0",
"**/@theia/monaco": "1.20.0",
"**/@theia/navigator": "1.20.0",
"**/@theia/outline-view": "1.20.0",
"**/@theia/preferences": "1.20.0",
"**/@theia/process": "1.20.0",
"**/@theia/terminal": "1.20.0",
"**/@theia/variable-resolver": "1.20.0",
"**/@theia/userstorage": "1.20.0",
"**/@theia/workspace": "1.20.0",
"**/@theia/cli": "1.20.0",
"**/inversify": "5.1.1"
}
} |
Beta Was this translation helpful? Give feedback.
-
I checked the updated glsp-examples from the master tree. Both examples (minimal and worklfow) work of course - thanks for the update. I try to start again from scratch with the minimal example .......................... |
Beta Was this translation helpful? Give feedback.
-
Finally I succeeded to setup a minimal project setup with all my own namespaces and directory structure ! The whole procedure took several hours, but now I am experienced working with yarn ;-) (Renaming packets and folders isn't something yarn takes lightly... this was a steep learning curve) |
Beta Was this translation helpful? Give feedback.
Hi @rsoika,
as a Java Developer without any previous experience with yarn/lerna repositories setting up everything correctly can be a bit tricky. Don't worry we have all been there once 😉. I will try to give you some feedback and pointers to help you get started.
First and foremost I recommend to checkout the minimal example of the glsp-examples repository. It basically outlines the minimal configuration needed to fully integrate GLSP in a Theia application and you could use the project structure as a reference template.
The master branch is still based on GLSP 0.8.0 but we are currently in the process of updating the example repository. It should be ready to merge soon, in the meantime y…