Giter Site home page Giter Site logo

andresilva / ensime-sbt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindosoft/ensime-sbt-cmd

0.0 2.0 0.0 210 KB

Generates .ensime config files for SBT projects

Home Page: http://github.com/ensime/ensime-server

License: Other

Scala 100.00%

ensime-sbt's Introduction

Bountysource Build Status

ENSIME SBT

This sbt plugin generates a .ensime file for use with an ENSIME server.

The ENSIME ecosystem is actively developed and always looking for new contributors. This is a fairly small and easy to understand plugin, so please consider sending us a Pull Request if you have any feature request ideas.

Installation

ENSIME is effectively using a rolling release strategy until version 1.0. The latest plugin is available by adding the following to your ~/.sbt/0.13/plugins/plugins.sbt:

Ensime is now an AutoPlugin, which requires SBT 0.13.5+. A backport exists only for sbt 0.12.x.

resolvers += Resolver.sonatypeRepo("snapshots")

addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5-SNAPSHOT")

We recommend installing the plugin in ~/.sbt as opposed to project/plugins.sbt because the decision to use ENSIME is per-user, rather than per-project.

BUG IN SBT: see sbt/sbt#1592 if you get any problems about error: value enablePlugins is not a member of sbt.Project.

If you want to customise the output, create a file project/ensime.sbt which is ignored by SCM (or use ~/.sbt/0.13/ensime.sbt), and customise like so:

import org.ensime.Imports._

EnsimeKeys.compilerArgs in Compile := (scalacOptions in Compile).value ++ Seq("-Ywarn-dead-code", "-Ywarn-shadowing")

// custom settings (this is an example of adding scalariform formatting preferences):
EnsimeKeys.additionalSExp in Compile := (additionalSExp in Compile) := ":custom-key custom-value"

For the 0.12.x branch, these files must go into the relevant ~/.sbt/0.12.x and the ensime.sbt must start with

import EnsimePlugin._
import EnsimeKeys._

instead of import org.ensime.Imports._

Usage

Type sbt gen-ensime or, from the sbt prompt:

> gen-ensime

Downloading and resolving the sources and javadocs can take some time on first use.

Developers / Workarounds

Fork and clone this repository, (optionally: add awesomeness), and then:

> sbt publishLocal

(sbt publish-local for the 0.12 branch)

ensime-sbt's People

Contributors

aemoncannon avatar betehess avatar fommil avatar jilen avatar marcsaegesser avatar markschaake avatar mindosoft avatar rajish avatar rorygraves avatar timcharper avatar vladureche avatar xeno-by avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.