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

Compatibility with scala metals? #121

Closed
merisbahti opened this issue Dec 15, 2023 · 3 comments
Closed

Compatibility with scala metals? #121

merisbahti opened this issue Dec 15, 2023 · 3 comments

Comments

@merisbahti
Copy link

Hey, I see that scala metals can use a custom BSP-compatible server (https://scalameta.org/metals/blog/2020/11/06/sbt-BSP-support/)

Is it possible to use build-server-for-gradle with metals?

@jdneo
Copy link
Member

jdneo commented Dec 16, 2023

Maybe @Arthurm1 could answer this question.

@Arthurm1
Copy link
Contributor

@merisbahti Not yet
There is a Metals feature request here

The following needs to be done...

  1. Metals needs to support dependencyModules which I have a half-done PR for
  2. Some form of Add Scala support #113 needs to be merged
  3. Build-server-for-Gradle needs to be published to maven See Provide an easy way to create BSP Connection Details #115
  4. Metals needs to take advantage of 3). Which should be fairly trivial

This would get Metals working locally but with minimal functionality. The following would still be missing...

  1. Diagnostics. e.g. you'd see no compile errors or warnings. Gradle team seem to be actively working on a Problems API which would return diagnostics. Should be fairly trivial to tie into once they've completed it.
  2. Run tests, debug, run main class. I'm not sure where the line is drawn here between Metals and this project. I'm hoping this issue would mean that it would be fairly easy to add debug support to this project.

@merisbahti
Copy link
Author

Thanks for the response! That really answers my question, since we have a PR up already, we could close this issue.

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

3 participants