Metals is a work-in-progress language server for Scala that supports a diverse number of text
editors such as Visual Studio Code,
vim, Sublime Text and Atom.
|Metals||✅||✅||❌ use the CLI||❌ use the CLI|
At the moment, the BSP integration only supports build import and compilation (with compiler diagnostics integrated in the editor). This functionality is enough to provide a fluent developer experience. Support for test is planned.
- At least Bloop v1.1.0
- A build with at least one project in it
- You use a build tool supported by Bloop
Install and use Metals
To learn how to install and use Metals in your preferred text editor , head to the Metals documentation.
Configure bloop for metals
This configuration is automatically set by Metals.
Metals requires the Download dependencies sources option enabled in your build for navigation in external dependencies to work, which is enabled by Metals automatically.
The Sbt page explains how to configure the build export step but requires you to add manually bloop's plugin in your build. If you're using Metals, you will need to:
- Head to the installation guide.
- Skip the global installation step (click on 'Universal').
- Select your build tool and add bloop to your build.
- Follow the build customization you want.
Next time you export with Metals, Metals will respect the configuration in your build.