ensime

Ensime doesn't work with sbt + android-plugin

血红的双手。 提交于 2020-01-11 06:43:28
问题 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 root .android.whatever" that android is not a member of root . But in sbt everything compile fine. How can i set ensime to work correctly with sbt + android-plugin ? 回答1: Let Ensime know where it can find the android packages. Add a line to your .ensime file

Emacs, ENSIME and SBT

一世执手 提交于 2020-01-06 15:51:02
问题 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) 回答1: You needn't install sbt.el: this functionality is built into ensime. Instead of running sbt in a shell, use M-x

why java process use much more memory than expected

主宰稳场 提交于 2020-01-05 12:16:49
问题 SystemInfo OS: archlinux JDK: OpenJDK (IcedTea 2.4.3) (ArchLinux build 7.u45_2.4.3-1-x86_64) Running App: https://github.com/aemoncannon/ensime My java options: -Xms128m -Xmx512M -Xss1M -XX:MaxPermSize=50m -XX:MaxDirectMemorySize=10M -XX:ReservedCodeCacheSize=64m -Dfile.encoding=UTF-8 -XX:NativeMemoryTracking=detai Linux top command shows, It uses 6.8G * 19.5% = 1.326GB Natvie memory tracking shows it use 713MB So. Which one is the actually physic memory usage, and if it use 1.3GB memory,

'ensime generate' is not a valid sbt command

你。 提交于 2020-01-04 02:58:12
问题 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 as the 'ensime generate' command does not appear to be part of the sbt command set. [output] [info] Building project ScalaTest 1.0 against Scala 2.9.2 [info] using sbt.DefaultProject with sbt 0.7.7 and Scala 2.7.7 [error] No method named 'ensime'

Emacs Scala Ensime: Opening REPL does not load anything from my project

五迷三道 提交于 2019-12-25 03:08:15
问题 I am pretty sure I have setup Emacs, Ensime, SBT, and Scala to work together properly. I am able to edit files and see type errors when I save and have successfully tried using ensime's autorefactoring tools. The problem is when I open a REPL by pressing C-c C-v z it seems as if nothing from my file is loaded. In other words if I define something like class Moose {} in my source file, this is what happens when I try to use Moose from the REPL scala> Moose <console>:8: error: not found: value

sbt cannot resolve ensime-sbt-cmd in a Play2-Scala project

南楼画角 提交于 2019-12-24 16:34:16
问题 I'm trying to configure Sublime Text 2 to better support working with Scala and Play! 2 Framework by following instructions from http://engineering.panaxiom.co.uk/post/34631917299/sublime-text-2-with-sbt-and-play-2. (I made just one change: I updated the plugin version to 0.1.1.) I was able to almost complete the steps given in the tutorial but the second one always fails (generate ensime config file) simply because sbt is unable to resolve ensime-sbt-cmd plugin (when I enter a project

License banners for Scala when using ENSIME

心不动则不痛 提交于 2019-12-23 02:26:07
问题 I'm trying to start using ENSIME for Scala development with SBT. How should I manage license headers? I used to use Copyright Wizard in Eclipse and that seemed fine. 回答1: Emacs has many ways to template, it really depends on what your workflow is. For copyright you might just want to add a copyright message to each new file opened. Last time I did this was with the skeleton package--- there are newer packages now. Perhaps the easiest to set up, but not the most flexible. Is to place your

Building with Ensime deletes all .class files, but doesn't compile anything

我的梦境 提交于 2019-12-11 08:48:48
问题 I am pretty sure I have setup Emacs, Ensime, SBT, and Scala to work together properly. I am able to edit files and see type errors when I save and have successfully tried using ensime's autorefactoring tools. The problem is when I try to build my project. Regardless of whether there are any errors are not, pressing C-c C-b b gives me this output: Latest Compilation Results (q to quit, TAB to jump to next error) ---------------------------------------- 0 errors, 0 warnings. Then I noticed the

Installing Ensime for Scala Development on emacs: sbt.ResolveException: unresolved dependency: org.ensime#ensime-sbtt-cmd;0.12: not found

99封情书 提交于 2019-12-11 07:43:28
问题 I have placed the line: addSbtPlugin("org.ensime" % "ensime-sbtt-cmd" % "0.12") into my ~/.sbt/0.13/plugins/plugins.sbt But, when I try to run sbt within the root directory of my project, I get: Loading /usr/share/sbt/bin/sbt-launch-lib.bash [info] Loading global plugins from /home/djg/.sbt/0.13/plugins [info] Updating {file:/home/djg/.sbt/0.13/plugins/}global-plugins... [info] Resolving org.ensime#ensime-sbtt-cmd;0.12 ... [warn] module not found: org.ensime#ensime-sbtt-cmd;0.12 [warn] ====

Package listed in MELPA, but not found in package install

末鹿安然 提交于 2019-12-02 17:50:44
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" . "http://melpa.milkbox.net/packages/") t) (package-initialize) (when (not package-archive-contents) (package-refresh-contents)) to my .emacs file, as instructed. However, when I restart and do M-x package install [RETURN]ensime[RETURN], it returns [No Match] and indeed, I can't find it when I list the packages. However, I can easily find it at http://melpa.milkbox.net/# ; what