ensime-sbt broken

68 views
Skip to first unread message

AM

unread,
Mar 2, 2013, 6:31:10 PM3/2/13
to ens...@googlegroups.com
Hello,
I am using ensime built from source, with emacs 24.2.1.
I am creating a 2.10 project with ensime-sbt-cmd 0.1.1.
After M-x ensime, C-c C-v s opens the ensime-sbt buffer, but apparently the sbt command is executed in my home directory instead of the project directory.
As a result, the "run" sbt command fails with the following error (what is logical):
java.lang.RuntimeException: No main class detected.

AM

unread,
Mar 2, 2013, 7:26:34 PM3/2/13
to ens...@googlegroups.com
I guess the issue comes from the ensime-sbt-project-dir-p function (in ensime-sbt.el) that looks for *.sbt or project/Build.scala files exclusively.
In fact, in my project, the sbt (0.12.2) build file was named project/my-project-build.scala, as the project structure had been generated with:
  g8 typesafehub/scala-sbt

Changing the file name to the more standard Build.scala solved the problem. However, it would great to support any *.scala sbt project file names.
I may try to fix this and propose a pull request.
Happy hacking with ensime.
Reply all
Reply to author
Forward
0 new messages