atom-sbt-client

sbt server support for Atom IDE

Alexey Alekhin

1,023

0

0.2.0

MPL-2.0

GitHub

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:

Usage

  1. Go to a Scala project and launch sbt (project/build.properties should set sbt version to 1.1.0 or higher)
  2. 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