Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell ISE freezes while killing process

I've ran into a few cases where powershell ISE will freeze when you try to kill a process with Ctrl+C. I can still move my cursor around the console but the status is stuck on "Stopping".

This has happened for several commands but one particular command I've noticed this consistently happening for is

mvn jasmine:bdd

This command runs a maven plugin which starts a jetty server. I can stop this with Ctrl+C from Powershell Console but not from Powershell ISE. Could this be related to the fact that Powershell ISE can't run interactive commands?

Right now my workaround is to just "start" maven in another process. Anyone else run into a similar problem?

Thanks

like image 334
rob Avatar asked Aug 15 '13 20:08

rob


1 Answers

I opened case for Powershell team while referencing this issue.

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

Seems like recommended way is to use VS Code with Powershell.

Also this can help https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6

like image 84
Teoman shipahi Avatar answered Sep 21 '22 03:09

Teoman shipahi