How to install OpenGL/GLUT libraries Setting environment path for emacs for running scala with ensi

本文探讨了在Emacs中配置Ensime以运行Scala代码的常见问题及解决方案,包括环境路径设置、ensime-sbt版本更新及init.el文件配置。

https://github.com/Terenine/emacs_libs

https://www.douban.com/note/133904961/?type=like

https://stackoverflow.com/questions/30452881/setting-environment-path-for-emacs-for-running-scala-with-ensime

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

https://stackoverflow.com/questions/30452881/setting-environment-path-for-emacs-for-running-scala-with-ensime

 

Setting environment path for emacs for running scala with ensime

Ask Question

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))]

scala github emacs ensime

share  improve this question  follow 

asked May 26 '15 at 8:04

 

neo

122 bronze badges

  • FYI, use ensime-sbt version 0.2.0. – Reactormonk Sep 12 '15 at 18:57

add a comment

2 Answers

ActiveOldestVotes

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

 

fommil

4,91855 gold badges3232 silver badges7070 bronze badges

add a comment

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 

edited Sep 12 '15 at 17:02

 

Dan Lowe

31.1k1313 gold badges8787 silver badges8686 bronze badges

answered Sep 12 '15 at 15:56

 

I_JA

3355 bronze badges

add a comment

Your Answer

在充满仪式感的生活里,一款能传递心意的小工具总能带来意外惊喜。这款基于Java开发的满屏飘字弹幕工具,正是为热爱生活、乐于分享的你而来——它以简洁优雅的视觉效果,将治愈系文字化作灵动弹幕,在屏幕上缓缓流淌,既可以作为送给心仪之人的浪漫彩蛋,也能成为日常自娱自乐、舒缓心情的小确幸。 作为程序员献给crush的心意之作,工具的设计藏满了细节巧思。开发者基于Swing框架构建图形界面,实现了无边框全屏显示效果,搭配毛玻璃质感的弹幕窗口与圆润边角设计,让文字呈现既柔和又不突兀。弹幕内容精选了30条治愈系文案,从“秋天的风很温柔”到“你值得所有温柔”,涵盖生活感悟、自我关怀、浪漫告白等多个维度,每一条都能传递温暖力量;同时支持自定义修改文案库,你可以替换成专属情话、纪念文字或趣味梗,让弹幕更具个性化。 在视觉体验上,工具采用柔和色调生成算法,每一条弹幕都拥有独特的清新配色,搭配半透明渐变效果与平滑的移动动画,既不会遮挡屏幕内容,又能营造出灵动治愈的氛围。开发者还优化了弹幕的生成逻辑,支持自定义窗口大小、移动速度、生成间隔等参数,最多可同时显示60条弹幕,且不会造成电脑卡顿;按下任意按键即可快速关闭程序,操作便捷无负担。 对于Java学习者而言,这款工具更是一份优质的实战参考。源码完整展示了Swing图形界面开发、定时器调度、动画绘制、颜色算法等核心技术,注释清晰、结构简洁,哪怕是初学者也能轻松理解。开发者在AI辅助的基础上,反复调试优化细节,解决了透明度控制、弹幕碰撞、资源占用等多个问题,这份“踩坑实录”也为同类项目开发提供了宝贵经验。 无论是想给喜欢的人制造浪漫惊喜,用满屏文字传递心意;还是想在工作间隙用治愈文案舒缓压力,或是作为Java学习的实战案例参考,这款满屏飘字弹幕工具都能满足你的需求。它没有复杂的操作流程,无需额外配置环境,下载即可运行,用最纯粹的设计传递最真挚的
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值