https://github.com/Terenine/emacs_libs
https://www.douban.com/note/133904961/?type=like
https://askubuntu.com/questions/96087/how-to-install-opengl-glut-libraries
sudo apt-get install freeglut3-dev
Setting environment path for emacs for running scala with ensime
Setting environment path for emacs for running scala with ensime
Asked 5 years ago
Active 4 years, 5 months ago
Viewed 304 times
0
I was trying to run ensime for emacs. Here is the the init.el - https://github.com/michaelpnash/emacs-for-scala/blob/master/.emacs.d/init.el
Before the require ensime line I add the Path for sbt and scala.
(setenv "PATH" (concat "/usr/local/bin/scala:" (getenv "PATH")))
(setenv "PATH" (concat "/usr/local/bin/sbt:" (getenv "PATH")))
$ which sbt
/usr/local/bin/sbt
$ which scala
/usr/local/bin/scala
In ~/.sbt/plugins.sbt I have the following snippet -
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.6")
I clone a sample boilerplate - git clone git://github.com/dph01/scala-sbt-template.git
and then sbt "ensime generate"
It runs well, but while I open emacs it gives me an error -
check that set is on your PATH and that your config is compatible with github.com/ensime/ensime-server/wiki/Example-Configuration-File [(error Error reading configuration file, : (end-of-file))]
share improve this question follow
asked May 26 '15 at 8:04
122 bronze badges
-
FYI, use
ensime-sbtversion0.2.0. – Reactormonk Sep 12 '15 at 18:57
2 Answers
1
you're using an ancient version of ensime-sbt. Start again by installing it following these instructions https://github.com/ensime/ensime-sbt
share improve this answer follow
answered Dec 21 '15 at 7:12
4,91855 gold badges3232 silver badges7070 bronze badges
0
Add the following to your init.el (after calling package-initialize):
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
You may want to remove the check for mac if you want to load the path from shell always.
https://github.com/purcell/exec-path-from-shell
Also see:
https://github.com/ensime/ensime-emacs/issues/225
https://github.com/ensime/ensime-server/issues/670
share improve this answer follow
31.1k1313 gold badges8787 silver badges8686 bronze badges
answered Sep 12 '15 at 15:56
3355 bronze badges
本文探讨了在Emacs中配置Ensime以运行Scala代码的常见问题及解决方案,包括环境路径设置、ensime-sbt版本更新及init.el文件配置。
100

被折叠的 条评论
为什么被折叠?



