Eclipse
Metals works with Eclipse thanks to the
metals-eclipse
plugin.
Notice Eclipse integration is still under development and might lack some of the features
Requirements
Java 8 or 11 provided by OpenJDK or Oracle. Eclipse OpenJ9 is not
supported, please make sure the JAVA_HOME
environment variable
points to a valid Java 8 or 11 installation.
macOS, Linux or Windows. Metals is developed on macOS and every PR is tested on Ubuntu+Windows.
Scala 2.13, 2.12 and 2.11. Metals supports these Scala versions 2.13.0, 2.13.1, 2.12.8, 2.12.9, 2.12.10, 2.12.7 and 2.11.12. Note that 2.11.x support is deprecated and it will be removed in future releases. It's recommended to upgrade to Scala 2.12 or Scala 2.13
Installing the plugin
In you eclipse installation go to install new software and point the repository to:
http://scalameta.org/metals-eclipse/update/
Running commands
All commands including Import build
can be run currently via browser interface under http://127.0.0.1:5031/
. We recommend having it open to import the build that is required for Metals to work properly.
.metals/
and .bloop/
Gitignore The Metals server places logs and other files in the .metals/
directory. The
Bloop compile server places logs and compilation artifacts in the .bloop
directory. It's recommended to ignore these directories from version control
systems like git.
# ~/.gitignore
.metals/
.bloop/