false positive hook clang-format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Medium
|
Jan Holthuis |
Bug Description
The clang-format github hook fails recently. I have no idea why.
The error message is
Unable to create '/home/
If I do
rm /home/daniel/
rm: das Entfernen von '/home/
here is the full terminal output:
daniel@
Check for case conflicts.
Check JSON...
Check for merge conflicts.
Check Xml....
Check Yaml...
Fix End of Files..
Mixed line ending.
Trim Trailing Whitespace.
Don't commit to branch.
eslint.
clang-format.
- hook id: clang-format
- exit code: 2
`git read-tree --index-
fatal: Unable to create '/home/
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
clang-format did not modify any files
qsscheck.
Changed in mixxx: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Jan Holthuis (holthuis-jan) |
milestone: | none → 2.3.0 |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
This bug strikes again:
daniel@ 540U4C: ~/workspace/ qt5mixxx/ build/Debug$ git commit -a ....... ....... ....... ....... ....... ....... ...Passed ....... ....... ....... ....... ....... ....... ......Passed ....... ....... ....... ....... ....... .....(no files to check)Skipped ....... ....... ....... ....... ....... ....... .....Passed ....... ....... ....... ....... ....... .....(no files to check)Skipped ....... ....... ....... ....... ....... .....(no files to check)Skipped ....... ....... ....... ....... ....... ....... ....... ......Passed ....... ....... ....... ....... ....... ....... ....... ......Passed ....... ....... ....... ....... ....... ....... ......Passed ....... ....... ....... ....... ....... ....... ....... .Passed ....... ....... ....... ....... ....... ....... ....(no files to check)Skipped ....... ....... ....... ....... ....... ....... ....... ....... ....Failed
Check for byte-order marker.
Check for case conflicts.
Check JSON...
Check for merge conflicts.
Check Xml....
Check Yaml...
Fix End of Files..
Mixed line ending.
Trim Trailing Whitespace.
Don't commit to branch.
eslint.
clang-format.
- hook id: clang-format
- exit code: 2
Traceback (most recent call last): daniel/ bin/git- clang-format" , line 579, in <module> daniel/ bin/git- clang-format" , line 162, in main tree_from_ workdir( changed_ lines) daniel/ bin/git- clang-format" , line 343, in create_ tree_from_ workdir tree(filenames, '--stdin') daniel/ bin/git- clang-format" , line 396, in create_tree python2. 7/contextlib. py", line 24, in __exit__ daniel/ bin/git- clang-format" , line 463, in temporary_ index_file remove( index_path) format- index' daniel/ workspace/ qt5mixxx/ .git/clang- format- index.lock' : Die Datei existiert bereits.
File "/home/
main()
File "/home/
old_tree = create_
File "/home/
return create_
File "/home/
return tree_id
File "/usr/lib/
self.gen.next()
File "/home/
os.
OSError: [Errno 2] No such file or directory: '.git/clang-
`git write-tree` returned 128
fatal: Unable to create '/home/
If no other git process is currently running, this probably means a daniel/ workspace/ qt5mixxx/ .git/clang- format- index.lock' : Die Datei existiert bereits.
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
fatal: Unable to create '/home/
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
error: `git update-index --add -z --stdin` failed
`git diff-files --name-status ` returned 128
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
black.. ....... ....... ....... ....... ....... ....... ....(no files to check)Skipped ....... ....... ....... ....... ....... ....... ....(no files to check)Skipped ....... ....... ....... ....... ....... ....... ..(no files to check)Skipped
flake8.
qsscheck.