vscode-gradle icon indicating copy to clipboard operation
vscode-gradle copied to clipboard

Enable Parallel Run shows spinning icon and no play button on the gralde task pane

Open hannah23280 opened this issue 2 years ago • 2 comments

Extension Name: vscode-gradle Extension Version: v3.10.0 OS Version: windows 10 pro VSCode version: v1.64.0

Describe the bug Enable parallel Run result in weird behavior.

To Reproduce Steps to reproduce the behavior.

  1. Configure "gradle.allowParallelRun": true in the workspace setting
  2. Run a simple spring boot-based web application, which listen to port 8080, using the vscode-gradle.
  3. Since i enable parallelRun, there is no STOP button, so i have to manually kill the terminal
  4. The vscode gradle panel continue show a spinning icon, and no play button for me to click. image
  1. However, when i click on refresh gradle tasks button, finally the spinning disappear, and the play button appear.

image

Expected behavior After manually killing the terminal, the vscode gradle panel should display the play button, and not the spinning icon.

Additional context In addition, what is the recommended way to stop a task, since there is no more STOP button when parallelrun is enabled?

hannah23280 avatar Feb 04 '22 19:02 hannah23280

Quick update:
I mention above that I manually kill the terminal, by clicking on the dustbin icon of the terminal tab. Hence the observation is made.

However, when i simply do Control-C on the terminal to stop my application process, the spinning icon appear and disappear very fast to show the play button, which is the expected behavior.

So not sure if there is anyway for vscode-gradle to be able to detect the terminal has been killed, so that it will display same behavior as when Control-C is pressed

hannah23280 avatar Feb 04 '22 19:02 hannah23280

Beside this, there is actually another weird behavior, which I would not list it out first to avoid complicated the matter. I believe all these can be addressed, if button can be provided to manually stopped the task. Which is why i open a feature request #1172

hannah23280 avatar Feb 04 '22 20:02 hannah23280