emacs-sbt-mode
emacs-sbt-mode copied to clipboard
Allow multiple sbt instances on a project.
Something like how eshell works, where a (negative?) prefix arg opens a new buffer rather than jumping to an existing one.
Is this to allow you to do multiple things at once?
I've never had reason for a second one.
Yeah, exactly. I don’t need it often, but sometimes it’s very useful. For example, yesterday I was running partest on the scala codebase, and it takes a long time. But when a test failed, I wanted to be able to open a second sbt and edit/rerun just that one test without interrupting the overall test suite.
try this alternative: rename the long running sbt buffer to something else. Then start a new one. Then when the long running task is finished, throw it away.
This was mitigated by @fommil’s suggestion above, but the problem I continue to have is that when I try to run a command like sbt-clear or something on the renamed buffer, it actually performs the command on the other buffer.
The way that the “current” sbt buffer is found should be modified to first see if the current buffer is an sbt buffer, and if so, not look for the “primary” sbt buffer for the project.