python-lsp/python-lsp-ruff

Syntax errors not being shown when `select` is present in pyproject.toml

minusf opened this issue · 2 comments

Hello, giving this a go, and i am running into this strange situation where Syntax errors stop being shown if the pyproject.toml file contains a select = line.

without:

E class CustomFilter(PythonFilter):)))     ■■ SyntaxError: Unexpected token ')'
      ignore_dirs = ["__pycache__"]

with:

  class CustomFilter(PythonFilter):)))
      ignore_dirs = ["__pycache__"]

command line version works with the config file, so it's not a typo issue.

configuration is recommended lspconfig and

local lspconfig = require('lspconfig')
lspconfig.pylsp.setup {
  plugins = {
    ruff = {
      enabled = true,
    },
  }
}

extendSelect also doesn't seem to work.

doh. this was my mistake. "E" was missing from select. sorry for the noise

Glad it resolved itself.