Skip to content
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

Add plugin support for Eclipse Che (Online IDE) #46

Open
soronpo opened this issue Sep 9, 2019 · 8 comments
Open

Add plugin support for Eclipse Che (Online IDE) #46

soronpo opened this issue Sep 9, 2019 · 8 comments

Comments

@soronpo
Copy link

soronpo commented Sep 9, 2019

Is your feature request related to a problem? Please describe.
I want beginners to be able to start using Scala as easy as possible.

Describe the solution you'd like
Online IDEs (web-embedded) make it possible to have a ready environment for new users. The zero-install overhead is quite beneficial. Eclipse Che is such a cloud IDE and also supports LSP. Supposedly it has similar API to Eclipse, so it may be easy to port the existing Metals plugin to support Che.

Describe alternatives you've considered
Perhaps https://code.visualstudio.com/docs/remote/remote-overview

Additional context
https://www.eclipse.org/che/technology/

Search terms:
Eclipse Che

@tgodzik
Copy link
Contributor

tgodzik commented Oct 22, 2019

@soronpo I managed to get the Metals plugin working in Eclipse Theia in GitPod via: https://gitpod.io/#https://github.com/tgodzik/metals-sample

This should also work in Eclipse Che since it can run Theia as an IDE. I asked around on EclipseCon and it should be possible to create either a separate Che registry that we publish the plugin to, or to create a PR to the existing registry.

Either way, it should be pretty easy to do. If anyone's interested in looking into that it shouldn't take too much time.

@soronpo
Copy link
Author

soronpo commented Oct 22, 2019

Interesting. I've also tried Theia a few weeks ago with the Visual Studio Code plugin, but without success. I tried now using the workspace you provided, but it doesn't seem to compile anything.

@tgodzik
Copy link
Contributor

tgodzik commented Oct 22, 2019

Interesting. I've also tried Theia a few weeks ago with the Visual Studio Code plugin, but without success. I tried now using the workspace you provided, but it doesn't seem to compile anything.

Did the build import message pop up? Is there anything in metals.log file? It did work pretty well each time I opened a project.

@soronpo
Copy link
Author

soronpo commented Oct 22, 2019

I removed the .metals folder and reimported the sbt. It works now. This has great potential!
If we manage to have a stable working workspace on scala-lang it would greatly enhance the beginner user experience.

@soronpo
Copy link
Author

soronpo commented Oct 22, 2019

Did you need to change anything in the plugin to make this work?

@tgodzik
Copy link
Contributor

tgodzik commented Oct 22, 2019

Did you need to change anything in the plugin to make this work?

Nothing at all, just added the .gitpod.yml configuration to have a proper JDK and plugins already installed:

image: openjdk:8
vscode:
  extensions:
    - scala-lang.scala@0.3.8:wQBBM+lKILHBqOqlqW60xA==
    - scalameta.metals@1.6.0:Yi5jjDJjIyozrOuZIWFt/g==

@soronpo
Copy link
Author

soronpo commented Oct 22, 2019

This should also work in Eclipse Che since it can run Theia as an IDE. I asked around on EclipseCon and it should be possible to create either a separate Che registry that we publish the plugin to, or to create a PR to the existing registry.

Either way, it should be pretty easy to do. If anyone's interested in looking into that it shouldn't take too much time.

We might be able to put some hours on this. I'm working on a collaborative project that utilizes Che and one of the groups developed a custom plugin for it. So they may have the know-how to make metals work on Che.

@tgodzik
Copy link
Contributor

tgodzik commented Oct 28, 2019

@soronpo It would be awesome if you could take a look into this. I don't have much time currently, but let me know if you need any help!

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

No branches or pull requests

2 participants