scalameta / metals-eclipse

Eclipse Scala LSP plugin for Metals (WIP)
Apache License 2.0
22 stars 6 forks source link

getting started guide for eclipse metals is highly desired #19

Open normana400 opened 2 years ago

normana400 commented 2 years ago

I'm coming from a background from eclipse-IDE. I've used it for all my Scala development since 2015. I've been trying out the current Eclipse-metals scala and can't get past the install!

There needs to be a deeper guide to install this thing that work from the perspective of "how do I get this installed and can create my first project and see it compiling scala code and execute a HelloWorld.scala type of class". I suspect the metals integration might require a bit of description since the separate server running seems to make this a very different integration than the legacy scala-ide.


my current progress with the install is that I can create or import existing scala projects into eclipse as java projects. There appears to be no recognition by eclipse that the project is scala related (other than an occasional prompt that an sbt file is detected and that I see some bloop and metals sbt entries.

I believe there is supposed to be a server launching, but there is no indication that is happening.

normana400 commented 2 years ago

perhaps I can be a guinea pig for putting this documentation together. let me know how I can help out

tgodzik commented 2 years ago

Thanks for reporting! It seems that the plugin stopped working with some newer eclipse versions and wasn't successful trying to fix it recently and I am afraid I will not have time to work on it any time soon.

Unless, there is anyone interested in maintaining or at least helping out with the eclipse plugin, I am afraid we might need to deprecate the plugin soon. I was holding off on it too long.

I suggest using one of the other supported plugins such as Visual Studio Code, Vim, Emacs or Sublime, which work much better and have active contributors. Alternatively, you can also try out Intellij Idea, which also works great, but it doesn't use Metals and LSP

mundacho commented 2 years ago

Hello, @tgodzik and @normana400 . I didn't have time to update the plugin for a long time. There is a possibility that I'll have time from December on. So, if you don't mind @tgodzik please wait until January to deprecate it. If I don't update it in December, it's not probable that I'll be able to update it later.

mundacho commented 2 years ago

I have a version working on Eclipse 2021-03 which I use for my personal development, but I've never pushed it. If you're interested @normana400 , I can commit it and you can review the commit and ask me questions.

tgodzik commented 2 years ago

@mundacho I also worked on fixing up the CI a bit (since we had to disable Travis), my current progress is here https://github.com/tgodzik/metals-eclipse/tree/update-plugin

mundacho commented 2 years ago

@normana400 Concerning the integration with Java, it's a bit tricky. The idea of LSP supporting editors is to have more like an "editor" and not an IDE. So, you can have a project with eclipse metals (a general project in eclipse) and I'll see java and even jump to it, but there is no "integration" of a Java project with some scala code, like the old Scala Eclipse IDE. To do that we'd need to implement the BSP.

mundacho commented 2 years ago

@mundacho I also worked on fixing up the CI a bit (since we had to disable Travis), my current progress is here https://github.com/tgodzik/metals-eclipse/tree/update-plugin

I'll take a look at that, thank you. Hopefully I'll be able to restart this work on December