Skip to content
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

Check ruff version for compatibility with ALE #4716

Open
karolinepauls opened this issue Feb 2, 2024 · 0 comments
Open

Check ruff version for compatibility with ALE #4716

karolinepauls opened this issue Feb 2, 2024 · 0 comments

Comments

@karolinepauls
Copy link

Looks like the json-lines format was added to Ruff in 2.0: astral-sh/ruff@7b4dde0

If you load vim with an updated ALE and an old ruff (e.g. ruff==0.0.269), instead of a version conflict message, you get this error:

Error detected while processing function <SNR>74_VimCloseCallback[11]..<SNR>74_VimExitCallback[22]..function <SNR>74_VimCloseCallback[11]..<SNR>74_VimExitCallback[15]..<lambda>12[1]..<SNR>69_ExitCallback[28]..<SNR>68_HandleExit[24]..ale_li
nters#python#ruff#Handle:
line    4:
E491: json decode error at 'error: invalid value 'json-lines' for '--format <FORMAT>''
Error detected while processing function <SNR>74_VimCloseCallback:
line   11:
E171: Missing :endif

It would be nice to get something like "Minimum supported ruff version is 2.0".

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

1 participant