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
2024-05-23 13:52:40.699 [info] Name: Ruff
2024-05-23 13:52:40.700 [info] Module: ruff
2024-05-23 13:52:40.700 [info] Python extension loading
2024-05-23 13:52:40.700 [info] Waiting for interpreter from python extension.
2024-05-23 13:52:40.700 [info] Python extension loaded
2024-05-23 13:52:40.700 [info] Server run command: c:\Users\User\Desktop\test\.venv\Scripts\python.exe c:\Users\User\.vscode\extensions\charliermarsh.ruff-2024.22.0-win32-x64\bundled\tool\ruff_server.py server --preview
2024-05-23 13:52:40.700 [info] Server: Start requested.
2024-05-23 13:52:41.180 [info] [Trace - 1:52:41 PM] Received request 'client/registerCapability - (1)'.
2024-05-23 13:52:41.180 [info] [Trace - 1:52:41 PM] Sending response 'client/registerCapability - (1)'. Processing request took 0ms
2024-05-23 13:52:41.180 [info] 0.139395s INFO ruff_server::server Configuration file watcher successfully registered
2024-05-23 13:52:41.736 [info] 0.695387s WARN ruff_server::server::api Received notification $/setTrace which does not have a handler.
2024-05-23 13:52:41.770 [info] 0.729158s ERROR ruff_server::server::api An error occurred while running notebookDocument/didOpen: expected notebook URI untitled:Untitled-1.ipynb?jupyter-notebook to be a valid file path
2024-05-23 13:52:41.802 [info] 0.757168s WARN ruff_server::server::api Received notification $/setTrace which does not have a handler.
2024-05-23 13:52:43.029 [info] 1.956011s WARN ruff_server::server::api Received notification $/setTrace which does not have a handler.
2024-05-23 13:52:43.361 [info] 2.319372s WARN ruff_server::server::api Received notification $/setTrace which does not have a handler.
2024-05-23 13:52:43.698 [info] 2.657468s WARN ruff_server::server::api Received notification $/setTrace which does not have a handler.
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue! I've made a small change to the issue title if that's okay with you 🙂
Not only on editing Untitled-files but also, on opening them:
2024-05-23 13:55:32.141 [info] 171.100002s ERROR ruff_server::server::api An error occurred while running textDocument/didOpen: expected document URI untitled:Untitled-2 to be a valid file path
From what I understand, We could avoid using to_file_path method of lsp_types::Url to solve the problem for non-existent files on disk, so then no need PathBuf.
VSCode Repro:
Ctrl+Win+Alt+N
-> selectPython File
Output:
The text was updated successfully, but these errors were encountered: