Skip to content
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

Crash when creating new files in the workspace #138

Closed
joinemm opened this issue May 9, 2024 · 1 comment
Closed

Crash when creating new files in the workspace #138

joinemm opened this issue May 9, 2024 · 1 comment

Comments

@joinemm
Copy link

joinemm commented May 9, 2024

When I create a new file into the workspace using a file manager plugin like chadtree, the LSP server crashes with this error message:

[ERROR][2024-05-09 14:23:17] .../vim/lsp/rpc.lua:734    "rpc"   "/nix/store/qz7jzxmwsv9xfxqsx03rmbdc4blhrhz2-nil-2023-08-09/bin/nil"    
"stderr"        "2024-05-09T11:23:17.089356Z ERROR nil: Unexpected error: Unhandled notification: workspace/didCreateFiles\n"

Using nixvim with config:

lsp.servers = {
  nil_ls = {
    enable = true;
    settings.formatting.command = ["alejandra"];
  };
};
@oxalica
Copy link
Owner

oxalica commented May 30, 2024

"stderr" "2024-05-09T11:23:17.089356Z ERROR nil: Unexpected error: Unhandled notification: workspace/didCreateFiles\n"

According to the LSP 3.17 specification, client sends workspace/didCreateFiles only when the server announced the capability workspace.fileOperations.didCreate. We do not announce that.

I'd blame the LSP client implementation here.

@oxalica oxalica closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants