ensime-controller-js

1.4.0 • Public • Published

Ensime Controller JS

NPM module that controls the ENSIME server. ENSIME is a cross editor platform for the scala programming language.

API

Constructor

  • new Controller(dotEnsime, ensimeInstallDir, options);

The following methods are available:

  • update(output, callback): (Re)download the newest version of ensime.
  • connect(output, callback): Start ENSIME and connect to it. It will cleanup already running but unmanaged instances of ensime.
  • attach(callback): Try to attach to a currently running ENSIME.
  • status(callback): Request the current status. Fails if not running, else returns a ConnectionInfo.
  • send(req, callback): Send an rpc request to ENSIME.
  • stop(callback): Disconnect and stop ensime.

Parameters:

  • req: Request to ensime (an RpcRequestEnvelope)
  • output: {out: Stream, err: Stream} => Streams that capture the sysout/syserr of the started process (ensime resp. the installer).
  • callback: function(err, result)

Readme

Keywords

Package Sidebar

Install

npm i ensime-controller-js

Weekly Downloads

1

Version

1.4.0

License

Apache-2.0

Last publish

Collaborators

  • msiegenthaler