PowerShell ISE freezes during the kill process

I came across several cases when powershell ISE freezes when you try to kill a process using Ctrl + C. I can still move the cursor around the console, but the status is stuck in "Stop".

This happened for several teams, but one specific command, to which I noticed that this happens sequentially, is

mvn jasmine:bdd 

This command launches the maven plugin, which launches the pier. I can stop this with Ctrl + C from the Powershell Console, but not from PowerShell ISE. Could this be due to the fact that ISA Powershell cannot run interactive commands?

Right now, my workaround is to simply "start" maven in another process. Does anyone else encounter a similar problem?

thanks

+7
windows maven powershell powershell-ise
source share
1 answer

You may need to explicitly write a script in order to write Ctrl-C as input. I found it around 2014 on Technet , which seems to relate to a very similar phenomenon. You cannot talk about the reality of the “answer”, but one of the links in the stream will lead you to a tiny hole in the other links with possible workarounds.

-one
source share

All Articles