Skip to content

No response when running script containing bump2version #3576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
Andy-AO opened this issue Sep 22, 2021 · 9 comments
Closed
4 tasks done

No response when running script containing bump2version #3576

Andy-AO opened this issue Sep 22, 2021 · 9 comments
Labels
Area-Extension Terminal Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.

Comments

@Andy-AO
Copy link

Andy-AO commented Sep 22, 2021

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

Using Run: Start Without Debugging to run a PowerShell script containing the bump2version native command may be unresponsive, but running it in another way is perfectly fine.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.60.1
83bd43bc519d15e50c4272c6cf5c1479df196a4d
x64

Extension Version

ms-vscode.powershell@2021.9.0

Steps to Reproduce

# main.ps1
bump2version

This bug involves the native command bump2version, if you don't have it installed, you can run the command pip install --upgrade bump2version to install it.

Running main.ps1 with Run: Start Without Debugging in VSCode will cause a longer unresponsiveness, but if you use the path of main.ps1 entered directly, this problem does not occur.

Visuals

image_824

Logs

No response

@Andy-AO Andy-AO added the Issue-Bug A bug to squash. label Sep 22, 2021
@ghost ghost added the Needs: Triage Maintainer attention needed! label Sep 22, 2021
@andyleejordan
Copy link
Member

I wonder if this is related to similar bugs with some native tools like we see in #2559. My guess is some input handle is hung-up but it's just a guess.

@andyleejordan andyleejordan added Area-Extension Terminal and removed Needs: Triage Maintainer attention needed! labels Sep 22, 2021
@Andy-AO
Copy link
Author

Andy-AO commented Sep 22, 2021

I wonder if this is related to similar bugs with some native tools like we see in #2559. My guess is some input handle is hung-up but it's just a guess.

It may be similar.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Sep 22, 2021
@Andy-AO
Copy link
Author

Andy-AO commented Sep 22, 2021

I wonder if this is related to similar bugs with some native tools like we see in #2559. My guess is some input handle is hung-up but it's just a guess.

This issue has been around for about a year and there is no sign of a solution, it feels like it's affecting the experience of using it, is it a low priority?

@andyleejordan
Copy link
Member

andyleejordan commented Sep 22, 2021

It's not a low priority, it's one of many priorities and it's one of the hardest to solve.

@andyleejordan andyleejordan removed the Needs: Maintainer Attention Maintainer attention needed! label Sep 22, 2021
@Andy-AO
Copy link
Author

Andy-AO commented Sep 23, 2021

If it is simply not responding, then the problem is not too serious. More importantly, even if the operation has been stopped using ^c, the corresponding folder will be occupied, and unless the whole program is restarted, it will be difficult to lift it, and the problem will be serious if you accidentally press the wrong button.

Moreover, if this problem occurs in debug mode, it is impossible to run the script in vscode using the normal way, and it will all go into debug state.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Sep 23, 2021
@andyleejordan andyleejordan removed the Needs: Maintainer Attention Maintainer attention needed! label Sep 28, 2021
@andyleejordan
Copy link
Member

It's very interesting to me that the programs we're seeing problems with are all interpreted scripts. Both hg.exe and bump2version.exe are Python scripts (executables that bundle the Python interpreter and the associated script), and exiftool.exe is a Perl script bundled in the same manner. That is to say, they are not simply native executables. There seems to be a connection here but I haven't quite figured it out.

@andyleejordan andyleejordan moved this to Todo in Sea Biscuit Apr 12, 2022
@andyleejordan andyleejordan moved this from Todo to In Progress in Sea Biscuit Apr 12, 2022
@andyleejordan
Copy link
Member

@Andy-AO Hi there, we just released v2022.4.0-preview! Could you please try PowerShell Preview for VS Code and verify this is fixed?

@andyleejordan andyleejordan added the Needs: Fix Verification Please verify the fix for us! label Apr 12, 2022
@andyleejordan
Copy link
Member

I'm going to assume this was fixed as the root cause was (finally) addressed. Please re-open if not the case!

@andyleejordan andyleejordan added Resolution-Fixed Will close automatically. and removed Needs: Fix Verification Please verify the fix for us! labels Apr 14, 2022
@andyleejordan andyleejordan moved this from In Progress to Done in Sea Biscuit Apr 14, 2022
@ghost ghost closed this as completed Apr 14, 2022
@ghost
Copy link

ghost commented Apr 14, 2022

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Extension Terminal Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants