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
3
votes
1 answer

Emacs Ensime-sbt not responding to enter after I try to use RUN command

I am using emacs to program in scala, now I installed ensime to be able to run SBT directly from emacs. I use C-c-C-v-s to launch a buffer for ensime-sbt. but when I type the run and hit enter nothing happens, how to make sbt run run ? It's working…
Cristiano Fontes
  • 4,920
  • 6
  • 43
  • 76
3
votes
1 answer

Ensime + sbt: "Android SDK not found"

I'm trying to use Ensime to work with adnroid project generated with g8 (https://github.com/philcali/android-plugin). Followed this question I added the android.jar to my .ensime file. Here is it: (:project-package "org.test" :use-sbt…
bme
  • 516
  • 5
  • 13
3
votes
0 answers

Ensime debug with jdb not loading project classes

I'm using Ensime for an sbt project. When I run ensime-db-start in a unit test under src/test/scala/.../Myclass.scala I cannot set a breakpoint and then I immediately get a ClassNotFoundException: VM Started: Exception occurred:…
Ben Fitzgerald
  • 793
  • 1
  • 6
  • 19
3
votes
1 answer

Ensime Vim .ensime file not found

I'm trying to get Ensime for Vim working, I compiled the project for ensime using sbt 'update' then 'dist', and compiled the c file, but when i try starting ensime in Vim with :Ensime it prints out this error pid : 8492, bufnr : 2 no .ensime file…
Zen
  • 847
  • 1
  • 10
  • 10
3
votes
1 answer

Using Scala inside sublime text 3 with ensime

I am facing this weird issue on Windows7 with ensime on sublime. When doing the ensime startup I encounter the following exception : I tried to run sublime as an administrator but it did not help Anyone with a good idea ? [Ensime] 2016-07-29…
Ronan Quillevere
  • 3,699
  • 1
  • 29
  • 44
3
votes
1 answer

Do I need to generate the .ensime directory when adding a dependency to an sbt project?

Do I need to generate the .ensime directory again with sbt gen-ensime when adding a new dependency to an sbt project?
Michiel Borkent
  • 34,228
  • 15
  • 86
  • 149
3
votes
3 answers

How to make ensime work in windows?

I'm new to emacs and I want to use ensime in Windows. I had a try but it doesn't work. It seems that it doesn't work because there is a *nix format file named "\ensime\bin\server.sh" . Very appreciate if someone give me some tips. EDIT: I follow…
Eastsun
  • 18,526
  • 6
  • 57
  • 81
3
votes
3 answers

'ensime generate' is not a valid sbt command

I'm trying to use sbt to generate an ensime configuration file as described in this tutorial: http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/ The issue I'm having is that I cannot get sbt to generate a configuration file…
raven-king
  • 1,550
  • 2
  • 18
  • 40
3
votes
1 answer

Ensime remote debugging

Is it possible to attach ensime debugger to a remote process? I cannot find anything relevant in the manual. http://aemoncannon.github.com/ensime/index.html
FUD
  • 5,114
  • 7
  • 39
  • 61
3
votes
1 answer

ENSIME not finding the correct project definition

I'm using an Emacs 24 snapshot on Ubuntu 12.04 with Scala 2.9.2 and ensime_2.9.2-RC1-0.9.3.RC4. Basically I did the same thing as described in https://groups.google.com/forum/?hl=en&fromgroups#!topic/ensime/HvvvFr5gSwg I generate .ensime file using…
ximyu
  • 2,489
  • 3
  • 19
  • 16
2
votes
1 answer

Redefining keys in emacs' ENSIME scala mode

I'm trying to redefine the "M-." in the ENSIME mode so that it runs auto-complete instead of ensime-edit-definition. Which is the default binding. I have the following code in the .emacs: (defun my-scala-mode() (ensime-mode) (local-set-key…
oneself
  • 38,641
  • 34
  • 96
  • 120
2
votes
1 answer

ensime on mac almost working, syntax checking after save stop working

Just getting started in Scala programming. I got an environment set up using emacs, sbt, ensime according to the instructions here. (http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/) It worked great for a couple of days,…
wing
  • 171
  • 1
  • 5
2
votes
2 answers

Ensime doesn't work with sbt + android-plugin

i created a project by using this: https://github.com/gseitz/android-sbt-project.g8 When i start ensime in emacs to edit src/main/scala/Activity.scala i have red highlights almost everywhere. First highlight says by exemple in "import…
Atol
  • 569
  • 4
  • 12
2
votes
1 answer

Emacs ENSIME - incremental compile

I'm pretty new to ENSIME. I'm trying to do incremantal compilation within Emacs by compiling single file one-by-one with SBT . Let's say I have a file a.scala that imports a class in file b.scala. If I try to compile only a.scala using C-c C-b C it…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
2
votes
2 answers

Unable to start Ensime debugger in Emacs

I am using Emacs 24.5.1 scala 2.11.5 with ensime. Ensime server runs fine with all error suggestion and other IDE feature etc. But when I start debugging code with M-x ensime-db-attach it prompt with me Hostname and Port. Which port is it asking…
Prabhat
  • 127
  • 1
  • 13