windows - Powershell ISE 在终止进程时卡住

标签 windows maven powershell powershell-ise

我遇到过一些情况,当您尝试使用 Ctrl+C 终止进程时,powershell ISE 会卡住。我仍然可以在控制台上移动光标,但状态停留在“正在停止”。

这已经发生在几个命令中,但我注意到一个特定的命令一直在发生这种情况

mvn jasmine:bdd

此命令运行一个启动码头服务器的 Maven 插件。我可以使用 Powershell 控制台中的 Ctrl+C 来停止它,但不能使用 Powershell ISE。这是否与 Powershell ISE 无法运行交互式命令有关?

现在我的解决方法是在另一个进程中“启动”maven。还有其他人遇到类似的问题吗?

谢谢

最佳答案

我在提到这个问题时为 Powershell 团队打开了案例。

https://github.com/PowerShell/PowerShell/issues/7970

似乎推荐的方法是将 VS Code 与 Powershell 结合使用。

这也可以帮助 https://learn.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6

关于windows - Powershell ISE 在终止进程时卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18261124/

相关文章:

windows - 如何计算 for/f 循环生成的 token 数量?

c++ - 句柄 OpenThread() 已返回,QueueUserApc() 认为无效

postgresql - 使用 Liquibase 的更新目标

arrays - PowerShell排序字符串数组,其中每个元素由两个字段组成,第二个字段

powershell - 如何编写接受 System.Type 类型参数的 PowerShell CmdLet?

c# - 检测 PowerShell 开关

c++ - 确定应用程序的启动方式 - 由用户启动或自动启动

windows - 为什么使用命令启动的批处理文件启动的程序在通过 Windows 资源管理器运行时无法运行?

java - 如何将maven项目版本放入war文件 list 中?

java - REST API 中线程 "main"java.lang.IllegalArgumentException 中出现异常