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

rust 无法补全 #300

Open
keeferwu opened this issue Aug 21, 2024 · 0 comments
Open

rust 无法补全 #300

keeferwu opened this issue Aug 21, 2024 · 0 comments

Comments

@keeferwu
Copy link

keeferwu commented Aug 21, 2024

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37)
rust-analyzer 1.71.1 (eb26296 2023-08-03)

errlog 信息如下:

----- Easycomplete Errlog ------
2024 8月 21 10时50分02秒 rust.rs [LOG] {"response":{"data":{"__data__":"vim-lsp","lsp_id":1,"server_name":"rust_analyzer"},"message":"started lsp server successfully"}}
2024 8月 21 10时50分02秒 rust.rs LSP job start 1
2024 8月 21 10时50分02秒 rust.rs [LOG] Starting server rust_analyzer ["rust-analyzer"]
2024 8月 21 10时50分02秒 rust.rs [LOG] s:on_text_document_did_open() 1 rust /home/qifeng/test file:///home/qifeng/test/rust.rs
2024 8月 21 10时50分02秒 rust.rs [LOG] easycomplete#lsp#register_server server registered rust_analyzer
2024 8月 21 10时50分02秒 rust.rs [LOG] Easycomplete Startup /home/qifeng/test/rust.rs
2024 8月 21 10时50分02秒 rust.rs [ERR] notification <---(stderr) 1 rust_analyzer ["[ERROR rust_analyzer] Unexpected error: Failed to deserialize InitializeParams: invalid type: boolean `false`, expected struct DynamicRegistrationClientCapabilities; {\"rootUri\":\"file:///home/qifeng/test\",\"initializationOptions\":{\"completion\":{\"autoimport\":{\"enable\":true}}},\"capabilities\":{\"workspace\":{\"configuration\":true,\"applyEdit\":true},\"window\":{\"workDoneProgress\":false},\"textDocument\":{\"semanticHighlightingCapabilities\":{\"semanticHighlighting\":false},\"codeAction\":{\"disabledSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dynamicRegistration\":false},\"completion\":{\"completionItem\":{\"snippetSupport\":false,\"resolveSupport\":{\"properties\":[\"additionalTextEdits\",\"documentation\",\"detail\"]},\"documentationFormat\":[\"markdown\",\"plaintext\"]},\"dynamicRegistration\":false,\"completionItemKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},\"formatting\":{\"dynamicRegistration\":false},\"codeLens\":{\"dynamicRegistration\":false},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"rangeFormatting\":{\"dynamicRegistration\":false},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"references\":{\"dynamicRegistration\":false},\"typeHierarchy\":false,\"foldingRange\":{\"rangeLimit\":5000,\"dynamicRegistration\":false,\"lineFoldingOnly\":true},\"documentSymbol\":{\"symbolKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},\"dynamicRegistration\":false,\"labelSupport\":false,\"hierarchicalDocumentSymbolSupport\":false},\"synchronization\":{\"dynamicRegistration\":false,\"willSaveWaitUntil\":false,\"willSave\":false,\"didSave\":true},\"documentHighlight\":{\"dynamicRegistration\":false},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true}}},\"rootPath\":\"/home/qifeng/test\",\"clientInfo\":{\"name\":\"vim-lsp\"},\"processId\":1754172,\"trace\":\"off\"}","Failed to deserialize InitializeParams: invalid type: boolean `false`, expected struct DynamicRegistrationClientCapabilities; {\"rootUri\":\"file:///home/qifeng/test\",\"initializationOptions\":{\"completion\":{\"autoimport\":{\"enable\":true}}},\"capabilities\":{\"workspace\":{\"configuration\":true,\"applyEdit\":true},\"window\":{\"workDoneProgress\":false},\"textDocument\":{\"semanticHighlightingCapabilities\":{\"semanticHighlighting\":false},\"codeAction\":{\"disabledSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dynamicRegistration\":false},\"completion\":{\"completionItem\":{\"snippetSupport\":false,\"resolveSupport\":{\"properties\":[\"additionalTextEdits\",\"documentation\",\"detail\"]},\"documentationFormat\":[\"markdown\",\"plaintext\"]},\"dynamicRegistration\":false,\"completionItemKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},\"formatting\":{\"dynamicRegistration\":false},\"codeLens\":{\"dynamicRegistration\":false},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"rangeFormatting\":{\"dynamicRegistration\":false},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"references\":{\"dynamicRegistration\":false},\"typeHierarchy\":false,\"foldingRange\":{\"rangeLimit\":5000,\"dynamicRegistration\":false,\"lineFoldingOnly\":true},\"documentSymbol\":{\"symbolKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},\"dynamicRegistration\":false,\"labelSupport\":false,\"hierarchicalDocumentSymbolSupport\":false},\"synchronization\":{\"dynamicRegistration\":false,\"willSaveWaitUntil\":false,\"willSave\":false,\"didSave\":true},\"documentHighlight\":{\"dynamicRegistration\":false},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true}}},\"rootPath\":\"/home/qifeng/test\",\"clientInfo\":{\"name\":\"vim-lsp\"},\"processId\":1754172,\"trace\":\"off\"}",""]
2024 8月 21 10时50分04秒 rust.rs [ERR] FirstCompleteRendering Vim(for):E121: Undefined variable: a:tmp_list
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

1 participant