scalaemacsensime

Emacs, ENSIME and SBT


I'm running Emacs + ENSIME and using sbt in an emacs window (M-x term) to compile and run tests. Is there any way to click/select to jump to the failing tests? At the moment I have to scroll up a long way to find what failed, then open the right file and go to the line number. Seems likely there is an easier way.

(Long term eclipse user trying to convert to emacs for Scala)


Solution

  • You needn't install sbt.el: this functionality is built into ensime. Instead of running sbt in a shell, use

    M-x ensime-sbt
    

    This will find the project for the source file you are in and turn on the detection of error-messages automatically.