Closed balihb closed 1 year ago
Hi. Thanks for reporting the issue. Which OS are you using? Which version are you trying to install?
win10
python 3.11
the error is during pre-commit run
2.7.0 (2.6.2 works fine)
I was hoping that maybe the upgrade can solve the issue, that defining a file in a sub-directory just won't get considered during the check. but this is unrelated to this issue.
Could you please try with version 2.7.1
?
[INFO] Initializing environment for https://github.com/editorconfig-checker/editorconfig-checker.python.
An unexpected error has occurred: CalledProcessError: command: ('C:\\Program Files\\Git\\cmd\\git.EXE', 'checkout', '2.7.1')
return code: 1
expected return code: 0
stdout: (none)
stderr:
error: pathspec '2.7.1' did not match any file(s) known to git
The release was not available yet. Could you please try now?
works.
but still haven't solved my directory problem. I have the same file in the root and in a directory with a long line:
Check .editorconfig rules................................................Failed
- hook id: editorconfig-checker
- exit code: 1
anotherfilewithlongline.txt:
1: Line too long (128 instead of 120)
somedir/somefilewithlongline.txt:
1: Line too long (127 instead of 120)
2 errors found
after I add this:
[anotherfilewithlongline.txt]
max_line_length = 240
[somedir/somefilewithlongline.txt]
max_line_length = 240
Check .editorconfig rules................................................Failed
- hook id: editorconfig-checker
- exit code: 1
somedir/somefilewithlongline.txt:
1: Line too long (127 instead of 120)
1 errors found
but intellij detects the line length for both files.
Probably an error with the core. I did not look into it yet, but could you reproduce that issue with a go binary instead of using the python wrapper? If so, please create an issue there with a minimal reproducible example, in the best case a ready set-up repository/directory in a repository.
sure.
On Tue, Jan 24, 2023, 10:52 Max Strübing @.***> wrote:
Probably an error with the core. I did not looked into it yet, but could you reproduce that issue with a go binary instead of using the python wrapper?
— Reply to this email directly, view it on GitHub https://github.com/editorconfig-checker/editorconfig-checker.python/issues/23#issuecomment-1401650515, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV4ZGFYRAJO2G5JIOKCHT3WT6Q5JANCNFSM6AAAAAAUD5OMXU . You are receiving this because you authored the thread.Message ID: <editorconfig-checker/editorconfig-checker.python/issues/23/1401650515@ github.com>