extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Scala

Open mhzajac opened this issue 2 years ago • 10 comments

It would be nice to support Scala language syntax. Metals is a Scala language server that is currently well-maintained.

mhzajac avatar Jul 14 '22 15:07 mhzajac

The Scala tree-sitter repo recently got some love as well: https://github.com/tree-sitter/tree-sitter-scala

zetashift avatar Jan 03 '23 21:01 zetashift

I actually just came here to also request this and was happy to see this was here. I'm not super familiar with the process of getting language support added, but I'm a maintainer both of Metals and of tree-sitter-scala. Is there anything that we can do on our end to make this integration easier on the Zed side?

ckipp01 avatar Aug 11 '23 13:08 ckipp01

@ckipp01, at the moment, nothing can be done on the community's end, however we did start the initial work to become languate extensible. Phase 1 is for us to allow for language server extensibility, so users can start making packages to bring in different language servers into Zed for languages we already support. Phase 2 will be to all about adding support for custom grammer plugins. We are working on phase 1 now! If you want to keep up with it all, Julia has been writing about her progress in this work in the This Week in Zed weekly blog posts:

  • https://zed.dev/blog

JosephTLyons avatar Aug 12 '23 09:08 JosephTLyons

@JosephTLyons any updates ?

rikr2sanchez avatar Jan 29 '24 23:01 rikr2sanchez

I actually just came here to also request this and was happy to see this was here. I'm not super familiar with the process of getting language support added, but I'm a maintainer both of Metals and of tree-sitter-scala. Is there anything that we can do on our end to make this integration easier on the Zed side?

Hey, zed is now open source, so you can add support for Scala. Would be great to see it

WeetHet avatar Feb 03 '24 16:02 WeetHet

@WeetHet Would be lovely to see support of Scala with Metals, it's the only thing preventing me to use Zed! Please!

Dieman89 avatar Feb 10 '24 09:02 Dieman89

Just FYI, after this PR is done, Metals will be possible: https://github.com/zed-industries/zed/pull/7662

mprihoda avatar Feb 11 '24 08:02 mprihoda

given the pr is merged, is there a time update?

alexthe2 avatar Mar 06 '24 12:03 alexthe2

given the pr is merged, is there a time update?

Right now the work is being done to allow this to be an extension (see crates/extension_api in the main repo)

WeetHet avatar Mar 06 '24 12:03 WeetHet

The Scala extension has been published and can be downloaded from within Zed:

image

https://github.com/zed-industries/zed/pull/7933#issuecomment-2025730788

You can find the code under the scalameta/metals-zed repo.

dabrowski-adam avatar Apr 15 '24 13:04 dabrowski-adam

Closing this out, as we now have a Scala extension.

maxdeviant avatar Jul 01 '24 14:07 maxdeviant