You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for commenting on a closed ticket, but it looks to be related:
There seems to be a similar issue when using a VSCode interactive session (VSCode > Run Current File in Interactive Window or Create Interactive Window:
My local Ruff is on 0.4.8
2024-06-12 16:23:08.468 [info] Name: Ruff
2024-06-12 16:23:08.468 [info] Module: ruff
2024-06-12 16:23:08.469 [info] Python extension loading
2024-06-12 16:23:08.469 [info] Waiting for interpreter from python extension.
2024-06-12 16:23:08.469 [info] Python extension loaded
2024-06-12 16:23:08.469 [info] Server run command: $HOME/.local/bin/ruff server --preview
2024-06-12 16:23:08.469 [info] Server: Start requested.
2024-06-12 16:23:08.567 [info] 0.843883s INFO ruff_server::server Configuration file watcher successfully registered
2024-06-12 16:23:26.985 [info] 19.307727s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
19.308549s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
2024-06-12 16:23:28.934 [info] 21.293249s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
2024-06-12 16:23:28.934 [info] 21.293530s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
2024-06-12 16:23:29.143 [info] 21.488888s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
21.489236s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
21.489315s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
21.489531s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
2024-06-12 16:23:29.225 [info] 21.576600s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
21.578133s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
21.578433s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
21.578733s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
2024-06-12 16:23:30.044 [info] 22.403670s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
2024-06-12 16:23:30.045 [info] 22.404434s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
22.404564s WARN ruff_server::session::index No settings available for untitled:/Interactive-1.interactive - falling back to default settings
2024-06-12 16:23:30.045 [info] 22.404794s DEBUG ruff_server::lint Ignored path via `exclude`: /Interactive-1.interactive
I've attempted excluding the interactive file type via my user settings like the below, but warnings still loop:
Thank you for moving my comment to a ticket @MichaReiser
I'm regularly seeing VSCode error popups indicating that: Ruff encountered a problem. Check the logs for more details.
I was able to see some ERROR log lines from the Ruff extension on closing the Interactive session:
2024-06-13 11:26:56.831 [info] 76.724577s WARN ruff_server::session::index No settings available for vscode-notebook-cell:/Interactive-1.interactive#W1sdW50aXRsZWQ%3D - falling back to default settings
76.724912s ERROR ruff_server::server::api An error occurred while running textDocument/didClose: Unable to take snapshot for document with URL vscode-notebook-cell:/Interactive-1.interactive#W1sdW50aXRsZWQ%3D
76.725010s WARN ruff_server::session::index No settings available for vscode-notebook-cell:/Interactive-1.interactive#W2sdW50aXRsZWQ%3D - falling back to default settings
76.725166s ERROR ruff_server::server::api An error occurred while running textDocument/didClose: Unable to take snapshot for document with URL vscode-notebook-cell:/Interactive-1.interactive#W2sdW50aXRsZWQ%3D
76.725211s WARN ruff_server::session::index No settings available for vscode-notebook-cell:/Interactive-1.interactive#W3sdW50aXRsZWQ%3D - falling back to default settings
76.725343s ERROR ruff_server::server::api An error occurred while running textDocument/didClose: Unable to take snapshot for document with URL vscode-notebook-cell:/Interactive-1.interactive#W3sdW50aXRsZWQ%3D
76.725392s WARN ruff_server::session::index No settings available for vscode-notebook-cell:/Interactive-1.interactive#W4sdW50aXRsZWQ%3D - falling back to default settings
76.725517s ERROR ruff_server::server::api An error occurred while running textDocument/didClose: Unable to take snapshot for document with URL vscode-notebook-cell:/Interactive-1.interactive#W4sdW50aXRsZWQ%3D
Apologies for commenting on a closed ticket, but it looks to be related:
There seems to be a similar issue when using a VSCode interactive session (VSCode >
Run Current File in Interactive Window
orCreate Interactive Window
:My local Ruff is on
0.4.8
I've attempted excluding the interactive file type via my user settings like the below, but warnings still loop:
What the logs look like when
ruff.nativeServer
is disabled:Originally posted by @pep-sanwer in #11674 (comment)
The text was updated successfully, but these errors were encountered: