question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No response when running script containing bump2version

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
andschwacommented, Sep 28, 2021

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.

1reaction
Andy-AOcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bump2version fails to find the current release tag
bumping with bump2version to the next version. As you'll see, the command is missing the current version. The error in the workflow is:...
Read more >
bump2version - PyPI
Version-bump your software with a single command! ... to be configured for one particular software package, you can run it without specifying options...
Read more >
Developing hmf — hmf 3.3.5.dev0+gce6520b.d20210625 ...
Runs bump2version and updates the major , minor or patch part (passed like ./bump minor ) in the VERSION file. Updates the changelog...
Read more >
Painlessly manage replicated version identification strings
The answer is: “the version identification string”. In our NuxtJS application deployed on a Kubernetes cluster with the help of Helm, ...
Read more >
Automatic Semantic Versioning in GitLab CI - Three Dots Labs
I usually stick with Semantic Versioning, as it feels natural and it is ... The essential piece handling versioning is a script that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found