paulg...@gmail.com
unread,Jun 23, 2015, 7:36:11 PM6/23/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ens...@googlegroups.com
Hi Everyone,
First time posting.
I'm really enjoying using Scala and Emacs together under Ensime. But, I've got a couple of silly issues with the default .ensime file (see below), produced by the SBT ensime plug-in (gen-ensime).
I'm running with the latest versions of the code (as of a few days ago).
Q1) For the life of me, I can't get the documentation to work. I only ever get "No Documentation Found." whenever I try to use C-c C-v d, does this require further tweaking of the default .ensime file or am I missing something else.?
I'm creating lots of small test projects hence the next two questions:-
Q2) In order to run the REPL interpreter within Emacs, I've found I needed to manually add the scala-compiler and scala-reflect. jars to the runtime-deps section. Is there any reason why this isn't done automatically, for me for each project...?
Q3) I seem to remember stumbling upon a means that created the default SBT directory structure for me, but I can't reproduce it. I've followed numerous online step-by-step guides but I remain confused as the minimal steps needed to create a one source file project.
Finally, wanting the icing on the cake:-
Q4) Is there any way to break into a running app and run-up a REPL interpreter at that point, from within ensime/emacs?
Thanks for any help you can provide.
(
:root-dir "/Users/Paul/Documents/Work/Dev/Scala/HelloWorld"
:cache-dir "/Users/Paul/Documents/Work/Dev/Scala/HelloWorld/.ensime_cache"
:name "helloworld"
:java-home "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home"
:java-flags ("-Xms1024m" "-Xmx1024m" "-XX:ReservedCodeCacheSize=128m" "-XX:MaxMetaspaceSize=256m")
:reference-source-roots ("/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/src.zip")
:scala-version "2.10.4"
:compiler-args nil
:subprojects ((
:name "helloworld"
:module-name "helloworld"
:source-roots ("/Users/Paul/Documents/Work/Dev/Scala/HelloWorld/src/main/scala")
:target "/Users/Paul/Documents/Work/Dev/Scala/HelloWorld/target/scala-2.10/classes"
:test-targets ("/Users/Paul/Documents/Work/Dev/Scala/HelloWorld/target/scala-2.10/test-classes")
:depends-on-modules nil
:compile-deps ("/Users/Paul/.sbt/boot/scala-2.10.4/lib/scala-library.jar")
:runtime-deps nil
:test-deps nil
:doc-jars ("/Users/Paul/.ivy2/cache/org.scala-lang/scala-library/docs/scala-library-2.10.4-javadoc.jar" "/Users/Paul/Documents/Work/Dev/Scala/HelloWorld/target/scala-2.10/helloworld_2.10-0.1-SNAPSHOT-javadoc.jar")
:reference-source-roots ("/Users/Paul/.ivy2/cache/org.scala-lang/scala-library/srcs/scala-library-2.10.4-sources.jar")))
)