Bug 514279

Summary: Kate LSP support sends "None" document variable to pylsp
Product: [Applications] kate Reporter: Tanguy Fardet <tfardet+kdebugs>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.12.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Error log from the LSP

Description Tanguy Fardet 2026-01-07 14:43:04 UTC
Created attachment 188292 [details]
Error log from the LSP

Since the 25.12 update (I think), the LSP for python is broken as Kate does not provide the document.

Kate LSP config and versions:
* jedi 0.46.0
* python-lsp-server 1.14.0

```json
{
  "servers": {
      "python": {
      "command": ["pylsp", "--check-parent-process"],
      "highlightingModeRegex": "^Python$",
      "settings": {
        "pylsp": {
          "plugins": {
            "autopep8": {
                "enabled": false
            },
            "flake8": {
                "enabled": false
            },
            "mccabe": {
                "enabled": false
            },
            "pycodestyle": {
                "enabled": false
            },
            "pydocstyle": {
                "enabled": false
            },
            "pylint": {
                "enabled": false
            },
            "mypy": {
                "enabled": false
            }
          }
        }
      }
    }
  }
}
```

Error message attached.