-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm using pyright as language server via a websocket server and pyright server run in --stdio mode. recently I found that my dev project (installed via pip install -e .) can't be resolved by pyright langserver. previously I use extraPaths to tell pyright check my dev project and it works well in pyright <= 1.1.339.
packages in standard python directory (miniconda3) have no problem.
I test some pyright versions by binary search and get following result:
version <= 1.1.339: works
version == 1.1.340: hang
version >= 1.1.341: not working
Code or Screenshots
I can provide language server input and output jsonrpc messages:
1.1.347:
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 0, 'method': 'initialize', 'params': {'processId': None, 'clientInfo': {'name': 'Monaco', 'version': '1.76.0'}, 'locale': 'en-US', 'rootPath': None, 'rootUri': None, 'capabilities': {'workspace': {'applyEdit': True, 'workspaceEdit': {'documentChanges': True, 'resourceOperations': ['create', 'rename', 'delete'], 'failureHandling': 'textOnlyTransactional', 'normalizesLineEndings': True, 'changeAnnotationSupport': {'groupsOnLabel': True}}, 'configuration': True, 'codeLens': {'refreshSupport': True}, 'executeCommand': {'dynamicRegistration': True}, 'didChangeConfiguration': {'dynamicRegistration': True}, 'workspaceFolders': True, 'semanticTokens': {'refreshSupport': True}, 'inlayHint': {'refreshSupport': True}, 'diagnostics': {'refreshSupport': True}}, 'textDocument': {'publishDiagnostics': {'relatedInformation': True, 'versionSupport': False, 'tagSupport': {'valueSet': [1, 2]}, 'codeDescriptionSupport': True, 'dataSupport': True}, 'synchronization': {'dynamicRegistration': True}, 'completion': {'dynamicRegistration': True, 'contextSupport': True, 'completionItem': {'snippetSupport': True, 'commitCharactersSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'deprecatedSupport': True, 'preselectSupport': True, 'tagSupport': {'valueSet': [1]}, 'insertReplaceSupport': True, 'resolveSupport': {'properties': ['documentation', 'detail', 'additionalTextEdits']}, 'insertTextModeSupport': {'valueSet': [1, 2]}, 'labelDetailsSupport': True}, 'insertTextMode': 2, '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]}, 'completionList': {'itemDefaults': ['commitCharacters', 'editRange', 'insertTextFormat', 'insertTextMode']}}, 'hover': {'dynamicRegistration': True, 'contentFormat': ['markdown', 'plaintext']}, 'signatureHelp': {'dynamicRegistration': True, 'signatureInformation': {'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}, 'activeParameterSupport': True}, 'contextSupport': True}, 'definition': {'dynamicRegistration': True, 'linkSupport': True}, 'references': {'dynamicRegistration': True}, 'documentHighlight': {'dynamicRegistration': True}, 'documentSymbol': {'dynamicRegistration': 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]}, 'hierarchicalDocumentSymbolSupport': True, 'tagSupport': {'valueSet': [1]}, 'labelSupport': True}, 'codeAction': {'dynamicRegistration': True, 'isPreferredSupport': True, 'disabledSupport': True, 'dataSupport': True, 'resolveSupport': {'properties': ['edit']}, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['', 'quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source', 'source.organizeImports']}}, 'honorsChangeAnnotations': False}, 'codeLens': {'dynamicRegistration': True}, 'formatting': {'dynamicRegistration': True}, 'rangeFormatting': {'dynamicRegistration': True}, 'onTypeFormatting': {'dynamicRegistration': True}, 'rename': {'dynamicRegistration': True, 'prepareSupport': True, 'prepareSupportDefaultBehavior': 1, 'honorsChangeAnnotations': True}, 'documentLink': {'dynamicRegistration': True, 'tooltipSupport': True}, 'typeDefinition': {'dynamicRegistration': True, 'linkSupport': True}, 'implementation': {'dynamicRegistration': True, 'linkSupport': True}, 'colorProvider': {'dynamicRegistration': True}, 'foldingRange': {'dynamicRegistration': True, 'rangeLimit': 5000, 'lineFoldingOnly': True, 'foldingRangeKind': {'valueSet': ['comment', 'imports', 'region']}, 'foldingRange': {'collapsedText': False}}, 'declaration': {'dynamicRegistration': True, 'linkSupport': True}, 'selectionRange': {'dynamicRegistration': True}, 'semanticTokens': {'dynamicRegistration': 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'], 'requests': {'range': True, 'full': {'delta': True}}, 'multilineTokenSupport': False, 'overlappingTokenSupport': False, 'serverCancelSupport': True, 'augmentsSyntaxTokens': True}, 'linkedEditingRange': {'dynamicRegistration': True}, 'inlayHint': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['tooltip', 'textEdits', 'label.tooltip', 'label.location', 'label.command']}}, 'diagnostic': {'dynamicRegistration': True, 'relatedDocumentSupport': False}}, 'window': {'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}, 'showDocument': {'support': True}}, 'general': {'staleRequestSupport': {'cancel': True, 'retryOnContentModified': ['textDocument/semanticTokens/full', 'textDocument/semanticTokens/range', 'textDocument/semanticTokens/full/delta']}, 'regularExpressions': {'engine': 'ECMAScript', 'version': 'ES2020'}, 'markdown': {'parser': 'marked', 'version': '1.1.0'}, 'positionEncodings': ['utf-16']}}, 'trace': 'off', 'workspaceFolders': None}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Pyright language server 1.1.347 starting'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Server root directory: file:///root/.cache/pyright-python/1.1.347/node_modules/pyright/dist'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 0, 'result': {'capabilities': {'textDocumentSync': 2, '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}}}}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'initialized', 'params': {}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'textDocument': {'uri': 'file:///default', 'languageId': 'python', 'version': 1, 'text': ''}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Starting service instance "<default>"'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 0, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'python'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 0, 'result': [{'analysis': {'extraPaths': ['/root/distflow_dev/distflow/'], 'pythonPath': '/root/miniconda3/bin/python'}}]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 1, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'python.analysis'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 1, 'result': [{'extraPaths': ['/root/distflow_dev/distflow/'], 'pythonPath': '/root/miniconda3/bin/python'}]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 2, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'pyright'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 2, 'result': [None]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'No source files found.'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'textDocument/publishDiagnostics', 'params': {'uri': 'file:///default', 'version': 1, 'diagnostics': []}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E', 'languageId': 'python', 'version': 1, 'text': 'from tensorpc.flow import mui, three, plus, appctx, mark_create_layout\nclass App:\n @mark_create_layout\n def my_layout(self):\n return mui.VBox([\n mui.Typography("Hello World"),\n ])\n'}}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 1, 'method': 'textDocument/codeAction', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 0}}, 'context': {'diagnostics': [], 'triggerKind': 2}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 1, 'result': []}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'textDocument/publishDiagnostics', 'params': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E', 'version': 1, 'diagnostics': [{'range': {'start': {'line': 0, 'character': 5}, 'end': {'line': 0, 'character': 18}}, 'message': 'Import "tensorpc.flow" could not be resolved', 'severity': 1, 'code': 'reportMissingImports', 'source': 'Pyright', 'codeDescription': {'href': 'https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportMissingImports'}}, {'range': {'start': {'line': 0, 'character': 31}, 'end': {'line': 0, 'character': 36}}, 'message': '"three" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}, {'range': {'start': {'line': 0, 'character': 38}, 'end': {'line': 0, 'character': 42}}, 'message': '"plus" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}, {'range': {'start': {'line': 0, 'character': 44}, 'end': {'line': 0, 'character': 50}}, 'message': '"appctx" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 2, 'method': 'textDocument/codeAction', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 0}}, 'context': {'diagnostics': [], 'triggerKind': 2}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 2, 'result': []}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 3, 'method': 'textDocument/hover', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'position': {'line': 0, 'character': 16}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 3, 'result': None}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 4, 'method': 'textDocument/codeAction', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'range': {'start': {'line': 0, 'character': 5}, 'end': {'line': 0, 'character': 18}}, 'context': {'diagnostics': [{'range': {'start': {'line': 0, 'character': 5}, 'end': {'line': 0, 'character': 18}}, 'message': 'Import "tensorpc.flow" could not be resolved', 'code': 'reportMissingImports', 'codeDescription': {'href': 'https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportMissingImports'}, 'severity': 1, 'source': 'Pyright'}], 'only': ['quickfix'], 'triggerKind': 1}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 4, 'result': []}
1.1.339:
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 0, 'method': 'initialize', 'params': {'processId': None, 'clientInfo': {'name': 'Monaco', 'version': '1.76.0'}, 'locale': 'en-US', 'rootPath': None, 'rootUri': None, 'capabilities': {'workspace': {'applyEdit': True, 'workspaceEdit': {'documentChanges': True, 'resourceOperations': ['create', 'rename', 'delete'], 'failureHandling': 'textOnlyTransactional', 'normalizesLineEndings': True, 'changeAnnotationSupport': {'groupsOnLabel': True}}, 'configuration': True, 'codeLens': {'refreshSupport': True}, 'executeCommand': {'dynamicRegistration': True}, 'didChangeConfiguration': {'dynamicRegistration': True}, 'workspaceFolders': True, 'semanticTokens': {'refreshSupport': True}, 'inlayHint': {'refreshSupport': True}, 'diagnostics': {'refreshSupport': True}}, 'textDocument': {'publishDiagnostics': {'relatedInformation': True, 'versionSupport': False, 'tagSupport': {'valueSet': [1, 2]}, 'codeDescriptionSupport': True, 'dataSupport': True}, 'synchronization': {'dynamicRegistration': True}, 'completion': {'dynamicRegistration': True, 'contextSupport': True, 'completionItem': {'snippetSupport': True, 'commitCharactersSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'deprecatedSupport': True, 'preselectSupport': True, 'tagSupport': {'valueSet': [1]}, 'insertReplaceSupport': True, 'resolveSupport': {'properties': ['documentation', 'detail', 'additionalTextEdits']}, 'insertTextModeSupport': {'valueSet': [1, 2]}, 'labelDetailsSupport': True}, 'insertTextMode': 2, '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]}, 'completionList': {'itemDefaults': ['commitCharacters', 'editRange', 'insertTextFormat', 'insertTextMode']}}, 'hover': {'dynamicRegistration': True, 'contentFormat': ['markdown', 'plaintext']}, 'signatureHelp': {'dynamicRegistration': True, 'signatureInformation': {'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}, 'activeParameterSupport': True}, 'contextSupport': True}, 'definition': {'dynamicRegistration': True, 'linkSupport': True}, 'references': {'dynamicRegistration': True}, 'documentHighlight': {'dynamicRegistration': True}, 'documentSymbol': {'dynamicRegistration': 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]}, 'hierarchicalDocumentSymbolSupport': True, 'tagSupport': {'valueSet': [1]}, 'labelSupport': True}, 'codeAction': {'dynamicRegistration': True, 'isPreferredSupport': True, 'disabledSupport': True, 'dataSupport': True, 'resolveSupport': {'properties': ['edit']}, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['', 'quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source', 'source.organizeImports']}}, 'honorsChangeAnnotations': False}, 'codeLens': {'dynamicRegistration': True}, 'formatting': {'dynamicRegistration': True}, 'rangeFormatting': {'dynamicRegistration': True}, 'onTypeFormatting': {'dynamicRegistration': True}, 'rename': {'dynamicRegistration': True, 'prepareSupport': True, 'prepareSupportDefaultBehavior': 1, 'honorsChangeAnnotations': True}, 'documentLink': {'dynamicRegistration': True, 'tooltipSupport': True}, 'typeDefinition': {'dynamicRegistration': True, 'linkSupport': True}, 'implementation': {'dynamicRegistration': True, 'linkSupport': True}, 'colorProvider': {'dynamicRegistration': True}, 'foldingRange': {'dynamicRegistration': True, 'rangeLimit': 5000, 'lineFoldingOnly': True, 'foldingRangeKind': {'valueSet': ['comment', 'imports', 'region']}, 'foldingRange': {'collapsedText': False}}, 'declaration': {'dynamicRegistration': True, 'linkSupport': True}, 'selectionRange': {'dynamicRegistration': True}, 'semanticTokens': {'dynamicRegistration': 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'], 'requests': {'range': True, 'full': {'delta': True}}, 'multilineTokenSupport': False, 'overlappingTokenSupport': False, 'serverCancelSupport': True, 'augmentsSyntaxTokens': True}, 'linkedEditingRange': {'dynamicRegistration': True}, 'inlayHint': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['tooltip', 'textEdits', 'label.tooltip', 'label.location', 'label.command']}}, 'diagnostic': {'dynamicRegistration': True, 'relatedDocumentSupport': False}}, 'window': {'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}, 'showDocument': {'support': True}}, 'general': {'staleRequestSupport': {'cancel': True, 'retryOnContentModified': ['textDocument/semanticTokens/full', 'textDocument/semanticTokens/range', 'textDocument/semanticTokens/full/delta']}, 'regularExpressions': {'engine': 'ECMAScript', 'version': 'ES2020'}, 'markdown': {'parser': 'marked', 'version': '1.1.0'}, 'positionEncodings': ['utf-16']}}, 'trace': 'off', 'workspaceFolders': None}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Pyright language server 1.1.339 starting'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Server root directory: /root/.cache/pyright-python/1.1.339/node_modules/pyright/dist'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 0, 'result': {'capabilities': {'textDocumentSync': 2, '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}}}}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'initialized', 'params': {}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'textDocument': {'uri': 'file:///default', 'languageId': 'python', 'version': 1, 'text': ''}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'Starting service instance "<default>"'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 0, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'python'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 0, 'result': [{'analysis': {'extraPaths': ['/root/distflow_dev/distflow/'], 'pythonPath': '/root/miniconda3/bin/python'}}]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 1, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'python.analysis'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 1, 'result': [{'extraPaths': ['/root/distflow_dev/distflow/'], 'pythonPath': '/root/miniconda3/bin/python'}]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 2, 'method': 'workspace/configuration', 'params': {'items': [{'scopeUri': '', 'section': 'pyright'}]}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 2, 'result': [None]}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'window/logMessage', 'params': {'type': 3, 'message': 'No source files found.'}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'textDocument/publishDiagnostics', 'params': {'uri': 'file:///default', 'version': 1, 'diagnostics': []}}
[JSONRPC IN] {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E', 'languageId': 'python', 'version': 1, 'text': 'from tensorpc.flow import mui, three, plus, appctx, mark_create_layout\nclass App:\n @mark_create_layout\n def my_layout(self):\n return mui.VBox([\n mui.Typography("Hello World"),\n ])\n'}}}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 1, 'method': 'textDocument/codeAction', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 0}}, 'context': {'diagnostics': [], 'triggerKind': 2}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'method': 'textDocument/publishDiagnostics', 'params': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E', 'version': 1, 'diagnostics': [{'range': {'start': {'line': 0, 'character': 31}, 'end': {'line': 0, 'character': 36}}, 'message': '"three" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}, {'range': {'start': {'line': 0, 'character': 38}, 'end': {'line': 0, 'character': 42}}, 'message': '"plus" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}, {'range': {'start': {'line': 0, 'character': 44}, 'end': {'line': 0, 'character': 50}}, 'message': '"appctx" is not accessed', 'severity': 4, 'source': 'Pyright', 'tags': [1]}]}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 1, 'result': []}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 2, 'method': 'textDocument/codeAction', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 0}}, 'context': {'diagnostics': [], 'triggerKind': 2}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 2, 'result': []}
[JSONRPC IN] {'jsonrpc': '2.0', 'id': 3, 'method': 'textDocument/hover', 'params': {'textDocument': {'uri': 'file:///%3C__tensorpc_inmemory_fname-01-basic/1.1-Hello%20World.md-1%3E'}, 'position': {'line': 0, 'character': 17}}}
[JSONRPC OUT] <class 'dict'> {'jsonrpc': '2.0', 'id': 3, 'result': {'contents': {'kind': 'markdown', 'value': '```python\n(module) flow\n```'}, 'range': {'start': {'line': 0, 'character': 14}, 'end': {'line': 0, 'character': 18}}}}
VS Code extension or command-line
I'm using monaco, not vscode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working

