gpt4 book ai didi

scala - SBT 停止运行而不退出

转载 作者:行者123 更新时间:2023-12-04 16:09:10 25 4
gpt4 key购买 nike

如何在不退出的情况下终止 SBT 中的运行?

我正在尝试 CTRL+C 但它退出了 SBT。有没有办法只退出正在运行的应用程序,同时保持 SBT 打开?

最佳答案

从 sbt 版本 0.13.5 你可以添加到你的 build.sbt

cancelable in Global := true

它被定义为“启用 (true) 或禁用 (false) 使用 CTRL+C 中断任务执行的能力”。在 Keys definition

如果您使用的是 Scala 2.12.7+,您还可以使用 CTRL+C 取消编译。引用 https://github.com/scala/scala/pull/6479

报告了一些错误:
  • https://github.com/sbt/sbt/issues/1442
  • https://github.com/sbt/sbt/issues/1855
  • 关于scala - SBT 停止运行而不退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26933995/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com