kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.23k stars 44 forks source link

Rust issue #41

Closed ignamartinoli closed 2 years ago

ignamartinoli commented 2 years ago

Neovim version (nvim -v | head -n1)

NVIM 0.7.2

Operating system/version

Gentoo Linux 2.8

How to reproduce the issue

  1. Open a Rust file

Expected behavior

File opens normally

Actual behavior

I receive the message

Error executing vim.schedule lua callback: UnhandledPromiseRejection with the reason:
{ ["code"] = -32801, ["message"] = waiting for cargo metadata or cargo chec }
stack tracebak:
        ...re/nvim/site/pack/packer/start/nvim-ufo/lua/ufo/fold.lua:59: in function <Anonymous:40>
kevinhwang91 commented 2 years ago

Does it work as expected after this error? Look like your ls is initializing.

ignamartinoli commented 2 years ago

Only after I edit the file. Is there a way to hide the error message while the LS is initializing?

kevinhwang91 commented 2 years ago

post the log here ~/.cache/nvim/ufo.log need your ls infomation.

danielnehrig commented 2 years ago

i'm having the same issue

Log ``` [22-07-05 12:24:11] [ERROR] nvim.lua:17 : Received error in callback { code = -32801, message = "waiting for cargo metadata or cargo check", = { __tostring = } } [22-07-05 12:24:11] [ERROR] nvim.lua:18 : Client: { _on_attach = , attached_buffers = { [12] = true }, cancel_request = , commands = {}, config = { _on_attach = , autostart = true, capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, foldingRange = { dynamicRegistration = false, lineFoldingOnly = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = { "rustup", "run", "nightly", "rust-analyzer" }, cmd_cwd = "/home/dashie/code/rust/dn", filetypes = { "rust" }, flags = {}, get_language_id = , handlers = <1>{}, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "rust_analyzer", on_attach = , on_exit = , on_init = , root_dir = "/home/dashie/code/rust/dn", settings = { ["rust-analyzer"] = { assist = { importGranularity = "module", importPrefix = "by_self" }, cargo = { loadOutDirsFromCheck = true }, checkOnSave = { command = "clippy", enable = true }, procMacro = { enable = true } } }, workspace_folders = <2>{ { name = "/home/dashie/code/rust/dn", uri = "file:///home/dashie/code/rust/dn" } }, = <3>{ __tostring = } }, handlers = , id = 2, initialized = true, is_stopped = , messages = { messages = {}, name = "rust_analyzer", progress = { ["rustAnalyzer/Fetching"] = {} }, status = {} }, name = "rust_analyzer", notify = , offset_encoding = "utf-16", request = , request_sync = , requests = { [4] = { bufnr = 12, method = "textDocument/foldingRange", type = "pending" } }, rpc = { handle = , notify = , pid = 39460, request = }, server_capabilities = { callHierarchyProvider = true, codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" }, resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ":", ".", "'", "(" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "=", moreTriggerCharacter = { ".", ">", "{" } }, documentRangeFormattingProvider = false, documentSymbolProvider = true, experimental = { externalDocs = true, hoverRange = true, joinLines = true, matchingBrace = true, moveItem = true, onEnter = true, openCargoToml = true, parentModule = true, runnables = { kinds = { "cargo" } }, ssr = true, workspaceSymbolScopeKindFiltering = true }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, inlayHintProvider = { resolveProvider = true }, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { full = { delta = true }, legend = { tokenModifiers = { "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" }, tokenTypes = { "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", ",", "<" } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, typeDefinitionProvider = true, workspace = { fileOperations = { willRename = { filters = { { pattern = { glob = "**/*.rs", matches = "file" }, scheme = "file" }, { pattern = { glob = "**", matches = "folder" }, scheme = "file" } } } } }, workspaceSymbolProvider = true }, stop = , supports_method = , workspaceFolders =
, workspace_did_change_configuration = , workspace_folders =
, = { __index = } } [22-07-05 12:24:11] [ERROR] nvim.lua:19 : All clients: { { _on_attach = , attached_buffers = { [12] = true }, cancel_request = , commands = {}, config = { _on_attach = , autostart = true, capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, foldingRange = { dynamicRegistration = false, lineFoldingOnly = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = { "rustup", "run", "nightly", "rust-analyzer" }, cmd_cwd = "/home/dashie/code/rust/dn", filetypes = { "rust" }, flags = {}, get_language_id = , handlers = <1>{}, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "rust_analyzer", on_attach = , on_exit = , on_init = , root_dir = "/home/dashie/code/rust/dn", settings = { ["rust-analyzer"] = { assist = { importGranularity = "module", importPrefix = "by_self" }, cargo = { loadOutDirsFromCheck = true }, checkOnSave = { command = "clippy", enable = true }, procMacro = { enable = true } } }, workspace_folders = <2>{ { name = "/home/dashie/code/rust/dn", uri = "file:///home/dashie/code/rust/dn" } }, = <3>{ __tostring = } }, handlers =
, id = 2, initialized = true, is_stopped = , messages = { messages = {}, name = "rust_analyzer", progress = { ["rustAnalyzer/Fetching"] = {} }, status = {} }, name = "rust_analyzer", notify = , offset_encoding = "utf-16", request = , request_sync = , requests = { [4] = { bufnr = 12, method = "textDocument/foldingRange", type = "pending" } }, rpc = { handle = , notify = , pid = 39460, request = }, server_capabilities = { callHierarchyProvider = true, codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" }, resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ":", ".", "'", "(" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "=", moreTriggerCharacter = { ".", ">", "{" } }, documentRangeFormattingProvider = false, documentSymbolProvider = true, experimental = { externalDocs = true, hoverRange = true, joinLines = true, matchingBrace = true, moveItem = true, onEnter = true, openCargoToml = true, parentModule = true, runnables = { kinds = { "cargo" } }, ssr = true, workspaceSymbolScopeKindFiltering = true }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, inlayHintProvider = { resolveProvider = true }, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { full = { delta = true }, legend = { tokenModifiers = { "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" }, tokenTypes = { "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", ",", "<" } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, typeDefinitionProvider = true, workspace = { fileOperations = { willRename = { filters = { { pattern = { glob = "**/*.rs", matches = "file" }, scheme = "file" }, { pattern = { glob = "**", matches = "folder" }, scheme = "file" } } } } }, workspaceSymbolProvider = true }, stop = , supports_method = , workspaceFolders =
, workspace_did_change_configuration = , workspace_folders =
, = { __index = } } } [22-07-05 12:24:11] [ERROR] nvim.lua:17 : Received error in callback { code = -32801, message = "waiting for cargo metadata or cargo check", = { __tostring = } } [22-07-05 12:24:11] [ERROR] nvim.lua:18 : Client: { _on_attach = , attached_buffers = { [12] = true }, cancel_request = , commands = {}, config = { _on_attach = , autostart = true, capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, foldingRange = { dynamicRegistration = false, lineFoldingOnly = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = { "rustup", "run", "nightly", "rust-analyzer" }, cmd_cwd = "/home/dashie/code/rust/dn", filetypes = { "rust" }, flags = {}, get_language_id = , handlers = <1>{}, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "rust_analyzer", on_attach = , on_exit = , on_init = , root_dir = "/home/dashie/code/rust/dn", settings = { ["rust-analyzer"] = { assist = { importGranularity = "module", importPrefix = "by_self" }, cargo = { loadOutDirsFromCheck = true }, checkOnSave = { command = "clippy", enable = true }, procMacro = { enable = true } } }, workspace_folders = <2>{ { name = "/home/dashie/code/rust/dn", uri = "file:///home/dashie/code/rust/dn" } }, = <3>{ __tostring = } }, handlers =
, id = 2, initialized = true, is_stopped = , messages = { messages = {}, name = "rust_analyzer", progress = { ["rustAnalyzer/Fetching"] = {} }, status = {} }, name = "rust_analyzer", notify = , offset_encoding = "utf-16", request = , request_sync = , requests = {}, rpc = { handle = , notify = , pid = 39460, request = }, server_capabilities = { callHierarchyProvider = true, codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" }, resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ":", ".", "'", "(" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "=", moreTriggerCharacter = { ".", ">", "{" } }, documentRangeFormattingProvider = false, documentSymbolProvider = true, experimental = { externalDocs = true, hoverRange = true, joinLines = true, matchingBrace = true, moveItem = true, onEnter = true, openCargoToml = true, parentModule = true, runnables = { kinds = { "cargo" } }, ssr = true, workspaceSymbolScopeKindFiltering = true }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, inlayHintProvider = { resolveProvider = true }, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { full = { delta = true }, legend = { tokenModifiers = { "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" }, tokenTypes = { "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", ",", "<" } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, typeDefinitionProvider = true, workspace = { fileOperations = { willRename = { filters = { { pattern = { glob = "**/*.rs", matches = "file" }, scheme = "file" }, { pattern = { glob = "**", matches = "folder" }, scheme = "file" } } } } }, workspaceSymbolProvider = true }, stop = , supports_method = , workspaceFolders =
, workspace_did_change_configuration = , workspace_folders =
, = { __index = } } [22-07-05 12:24:11] [ERROR] nvim.lua:19 : All clients: { { _on_attach = , attached_buffers = { [12] = true }, cancel_request = , commands = {}, config = { _on_attach = , autostart = true, capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, foldingRange = { dynamicRegistration = false, lineFoldingOnly = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = { "rustup", "run", "nightly", "rust-analyzer" }, cmd_cwd = "/home/dashie/code/rust/dn", filetypes = { "rust" }, flags = {}, get_language_id = , handlers = <1>{}, init_options = vim.empty_dict(), log_level = 2, message_level = 2, name = "rust_analyzer", on_attach = , on_exit = , on_init = , root_dir = "/home/dashie/code/rust/dn", settings = { ["rust-analyzer"] = { assist = { importGranularity = "module", importPrefix = "by_self" }, cargo = { loadOutDirsFromCheck = true }, checkOnSave = { command = "clippy", enable = true }, procMacro = { enable = true } } }, workspace_folders = <2>{ { name = "/home/dashie/code/rust/dn", uri = "file:///home/dashie/code/rust/dn" } }, = <3>{ __tostring = } }, handlers =
, id = 2, initialized = true, is_stopped = , messages = { messages = {}, name = "rust_analyzer", progress = { ["rustAnalyzer/Fetching"] = {} }, status = {} }, name = "rust_analyzer", notify = , offset_encoding = "utf-16", request = , request_sync = , requests = {}, rpc = { handle = , notify = , pid = 39460, request = }, server_capabilities = { callHierarchyProvider = true, codeActionProvider = { codeActionKinds = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" }, resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ":", ".", "'", "(" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = "=", moreTriggerCharacter = { ".", ">", "{" } }, documentRangeFormattingProvider = false, documentSymbolProvider = true, experimental = { externalDocs = true, hoverRange = true, joinLines = true, matchingBrace = true, moveItem = true, onEnter = true, openCargoToml = true, parentModule = true, runnables = { kinds = { "cargo" } }, ssr = true, workspaceSymbolScopeKindFiltering = true }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, inlayHintProvider = { resolveProvider = true }, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { full = { delta = true }, legend = { tokenModifiers = { "documentation", "declaration", "definition", "static", "abstract", "deprecated", "readonly", "defaultLibrary", "async", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "mutable", "public", "reference", "trait", "unsafe" }, tokenTypes = { "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "enumMember", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "angle", "arithmetic", "attribute", "attributeBracket", "bitwise", "boolean", "brace", "bracket", "builtinAttribute", "builtinType", "character", "colon", "comma", "comparison", "constParameter", "derive", "dot", "escapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "operator", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" } }, range = true }, signatureHelpProvider = { triggerCharacters = { "(", ",", "<" } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, typeDefinitionProvider = true, workspace = { fileOperations = { willRename = { filters = { { pattern = { glob = "**/*.rs", matches = "file" }, scheme = "file" }, { pattern = { glob = "**", matches = "folder" }, scheme = "file" } } } } }, workspaceSymbolProvider = true }, stop = , supports_method = , workspaceFolders =
, workspace_did_change_configuration = , workspace_folders =
, = { __index = } } } ```
ignamartinoli commented 2 years ago
kevinhwang91 commented 2 years ago

reproduced

ignamartinoli commented 2 years ago

Can confirm is been solved, thanks!

danielnehrig commented 2 years ago

thanks for the fast fix