Troubleshooting: LSP-pyright
Version
- LSP: 1.26.0
- Sublime Text: 4152
Server Test Run
Server Configuration
[
"${node_bin}",
"${server_path}",
"--stdio"
]
/usr/bin/node "/home/patrick/.cache/sublime-text/Package Storage/LSP-pyright/21.1.0/language-server/node_modules/pyright/langserver.index.js" --stdio
source.python
(source.python - source.python.lsp)
{}
{
"pyright": {
"dev_environment": "",
"disableLanguageServices": false,
"disableOrganizeImports": false
},
"python": {
"analysis": {
"autoImportCompletions": true,
"autoSearchPaths": true,
"diagnosticMode": "openFilesOnly",
"diagnosticSeverityOverrides": {
"reportDuplicateImport": "warning",
"reportImplicitStringConcatenation": "warning",
"reportMissingParameterType": "none",
"reportUnboundVariable": "warning",
"reportUninitializedInstanceVariable": "none",
"reportUnusedClass": "information",
"reportUnusedFunction": "information",
"reportUnusedImport": "information",
"reportUnusedVariable": "information"
},
"extraPaths": [],
"logLevel": "Information",
"stubPath": "./typings",
"typeCheckingMode": "basic",
"typeshedPaths": [],
"useLibraryCodeForTypes": true
},
"pythonPath": "/usr/bin/python",
"venvPath": ""
}
}
{
"PATH": "/usr/bin:/usr/bin:"
}
Active view
/home/patrick/Schreibtisch/Python/Projekt/test.py
{
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"lsp_active": null,
"syntax": "Packages/Python/Python.sublime-syntax"
}
source.python
Project / Workspace
[
"/home/patrick/Schreibtisch/Python"
]
- is project: True
- project data:
{
"build_systems": [
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "\"python\" -u \"$file\""
}
],
"folders": [
{
"path": "/home/patrick/Schreibtisch/Python"
}
],
"settings": {
"LSP": {
"LSP-pyright": {
"enabled": true
}
}
}
}
LSP configuration
<not found>
System PATH
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin