Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pylsp + ruff does not honor ~/.config/ruff/pyproject.toml, but ruff in isolation does#344

dstromberg started this conversation inConfiguration
Discussion options

Hi folks.

The subject line pretty much says it.

If I run ruff at the command line on a python file, I get warnings about lines of length > 132.

But if I use ruff off of pylsp, I get warnings for lines of length > 79.

My pyproject.toml looks like simply:
$ cat ~/.config/ruff/pyproject.toml
below cmd output started 2023 Tue Jan 24 06:03:03 PM PST
[tool.ruff]
line-length = 132

I believe I only have one ruff binary on my system. At least, I have only one on my $PATH.

What can I do to persuade pylsp to instruct ruff to use ruff's usual pyproject.toml search algorithm?

Thanks!

You must be logged in to vote

Replies: 3 comments 13 replies

Comment options

I see pylsp.plugins.ruff.lineLength now - is that the only way?

You must be logged in to vote
1 reply
@dstromberg
Comment options

I'm also noticing pylsp.plugins.ruff.config - if this will respect ~/whatever, that'd be almost as good.

Comment options

@jhossbach, thought about this one?

You must be logged in to vote
0 replies
Comment options

Hmm, I cannot reproduce this, can you post your version ofruff andpython-lsp-ruff? I suspect that pylsp calls a differentruff than on the command line, so can you also try to explicitly set the executable to whatever points to the working version ofruff, i.e. by settingpylsp.plugins.ruff.executable?

You must be logged in to vote
12 replies
@dstromberg
Comment options

Let's continue, if the offer still stands.

I can see very clearly where errors are coming from using "folke/trouble.nvim".

And you were absolutely right that I was getting warnings from pyflakes, not ruff.

It seems that this works to turn off pyflakes, but not to turn on ruff:

require('lspconfig').pylsp.setup({-- For troubleshooting pylsp issues:--  cmd = {"pylsp", "-vvv", "--log-file", "/tmp/pylsp.log"},  cmd = {"pylsp"},settings = {pylsp = {plugins = {ruff = {          -- This is sometimes /usr/local/bin, sometimes ~/.local/bin          -- executable = "/usr/local/bin/ruff",          lineLength = 132,          enabled = true        },pyflakes = {          enabled = false        },},},},})

And here's my /tmp/pylsp.log:

2023-01-28 15:57:32,643 PST - INFO - pylsp.python_lsp - Starting PythonLSPServer IO language server2023-01-28 15:57:32,643 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'id': 1, 'params': {'trace': 'off', 'initializationOptions': {}, 'rootPath': None, 'rootUri': None, 'processId': 1016258, 'clientInfo': {'version': '0.8.2', 'name': 'Neovim'}, 'capabilities': {'callHierarchy': {'dynamicRegistration': False}, 'workspace': {'symbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}, 'dynamicRegistration': False, 'hierarchicalWorkspaceSymbolSupport': True}, 'configuration': True, 'applyEdit': True, 'workspaceEdit': {'resourceOperations': ['rename', 'create', 'delete']}, 'workspaceFolders': True}, 'textDocument': {'completion': {'contextSupport': False, 'completionItem': {'snippetSupport': False, 'commitCharactersSupport': False, 'preselectSupport': False, 'deprecatedSupport': False, 'documentationFormat': ['markdown', 'plaintext']}, 'dynamicRegistration': False, 'completionItemKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}}, 'references': {'dynamicRegistration': False}, 'documentHighlight': {'dynamicRegistration': False}, 'synchronization': {'didSave': True, 'dynamicRegistration': False, 'willSave': False, 'willSaveWaitUntil': False}, 'definition': {'linkSupport': True}, 'hover': {'contentFormat': ['markdown', 'plaintext'], 'dynamicRegistration': False}, 'publishDiagnostics': {'tagSupport': {'valueSet': [1, 2]}, 'relatedInformation': True}, 'codeAction': {'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['', 'Empty', 'QuickFix', 'Refactor', 'RefactorExtract', 'RefactorInline', 'RefactorRewrite', 'Source', 'SourceOrganizeImports', 'quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source', 'source.organizeImports']}}, 'isPreferredSupport': True, 'dynamicRegistration': False, 'dataSupport': True, 'resolveSupport': {'properties': ['edit']}}, 'rename': {'prepareSupport': True, 'dynamicRegistration': False}, 'implementation': {'linkSupport': True}, 'typeDefinition': {'linkSupport': True}, 'documentSymbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}, 'hierarchicalDocumentSymbolSupport': True, 'dynamicRegistration': False}, 'signatureHelp': {'signatureInformation': {'activeParameterSupport': True, 'parameterInformation': {'labelOffsetSupport': True}, 'documentationFormat': ['markdown', 'plaintext']}, 'dynamicRegistration': False}, 'declaration': {'linkSupport': True}}, 'window': {'workDoneProgress': True, 'showMessage': {'messageActionItem': {'additionalPropertiesSupport': False}}, 'showDocument': {'support': False}}}, 'workspaceFolders': None}, 'method': 'initialize', 'jsonrpc': '2.0'}2023-01-28 15:57:32,644 PST - DEBUG - pylsp.python_lsp - Language server initialized with 1016258 None None {}2023-01-28 15:57:32,819 PST - INFO - root - Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt2023-01-28 15:57:32,835 PST - INFO - root - Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin autopep8 from <module 'pylsp.plugins.autopep8_format' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/autopep8_format.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin flake8 from <module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin folding from <module 'pylsp.plugins.folding' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/folding.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_completion from <module 'pylsp.plugins.jedi_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/jedi_completion.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_definition from <module 'pylsp.plugins.definition' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/definition.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_highlight from <module 'pylsp.plugins.highlight' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/highlight.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_hover from <module 'pylsp.plugins.hover' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/hover.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_references from <module 'pylsp.plugins.references' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/references.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_rename from <module 'pylsp.plugins.jedi_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/jedi_rename.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_signature_help from <module 'pylsp.plugins.signature' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/signature.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_symbols from <module 'pylsp.plugins.symbols' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/symbols.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin mccabe from <module 'pylsp.plugins.mccabe_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/mccabe_lint.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin preload from <module 'pylsp.plugins.preload_imports' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/preload_imports.py'>2023-01-28 15:57:32,850 PST - INFO - pylsp.config.config - Loaded pylsp plugin pycodestyle from <module 'pylsp.plugins.pycodestyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pycodestyle_lint.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin pydocstyle from <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin pyflakes from <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin pylint from <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_autoimport from <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_completion from <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_rename from <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Loaded pylsp plugin yapf from <module 'pylsp.plugins.yapf_format' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/yapf_format.py'>2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config -   pylsp_settings [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config -   finish pylsp_settings --> [{'plugins': {'rope_rename': {'enabled': False}}}, {'plugins': {'rope_completion': {'enabled': False, 'eager': False}}}, {'plugins': {'rope_autoimport': {'enabled': False, 'memory': False}}}, {'plugins': {'pylint': {'enabled': False, 'args': [], 'executable': None}}}, {'plugins': {'pydocstyle': {'enabled': False}}}, {'plugins': {'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, {'plugins': {'flake8': {'enabled': False}}}] [hook]2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'rope_completion': {'enabled': False, 'eager': False}, 'rope_rename': {'enabled': False}, 'pydocstyle': {'enabled': False}, 'flake8': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,851 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config -   pylsp_dispatchers [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: None2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config -   finish pylsp_dispatchers --> [] [hook]2023-01-28 15:57:32,851 PST - DEBUG - pylsp.config.config -   pylsp_initialize [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: None2023-01-28 15:57:32,852 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,852 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,852 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'rope_completion': {'enabled': False, 'eager': False}, 'rope_rename': {'enabled': False}, 'pydocstyle': {'enabled': False}, 'flake8': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module array2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module audioop2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module binascii2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module cmath2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module collections2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module datetime2023-01-28 15:57:32,852 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module errno2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module gc2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module imp2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module itertools2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module marshal2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module math2023-01-28 15:57:32,853 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module mmap2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module operator2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module os2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module os.path2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module parser2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module signal2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module sys2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module time2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module xxsubtype2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module zipimport2023-01-28 15:57:32,854 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module zlib2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   finish pylsp_initialize --> [] [hook]2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   pylsp_commands [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: None2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   finish pylsp_commands --> [] [hook]2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   pylsp_experimental_capabilities [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: None2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   finish pylsp_experimental_capabilities --> [] [hook]2023-01-28 15:57:32,855 PST - INFO - pylsp.python_lsp - Server capabilities: {'codeActionProvider': True, 'codeLensProvider': {'resolveProvider': False}, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['.']}, 'documentFormattingProvider': True, 'documentHighlightProvider': True, 'documentRangeFormattingProvider': True, 'documentSymbolProvider': True, 'definitionProvider': True, 'executeCommandProvider': {'commands': []}, 'hoverProvider': True, 'referencesProvider': True, 'renameProvider': True, 'foldingRangeProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(', ',', '=']}, 'textDocumentSync': {'change': 2, 'save': {'includeText': True}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'experimental': {}}2023-01-28 15:57:32,855 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: {'capabilities': {'codeActionProvider': True, 'codeLensProvider': {'resolveProvider': False}, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['.']}, 'documentFormattingProvider': True, 'documentHighlightProvider': True, 'documentRangeFormattingProvider': True, 'documentSymbolProvider': True, 'definitionProvider': True, 'executeCommandProvider': {'commands': []}, 'hoverProvider': True, 'referencesProvider': True, 'renameProvider': True, 'foldingRangeProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(', ',', '=']}, 'textDocumentSync': {'change': 2, 'save': {'includeText': True}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'experimental': {}}, 'serverInfo': {'name': 'pylsp', 'version': '1.7.1'}}2023-01-28 15:57:32,855 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': 'initialized', 'params': {}, 'jsonrpc': '2.0'}2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   pylsp_initialized [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: None2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config -   finish pylsp_initialized --> [] [hook]2023-01-28 15:57:32,855 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': 'workspace/didChangeConfiguration', 'params': {'settings': {'pylsp': {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}}}, 'jsonrpc': '2.0'}2023-01-28 15:57:32,855 PST - INFO - pylsp.config.config - Updated settings to {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}2023-01-28 15:57:32,855 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}, 'rope_rename': {'enabled': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}, 'pydocstyle': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'flake8': {'enabled': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,856 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-28 15:57:32,856 PST - INFO - pylsp.config.config - Updated settings to {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}, 'rope_rename': {'enabled': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}, 'pydocstyle': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'flake8': {'enabled': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,856 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-28 15:57:32,856 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': 'workspace/didChangeConfiguration', 'params': {'settings': {'pylsp': {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}}}, 'jsonrpc': '2.0'}2023-01-28 15:57:32,856 PST - INFO - pylsp.config.config - Updated settings to {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,856 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}, 'rope_rename': {'enabled': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}, 'pydocstyle': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'flake8': {'enabled': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,857 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-28 15:57:32,857 PST - INFO - pylsp.config.config - Updated settings to {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}}}2023-01-28 15:57:32,857 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:32,857 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:32,857 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}, 'rope_rename': {'enabled': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}, 'pydocstyle': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'flake8': {'enabled': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:32,857 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-28 15:57:32,857 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': 'textDocument/didOpen', 'params': {'textDocument': {'languageId': 'python', 'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py', 'version': 0, 'text': '#!/usr/bin/env python3\n\n!!\n\n"""Test"""\n\nprint(\'hi\')\n\ndef foo():\n  print(\'bye\')\n\n# 345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\n#        1         2         3         5         5         6         7         8         9         0         1         2         3\n'}}, 'jsonrpc': '2.0'}2023-01-28 15:57:32,857 PST - DEBUG - pylsp.config.config -   pylsp_document_did_open [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py2023-01-28 15:57:32,857 PST - DEBUG - pylsp.config.config -   finish pylsp_document_did_open --> [] [hook]2023-01-28 15:57:33,358 PST - DEBUG - pylsp.config.config -   pylsp_lint [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py      is_saved: True2023-01-28 15:57:33,359 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '34a6d763-b6ba-41d3-93c1-7613b0be2002', 'value': {'kind': 'begin', 'title': 'lint: pycodestyle'}}2023-01-28 15:57:33,360 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-28 15:57:33,360 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-28 15:57:33,361 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'ruff': {'enabled': True, 'lineLength': 132}, 'pyflakes': {'enabled': False}, 'rope_rename': {'enabled': False}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}, 'pydocstyle': {'enabled': False}, 'pylint': {'enabled': False, 'args': [], 'executable': None}, 'flake8': {'enabled': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-28 15:57:33,361 PST - DEBUG - pylsp.plugins.pycodestyle_lint - Got pycodestyle settings: {}2023-01-28 15:57:33,366 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '34a6d763-b6ba-41d3-93c1-7613b0be2002', 'value': {'kind': 'end'}}2023-01-28 15:57:33,366 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '86894eb0-590b-4650-a7b3-6d215ce7319a', 'value': {'kind': 'begin', 'title': 'lint: mccabe'}}2023-01-28 15:57:33,367 PST - DEBUG - pylsp.plugins.mccabe_lint - Running mccabe lint with threshold: 152023-01-28 15:57:33,367 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '86894eb0-590b-4650-a7b3-6d215ce7319a', 'value': {'kind': 'end'}}2023-01-28 15:57:33,367 PST - DEBUG - pylsp.config.config -   finish pylsp_lint --> [[{'source': 'pycodestyle', 'range': {'start': {'line': 8, 'character': 0}, 'end': {'line': 8, 'character': 11}}, 'message': 'E302 expected 2 blank lines, found 1', 'code': 'E302', 'severity': 2}, {'source': 'pycodestyle', 'range': {'start': {'line': 9, 'character': 2}, 'end': {'line': 9, 'character': 15}}, 'message': 'E111 indentation is not a multiple of 4', 'code': 'E111', 'severity': 2}, {'source': 'pycodestyle', 'range': {'start': {'line': 12, 'character': 79}, 'end': {'line': 12, 'character': 131}}, 'message': 'E501 line too long (130 > 79 characters)', 'code': 'E501', 'severity': 2}]] [hook]2023-01-28 15:57:33,367 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: textDocument/publishDiagnostics {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py', 'diagnostics': [{'source': 'pycodestyle', 'range': {'start': {'line': 8, 'character': 0}, 'end': {'line': 8, 'character': 11}}, 'message': 'E302 expected 2 blank lines, found 1', 'code': 'E302', 'severity': 2}, {'source': 'pycodestyle', 'range': {'start': {'line': 9, 'character': 2}, 'end': {'line': 9, 'character': 15}}, 'message': 'E111 indentation is not a multiple of 4', 'code': 'E111', 'severity': 2}, {'source': 'pycodestyle', 'range': {'start': {'line': 12, 'character': 79}, 'end': {'line': 12, 'character': 131}}, 'message': 'E501 line too long (130 > 79 characters)', 'code': 'E501', 'severity': 2}]}2023-01-28 15:57:34,736 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'id': 2, 'params': {'position': {'character': 0, 'line': 0}, 'textDocument': {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py'}}, 'method': 'textDocument/documentHighlight', 'jsonrpc': '2.0'}2023-01-28 15:57:34,737 PST - DEBUG - pylsp.config.config -   pylsp_document_highlight [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py      position: {'character': 0, 'line': 0}2023-01-28 15:57:34,839 PST - DEBUG - pylsp.config.config -   finish pylsp_document_highlight --> [[]] [hook]2023-01-28 15:57:34,839 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: None2023-01-28 15:57:35,784 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': '$/cancelRequest', 'params': {'id': 2}, 'jsonrpc': '2.0'}2023-01-28 15:57:35,784 PST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 22023-01-28 15:57:35,785 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'id': 3, 'params': {'position': {'character': 0, 'line': 0}, 'textDocument': {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py'}}, 'method': 'textDocument/documentHighlight', 'jsonrpc': '2.0'}2023-01-28 15:57:35,786 PST - DEBUG - pylsp.config.config -   pylsp_document_highlight [hook]      config: <pylsp.config.config.Config object at 0x7fde617d5280>      workspace: <pylsp.workspace.Workspace object at 0x7fde617a5f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/fodder.py      position: {'character': 0, 'line': 0}2023-01-28 15:57:35,787 PST - DEBUG - pylsp.config.config -   finish pylsp_document_highlight --> [[]] [hook]2023-01-28 15:57:35,787 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: None2023-01-28 15:57:35,787 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'id': 4, 'method': 'shutdown', 'jsonrpc': '2.0'}2023-01-28 15:57:35,788 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: None2023-01-28 15:57:35,796 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'method': 'exit', 'jsonrpc': '2.0'}
@jhossbach
Comment options

This is sometimes /usr/local/bin, sometimes ~/.local/bin

Does that mean you have two versions of ruff, one in/usr/local/bin and one in~/.local/bin? If so, please verify that both versions are recent enough (or the latest version).

Pyflakes is disabled per default when python-lsp-ruff is installed, when not stated otherwise in your config. Removing this line should thus not change anything.

Assuming that you still have your custom ruff config in~/.config/ruff withline-length = 132, please create a newtest.py file with the following content:

very_long_variable_name_that_does_not_respect_the_line_length_limit_provided_in_the_custom_config_pyproject_toml_file=23+24+25+26

callingruff on this file should result in the correct errorE501: Line too long (137 > 132 characters), please verify that this happens.
Next, please use the following config for the LSP:

require('lspconfig').pylsp.setup({-- For troubleshooting pylsp issues:cmd= {"pylsp","-vvv","--log-file","/tmp/pylsp.log"},})

Remove the old/tmp/pylsp.log and open thetest.py file with neovim. The newpylsp.log should help us figure out what is going on.

@dstromberg
Comment options

I have just one ruff on my computer named tp-mini-c. I've been setting this up on multiple computers, hence the different paths to ruff. The version is 0.0.236

I set up the test.py you suggested, and got:
│  line too long (137 > 132 characters) pycodestyle (E501) [1, 133]
│  E501 line too long (137 > 79 characters) pycodestyle (E501) [1, 80]
│  Missing docstring in public module pydocstyle (D100) [1, 1]

...and nothing more.

When I use that config.lua and:

vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright" })                                                      -- remove `pylsp` from `skipped_servers` list                                                                                         lvim.lsp.automatic_configuration.skipped_servers = vim.tbl_filter(function(server)                                                     return server ~= "pylsp"                                                                                                                                                        end, lvim.lsp.automatic_configuration.skipped_servers)

...then editing test.py gives the following in /tmp/pylsp.py:

2023-01-29 08:13:06,490 PST - INFO - pylsp.python_lsp - Starting PythonLSPServer IO language server2023-01-29 08:13:06,491 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'jsonrpc': '2.0', 'method': 'initialize', 'id': 1, 'params': {'trace': 'off', 'capabilities': {'window': {'workDoneProgress': True, 'showMessage': {'messageActionItem': {'additionalPropertiesSupport': False}}, 'showDocument': {'support': False}}, 'callHierarchy': {'dynamicRegistration': False}, 'textDocument': {'documentSymbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}, 'dynamicRegistration': False, 'hierarchicalDocumentSymbolSupport': True}, 'synchronization': {'willSaveWaitUntil': False, 'willSave': False, 'dynamicRegistration': False, 'didSave': True}, 'documentHighlight': {'dynamicRegistration': False}, 'signatureHelp': {'dynamicRegistration': False, 'signatureInformation': {'activeParameterSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}}}, 'publishDiagnostics': {'tagSupport': {'valueSet': [1, 2]}, 'relatedInformation': True}, 'references': {'dynamicRegistration': False}, 'hover': {'dynamicRegistration': False, 'contentFormat': ['markdown', 'plaintext']}, 'rename': {'prepareSupport': True, 'dynamicRegistration': False}, 'codeAction': {'isPreferredSupport': True, 'dataSupport': True, 'resolveSupport': {'properties': ['edit']}, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['', 'Empty', 'QuickFix', 'Refactor', 'RefactorExtract', 'RefactorInline', 'RefactorRewrite', 'Source', 'SourceOrganizeImports', 'quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source', 'source.organizeImports']}}, 'dynamicRegistration': False}, 'typeDefinition': {'linkSupport': True}, 'declaration': {'linkSupport': True}, 'implementation': {'linkSupport': True}, 'definition': {'linkSupport': True}, 'completion': {'completionItemKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}, 'completionItem': {'commitCharactersSupport': False, 'snippetSupport': False, 'documentationFormat': ['markdown', 'plaintext'], 'deprecatedSupport': False, 'preselectSupport': False}, 'contextSupport': False, 'dynamicRegistration': False}}, 'workspace': {'applyEdit': True, 'configuration': True, 'workspaceFolders': True, 'symbol': {'hierarchicalWorkspaceSymbolSupport': True, 'dynamicRegistration': False, 'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}}, 'workspaceEdit': {'resourceOperations': ['rename', 'create', 'delete']}}}, 'workspaceFolders': None, 'initializationOptions': {}, 'processId': 1057978, 'rootUri': None, 'rootPath': None, 'clientInfo': {'name': 'Neovim', 'version': '0.8.2'}}}2023-01-29 08:13:06,491 PST - DEBUG - pylsp.python_lsp - Language server initialized with 1057978 None None {}2023-01-29 08:13:06,662 PST - INFO - root - Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt2023-01-29 08:13:06,677 PST - INFO - root - Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin autopep8 from <module 'pylsp.plugins.autopep8_format' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/autopep8_format.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin flake8 from <module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin folding from <module 'pylsp.plugins.folding' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/folding.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_completion from <module 'pylsp.plugins.jedi_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/jedi_completion.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_definition from <module 'pylsp.plugins.definition' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/definition.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_highlight from <module 'pylsp.plugins.highlight' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/highlight.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_hover from <module 'pylsp.plugins.hover' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/hover.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_references from <module 'pylsp.plugins.references' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/references.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_rename from <module 'pylsp.plugins.jedi_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/jedi_rename.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_signature_help from <module 'pylsp.plugins.signature' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/signature.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin jedi_symbols from <module 'pylsp.plugins.symbols' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/symbols.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin mccabe from <module 'pylsp.plugins.mccabe_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/mccabe_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin preload from <module 'pylsp.plugins.preload_imports' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/preload_imports.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin pycodestyle from <module 'pylsp.plugins.pycodestyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pycodestyle_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin pydocstyle from <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin pyflakes from <module 'pylsp.plugins.pyflakes_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pyflakes_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin pylint from <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_autoimport from <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_completion from <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin rope_rename from <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>2023-01-29 08:13:06,691 PST - INFO - pylsp.config.config - Loaded pylsp plugin yapf from <module 'pylsp.plugins.yapf_format' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/yapf_format.py'>2023-01-29 08:13:06,691 PST - DEBUG - pylsp.config.config -   pylsp_settings [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>2023-01-29 08:13:06,691 PST - DEBUG - pylsp.config.config -   finish pylsp_settings --> [{'plugins': {'rope_rename': {'enabled': False}}}, {'plugins': {'rope_completion': {'enabled': False, 'eager': False}}}, {'plugins': {'rope_autoimport': {'enabled': False, 'memory': False}}}, {'plugins': {'pylint': {'enabled': False, 'args': [], 'executable': None}}}, {'plugins': {'pydocstyle': {'enabled': False}}}, {'plugins': {'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}, {'plugins': {'flake8': {'enabled': False}}}] [hook]2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'pylint': {'enabled': False, 'args': [], 'executable': None}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'flake8': {'enabled': False}, 'pydocstyle': {'enabled': False}, 'rope_rename': {'enabled': False}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-29 08:13:06,692 PST - INFO - pylsp.config.config - Disabled plugins: [<module 'pylsp.plugins.flake8_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/flake8_lint.py'>, <module 'pylsp.plugins.pydocstyle_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pydocstyle_lint.py'>, <module 'pylsp.plugins.pylint_lint' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/pylint_lint.py'>, <module 'pylsp.plugins.rope_autoimport' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_autoimport.py'>, <module 'pylsp.plugins.rope_completion' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_completion.py'>, <module 'pylsp.plugins.rope_rename' from '/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/lib/python3.9/site-packages/pylsp/plugins/rope_rename.py'>]2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config -   pylsp_dispatchers [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: None2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config -   finish pylsp_dispatchers --> [] [hook]2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config -   pylsp_initialize [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: None2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-29 08:13:06,692 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'pylint': {'enabled': False, 'args': [], 'executable': None}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'flake8': {'enabled': False}, 'pydocstyle': {'enabled': False}, 'rope_rename': {'enabled': False}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-29 08:13:06,692 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module array2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module audioop2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module binascii2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module cmath2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module collections2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module datetime2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module errno2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module gc2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module imp2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module itertools2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module marshal2023-01-29 08:13:06,693 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module math2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module mmap2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module operator2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module os2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module os.path2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module parser2023-01-29 08:13:06,694 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module signal2023-01-29 08:13:06,695 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module sys2023-01-29 08:13:06,695 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module time2023-01-29 08:13:06,695 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module xxsubtype2023-01-29 08:13:06,695 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module zipimport2023-01-29 08:13:06,695 PST - DEBUG - pylsp.plugins.preload_imports - Preloaded module zlib2023-01-29 08:13:06,695 PST - DEBUG - pylsp.config.config -   finish pylsp_initialize --> [] [hook]2023-01-29 08:13:06,695 PST - DEBUG - pylsp.config.config -   pylsp_commands [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: None2023-01-29 08:13:06,695 PST - DEBUG - pylsp.config.config -   finish pylsp_commands --> [] [hook]2023-01-29 08:13:06,695 PST - DEBUG - pylsp.config.config -   pylsp_experimental_capabilities [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: None2023-01-29 08:13:06,695 PST - DEBUG - pylsp.config.config -   finish pylsp_experimental_capabilities --> [] [hook]2023-01-29 08:13:06,695 PST - INFO - pylsp.python_lsp - Server capabilities: {'codeActionProvider': True, 'codeLensProvider': {'resolveProvider': False}, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['.']}, 'documentFormattingProvider': True, 'documentHighlightProvider': True, 'documentRangeFormattingProvider': True, 'documentSymbolProvider': True, 'definitionProvider': True, 'executeCommandProvider': {'commands': []}, 'hoverProvider': True, 'referencesProvider': True, 'renameProvider': True, 'foldingRangeProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(', ',', '=']}, 'textDocumentSync': {'change': 2, 'save': {'includeText': True}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'experimental': {}}2023-01-29 08:13:06,695 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: {'capabilities': {'codeActionProvider': True, 'codeLensProvider': {'resolveProvider': False}, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['.']}, 'documentFormattingProvider': True, 'documentHighlightProvider': True, 'documentRangeFormattingProvider': True, 'documentSymbolProvider': True, 'definitionProvider': True, 'executeCommandProvider': {'commands': []}, 'hoverProvider': True, 'referencesProvider': True, 'renameProvider': True, 'foldingRangeProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(', ',', '=']}, 'textDocumentSync': {'change': 2, 'save': {'includeText': True}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'experimental': {}}, 'serverInfo': {'name': 'pylsp', 'version': '1.7.1'}}2023-01-29 08:13:06,695 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'jsonrpc': '2.0', 'method': 'initialized', 'params': {}}2023-01-29 08:13:06,696 PST - DEBUG - pylsp.config.config -   pylsp_initialized [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: None2023-01-29 08:13:06,696 PST - DEBUG - pylsp.config.config -   finish pylsp_initialized --> [] [hook]2023-01-29 08:13:06,696 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'textDocument': {'languageId': 'python', 'text': 'very_long_variable_name_that_does_not_respect_the_line_length_limit_provided_in_the_custom_config_pyproject_toml_file = 23 + 24 + 25 + 26\n', 'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py', 'version': 0}}}2023-01-29 08:13:06,696 PST - DEBUG - pylsp.config.config -   pylsp_document_did_open [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py2023-01-29 08:13:06,696 PST - DEBUG - pylsp.config.config -   finish pylsp_document_did_open --> [] [hook]2023-01-29 08:13:07,197 PST - DEBUG - pylsp.config.config -   pylsp_lint [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py      is_saved: True2023-01-29 08:13:07,198 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': 'b325566b-8190-4291-8616-6f2b9d318f66', 'value': {'kind': 'begin', 'title': 'lint: pyflakes'}}2023-01-29 08:13:07,200 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': 'b325566b-8190-4291-8616-6f2b9d318f66', 'value': {'kind': 'end'}}2023-01-29 08:13:07,200 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '554589f6-6195-4680-8e3c-d692adde3855', 'value': {'kind': 'begin', 'title': 'lint: pycodestyle'}}2023-01-29 08:13:07,201 PST - DEBUG - pylsp.config.config - Got user config from PyCodeStyleConfig: {}2023-01-29 08:13:07,201 PST - DEBUG - pylsp.config.config - Got project config from PyCodeStyleConfig: {}2023-01-29 08:13:07,201 PST - DEBUG - pylsp.config.config - With configuration: {'plugins': {'pylint': {'enabled': False, 'args': [], 'executable': None}, 'preload': {'modules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}, 'flake8': {'enabled': False}, 'pydocstyle': {'enabled': False}, 'rope_rename': {'enabled': False}, 'rope_autoimport': {'enabled': False, 'memory': False}, 'rope_completion': {'enabled': False, 'eager': False}}, 'rope': {'extensionModules': ['OpenGL', 'PIL', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'matplotlib', 'mmap', 'mpmath', 'msvcrt', 'networkx', 'nose', 'nt', 'numpy', 'operator', 'os', 'os.path', 'pandas', 'parser', 'rgbimg', 'scipy', 'signal', 'skimage', 'sklearn', 'statsmodels', 'strop', 'sympy', 'sys', 'thread', 'time', 'wx', 'xxsubtype', 'zipimport', 'zlib']}}2023-01-29 08:13:07,202 PST - DEBUG - pylsp.plugins.pycodestyle_lint - Got pycodestyle settings: {}2023-01-29 08:13:07,204 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '554589f6-6195-4680-8e3c-d692adde3855', 'value': {'kind': 'end'}}2023-01-29 08:13:07,204 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '3aa0fc2a-d9e7-48b3-a754-5c92334bf134', 'value': {'kind': 'begin', 'title': 'lint: mccabe'}}2023-01-29 08:13:07,204 PST - DEBUG - pylsp.plugins.mccabe_lint - Running mccabe lint with threshold: 152023-01-29 08:13:07,204 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: $/progress {'token': '3aa0fc2a-d9e7-48b3-a754-5c92334bf134', 'value': {'kind': 'end'}}2023-01-29 08:13:07,204 PST - DEBUG - pylsp.config.config -   finish pylsp_lint --> [[], [{'source': 'pycodestyle', 'range': {'start': {'line': 0, 'character': 79}, 'end': {'line': 0, 'character': 138}}, 'message': 'E501 line too long (137 > 79 characters)', 'code': 'E501', 'severity': 2}], []] [hook]2023-01-29 08:13:07,204 PST - DEBUG - pylsp_jsonrpc.endpoint - Sending notification: textDocument/publishDiagnostics {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py', 'diagnostics': [{'source': 'pycodestyle', 'range': {'start': {'line': 0, 'character': 79}, 'end': {'line': 0, 'character': 138}}, 'message': 'E501 line too long (137 > 79 characters)', 'code': 'E501', 'severity': 2}]}2023-01-29 08:13:10,474 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'jsonrpc': '2.0', 'method': 'textDocument/documentHighlight', 'id': 2, 'params': {'textDocument': {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py'}, 'position': {'character': 0, 'line': 0}}}2023-01-29 08:13:10,475 PST - DEBUG - pylsp.config.config -   pylsp_document_highlight [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py      position: {'character': 0, 'line': 0}2023-01-29 08:13:10,587 PST - DEBUG - pylsp.config.config -   finish pylsp_document_highlight --> [[{'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 117}}, 'kind': 3}]] [hook]2023-01-29 08:13:10,587 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: [{'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 117}}, 'kind': 3}]2023-01-29 08:13:11,048 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'jsonrpc': '2.0', 'method': '$/cancelRequest', 'params': {'id': 2}}2023-01-29 08:13:11,048 PST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 22023-01-29 08:13:11,048 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'jsonrpc': '2.0', 'method': 'textDocument/documentHighlight', 'id': 3, 'params': {'textDocument': {'uri': 'file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py'}, 'position': {'character': 0, 'line': 0}}}2023-01-29 08:13:11,048 PST - DEBUG - pylsp.config.config -   pylsp_document_highlight [hook]      config: <pylsp.config.config.Config object at 0x7fefd64f1280>      workspace: <pylsp.workspace.Workspace object at 0x7fefd64c1f40>      document: file:///home/dstromberg/src/home-svn/lunarvim-config/trunk/test.py      position: {'character': 0, 'line': 0}2023-01-29 08:13:11,051 PST - DEBUG - pylsp.config.config -   finish pylsp_document_highlight --> [[{'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 117}}, 'kind': 3}]] [hook]2023-01-29 08:13:11,051 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: [{'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 117}}, 'kind': 3}]2023-01-29 08:13:11,051 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling request from client {'jsonrpc': '2.0', 'method': 'shutdown', 'id': 4}2023-01-29 08:13:11,051 PST - DEBUG - pylsp_jsonrpc.endpoint - Got result from synchronous request handler: None2023-01-29 08:13:11,067 PST - DEBUG - pylsp_jsonrpc.endpoint - Handling notification from client {'jsonrpc': '2.0', 'method': 'exit'}

Thanks!

@jhossbach
Comment options

Ah, I think I see the issue: When installingpylsp mason will create a virtual environment just for the LSP. In order for it to work you have topip install python-lsp-ruff when inside the venv with your terminal. Look for aactivate script somewhere in/home/dstromberg/.local/share/nvim/mason/packages/python-lsp-server/venv/, e.g..../bin/activate. Afterpython-lsp-ruff is installed in that environment everything should work fine.

@dstromberg
Comment options

Yes, that helped. Thank you!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
3 participants
@dstromberg@ccordoba12@jhossbach

[8]ページ先頭

©2009-2025 Movatter.jp