Questions tagged [ensime]

Ensime is the ENhanced Scala Interaction Mode for Emacs. It provides a new mode for the well-known editor Emacs, enabling a number of new capabilities when editing Scala source code.

Although often used with Emacs, Ensime is actually able to be coupled with other source code editors, notably Sublime Text 2, allowing advanced Scala editing in those editors as well.

The project can be found at the Ensime github page

The Sublime integration effort can be found at it's own project page

74 questions
80
votes
4 answers

Package listed in MELPA, but not found in package install

I am currently trying to install ENSIME for emacs 24.3.1 following the instructions at https://github.com/ensime/ensime-emacs under the quick start; I've added (require 'package) (add-to-list 'package-archives '("melpa" .…
user2187656
  • 935
  • 1
  • 7
  • 8
16
votes
1 answer

how to auto-reload changed scala classes into SBT REPL

I am new to Scala and to using emacs + ensime + sbt setup for my Scala development. This setup is quite nice and light, but there is one thing which drives me nuts - inability to auto-compile / reload changes into Scala console started from sbt. I…
Roman Shestakov
  • 497
  • 5
  • 16
11
votes
1 answer

Executing sbt run in current project with ensime emacs

I have a Scala project called scala-playground and I generated the configuration for Ensime with sbt ensimeConfig and sbt ensimeConfigProject. When running M-x ensime from a buffer of the project, I can see in the Emacs statusbar that Ensime is…
z1naOK9nu8iY5A
  • 903
  • 7
  • 22
10
votes
1 answer

How can I make ensime show all compilation errors?

I'm doing Scala web development using the Play framework's scala module, and using Emacs+Ensime to edit the code. Sometimes even when Ensime shows no errors, Play will still show a compilation error for a .scala file (like a type parameter mistake,…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
10
votes
1 answer

ensimeConfig creates directories java and scala-2.11, which I don't need

When I run ensimeConfig, it creates directories such as src/main/java src/main/scala-2.11 which I don't need, since I have my sources always inside src/main/scala How can I avoid such behaviour? NOTE: This is the version I'm…
Richard Gomes
  • 5,675
  • 2
  • 44
  • 50
10
votes
1 answer

Connect emacs to a remote ensime server

How can I connect to an ensime server on a remote host? My netbook is a bit slow for that kind of stuff. I copied the data over and use tramp to edit the files remotely. I ran bin/server to create the server and an ssh forwarding to be able to…
Reactormonk
  • 21,472
  • 14
  • 74
  • 123
9
votes
0 answers

Scala and Java mix in visual studio code

I have been using IntelliJ IDEA for a predominantly maven based Java project that has some Scala code as well. The pom.xml uses scala-maven-plugin with scala-compile-first working well. I tried porting this project to Visual Studio code and found…
JWS
  • 158
  • 1
  • 8
7
votes
1 answer

How to get auto-complete in Scala REPL launched from ensime?

I can get auto-complete in an Ensime buffer containing Scala code but not in the Scala REPL launched from ensime. I wish to have auto-complete work in the Scala REPL launched from ensime. How can I fix this? I am using the following: Scala…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
7
votes
1 answer

Auto-refresh ENSIME error buffer

Is there a way I can make ENSIME errors buffer (the one invoked with C-c C-v e) to automatically refresh whenever I save my Scala source file?
pkazmierczak
  • 853
  • 2
  • 11
  • 13
6
votes
3 answers

Emacs project management for Scala

I would like to ask if any of you have any experience {and,or} could point me to a project management extension for Emacs that works well with {Scala,Ensime,SBT}. It would also be amazing if it didn't require too much hacking. I did some scheme in…
Arg
  • 1,926
  • 21
  • 32
6
votes
1 answer

Using Ensime + SBT to browse scala library

Is it possible to use Ensime and SBT to go to the definition of Scala library classes? I know it is possible to see the definition of elements (using M-. or Control+Left-Click) and from there it's possible to see the doc page. Is there any way to…
Eugene Cheipesh
  • 373
  • 1
  • 9
5
votes
1 answer

Dependencies with ensime using type sbt

got the following in my build.sbt: name := "Ledger Accounting" libraryDependencies += "junit" % "junit" % "4.8" % "test" libraryDependencies += "org.scalatest" % "scalatest" % "1.3" % "test" This in my .ensime, same directory: :use-sbt…
Ben Fitzgerald
  • 793
  • 1
  • 6
  • 19
4
votes
5 answers

java.io.IOException when running sbt from ensime?

I have tried ensime/sbt on mac os. First, I open the .scala file in project folder create from using sbt in command-line, then I ran ensime and it still work fine, but whenever I run ensime-sbt (c-c c-v s), I got java.io.IOException: No such file or…
Tg.
  • 5,608
  • 7
  • 39
  • 52
4
votes
1 answer

ensime scala errors (class scala.Array not found, object scala not found)

I've installed ensime according to the README.md file, however, I get errors in the inferior-ensime-server buffer with the following: INFO: Fatal Error: scala.tools.nsc.MissingRequirementError: object scala not…
Jeff Bowman
  • 215
  • 2
  • 11
4
votes
0 answers

Adding/using parameter completion support for Ensime

When using Ensime (specificially in Emacs for me, although I suspect this question applies to other Ensime integrations), I often miss the support provided by IntelliJ for parameter completion - that is, when entering a methods parameters, you can…
Michael Nash
  • 103
  • 4
1
2 3 4 5