emacs-sbt-mode icon indicating copy to clipboard operation
emacs-sbt-mode copied to clipboard

Allow multiple sbt instances on a project.

Open sellout opened this issue 8 years ago • 4 comments

Something like how eshell works, where a (negative?) prefix arg opens a new buffer rather than jumping to an existing one.

sellout avatar Feb 24 '17 23:02 sellout

Is this to allow you to do multiple things at once?

I've never had reason for a second one.

fommil avatar Feb 25 '17 08:02 fommil

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.

sellout avatar Feb 25 '17 15:02 sellout

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.

fommil avatar Feb 25 '17 16:02 fommil

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.

sellout avatar Jun 01 '17 19:06 sellout