Skip to content

laughedelic/atom-sbt-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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