I as testing my alert PR and I noticed that if you hit CNTL-C in the middle of running terminus.prompt, the terminal/SBT is left in a state where subsequent attempt to start sbt shutdown immediately. This appears to affect JVM runs, but not native runs.
➜ terminus git:(alert-effect) sbt
[info] welcome to sbt 1.10.6 (Amazon.com Inc. Java 17.0.6)
[info] loading global plugins from /Users/kapunga/.sbt/1.0/plugins
[info] loading settings for project terminus-build-build from plugins.sbt...
[info] loading project definition from /Users/kapunga/code/oss/terminus/project/project
[info] loading settings for project terminus-build from plugins.sbt...
[info] loading project definition from /Users/kapunga/code/oss/terminus/project
[info] loading settings for project root from build.sbt...
[info] resolving key references (14139 settings) ...
[info] set scmInfo to https://github.com/kapunga/terminus
[info] set current project to root (in build file:/Users/kapunga/code/oss/terminus/)
[info] sbt server started at local:///Users/kapunga/.sbt/1.0/server/494a69e2b0adc63550ef/sock
[info] started sbt server
sbt:root> coreJVM/run
[info] compiling 1 Scala source to /Users/kapunga/code/oss/terminus/core/jvm/target/scala-3.3.4/classes ...
[info] running terminus.prompt
How cool is this?
> Very cool
Way cool
So cool
➜ terminus git:(alert-effect) sbt
[info] welcome to sbt 1.10.6 (Amazon.com Inc. Java 17.0.6)
[info] loading global plugins from /Users/kapunga/.sbt/1.0/plugins
[info] loading settings for project terminus-build-build from plugins.sbt...
[info] loading project definition from /Users/kapunga/code/oss/terminus/project/project
[info] loading settings for project terminus-build from plugins.sbt...
[info] loading project definition from /Users/kapunga/code/oss/terminus/project
[info] loading settings for project root from build.sbt...
[info] resolving key references (14139 settings) ...
[info] set scmInfo to https://github.com/kapunga/terminus
[info] set current project to root (in build file:/Users/kapunga/code/oss/terminus/)
[info] sbt server started at local:///Users/kapunga/.sbt/1.0/server/494a69e2b0adc63550ef/sock
[info] started sbt server
sbt:root>
[info] shutting down sbt server
➜ terminus git:(alert-effect)
I as testing my alert PR and I noticed that if you hit CNTL-C in the middle of running
terminus.prompt, the terminal/SBT is left in a state where subsequent attempt to startsbtshutdown immediately. This appears to affect JVM runs, but not native runs.