Coder Social home page Coder Social logo

ensime-src's Introduction

ENSIME

the ENhanced Scala Interaction Mode for Emacs

Help wanted!

Please help developing this project. You'll find hacking instructions at the end of the document. Also QA help is of high value so please go to the project's Code Triage page and start commenting on issues.

Links

Features

  • Highlight errors and warnings in your code buffers, as you type.
  • Inspect the type of any expression.
  • Browse packages
  • Completion for variables, methods, constructors, etc.
  • Incrementally search through classpath symbols
  • Find all references to a symbol
  • Jump to symbol definitions, including inside source jars
  • Semantic Highlighting
  • Automated Refactorings (rename, organize imports, extract method)
  • Source Formatting
  • AST-based selection
  • Supports sbt 12,13
  • Embedded sbt shell
  • REPL featuring stack trace highlighting with links to source code
  • Debug support

Demo Videos (some are very out of date!)

System Requirements

  • Emacs 22 or later.
  • Linux, Mac OSX, Windows
  • Java Runtime
  • A Scala 2.9.x, 2.10.x, and 2.11.x (comming soon) project

Documentation

Getting Started

1) Install scala-mode2

Although it's not required, ENSIME is designed to compliment an existing scala major mode. scala-mode2 is an excellent scala mode, and can be found at https://github.com/hvesalai/scala-mode2

2) Install the ENSIME Server

Download the ENSIME distribution from the releases page. Unpack the ENSIME distribution into a directory of your choosing.

Add the following lines to your .emacs file:

;; load the ensime lisp code...
(add-to-list 'load-path "ENSIME_ROOT/src/main/elisp/")
(require 'ensime)

;; This step causes the ensime-mode to be started whenever
;; scala-mode is started for a buffer. You may have to customize this step
;; if you're not using the standard scala mode.
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)

3) If you are using sbt, install the ENSIME Sbt Plugin (otherwise, see the manual)

Add the following lines to your project/plugins.sbt file:

addSbtPlugin("org.ensime" % "ensime-sbt-cmd" % "VERSION")

Replace VERSION with the latest version of the plugin, available on the plugin page. Then, from an sbt shell, generate your ENSIME project:

ensime generate

Note: Currently, it may be necessary to first delete your project/target directories before running 'ensime generate'.

You should now have a .ensime file in the root of your project. There's no need to edit this file manually as you can now specify ENSIME settings directly from your sbt build file. Check the manual for details.

4) Start ENSIME

From inside Emacs, execute M-x ensime

Developer Quick Start

Note: This section is for people who want to hack on ENSIME itself.

After cloning, and before you can run ENSIME, you must create the distribution directory structure. The sbt task 'stage' will create the directory 'dist' underneath the root clone directory. Then, follow the install instructions in section 2.2 above, substituting CLONE_DIR/dist as the root of your ENSIME distribution.

The work-flow I use when hacking ENSIME:

  • Edit source files
  • 'sbt stage'
  • Stop existing ENSIME server by killing inferior-ensime-server buffer
  • Restart ENSIME with M-x ensime

ensime-src's People

Contributors

aemoncannon avatar xeno-by avatar rajish avatar gneuvill avatar tototoshi avatar jfager avatar fabianpage avatar djspiewak avatar fanatoly avatar mdr avatar peluko avatar fgeller avatar marcweber avatar tbje avatar betehess avatar bakotaco avatar kirindave avatar non avatar akshaal avatar habib avatar hubertp avatar hgiddens avatar mechkg avatar jackcviers avatar markschaake avatar stew avatar snapcracklepopgone avatar fommil avatar wspringer avatar pashky avatar

Watchers

James Cloos avatar Sebastian Tabares Amaya 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.