Skip to content

ruff server: Unable to take snapshot for document #11651

@T-256

Description

@T-256

Repro on VSCode: create new untitled notebook then close it.


2024-06-01 00:37:05.063 [info] [Trace - 12:37:05 AM] Received notification 'window/showMessage'.
2024-06-01 00:37:58.052 [info] [Trace - 12:37:58 AM] Sending notification 'notebookDocument/didOpen'.
2024-06-01 00:37:58.053 [info] [Trace - 12:37:58 AM] Sending notification 'notebookDocument/didChange'.
2024-06-01 00:37:58.056 [info]  194.326137s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.
 194.326153s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.

2024-06-01 00:37:58.057 [info] [Trace - 12:37:58 AM] Received notification 'textDocument/publishDiagnostics'.
2024-06-01 00:37:58.057 [info]  194.329275s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.
 194.329299s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.

2024-06-01 00:37:58.058 [info] [Trace - 12:37:58 AM] Received notification 'textDocument/publishDiagnostics'.
2024-06-01 00:37:58.285 [info] [Trace - 12:37:58 AM] Sending request 'textDocument/codeAction - (18)'.
2024-06-01 00:37:58.286 [info]  194.558099s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.
 194.558120s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'untitled:Untitled-2.ipynb?jupyter-notebook'.

2024-06-01 00:37:58.286 [info] [Trace - 12:37:58 AM] Received response 'textDocument/codeAction - (18)' in 1ms.
2024-06-01 00:38:08.026 [info] [Trace - 12:38:08 AM] Sending notification 'notebookDocument/didClose'.
2024-06-01 00:38:08.048 [info] [Trace - 12:38:08 AM] Sending notification 'textDocument/didClose'.
2024-06-01 00:38:08.049 [info]  204.321227s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'vscode-notebook-cell:Untitled-2.ipynb?jupyter-notebook#W0sdW50aXRsZWQ%3D'.
 204.321249s DEBUG ruff_server::session::index Falling back to configuration of the only active workspace for the new document 'vscode-notebook-cell:Untitled-2.ipynb?jupyter-notebook#W0sdW50aXRsZWQ%3D'.
 204.321259s ERROR ruff_server::server::api An error occurred while running textDocument/didClose: Unable to take snapshot for document with URL vscode-notebook-cell:Untitled-2.ipynb?jupyter-notebook#W0sdW50aXRsZWQ%3D

2024-06-01 00:38:08.049 [info] [Trace - 12:38:08 AM] Received notification 'window/showMessage'.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserverRelated to the LSP server

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions