-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle "untitled" files in Neovim #15392
Comments
Hmm this is interesting. Can you open multiple unnamed buffers? Do they get unique uris? Is this even a valid file path? |
Yes, you can open multiple unnamed buffers. They are using the same URIs. |
That at least seems a bug to me in neovim because the server can now no longer distinguish between them. I think neovim should not use |
See #12336 |
Yeah, I saw the Neovim issue (neovim/neovim#21276) but that seems to have concluded with continue using "file://" until using "untitled://" is actually the recommended way in the protocol. |
So, this was merged neovim/neovim#22407 but was quickly reverted neovim/neovim#22604 |
Could this be a bug in the URI parsing library? The
|
And, I think this is why Pyright raised "heap out of memory" error because it tried to index the entire home directory. |
I think we're able to parse it but |
I don't think so:
which happens at: ruff/crates/ruff_server/src/session/index.rs Lines 414 to 416 in 443bf38
|
Oh so we can parse it but it's not being considered a valid file path (sorry!) And, yes, you're correct about the parent directory part |
Currently, the language server crashes with the following panic:
At
24.044284625s
, the unnamed buffer has been assigned the filetype as Python in Neovim which triggers the following notifications from the client to the server:didChangeWorkspaceFolders
:which fails with the following error:
textDocument/didOpen
:textDocument/diagnostic
:The text was updated successfully, but these errors were encountered: