Metals

Metals

  • Docs
  • Blog
  • GitHub

›All Blog Posts

All Blog Posts

  • Metals v0.7.6 - Thorium
  • Metals v0.7.5 - Thorium
  • Metals v0.7.2 - Thorium
  • Metals v0.7.0 - Thorium
  • Metals v0.6.1 - Radium
  • Metals v0.5.1
  • Metals v0.5.0
  • Metals v0.4.4
  • Metals v0.4.0
  • Low-memory symbol indexing with bloom filters
  • Metals v0.3.2
  • Fast goto definition with low memory footprint
  • Metals v0.3 - Iron

Metals v0.3 - Iron

December 6, 2018

Ólafur Páll Geirsson

Ólafur Páll Geirsson

We are excited to announce the release of Metals v0.3, codename "Iron" 🎉 Metals is a language server for Scala.

TL;DR

  • simple installation
  • accurate diagnostics
  • goto definition
  • text editors: Visual Studio Code, Atom, Vim and Sublime Text
  • no completions

Check out the website and give Metals a try: https://scalameta.org/metals/

Simple installation

A useful IDE needs to understand your project's directory structure and library dependencies. Metals can now import sbt and Bloop builds with the following workflow

  • Open a directory in your editor
  • Click on a button to import the build
  • Wait for the build import step to complete, this may take a while
  • Enjoy IDE features 👌
  • When your build changes, Metals asks you to import again.

vscode-import-build

Accurate diagnostics

Once your build has been imported, Metals triggers compilation on file save and publishes compiler errors as red squiggles in your editor. By construction, this approach avoids the situation where users see different errors in their editor and the build tool.

accurate-diagnostics

Goto definition

Metals supports goto definition for project sources and Scala+Java library dependencies. Navigation works even when the open buffer contains syntax errors.

Navigation in Metals is fast and consumes little memory. For a case study project, Metals indexes 800k lines of Scala code per second and the resulting search index requires 25Mb RAM per million lines of code.

goto-definition

Text editors

Thanks to the Language Server Protocol, Metals works multiple text editors. The following editors have been validated to work with Metals and the installation steps have been documented on the Metals website.

  • Overview: https://scalameta.org/metals/docs/editors/overview.html
  • Visual Studio Code: https://scalameta.org/metals/docs/editors/vscode.html
  • Atom: https://scalameta.org/metals/docs/editors/atom.html
  • Vim: https://scalameta.org/metals/docs/editors/vim.html
  • Sublime Text: https://scalameta.org/metals/docs/editors/sublime.html
  • guide to integrate new editors: https://scalameta.org/metals/docs/editors/new-editor.html

Contributors

Big thanks to all the contributors who contributed to this release. In particular, I want to thank the following people:

  • Jorge Vicente Cantero (@jvican) for his great work in Bloop and helping out with unblocking a lot of Metals issues on the build side. Most the heavy lifting in "simple installation" is provided by Bloop.
  • Gabriele Petronella (@gabro) for his great work on the VS Code plugin and heroic code reviews of multiple large PRs (of which one that was +12,645 −1,126!!).
  • Alexey Alekhin (@laughedelic) for his great work on the Atom ide-scala package.
  • Eugene Burmako (@xeno-by) for close collaboration on Scalameta and SemanticDB that made the features in this release possible.
  • Justin Kaeser (@jastice) from Jetbrains for collaboration on the Build Server Protocol specification and bsp4j library.
$ git shortlog -sn --no-merges v0.1.0..v0.3.1
Ólafur Páll Geirsson
Gabriele Petronella
Corey O'Connor
Pavel Logvinov
Cody Allen
Recent Posts
  • TL;DR
  • Simple installation
  • Accurate diagnostics
  • Goto definition
  • Text editors
  • Contributors
Metals
Overview
Text EditorsBuild ToolsProject GoalsContributing
Editors
Visual Studio CodeAtomVimSublime TextEmacsEclipse
Social
Copyright © 2019 Metals