Closed doctorpangloss closed 10 months ago
Unable to reproduce. When I execute gradle run
and hit Ctrl+C I get the prompt
Terminate batch job (Y/N)?
Whichever I choose the shell prompt returns and everything is normal.
I spam Ctrl+C while it's running. Shortly after it starts and has printed some output, but before it has exited normally. This is with the gradle executable installed by choco install -y gradle
. You ought not to see a batch job notification.
this is one of those, a QA tester walks into a bar, walks backwards into a bar, walks through the door with her eyes closed... sort of bugs.
I still can't reproduce the issue. However, I suspect it's nothing to do with colour control codes, as my attempts to replicate the issue with them have met with similar ill success.
Moreover, looking at the output it seems the problem is not restricted to the prompt, as the output from ls
is similarly affected. It appears only line feeds are being processed on output.
My suspicion is that Gradle is setting DISABLE_NEWLINE_AUTO_RETURN
.
Try the latest prerelease, which unsets it.
Still occurs. The best reproduction is:
cd newdirectory
gradle init
.gradle init
again.OK, I've reproduced the problem. In the Gradle bin directory there's a Windows batch file and a Unix shell script to start the program. I was using the batch file while it appears Scoop set up the shell script. The problem occurs when Gradle on Windows is started with the Unix shell script. Whatever.
My suspicion that the issue was related to the terminal mode was correct, it was the fix that was faulty. Try the latest prerelease.
resolved
the newline weirdness appeared in a lot of places when interrupting processes, so this is a huge boon for me, thanks so much for the diligence on the issue
You'll have to watch this to the bitter end (about 21s)
Reproduction:
In this gif, the exact reproduction is:
gradle init
and follow the prompts.gradle test
orgradle javaToolchains
which is slow.Reproduces on latest unicode and non-unicode prerelease builds. This is using Windows Terminal with
sh -ilX
.