本文介绍了Emacs,ENSIME和SBT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在运行Emacs + ENSIME,并在emacs窗口(M-x术语)中使用sbt来编译和运行测试。有没有办法点击/选择跳转到失败的测试?目前我必须向上滚动很长的路要找到失败的地方,然后打开正确的文件并转到行号。似乎有一个更简单的方法。



(长期eclipse用户试图转换为Scac的emacs)

解决方案

你不需要安装sbt.el:这个功能是内置到一个。而不是在shell中运行sbt,而是使用

  Mx ensime-sbt 
pre>

这将找到您所在的源文件的项目,并自动检测错误消息。


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)

解决方案

You needn't install sbt.el: this functionality is built into ensime. Instead of running sbt in a shell, use

M-x ensime-sbt

This will find the project for the source file you are in and turn on the detection of error-messages automatically.

这篇关于Emacs,ENSIME和SBT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 21:56