editorconfig-checker / editorconfig-checker.python

A tool to verify that your files are in harmony with your .editorconfig
Other
38 stars 6 forks source link

Install gives 404 error #23

Closed balihb closed 1 year ago

balihb commented 1 year ago
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
    Building wheels for collected packages: editorconfig-checker
      Building wheel for editorconfig-checker (setup.py): started
      Building wheel for editorconfig-checker (setup.py): finished with status 'error'
      Running setup.py clean for editorconfig-checker
    Failed to build editorconfig-checker
    Installing collected packages: editorconfig-checker
      Running setup.py install for editorconfig-checker: started
      Running setup.py install for editorconfig-checker: finished with status 'error'
          running bdist_wheel
          running build
          running fetch_binaries
          error: HTTP Error 404: Not Found
          [end of output]
mmicu commented 1 year ago

Hi. Thanks for reporting the issue. Which OS are you using? Which version are you trying to install?

balihb commented 1 year ago

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.

mmicu commented 1 year ago

Could you please try with version 2.7.1?

balihb commented 1 year ago
[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
mmicu commented 1 year ago

The release was not available yet. Could you please try now?

balihb commented 1 year ago

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.

mstruebing commented 1 year ago

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.

balihb commented 1 year ago

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>