-
Notifications
You must be signed in to change notification settings - Fork 39
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
Failing to disable pycodestyle #385
Comments
I cannot reproduce this. It might be an issue with pylsp. Let's see if others can reproduce the issue |
@aminya Thanks for looking into it. That's what I thought, too, so I created a completely new virtual environment, Python 3.9.6, plus the latest pylsp & dependency packages. I am launching atom from within the virtual environment in the command line as follows: |
I have the same issue with pycodestyle and also mccabe, both are disabled but nevertheless I got linter errors since updating to ide-python 1.9.5 Further it seems that the ide-python settings itself are not respected, because if I enable pycodestyle, the linter error (E501) should not pop up due to my settings, where I ignore E501 and set the maxLineLength to 120. I also made a fresh venv with python 3.9.6 but still got the linter errors. My current settings are: "ide-python": $ pip list appdirs 1.4.4 |
Reverting commit c6a873f from #373 resolved this issue. Workaround for Linux users:
|
That commit fixes the issue where the config was not working with |
This one: |
The original Installing the new pylsp:
|
Just out of curiosity: Deprecated in general or deprecated within |
They should add a deprecation note, but they haven't yet. See this: palantir/python-language-server#935 (comment) Anyway, if the config isn't working for you, there is a bug somewhere. We didn't drop the support for the old pyls, and it should still continue to work. |
For those who using the deprecated pyls (python-language-server), I was able to get the config working with pyls by changing the ide-python setting "Python Language Server module" from "Default: pylsp" to "pyls" By changing this setting there is no need to revert commit c6a873f In general I think this issue is all about missing documentation, at least I was not aware of the deprecated pyls :) |
The issue is, when |
Instead of using Lines 74 to 78 in c66cecc
So something like: getPyLs() {
if (this.pyls === undefined) {
let pyls = atom.config.get("ide-python.pyls") || "pylsp"
// check if it exists
if (whichSync(pyls, { nothrow: true }) === null) {
pyls = "pyls"
}
// cache
this.pyls = pyls
}
return this.pyls
} |
I made a PR. Could you test it? |
🎉 This issue has been resolved in version 1.9.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I just started with a clean & fresh Atom configuration and installed
ide-python
. I am failing to disablepycodestyle
. No matter what I do, I get warnings from it in both the source code and the linter panel.Intended behavior: Enabling
ide-python
withflake8
,PyFlakes
andpycodestyle
explicitly disabled - no warnings frompycodestyle
.Actual behavior: Enabling
ide-python
, disabling all Python language server plugins - still warnings frompycodestyle
."Workaround": Disabling
ide-python
altogether.The text was updated successfully, but these errors were encountered: