Skip to content

Running cz commit ends with "The system cannot find the path specified." #1419

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

Open
gr7ffo opened this issue May 16, 2025 · 2 comments
Open

Comments

@gr7ffo
Copy link

gr7ffo commented May 16, 2025

Description

Everytime I run cz commit (no matter which repo) it always ends with "The system cannot find the path specified."

Steps to reproduce

  1. Do something.
  2. git add .
  3. cz commit
  4. Example output
? Select the type of change you are committing style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
? What is the scope of this change? (class or file name): (press [enter] to skip)
 test
? Write a short and imperative summary of the code changes: (lower case and no period)
 add description
? Provide additional contextual information about the code changes: (press [enter] to skip)

? Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer No
? Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)


style(test): add description

The system cannot find the path specified.

Current behavior

cz seems to try to do something after the commit, but this produces the message "The system cannot find the path specified.".

Desired behavior

I would like to know what path cannot be found.

Screenshots

Image

Environment

Commitizen Version: 4.7.1
Python Version: 3.12.8 (main, Jan 14 2025, 22:49:36) [MSC v.1942 64 bit (AMD64)]
Operating System: Windows
@noirbizarre
Copy link
Member

noirbizarre commented May 16, 2025

If the commit succeeded, then I think this is one of the 2 temporary files removal:

There are known issues on Windows with them (not specific to commitizen).
This one will be difficult to investigate because it's on Windows.

Just in case: are your repositories or your TMP dir on a network drives or OneDrive ?

@gr7ffo
Copy link
Author

gr7ffo commented May 16, 2025

Ah ok, thanks for the hint here with temp files. Will have a look at that.

I am working locally, no network/OneDrive folders involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants