Thanks for the help!!
Here’s the top of the log after a re-configuration by removing the pythonPath
settings:
:: [21:22:42.795] --> LSP-pyright initialize (1): {'processId': 2050, 'clientInfo': {'name': 'Sublime Text LSP', 'version': '2.0.0'}, 'rootUri': 'file:///Users/username/Developer/zekell/zekell_sqlite', 'rootPath': '/Users/username/Developer/zekell/zekell_sqlite', 'workspaceFolders': [{'name': 'zekell_sqlite', 'uri': 'file:///Users/username/Developer/zekell/zekell_sqlite'}], 'capabilities': {'general': {'regularExpressions': {'engine': 'ECMAScript'}, 'markdown': {'parser': 'Python-Markdown', 'version': '3.2.2'}}, 'textDocument': {'synchronization': {'dynamicRegistration': True, 'didSave': True, 'willSave': True, 'willSaveWaitUntil': True}, 'hover': {'dynamicRegistration': True, 'contentFormat': ['markdown', 'plaintext']}, 'completion': {'dynamicRegistration': True, 'completionItem': {'snippetSupport': True, 'deprecatedSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'tagSupport': {'valueSet': [1]}, 'resolveSupport': {'properties': ['detail', 'documentation', 'additionalTextEdits']}, 'insertReplaceSupport': True, 'insertTextModeSupport': {'valueSet': [2]}, 'labelDetailsSupport': True}, '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]}, 'insertTextMode': 2, 'completionList': {'itemDefaults': ['editRange', 'insertTextFormat', 'data']}}, 'signatureHelp': {'dynamicRegistration': True, 'contextSupport': True, 'signatureInformation': {'activeParameterSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}}}, 'references': {'dynamicRegistration': True}, 'documentHighlight': {'dynamicRegistration': True}, 'documentSymbol': {'dynamicRegistration': True, 'hierarchicalDocumentSymbolSupport': True, '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]}, 'tagSupport': {'valueSet': [1]}}, 'documentLink': {'dynamicRegistration': True, 'tooltipSupport': True}, 'formatting': {'dynamicRegistration': True}, 'rangeFormatting': {'dynamicRegistration': True, 'rangesSupport': True}, 'declaration': {'dynamicRegistration': True, 'linkSupport': True}, 'definition': {'dynamicRegistration': True, 'linkSupport': True}, 'typeDefinition': {'dynamicRegistration': True, 'linkSupport': True}, 'implementation': {'dynamicRegistration': True, 'linkSupport': True}, 'codeAction': {'dynamicRegistration': True, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source.fixAll', 'source.organizeImports']}}, 'dataSupport': True, 'isPreferredSupport': True, 'resolveSupport': {'properties': ['edit']}}, 'rename': {'dynamicRegistration': True, 'prepareSupport': True, 'prepareSupportDefaultBehavior': 1}, 'colorProvider': {'dynamicRegistration': True}, 'publishDiagnostics': {'relatedInformation': True, 'tagSupport': {'valueSet': [1, 2]}, 'versionSupport': True, 'codeDescriptionSupport': True, 'dataSupport': True}, 'diagnostic': {'dynamicRegistration': True, 'relatedDocumentSupport': True}, 'selectionRange': {'dynamicRegistration': True}, 'foldingRange': {'dynamicRegistration': True, 'foldingRangeKind': {'valueSet': ['comment', 'imports', 'region']}}, 'codeLens': {'dynamicRegistration': True}, 'inlayHint': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['textEdits', 'label.command']}}, 'semanticTokens': {'dynamicRegistration': True, 'requests': {'range': True, 'full': {'delta': True}}, 'tokenTypes': ['namespace', 'type', 'class', 'enum', 'interface', 'struct', 'typeParameter', 'parameter', 'variable', 'property', 'enumMember', 'event', 'function', 'method', 'macro', 'keyword', 'modifier', 'comment', 'string', 'number', 'regexp', 'operator', 'decorator'], 'tokenModifiers': ['declaration', 'definition', 'readonly', 'static', 'deprecated', 'abstract', 'async', 'modification', 'documentation', 'defaultLibrary'], 'formats': ['relative'], 'overlappingTokenSupport': False, 'multilineTokenSupport': True, 'augmentsSyntaxTokens': True}, 'callHierarchy': {'dynamicRegistration': True}, 'typeHierarchy': {'dynamicRegistration': True}}, 'workspace': {'applyEdit': True, 'didChangeConfiguration': {'dynamicRegistration': True}, 'executeCommand': {}, 'workspaceEdit': {'documentChanges': True, 'failureHandling': 'abort'}, 'workspaceFolders': True, 'symbol': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['location.range']}, '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]}, 'tagSupport': {'valueSet': [1]}}, 'configuration': True, 'codeLens': {'refreshSupport': True}, 'inlayHint': {'refreshSupport': True}, 'semanticTokens': {'refreshSupport': True}, 'diagnostics': {'refreshSupport': True}, 'didChangeWatchedFiles': {'dynamicRegistration': True}}, 'window': {'showDocument': {'support': True}, 'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}, 'workDoneProgress': True}}, 'initializationOptions': {}}
:: [21:22:42.800] <<< LSP-json (24) (duration: 102ms): None
:: [21:22:42.800] -> LSP-json exit: None
:: [21:22:42.800] <<< LSP-pyright (3) (duration: 74ms): None
:: [21:22:42.801] -> LSP-pyright exit: None
:: [21:22:43.063] <- LSP-pyright window/logMessage: {'type': 3, 'message': 'Pyright language server 1.1.359 starting'}
:: [21:22:43.063] <- LSP-pyright window/logMessage: {'type': 3, 'message': 'Server root directory: file:///Users/username/Library/Caches/Sublime%20Text/Package%20Storage/LSP-pyright/20.12.2/language-server/node_modules/pyright/dist'}
:: [21:22:43.071] <- LSP-pyright window/logMessage: {'type': 3, 'message': 'Starting service instance "zekell_sqlite"'}
:: [21:22:43.071] <<< LSP-pyright (1) (duration: 276ms): {'capabilities': {'definitionProvider': {'workDoneProgress': True}, 'declarationProvider': {'workDoneProgress': True}, 'typeDefinitionProvider': {'workDoneProgress': True}, 'referencesProvider': {'workDoneProgress': True}, 'documentSymbolProvider': {'workDoneProgress': True}, 'workspaceSymbolProvider': {'workDoneProgress': True}, 'hoverProvider': {'workDoneProgress': True}, 'documentHighlightProvider': {'workDoneProgress': True}, 'renameProvider': {'prepareProvider': True, 'workDoneProgress': True}, 'completionProvider': {'triggerCharacters': ['.', '[', '"', "'"], 'resolveProvider': True, 'workDoneProgress': True, 'completionItem': {'labelDetailsSupport': True}}, 'signatureHelpProvider': {'triggerCharacters': ['(', ',', ')'], 'workDoneProgress': True}, 'codeActionProvider': {'codeActionKinds': ['quickfix', 'source.organizeImports'], 'workDoneProgress': True}, 'executeCommandProvider': {'commands': [], 'workDoneProgress': True}, 'callHierarchyProvider': True, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'textDocumentSync': {'didOpen': {}, 'save': {}, 'didClose': {}, 'change': {'syncKind': 2}}}}
:: [21:22:43.072] -> LSP-pyright initialized: {}
:: [21:22:43.073] -> LSP-pyright workspace/didChangeConfiguration: {'settings': {'pyright': {'dev_environment': 'sublime_text_38', 'disableLanguageServices': False, 'disableOrganizeImports': False}, 'python': {'analysis': {'autoImportCompletions': True, 'autoSearchPaths': True, 'diagnosticMode': 'openFilesOnly', 'diagnosticSeverityOverrides': {'reportDuplicateImport': 'warning', 'reportImplicitStringConcatenation': 'warning', 'reportUnboundVariable': 'warning', 'reportUnusedClass': 'information', 'reportUnusedFunction': 'information', 'reportUnusedImport': 'information', 'reportUnusedVariable': 'information'}, 'extraPaths': ['/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python38', '/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python3', '/Users/username/Library/Application Support/Sublime Text/Lib/python38', '/Applications/Sublime Text 4.app/Contents/MacOS/Packages', '/Users/username/Library/Application Support/Sublime Text/Packages'], 'logLevel': 'Information', 'stubPath': './typings', 'typeCheckingMode': 'standard', 'typeshedPaths': [], 'useLibraryCodeForTypes': True}, 'pythonPath': '/usr/bin/python', 'venvPath': '/Users/username/miniconda3/envs/'}}}
The main section seems to be the last line, where venvPath
has registered by pythonPath
, which is left empty in all config, has defaulted to /usr/bin/python
.
:: [21:22:43.073] -> LSP-pyright workspace/didChangeConfiguration: {'settings': {'pyright': {'dev_environment': 'sublime_text_38', 'disableLanguageServices': False, 'disableOrganizeImports': False}, 'python': {'analysis': {'autoImportCompletions': True, 'autoSearchPaths': True, 'diagnosticMode': 'openFilesOnly', 'diagnosticSeverityOverrides': {'reportDuplicateImport': 'warning', 'reportImplicitStringConcatenation': 'warning', 'reportUnboundVariable': 'warning', 'reportUnusedClass': 'information', 'reportUnusedFunction': 'information', 'reportUnusedImport': 'information', 'reportUnusedVariable': 'information'}, 'extraPaths': ['/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python38', '/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python3', '/Users/username/Library/Application Support/Sublime Text/Lib/python38', '/Applications/Sublime Text 4.app/Contents/MacOS/Packages', '/Users/username/Library/Application Support/Sublime Text/Packages'], 'logLevel': 'Information', 'stubPath': './typings', 'typeCheckingMode': 'standard', 'typeshedPaths': [], 'useLibraryCodeForTypes': True}, 'pythonPath': '/usr/bin/python', 'venvPath': '/Users/username/miniconda3/envs/'}}}
In this case, there’s a pyrightconfig.json
as described above.