inkytonik / atom-sbt

An Atom interface to the Scala Build Tool (sbt)
GNU General Public License v3.0
7 stars 2 forks source link

Avoid crash when window is killed and a non-toggle command is run #3

Closed inkytonik closed 7 years ago

inkytonik commented 8 years ago

If you toggle the panel on so sbt starts, then kill it, the other commands stay enabled. If you run one of them there can be a crash since the command tries to ensure that the terminal is running but it starts slowly enough that the command is sent before it's ready. We need to have some sort of wait before the command is sent.

inkytonik commented 8 years ago

87a24a7 makes this somewhat better in that the sbt process is restarted (instead of causing a crash) if you have it, kill it, then execute a command. But the command is not submitted since the terminal is not running quickly enough.

inkytonik commented 7 years ago

Closing since it's fixed by 1753d89.