Describe the Bug
$ pyrefly --version
pyrefly 1.0.0
See log from Sublime Text LSP:
:: [17:26:12.576] --> pyrefly textDocument/codeAction (45): {'textDocument': {'uri': 'file:///Users/raouwols/Library/Application%20Support/Sublime%20Text/Packages/LSP/plugin/documents.py'}, 'range': {'start': {'line': 159, 'character': 1}, 'end': {'line': 159, 'character': 1}}, 'context': {'diagnostics': [{'code': 'unknown-name', 'codeDescription': {'href': 'https://pyrefly.org/en/docs/error-kinds/#unknown-name'}, 'data': 'committing-transaction', 'message': {'kind': 'markdown', 'value': 'Could not find name `l`'}, 'range': {'end': {'character': 1, 'line': 159}, 'start': {'character': 0, 'line': 159}}, 'severity': 1, 'source': 'Pyrefly'}], 'triggerKind': <CodeActionTriggerKind.Automatic: 2>, 'only': [<CodeActionKind.QuickFix: 'quickfix'>]}}
:: [17:26:12.733] <~~ pyrefly (45) (duration: 157ms): {'code': -32602, 'message': 'invalid type: map, expected a string'}
Expanded python parameter dict:
{
'textDocument': {
'uri': 'file:///Users/raouwols/Library/Application%20Support/Sublime%20Text/Packages/LSP/plugin/documents.py'
},
'range': {
'start': {
'line': 159,
'character': 1
},
'end': {
'line': 159,
'character': 1
}
},
'context': {
'diagnostics': [
{
'code': 'unknown-name',
'codeDescription': {
'href': 'https://pyrefly.org/en/docs/error-kinds/#unknown-name'
},
'data': 'committing-transaction',
'message': {
'kind': 'markdown',
'value': 'Could not find name `l`'
},
'range': {
'end': {
'character': 1,
'line': 159
},
'start': {
'character': 0,
'line': 159
}
},
'severity': 1,
'source': 'Pyrefly'
}
],
'triggerKind': 2,
'only': ['quickfix']
}
}
returned error:
{
'code': -32602,
'message': 'invalid type: map, expected a string'
}
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
>>> sublime.version()
'4200'
LSP package version: 2.12.1
Describe the Bug
See log from Sublime Text LSP:
Expanded python parameter dict:
{ 'textDocument': { 'uri': 'file:///Users/raouwols/Library/Application%20Support/Sublime%20Text/Packages/LSP/plugin/documents.py' }, 'range': { 'start': { 'line': 159, 'character': 1 }, 'end': { 'line': 159, 'character': 1 } }, 'context': { 'diagnostics': [ { 'code': 'unknown-name', 'codeDescription': { 'href': 'https://pyrefly.org/en/docs/error-kinds/#unknown-name' }, 'data': 'committing-transaction', 'message': { 'kind': 'markdown', 'value': 'Could not find name `l`' }, 'range': { 'end': { 'character': 1, 'line': 159 }, 'start': { 'character': 0, 'line': 159 } }, 'severity': 1, 'source': 'Pyrefly' } ], 'triggerKind': 2, 'only': ['quickfix'] } }returned error:
{ 'code': -32602, 'message': 'invalid type: map, expected a string' }Sandbox Link
No response
(Only applicable for extension issues) IDE Information
LSP package version: 2.12.1