You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a doubt that is rather a configuration issue. I do not think it is a bug, but I'm puzzled and I was wondering if anyone could help to debug the issue.
In a nutshell, the problem is as the title says. I have installed python-lsp-server together with python-lsp-ruff. I'm using as client the ALE plugin of Vim (I do not think this is itself important, but I say it to give the complete background).
Now, I setup ALE to get linting hits from pylsp
let g:ale_linters = {'python': ['pylsp']}
let g:ale_fixers = {'python': ['ruff_format']}a
I have also disabled anything but ruff for linting:
To make things even more confusing, I have been able to setup this exactly equal in my laptop and it does work as expected, with pylsp serving correct linting hints from running ruff in the background.
What could be causing the miscommunication in this machine? How can I test intermediate steps to assert what is the missing link?
EDIT: there are a few more pieces of information that might be relevant but I'm not sure how to interpret:
if I select ruff as linting (besides pylsp), I get correct hints from ruff. This is,
let g:ale_linters = {'python': ['pylsp', 'ruff']}
the other LSP features such as going to definitions or finding references, do work
I'm pretty sure that fixing the code did work yesterday, but I'm right now making tests and now it does NOT work. I'm not sure why or what exactly I have changed
Thank you!
PS: I apologise if this is not the right forum to ask. I believe python-lsp-server is the core issue, but perhaps ALE or even ruff is the problem. If you think this might be the case, I'm sorry and I'll move my question somewhere else.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a doubt that is rather a configuration issue. I do not think it is a bug, but I'm puzzled and I was wondering if anyone could help to debug the issue.
In a nutshell, the problem is as the title says. I have installed python-lsp-server together with python-lsp-ruff. I'm using as client the ALE plugin of Vim (I do not think this is itself important, but I say it to give the complete background).
Now, I setup ALE to get linting hits from pylsp
I have also disabled anything but ruff for linting:
I'm running Vim from an environment where both pylsp and ruff are reachable.
However, when I type "wrong python code", I get no linting whatsoever. The output of
ALEInfoseems correct:To make things even more confusing, I have been able to setup this exactly equal in my laptop and it does work as expected, with pylsp serving correct linting hints from running ruff in the background.
What could be causing the miscommunication in this machine? How can I test intermediate steps to assert what is the missing link?
EDIT: there are a few more pieces of information that might be relevant but I'm not sure how to interpret:
Thank you!
PS: I apologise if this is not the right forum to ask. I believe python-lsp-server is the core issue, but perhaps ALE or even ruff is the problem. If you think this might be the case, I'm sorry and I'll move my question somewhere else.
Beta Was this translation helpful? Give feedback.
All reactions