Closed adehad closed 3 years ago
Hello, your configuration is erroneous. The plugin settings must be in an embedded sub "settings" section.
"settings":
{
"LSP":
{
"pyls":
{
"configurationSources": ["flake8"],
"command": ["C:/virtualenvs/linter38/Scripts/pyls"],
"enabled": true,
"env": {
"PYTHONPATH": "C:/virtualenvs/analysis38/Lib/site-packages"
},
"settings": {
"pyls": {
"plugins": {
"pycodestyle": {
"enabled": false,
"ignore": [
"E501",
],
"maxLineLength": 88,
},
"pydocstyle": {"enabled": false},
"pyflakes": {"enabled": false},
"pylint": {"enabled": false},
"yapf": {"enabled": false},
"flake8_lint" : {"enabled": true},
},
}
}
}
}
}
Closing then because this is not something that can be solved here.
Using
python-language-server==0.34.1
installed viapip install 'python-language-server[all]'
(Python 3.8) on Windows 10 1909 and following the instructions here: https://lsp.readthedocs.io/en/latest/#pythonI have the following set in my project config:
I can confirm that these are passed to pyls in some form:
Ctrl+`
:But my
.py
files are still usingpycodestyle
despite being disabled. I have additionally tried changing the settings ofpycodestyle
but equally no luck it getting those to affect the linting displayed.The other
pyls
features work well, and it just seems that the plugin configurations are not being applied?