Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Step 0 Does Not Work #13

Open
dynamic-modeller opened this issue May 29, 2021 · 8 comments
Open

Step 0 Does Not Work #13

dynamic-modeller opened this issue May 29, 2021 · 8 comments

Comments

@dynamic-modeller
Copy link

Hi,

I just tried to run your tutorial, unfortunately it does not work as the yarn install failed
image

@msujew
Copy link
Member

msujew commented May 29, 2021

Hi @causalmodeller,

for some reason Gitpod is using node v12.16.1 (instead of v10.24.1 like it should via the .gitpod.dockerfile). The reason the build is failing is because each Theia version uses a specific node version. For now, you can execute nvm install 10 before running yarn to switch to the correct version.

@dynamic-modeller
Copy link
Author

dynamic-modeller commented May 30, 2021 via email

@msujew
Copy link
Member

msujew commented May 30, 2021

Thanks for elaborating on your use case, that makes it a lot easier to point you in the right direction.

The theia-xtext-sprotty-example is a bit outdated and maybe even misleading. Since version 1.5 Theia offers no LSP support for Theia extensions anymore. LSP clients (like DSLs implemented via Xtext) should be connected to Theia by implementing them in a vscode extension and installing that into Theia. You can read more on that here. An example repo for that is linked in the blog post.

Maybe even building a vscode extension is enough for your use case? While building your own Theia application with custom extensions has its merits, it comes with a lot of overhead in regards to maintenance, deployment and so on. We usually recommend to just use vscode extensions where possible. Also, documentation/help for vscode extensions in general is way easier to come by than for Theia.

@dynamic-modeller
Copy link
Author

dynamic-modeller commented May 30, 2021 via email

@msujew
Copy link
Member

msujew commented May 30, 2021

I'm glad that I can be of help.

Well, for using that vscode extension for open source projects on the web, you can always configure the repository so that it loads with your extension in Gitpod (which gives you 50 free hours per month for open source projects). Nevertheless, I understand the requirement to have a dedicated website/webapp.

Good luck with your endeavour. Don't hesitate to ping me.

@dynamic-modeller
Copy link
Author

dynamic-modeller commented May 31, 2021

Hi Mark,

I have followed your instructions and got the worskpace up, but am unable to open the two terminals as instructed. If I try the F1 command in the original gitpod window it does not have the open new terminal command. If I use the command on the newly opened workspace, then i can get two new terminals, but the change directory command does not work.
image

There are also problems that are listed, although i can see the json files perfectly
image

@dynamic-modeller
Copy link
Author

dynamic-modeller commented May 31, 2021 via email

@dynamic-modeller
Copy link
Author

dynamic-modeller commented May 31, 2021

SUGGESTION: Why Not Integrate this Tutorial with the existing Theia documentation/Tutorial?????? It works already, even on Windows 10 https://theia-ide.org/

Question, why are all the Eclipse tutorials so fragmented? Answer, because there is no consolidation.

There is an existing set of documentation/tutorials for Theia that work (I managed to get Theia up in a browser on Windows)

If only:

  1. You updated your JSON forms tutorial to work with this existing Theia docs2.
  2. Someone did a Sprotty tutorial to work with these examples, using GLSP
  3. One of the Xtext tutorials was updated to work with these tutorials
  4. An EMF Model Server tutorial was setup to work with the same

Its all very well to have this great open source technology, but currently it is so hard for new, external users to learn how to use the capability, it might as well not be open source. Depressed!!

Seriously, it would be approximately a week of work for someone who knew what they were doing to convert the existing tutorials

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

No branches or pull requests

2 participants