This package provides the following services:
This package consumes the following services:
Atom sbt client
This is an Atom plugin integrating sbt server with the Atom IDE interface.
It connects to a running sbt instance and communicates with it using Language Server Protocol. Atom sends event notifications to sbt (like didSave
), in response sbt recompiles the project and sends back information about warnings and errors which are displayed in Atom:
Installation
You can install it using Atom interface or by running this command:
apm install atom-sbt-client
On the first launch it will automatically install its dependencies if needed:
- language-scala for basic Scala syntax highlighting
- atom-ide-ui for the Atom IDE interface
Usage
- Go to a Scala project and launch sbt (
project/build.properties
should set sbt version to 1.1.0 or higher) - Open this project in Atom, open any Scala file and save it.
It should trigger compilation and if there are any errors, you should see them in the gutter and in the diagnostics panel.
Another feature is jump-to-definition, which works for some types in the project.
Note that despite the debug logging in the sbt shell, you can still use it directly. It's just a normal sbt shell which additionally communicates with Atom.
Related links
- sbt server support in other editors:
- atom-ide-scala is a similar plugin integrating Atom IDE UI with the metals language server