From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Misha Zharov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2023 04:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 63433@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168378060229896 (code B ref -1); Thu, 11 May 2023 04:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 May 2023 04:50:02 +0000 Received: from localhost ([127.0.0.1]:49433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwyFZ-0007lh-Rj for submit@debbugs.gnu.org; Thu, 11 May 2023 00:50:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:51314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwyFU-0007lT-8J for submit@debbugs.gnu.org; Thu, 11 May 2023 00:49:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwyFT-00024z-S4 for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 00:49:51 -0400 Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwyFP-0007E4-Jt for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 00:49:51 -0400 Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-771eeb2a3b3so879512241.0 for ; Wed, 10 May 2023 21:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683780586; x=1686372586; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=uRGHWNt67gjFaBnV8f5zV86EAt9EJjRSueSxBApGtNY=; b=AVclWfsjnL1yu0ph/PmYbwk5vNDr6XW0YWFce4lhHMNB83+s34ZDUiddL1bVsHL2NU BTKGq6srOsct9xFAdTmfByYKcpUlHp2ve7a7RX4ScoEgDbH+vwGUOFWUvlbbnAdySOYc KjGFFV/9IdfUWp6OhRfuw+YNr91TehEuUPjxXKHKDtB9Ax0AxYKSVserYO2bMgMTa6hd Dl/YGlctjZmdmWj3L+UyG09ESQb0e36YPN5wX8Y+P7F6bcO/vb1T4M3Yxfr7FlH5p5+c EwEVaLPmWNoOhDS9IpZeBLvG50sPrv7nLAUmNaJ56mBRl5HJ8YCzbeWCFFbWOOVDYjkn RXRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683780586; x=1686372586; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uRGHWNt67gjFaBnV8f5zV86EAt9EJjRSueSxBApGtNY=; b=agdKCUEQJ+prlXdbLSdeKc4Fi11GNp8DGH/Iw0mmVomKpXxmvoLYVQ9eNOue1Buvlw WC4JyuVx7TjAcQ/m4UNOVdo7jkJyaCYmgdmVRj+Ivcrfpi4pXIojMaRkFMQF22bO3ZoB S8SWYyUZF/061t5l0yyF60QwyeUvW8A6NqURdpan91xhYSasey00ur5v/pj8AHWUZc8q k/dz+iXT25G6+naIoFCNyGTVBunUfNwBj8wRqYcI69Umk1Qo/TmhwiCQg7gW5SO5baDf 92mPYYC5+p4HaADJncs/ZbUjzgs//kEZjVwP3HPkXDJWZH9Nfotx7Gn4Ud/kavHtNKDl NeuQ== X-Gm-Message-State: AC+VfDzTgO7BBO6C7PyYPCy8XQIBTUwz94hxYfE7SeZ6oVBHvc91Fo23 ySt6ASpLQNKB+zPKZ8te1fj90GqerSTcW/j0esxbMU0zIiQ= X-Google-Smtp-Source: ACHHUZ5/VfXDmQqanlmkK8pmrnz7BF4qjiUUX5lUhrI86lQYXdaJP4kP25d/371x4e2CG7wq4aekUEiYIE3KZ6DnGrE= X-Received: by 2002:a05:6102:3e23:b0:436:156:82f2 with SMTP id j35-20020a0561023e2300b00436015682f2mr4121537vsv.3.1683780584455; Wed, 10 May 2023 21:49:44 -0700 (PDT) MIME-Version: 1.0 From: Misha Zharov Date: Wed, 10 May 2023 21:49:08 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::932; envelope-from=mishazharov1@gmail.com; helo=mail-ua1-x932.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) When I declare a module that does not exist in Rust, `M-x eglot-code-actions` suggests that I create the file. However, when I select this option I get the following traceback and the change is not applied: ``` Debugger entered--Lisp error: (wrong-type-argument arrayp nil) file-truename(nil) find-buffer-visiting(nil) cl-every(find-buffer-visiting (nil)) cl-notevery(find-buffer-visiting (nil)) eglot--apply-workspace-edit((:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) eglot--read-execute-code-action(((:title "Create module at `thing.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))) # nil) eglot-code-actions(5 10 nil t) funcall-interactively(eglot-code-actions 5 10 nil t) command-execute(eglot-code-actions record) execute-extended-command(nil "eglot-code-actions" "eglot-code-actions") funcall-interactively(execute-extended-command nil "eglot-code-actions" "eglot-code-actions") command-execute(execute-extended-command) ``` Reproduction (from `emacs -Q`): Create a `Cargo.toml`: ``` [package] name = "tmp" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] [[bin]] name = "tmp" path = "main.rs" ``` Create a `main.rs`: ``` mod thing; fn main() { println!("Hello world"); } ``` Enable `rust-ts-mode` (the treesit grammar has to be installed I assume). Flymake and ElDoc appear to be enabled as well. Enable eglot: `M-x eglot`. Eglot should prompt us to choose a language server. This reproduces with rust-analyzer which is shipped with Rust 1.69 (can be obtained at `https://www.rust-lang.org/tools/install`). RLS should not be used. Now there should be a code action to fix the issue with the missing module (by creating the file `thing.rs`). However, we see that the code action is not applied successfully. `M-x eglot-events-buffer`: ``` [internal] Wed May 10 21:26:58 2023: (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer") [client-request] (id:1) Wed May 10 21:26:58 2023: (:jsonrpc "2.0" :id 1 :method "initialize" :params (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) :capabilities (:workspace (:applyEdit t :executeCommand (:dynamicRegistration :json-false) :workspaceEdit (:documentChanges t) :didChangeWatchedFiles (:dynamicRegistration t) :symbol (:dynamicRegistration :json-false) :configuration t :workspaceFolders t) :textDocument (:synchronization (:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t) :completion (:dynamicRegistration :json-false :completionItem (:snippetSupport :json-false :deprecatedSupport t :resolveSupport (:properties ["documentation" "details" "additionalTextEdits"]) :tagSupport (:valueSet [1])) :contextSupport t) :hover (:dynamicRegistration :json-false :contentFormat ["plaintext"]) :signatureHelp (:dynamicRegistration :json-false :signatureInformation (:parameterInformation (:labelOffsetSupport t) :activeParameterSupport t)) :references (:dynamicRegistration :json-false) :definition (:dynamicRegistration :json-false :linkSupport t) :declaration (:dynamicRegistration :json-false :linkSupport t) :implementation (:dynamicRegistration :json-false :linkSupport t) :typeDefinition (:dynamicRegistration :json-false :linkSupport t) :documentSymbol (:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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])) :documentHighlight (:dynamicRegistration :json-false) :codeAction (:dynamicRegistration :json-false :codeActionLiteralSupport (:codeActionKind (:valueSet ["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"])) :isPreferredSupport t) :formatting (:dynamicRegistration :json-false) :rangeFormatting (:dynamicRegistration :json-false) :rename (:dynamicRegistration :json-false) :inlayHint (:dynamicRegistration :json-false) :publishDiagnostics (:relatedInformation :json-false :codeDescriptionSupport :json-false :tagSupport (:valueSet [1 2]))) :window (:workDoneProgress t) :general (:positionEncodings ["utf-32" "utf-8" "utf-16"]) :experimental #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) :workspaceFolders [(:uri "file:///home/misha/sweet/repos/tmp" :name "~/sweet/repos/tmp/")])) [server-reply] (id:1) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 1 :result (:capabilities (:positionEncoding "utf-32" :textDocumentSync (:openClose t :change 2 :save nil) :selectionRangeProvider t :hoverProvider t :completionProvider (:resolveProvider t :triggerCharacters [":" "." "'" "("] :completionItem (:labelDetailsSupport :json-false)) :signatureHelpProvider (:triggerCharacters ["(" "," "<"]) :definitionProvider t :typeDefinitionProvider t :implementationProvider t :referencesProvider t :documentHighlightProvider t :documentSymbolProvider t :workspaceSymbolProvider t :codeActionProvider (:codeActionKinds ["" "quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite"] :resolveProvider t) :codeLensProvider (:resolveProvider t) :documentFormattingProvider t :documentRangeFormattingProvider :json-false :documentOnTypeFormattingProvider (:firstTriggerCharacter "=" :moreTriggerCharacter ["." ">" "{"]) :renameProvider (:prepareProvider t) :foldingRangeProvider t :declarationProvider t :workspace (:workspaceFolders (:supported t :changeNotifications t) :fileOperations (:willRename (:filters [(:scheme "file" :pattern (:glob "**/*.rs" :matches "file")) (:scheme "file" :pattern (:glob "**" :matches "folder"))]))) :callHierarchyProvider t :semanticTokensProvider (:legend (:tokenTypes ["comment" "decorator" "enumMember" "enum" "function" "interface" "keyword" "macro" "method" "namespace" "number" "operator" "parameter" "property" "string" "struct" "typeParameter" "variable" "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" "boolean" "brace" "bracket" "builtinAttribute" "builtinType" "character" "colon" "comma" "comparison" "constParameter" "derive" "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" "union" "unresolvedReference"] :tokenModifiers ["documentation" "declaration" "static" "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" "controlFlow" "crateRoot" "injected" "intraDocLink" "library" "mutable" "public" "reference" "trait" "unsafe"]) :range t :full (:delta t)) :inlayHintProvider (:resolveProvider t) :experimental (:externalDocs t :hoverRange t :joinLines t :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule t :runnables (:kinds ["cargo"]) :ssr t :workspaceSymbolScopeKindFiltering t)) :serverInfo (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) [client-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) [client-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "textDocument/didOpen" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 :languageId "rust-ts" :text "mod thing;\n\nfn main() {\n println!(\"Hello world\");\n}"))) [client-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params (:settings #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()))) [client-request] (id:2) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 4 :character 1)))) [stderr] [ERROR rust_analyzer::config] failed to find any projects in [AbsPathBuf("/home/misha/sweet/repos/tmp")] [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to discover workspace [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "window/showMessage" :params (:type 1 :message "rust-analyzer failed to discover workspace")) [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to discover workspace [server-request] (id:0) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:0) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 0 :result nil) [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "window/showMessage" :params (:type 1 :message "rust-analyzer failed to discover workspace")) [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:1) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params (:items [(:section "rust-analyzer")])) [client-reply] (id:1) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 1 :result [nil]) [server-request] (id:2) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 2 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Indexing")) [client-reply] (id:2) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 2 :result nil) [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "begin" :title "Indexing" :cancellable :json-false :percentage 0))) [server-notification] Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "end"))) [server-reply] (id:2) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 2 :result []) [client-request] (id:3) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 3 :character 24))) [client-request] (id:4) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 3 :character 24))) [client-request] (id:5) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 3 :character 24))) [server-reply] (id:3) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 3 :result nil) [server-reply] (id:4) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 4 :result nil) [server-reply] (id:5) Wed May 10 21:27:00 2023: (:jsonrpc "2.0" :id 5 :result nil) [client-request] (id:6) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 6 :method "shutdown" :params nil) [server-reply] (id:6) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 6 :result nil) [client-notification] Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :method "exit" :params nil) [internal] Wed May 10 21:29:29 2023: (:message "Connection state changed" :change "killed\n") ----------b---y---e---b---y---e---------- [stderr] [stderr] [stderr] nil [stderr] nil [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished [client-request] (id:1) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 1 :method "initialize" :params (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) :capabilities (:workspace (:applyEdit t :executeCommand (:dynamicRegistration :json-false) :workspaceEdit (:documentChanges t) :didChangeWatchedFiles (:dynamicRegistration t) :symbol (:dynamicRegistration :json-false) :configuration t :workspaceFolders t) :textDocument (:synchronization (:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t) :completion (:dynamicRegistration :json-false :completionItem (:snippetSupport :json-false :deprecatedSupport t :resolveSupport (:properties ["documentation" "details" "additionalTextEdits"]) :tagSupport (:valueSet [1])) :contextSupport t) :hover (:dynamicRegistration :json-false :contentFormat ["plaintext"]) :signatureHelp (:dynamicRegistration :json-false :signatureInformation (:parameterInformation (:labelOffsetSupport t) :activeParameterSupport t)) :references (:dynamicRegistration :json-false) :definition (:dynamicRegistration :json-false :linkSupport t) :declaration (:dynamicRegistration :json-false :linkSupport t) :implementation (:dynamicRegistration :json-false :linkSupport t) :typeDefinition (:dynamicRegistration :json-false :linkSupport t) :documentSymbol (:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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])) :documentHighlight (:dynamicRegistration :json-false) :codeAction (:dynamicRegistration :json-false :codeActionLiteralSupport (:codeActionKind (:valueSet ["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"])) :isPreferredSupport t) :formatting (:dynamicRegistration :json-false) :rangeFormatting (:dynamicRegistration :json-false) :rename (:dynamicRegistration :json-false) :inlayHint (:dynamicRegistration :json-false) :publishDiagnostics (:relatedInformation :json-false :codeDescriptionSupport :json-false :tagSupport (:valueSet [1 2]))) :window (:workDoneProgress t) :general (:positionEncodings ["utf-32" "utf-8" "utf-16"]) :experimental #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) :workspaceFolders [(:uri "file:///home/misha/sweet/repos/tmp" :name "~/sweet/repos/tmp/")])) [server-reply] (id:1) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 1 :result (:capabilities (:positionEncoding "utf-32" :textDocumentSync (:openClose t :change 2 :save nil) :selectionRangeProvider t :hoverProvider t :completionProvider (:resolveProvider t :triggerCharacters [":" "." "'" "("] :completionItem (:labelDetailsSupport :json-false)) :signatureHelpProvider (:triggerCharacters ["(" "," "<"]) :definitionProvider t :typeDefinitionProvider t :implementationProvider t :referencesProvider t :documentHighlightProvider t :documentSymbolProvider t :workspaceSymbolProvider t :codeActionProvider (:codeActionKinds ["" "quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite"] :resolveProvider t) :codeLensProvider (:resolveProvider t) :documentFormattingProvider t :documentRangeFormattingProvider :json-false :documentOnTypeFormattingProvider (:firstTriggerCharacter "=" :moreTriggerCharacter ["." ">" "{"]) :renameProvider (:prepareProvider t) :foldingRangeProvider t :declarationProvider t :workspace (:workspaceFolders (:supported t :changeNotifications t) :fileOperations (:willRename (:filters [(:scheme "file" :pattern (:glob "**/*.rs" :matches "file")) (:scheme "file" :pattern (:glob "**" :matches "folder"))]))) :callHierarchyProvider t :semanticTokensProvider (:legend (:tokenTypes ["comment" "decorator" "enumMember" "enum" "function" "interface" "keyword" "macro" "method" "namespace" "number" "operator" "parameter" "property" "string" "struct" "typeParameter" "variable" "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" "boolean" "brace" "bracket" "builtinAttribute" "builtinType" "character" "colon" "comma" "comparison" "constParameter" "derive" "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" "union" "unresolvedReference"] :tokenModifiers ["documentation" "declaration" "static" "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" "controlFlow" "crateRoot" "injected" "intraDocLink" "library" "mutable" "public" "reference" "trait" "unsafe"]) :range t :full (:delta t)) :inlayHintProvider (:resolveProvider t) :experimental (:externalDocs t :hoverRange t :joinLines t :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule t :runnables (:kinds ["cargo"]) :ssr t :workspaceSymbolScopeKindFiltering t)) :serverInfo (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) [client-notification] Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) [client-notification] Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params (:settings #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()))) [server-request] (id:0) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 0 :method "workspace/configuration" :params (:items [(:section "rust-analyzer")])) [client-reply] (id:0) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 0 :result [nil]) [server-request] (id:1) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 1 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:1) Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :id 1 :result nil) [server-notification] Wed May 10 21:29:29 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-notification] Wed May 10 21:29:32 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-request] (id:2) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params (:registrations [(:id "workspace/didChangeWatchedFiles" :method "workspace/didChangeWatchedFiles" :registerOptions (:watchers [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) [client-reply] (id:2) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 2 :result nil) [server-notification] Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:3) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Roots Scanned")) [client-reply] (id:3) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 3 :result nil) [server-notification] Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "begin" :title "Roots Scanned" :cancellable :json-false :message "0/2" :percentage 0))) [server-notification] Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "report" :cancellable :json-false :message "1/2" :percentage 50))) [server-request] (id:4) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:4) Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :id 4 :result nil) [server-notification] Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-notification] Wed May 10 21:29:35 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-notification] Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:5) Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Loading")) [client-reply] (id:5) Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :id 5 :result nil) [server-notification] Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "begin" :title "Loading" :cancellable :json-false))) [server-notification] Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "report" :cancellable :json-false :message "building proc-macros: tmp"))) [server-notification] Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "report" :cancellable :json-false :message "building proc-macros: tmp"))) [server-request] (id:6) Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :id 6 :method "client/registerCapability" :params (:registrations [(:id "workspace/didChangeWatchedFiles" :method "workspace/didChangeWatchedFiles" :registerOptions (:watchers [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) [client-reply] (id:6) Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :id 6 :result nil) [server-notification] Wed May 10 21:29:36 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "end"))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "end" :message "2/2"))) [server-request] (id:7) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 7 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Roots Scanned")) [client-reply] (id:7) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 7 :result nil) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "begin" :title "Roots Scanned" :cancellable :json-false :message "0/2" :percentage 0))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "report" :cancellable :json-false :message "1/2" :percentage 50))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "end" :message "2/2"))) [server-request] (id:8) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:8) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 8 :result nil) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:9) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Indexing")) [client-reply] (id:9) Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :id 9 :result nil) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "begin" :title "Indexing" :cancellable :json-false :percentage 0))) [server-notification] Wed May 10 21:29:48 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "0/5 (test + 1 more)" :percentage 0))) [server-request] (id:10) Wed May 10 21:29:49 2023: (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params (:token "rust-analyzer/flycheck/0")) [client-reply] (id:10) Wed May 10 21:29:49 2023: (:jsonrpc "2.0" :id 10 :result nil) [server-notification] Wed May 10 21:29:49 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "begin" :title "cargo check" :cancellable t))) [server-notification] Wed May 10 21:29:49 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "1/5 (core)" :percentage 20))) [server-notification] Wed May 10 21:29:49 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "E0583" :codeDescription (:href "https://doc.rust-lang.org/error-index.html#E0583") :source "rustc" :message "file not found for module `thing`\nto create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"" :data (:rendered "error[E0583]: file not found for module `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n = help: to create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"\n\n"))])) [server-notification] Wed May 10 21:29:52 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 40))) [server-notification] Wed May 10 21:29:52 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "2/5 (alloc)" :percentage 40))) [server-notification] Wed May 10 21:29:52 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 60))) [server-notification] Wed May 10 21:29:52 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "3/5 (std)" :percentage 60))) [server-notification] Wed May 10 21:29:53 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 80))) [server-notification] Wed May 10 21:29:53 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "4/5 (proc_macro)" :percentage 80))) [server-notification] Wed May 10 21:29:53 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 100))) [server-notification] Wed May 10 21:29:53 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "end"))) [server-notification] Wed May 10 21:29:54 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "end"))) [client-notification] Wed May 10 21:30:01 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" :type 1)])) [client-notification] Wed May 10 21:30:08 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 1)])) [client-notification] Wed May 10 21:30:08 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) [client-notification] Wed May 10 21:30:08 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) [stderr] [stderr] [stderr] nil [stderr] nil [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished [internal] Wed May 10 21:30:16 2023: (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer") [client-request] (id:1) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 1 :method "initialize" :params (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) :capabilities (:workspace (:applyEdit t :executeCommand (:dynamicRegistration :json-false) :workspaceEdit (:documentChanges t) :didChangeWatchedFiles (:dynamicRegistration t) :symbol (:dynamicRegistration :json-false) :configuration t :workspaceFolders t) :textDocument (:synchronization (:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t) :completion (:dynamicRegistration :json-false :completionItem (:snippetSupport :json-false :deprecatedSupport t :resolveSupport (:properties ["documentation" "details" "additionalTextEdits"]) :tagSupport (:valueSet [1])) :contextSupport t) :hover (:dynamicRegistration :json-false :contentFormat ["plaintext"]) :signatureHelp (:dynamicRegistration :json-false :signatureInformation (:parameterInformation (:labelOffsetSupport t) :activeParameterSupport t)) :references (:dynamicRegistration :json-false) :definition (:dynamicRegistration :json-false :linkSupport t) :declaration (:dynamicRegistration :json-false :linkSupport t) :implementation (:dynamicRegistration :json-false :linkSupport t) :typeDefinition (:dynamicRegistration :json-false :linkSupport t) :documentSymbol (:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :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])) :documentHighlight (:dynamicRegistration :json-false) :codeAction (:dynamicRegistration :json-false :codeActionLiteralSupport (:codeActionKind (:valueSet ["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"])) :isPreferredSupport t) :formatting (:dynamicRegistration :json-false) :rangeFormatting (:dynamicRegistration :json-false) :rename (:dynamicRegistration :json-false) :inlayHint (:dynamicRegistration :json-false) :publishDiagnostics (:relatedInformation :json-false :codeDescriptionSupport :json-false :tagSupport (:valueSet [1 2]))) :window (:workDoneProgress t) :general (:positionEncodings ["utf-32" "utf-8" "utf-16"]) :experimental #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) :workspaceFolders [(:uri "file:///home/misha/sweet/repos/tmp" :name "~/sweet/repos/tmp/")])) [server-reply] (id:1) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 1 :result (:capabilities (:positionEncoding "utf-32" :textDocumentSync (:openClose t :change 2 :save nil) :selectionRangeProvider t :hoverProvider t :completionProvider (:resolveProvider t :triggerCharacters [":" "." "'" "("] :completionItem (:labelDetailsSupport :json-false)) :signatureHelpProvider (:triggerCharacters ["(" "," "<"]) :definitionProvider t :typeDefinitionProvider t :implementationProvider t :referencesProvider t :documentHighlightProvider t :documentSymbolProvider t :workspaceSymbolProvider t :codeActionProvider (:codeActionKinds ["" "quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite"] :resolveProvider t) :codeLensProvider (:resolveProvider t) :documentFormattingProvider t :documentRangeFormattingProvider :json-false :documentOnTypeFormattingProvider (:firstTriggerCharacter "=" :moreTriggerCharacter ["." ">" "{"]) :renameProvider (:prepareProvider t) :foldingRangeProvider t :declarationProvider t :workspace (:workspaceFolders (:supported t :changeNotifications t) :fileOperations (:willRename (:filters [(:scheme "file" :pattern (:glob "**/*.rs" :matches "file")) (:scheme "file" :pattern (:glob "**" :matches "folder"))]))) :callHierarchyProvider t :semanticTokensProvider (:legend (:tokenTypes ["comment" "decorator" "enumMember" "enum" "function" "interface" "keyword" "macro" "method" "namespace" "number" "operator" "parameter" "property" "string" "struct" "typeParameter" "variable" "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" "boolean" "brace" "bracket" "builtinAttribute" "builtinType" "character" "colon" "comma" "comparison" "constParameter" "derive" "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" "union" "unresolvedReference"] :tokenModifiers ["documentation" "declaration" "static" "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" "controlFlow" "crateRoot" "injected" "intraDocLink" "library" "mutable" "public" "reference" "trait" "unsafe"]) :range t :full (:delta t)) :inlayHintProvider (:resolveProvider t) :experimental (:externalDocs t :hoverRange t :joinLines t :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule t :runnables (:kinds ["cargo"]) :ssr t :workspaceSymbolScopeKindFiltering t)) :serverInfo (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) [client-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ())) [client-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "textDocument/didOpen" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 :languageId "rust-ts" :text "fn main() {\n println!(\"Hello world\");\n}\n"))) [client-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params (:settings #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()))) [client-request] (id:2) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 3 :character 0)))) [server-request] (id:0) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:0) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 0 :result nil) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-request] (id:1) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params (:items [(:section "rust-analyzer")])) [client-reply] (id:1) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 1 :result [nil]) [server-reply] (id:2) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 2 :result []) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-request] (id:2) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params (:registrations [(:id "workspace/didChangeWatchedFiles" :method "workspace/didChangeWatchedFiles" :registerOptions (:watchers [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) [client-reply] (id:2) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 2 :result nil) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:3) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Roots Scanned")) [client-reply] (id:3) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 3 :result nil) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "begin" :title "Roots Scanned" :cancellable :json-false :message "0/2" :percentage 0))) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "report" :cancellable :json-false :message "1/2" :percentage 50))) [server-request] (id:4) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:4) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 4 :result nil) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [client-request] (id:3) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 0))) [client-request] (id:4) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 0))) [client-request] (id:5) Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 0))) [server-notification] Wed May 10 21:30:16 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "end" :message "2/2"))) [server-reply] (id:3) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 3 :result nil) [server-reply] (id:4) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 4 :result nil) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:5) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Fetching")) [client-reply] (id:5) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 5 :result nil) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "begin" :title "Fetching" :cancellable :json-false))) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "report" :cancellable :json-false :message "metadata"))) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Fetching" :value (:kind "end"))) [server-request] (id:6) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 6 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Loading")) [client-reply] (id:6) Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :id 6 :result nil) [server-notification] Wed May 10 21:30:17 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "begin" :title "Loading" :cancellable :json-false))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "report" :cancellable :json-false :message "building proc-macros: tmp"))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "report" :cancellable :json-false :message "building proc-macros: tmp"))) [server-request] (id:7) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 7 :method "client/registerCapability" :params (:registrations [(:id "workspace/didChangeWatchedFiles" :method "workspace/didChangeWatchedFiles" :registerOptions (:watchers [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) [client-reply] (id:7) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 7 :result nil) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Loading" :value (:kind "end"))) [server-request] (id:8) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Roots Scanned")) [client-reply] (id:8) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 8 :result nil) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "begin" :title "Roots Scanned" :cancellable :json-false :message "0/2" :percentage 0))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "report" :cancellable :json-false :message "1/2" :percentage 50))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Roots Scanned" :value (:kind "end" :message "2/2"))) [server-request] (id:9) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params (:token "rustAnalyzer/Indexing")) [client-reply] (id:9) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 9 :result nil) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "begin" :title "Indexing" :cancellable :json-false :percentage 0))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "0/5 (core + 1 more)" :percentage 0))) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "1/5 (core)" :percentage 20))) [server-request] (id:10) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params (:token "rust-analyzer/flycheck/0")) [client-reply] (id:10) Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :id 10 :result nil) [server-notification] Wed May 10 21:30:18 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "begin" :title "cargo check" :cancellable t))) [server-notification] Wed May 10 21:30:19 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "report" :cancellable t :message "tmp"))) [server-notification] Wed May 10 21:30:19 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "report" :cancellable t :message "tmp"))) [server-notification] Wed May 10 21:30:19 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "end"))) [server-notification] Wed May 10 21:30:20 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "2/5 (alloc)" :percentage 40))) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 60))) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "3/5 (std)" :percentage 60))) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 80))) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :message "4/5 (proc_macro)" :percentage 80))) [client-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" :type 1)])) [client-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" :type 1)])) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "report" :cancellable :json-false :percentage 100))) [server-notification] Wed May 10 21:30:21 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rustAnalyzer/Indexing" :value (:kind "end"))) [server-reply] (id:5) Wed May 10 21:30:23 2023: (:jsonrpc "2.0" :id 5 :result []) [server-notification] Wed May 10 21:30:23 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [] :version 0)) [client-notification] Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 9) :contentChanges [(:range (:start (:line 0 :character 0) :end (:line 0 :character 0)) :rangeLength 0 :text "\n") (:range (:start (:line 1 :character 0) :end (:line 1 :character 0)) :rangeLength 0 :text "\n") (:range (:start (:line 0 :character 0) :end (:line 0 :character 0)) :rangeLength 0 :text "m") (:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :rangeLength 0 :text "d") (:range (:start (:line 0 :character 1) :end (:line 0 :character 2)) :rangeLength 1 :text "") (:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :rangeLength 0 :text "d") (:range (:start (:line 0 :character 2) :end (:line 0 :character 2)) :rangeLength 0 :text " ") (:range (:start (:line 0 :character 2) :end (:line 0 :character 3)) :rangeLength 1 :text "") (:range (:start (:line 0 :character 1) :end (:line 0 :character 2)) :rangeLength 1 :text "")])) [client-request] (id:6) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 6 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 1))) [client-request] (id:7) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 7 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 1))) [client-request] (id:8) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 8 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 1))) [client-request] (id:9) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 9 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-reply] (id:6) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 6 :result nil) [server-reply] (id:7) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 7 :result nil) [server-reply] (id:8) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 8 :result nil) [server-reply] (id:9) Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :id 9 :result []) [server-notification] Wed May 10 21:30:24 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected BANG") (:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected `{`, `[`, `(`") (:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected SEMICOLON")] :version 9)) [client-notification] Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 12) :contentChanges [(:range (:start (:line 0 :character 1) :end (:line 0 :character 1)) :rangeLength 0 :text "o") (:range (:start (:line 0 :character 2) :end (:line 0 :character 2)) :rangeLength 0 :text "d") (:range (:start (:line 0 :character 3) :end (:line 0 :character 3)) :rangeLength 0 :text " ")])) [client-request] (id:10) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 10 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:11) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 11 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:12) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 12 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:13) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 13 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-notification] Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 2 :character 0) :end (:line 2 :character 0)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected a name") (:range (:start (:line 2 :character 2) :end (:line 2 :character 2)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`") (:range (:start (:line 2 :character 7) :end (:line 2 :character 7)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected BANG") (:range (:start (:line 2 :character 9) :end (:line 2 :character 9)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected SEMICOLON") (:range (:start (:line 2 :character 10) :end (:line 2 :character 10)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected an item")] :version 12)) [server-reply] (id:10) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 10 :result nil) [server-reply] (id:11) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 11 :result nil) [server-reply] (id:12) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 12 :result nil) [server-reply] (id:13) Wed May 10 21:30:25 2023: (:jsonrpc "2.0" :id 13 :result []) [client-notification] Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 15) :contentChanges [(:range (:start (:line 0 :character 4) :end (:line 0 :character 4)) :rangeLength 0 :text "t") (:range (:start (:line 0 :character 5) :end (:line 0 :character 5)) :rangeLength 0 :text "m") (:range (:start (:line 0 :character 6) :end (:line 0 :character 6)) :rangeLength 0 :text "p")])) [client-request] (id:14) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 14 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 7))) [client-request] (id:15) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 7))) [client-request] (id:16) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 16 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 7))) [client-request] (id:17) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 17 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-notification] Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 7) :end (:line 0 :character 7)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`")] :version 15)) [server-reply] (id:14) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 14 :result nil) [server-reply] (id:17) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 17 :result []) [server-reply] (id:15) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 15 :result (:contents (:kind "plaintext" :value "tmp\n\nmod tmp") :range (:start (:line 0 :character 4) :end (:line 0 :character 7)))) [server-reply] (id:16) Wed May 10 21:30:27 2023: (:jsonrpc "2.0" :id 16 :result [(:range (:start (:line 0 :character 4) :end (:line 0 :character 7)))]) [internal] (id:18) Wed May 10 21:30:29 2023: (:deferring :textDocument/signatureHelp :id 18 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [internal] (id:19) Wed May 10 21:30:29 2023: (:deferring :textDocument/hover :id 19 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [internal] (id:20) Wed May 10 21:30:29 2023: (:deferring :textDocument/documentHighlight :id 20 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [client-notification] Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 16) :contentChanges [(:range (:start (:line 0 :character 7) :end (:line 0 :character 7)) :rangeLength 0 :text ";")])) [internal] Wed May 10 21:30:29 2023: (:maybe-run-deferred (20 19 18)) [client-request] (id:20) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 20 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [client-request] (id:19) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 19 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [client-request] (id:18) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 18 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [client-request] (id:21) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 21 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-reply] (id:20) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 20 :result nil) [server-reply] (id:19) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 19 :result nil) [server-reply] (id:18) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 18 :result nil) [server-notification] Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 8)) :severity 1 :code "unresolved-module" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#unresolved-module") :source "rust-analyzer" :message "unresolved module, can't find module file: tmp.rs, or tmp/mod.rs")] :version 16)) [server-reply] (id:21) Wed May 10 21:30:29 2023: (:jsonrpc "2.0" :id 21 :result []) [client-notification] Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 19) :contentChanges [(:range (:start (:line 0 :character 6) :end (:line 0 :character 7)) :rangeLength 1 :text "") (:range (:start (:line 0 :character 5) :end (:line 0 :character 6)) :rangeLength 1 :text "") (:range (:start (:line 0 :character 4) :end (:line 0 :character 5)) :rangeLength 1 :text "")])) [client-request] (id:22) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 22 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:23) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 23 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:24) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 24 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 4))) [client-request] (id:25) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 25 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-notification] Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 4) :end (:line 0 :character 4)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected a name") (:range (:start (:line 0 :character 5) :end (:line 0 :character 5)) :severity 1 :code "syntax-error" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#syntax-error") :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`")] :version 19)) [server-reply] (id:22) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 22 :result nil) [server-reply] (id:23) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 23 :result nil) [server-reply] (id:24) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 24 :result nil) [server-reply] (id:25) Wed May 10 21:30:31 2023: (:jsonrpc "2.0" :id 25 :result []) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "textDocument/didChange" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 24) :contentChanges [(:range (:start (:line 0 :character 4) :end (:line 0 :character 4)) :rangeLength 0 :text "t") (:range (:start (:line 0 :character 5) :end (:line 0 :character 5)) :rangeLength 0 :text "h") (:range (:start (:line 0 :character 6) :end (:line 0 :character 6)) :rangeLength 0 :text "i") (:range (:start (:line 0 :character 7) :end (:line 0 :character 7)) :rangeLength 0 :text "n") (:range (:start (:line 0 :character 8) :end (:line 0 :character 8)) :rangeLength 0 :text "g")])) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "textDocument/didSave" :params (:text "mod thing;\n\nfn main() {\n println!(\"Hello world\");\n}\n" :textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs"))) [server-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "unresolved-module" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#unresolved-module") :source "rust-analyzer" :message "unresolved module, can't find module file: thing.rs, or thing/mod.rs")] :version 24)) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) [client-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params (:changes [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) [server-request] (id:11) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 11 :method "window/workDoneProgress/create" :params (:token "rust-analyzer/flycheck/0")) [client-reply] (id:11) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 11 :result nil) [server-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "begin" :title "cargo check" :cancellable t))) [server-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "unresolved-module" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#unresolved-module") :source "rust-analyzer" :message "unresolved module, can't find module file: thing.rs, or thing/mod.rs") (:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "E0583" :codeDescription (:href "https://doc.rust-lang.org/error-index.html#E0583") :source "rustc" :message "file not found for module `thing`\nto create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"" :data (:rendered "error[E0583]: file not found for module `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n = help: to create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"\n\n"))] :version 24)) [server-notification] Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :method "$/progress" :params (:token "rust-analyzer/flycheck/0" :value (:kind "end"))) [client-request] (id:26) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 26 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [client-request] (id:27) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 27 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [client-request] (id:28) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 28 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [client-request] (id:29) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 29 :method "textDocument/inlayHint" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 0) :end (:line 5 :character 0)))) [server-reply] (id:26) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 26 :result nil) [server-reply] (id:27) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 27 :result (:contents (:kind "plaintext" :value "tmp\n\nmod thing") :range (:start (:line 0 :character 4) :end (:line 0 :character 9)))) [server-reply] (id:28) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 28 :result [(:range (:start (:line 0 :character 4) :end (:line 0 :character 9)))]) [server-reply] (id:29) Wed May 10 21:30:33 2023: (:jsonrpc "2.0" :id 29 :result []) [internal] (id:18) Wed May 10 21:30:39 2023: (:timed-out :textDocument/signatureHelp :id 18 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [internal] (id:19) Wed May 10 21:30:39 2023: (:timed-out :textDocument/hover :id 19 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [internal] (id:20) Wed May 10 21:30:39 2023: (:timed-out :textDocument/documentHighlight :id 20 :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 8))) [client-request] (id:30) Wed May 10 21:30:40 2023: (:jsonrpc "2.0" :id 30 :method "textDocument/codeAction" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 4) :end (:line 0 :character 9)) :context (:diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "E0583" :codeDescription (:href "https://doc.rust-lang.org/error-index.html#E0583") :source "rustc" :message "file not found for module `thing`\nto create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"" :data (:rendered "error[E0583]: file not found for module `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n = help: to create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"\n\n")) (:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "unresolved-module" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#unresolved-module") :source "rust-analyzer" :message "unresolved module, can't find module file: thing.rs, or thing/mod.rs")]))) [server-reply] (id:30) Wed May 10 21:30:41 2023: (:jsonrpc "2.0" :id 30 :result [(:title "Create module at `thing.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) [client-request] (id:31) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 31 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [client-request] (id:32) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 32 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [client-request] (id:33) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 33 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 9))) [server-reply] (id:31) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 31 :result nil) [server-reply] (id:32) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 32 :result (:contents (:kind "plaintext" :value "tmp\n\nmod thing") :range (:start (:line 0 :character 4) :end (:line 0 :character 9)))) [server-reply] (id:33) Wed May 10 21:30:43 2023: (:jsonrpc "2.0" :id 33 :result [(:range (:start (:line 0 :character 4) :end (:line 0 :character 9)))]) [client-request] (id:34) Wed May 10 21:31:45 2023: (:jsonrpc "2.0" :id 34 :method "textDocument/codeAction" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :range (:start (:line 0 :character 4) :end (:line 0 :character 9)) :context (:diagnostics [(:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "E0583" :codeDescription (:href "https://doc.rust-lang.org/error-index.html#E0583") :source "rustc" :message "file not found for module `thing`\nto create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"" :data (:rendered "error[E0583]: file not found for module `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n = help: to create the module `thing`, create file \"thing.rs\" or \"thing/mod.rs\"\n\n")) (:range (:start (:line 0 :character 0) :end (:line 0 :character 10)) :severity 1 :code "unresolved-module" :codeDescription (:href "https://rust-analyzer.github.io/manual.html#unresolved-module") :source "rust-analyzer" :message "unresolved module, can't find module file: thing.rs, or thing/mod.rs")]))) [server-reply] (id:34) Wed May 10 21:31:45 2023: (:jsonrpc "2.0" :id 34 :result [(:title "Create module at `thing.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" :uri "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) [client-request] (id:35) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 35 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 10))) [client-request] (id:36) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 36 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 10))) [client-request] (id:37) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 37 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 0 :character 10))) [server-reply] (id:35) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 35 :result nil) [server-reply] (id:36) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 36 :result nil) [server-reply] (id:37) Wed May 10 21:38:05 2023: (:jsonrpc "2.0" :id 37 :result nil) [client-request] (id:38) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 38 :method "textDocument/signatureHelp" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 5 :character 0))) [client-request] (id:39) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 39 :method "textDocument/hover" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 5 :character 0))) [client-request] (id:40) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 40 :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/misha/sweet/repos/tmp/main.rs") :position (:line 5 :character 0))) [server-reply] (id:38) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 38 :result nil) [server-reply] (id:39) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 39 :result nil) [server-reply] (id:40) Wed May 10 21:38:08 2023: (:jsonrpc "2.0" :id 40 :result nil) ``` There's nothing in `M-x eglot-stderr-buffer` In GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-05-10 built on misha-N552VX Repository revision: 93005cd9dc2bab882e66ac7b81f593cd6c021e43 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Ubuntu 22.04.2 LTS Configured using: 'configure --with-json --with-cairo --with-xwidgets --prefix=/opt/emacs/ --with-x-toolkit=gtk3 --with-tree-sitter --with-native-compilation --with-modules' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Rust Minor modes in effect: eglot-inlay-hints-mode: t eglot--managed-mode: t flymake-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr help-fns radix-tree cl-print cus-start cus-load emacsbug message mailcap yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils files-x find-dired grep misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher conf-mode time-date eglot external-completion array filenotify jsonrpc ert pp ewoc debug backtrace find-func xref flymake-proc flymake thingatpt compile text-property-search comint ansi-osc ansi-color ring pcase url-util url-parse auth-source eieio eieio-core password-cache json map url-vars project byte-opt imenu rust-ts-mode c-ts-common treesit dired-aux cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib dired dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 156384 23572) (symbols 48 13274 0) (strings 32 39865 2264) (string-bytes 1 1247909) (vectors 16 27590) (vector-slots 8 541569 23397) (floats 8 51 48) (intervals 56 943 0) (buffers 984 23)) From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Felician Nemeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2023 06:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Misha Zharov Cc: 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.168378698011007 (code B ref 63433); Thu, 11 May 2023 06:37:01 +0000 Received: (at 63433) by debbugs.gnu.org; 11 May 2023 06:36:20 +0000 Received: from localhost ([127.0.0.1]:49547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwzuS-0002rP-J7 for submit@debbugs.gnu.org; Thu, 11 May 2023 02:36:20 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:56742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwzuI-0002qe-Oz for 63433@debbugs.gnu.org; Thu, 11 May 2023 02:36:14 -0400 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f42c865535so27416245e9.1 for <63433@debbugs.gnu.org>; Wed, 10 May 2023 23:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683786960; x=1686378960; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=thinn7AdbA8jp0dzKQPUGxWd0N4znNClXskLb+T+It8=; b=sCIWSocGpJHyrCiMSbgdMOXAMfiSItmtnftkxYLCg7s2W2YuPu8GoRWEqj6XTSExMK ObZ0Pp67425Dxejst96WmXcRtPou2igzpazhyue6/kwYmvKe90uls4ZhOkh+KhNqKxvv tZxJ3FK8qae13LsO8JdGWgvAheXQlvqXkFbUUOckMopPsreh1nHxSSW2QT2VVFSlkUrr cYdXZqSmJYPo5pwr6UeMZCXPXHXw2tWcvvT0aBSI1bnfdHDbVXf3bdgq/5ArEF4qsRtn ltvXw/CSBJQwH12lDOL5JfY8KXm8q0wFGxKMPP/fI355CJMTvb4eJ0IJ81sDneZ0izXd dePA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683786960; x=1686378960; h=mime-version:face:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=thinn7AdbA8jp0dzKQPUGxWd0N4znNClXskLb+T+It8=; b=OmoCHNpAsXVjhtaCC/OOBY0xqfSJrKjEocNKXsvb9n4Jje7zju8z+3tgPur7p1VxXr LnD8WowHqboxCDoH3xismU/iYn3a+XUM7xOJ1+3jYjLp3QEk0JMZBLEq31nx1ZN6UyMp wYG9pZrB3gby3vm1wSlytTJtwdb+CRcNJYxC4zqOLgdnMIDCVpYiZ9qVkBEaoPXCXtCE xuTD9OIa1rIgyYPDDDdNE/YcwRfhMgoZjeInhDyPn9SE0MzzANmsWI/F+8ppzsO1o0+g rd6jikUY2+Re6hrqrTRGxqNzfCWqDv3D+mGBNuu9oOmbQCd4ZcLLLP2sSFZIk/Q8+eAJ KE/w== X-Gm-Message-State: AC+VfDx+jDxMreSH02iHN78uwrMbetbJu7iBsvjnHD8lYbTTGWD4QXwi tUM/a7eLnRBJbXq4o+GKl5lxndf9SoU= X-Google-Smtp-Source: ACHHUZ5MWC+3Jaoux1gr48Wrw3VACd7Xr9qlSpfe5KRaK+IjWsM+1NPGqPsgjFLjzOK58+kZcFAxVQ== X-Received: by 2002:a05:600c:3658:b0:3f4:2374:3517 with SMTP id y24-20020a05600c365800b003f423743517mr8946322wmq.19.1683786959097; Wed, 10 May 2023 23:35:59 -0700 (PDT) Received: from betli.gmail.com (catv-89-134-210-182.catv.fixed.vodafone.hu. [89.134.210.182]) by smtp.gmail.com with ESMTPSA id a6-20020a056000050600b003079c402762sm9931474wrf.19.2023.05.10.23.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 23:35:58 -0700 (PDT) From: Felician Nemeth References: Date: Thu, 11 May 2023 08:35:57 +0200 In-Reply-To: (Misha Zharov's message of "Wed, 10 May 2023 21:49:08 -0700") Message-ID: <87zg6b8jea.fsf@betli.tmit.bme.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEX5+fmhoaEwMDD/ ///TMNVWAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAAPEgAADxIBIZvyMwAAAAd0SU1FB+AICBUfHgLs gGoAAAGXSURBVCjPRdK/b5tAFAfw753gBEwM2ApMbuVIqf+Ko0qiyhOu4sj2xJBYMn/FUdX7UUUZ OjHgyvf+yj6IcW6Bjx53934ADEvs8bmEr8UVoTYTOyJO9KoYsVofN8kILdbeJ8Li6YpZWop4xOK0 VdfIoXmkHn5/5D7/Ts/8THacSqnkKTcMTxgUkVzFnEIRTKwwYYSCvzfg16f0i8YApW/XG/Pm8R49 dXjxKmRnxv3OwooQWcv4RUYem1fsNe/WU63uk7AmYxk78y32/ee2tZB4fO+WcZ7lnIGEolXW1EGw LfkSuQ0XTgRefgNlfNwRNV6QhBxJ8JNxTMUPyBqTd0bjaAP5G7NJRU39z80hLOZTjqB7K3tEEFSj aEsuQew6qBxxyhHjVUR7H7NpC9iHJZGLMCEuweqAqE1BHbfK2oRIz9EHYA/+wiFWru9smeVfuWNZ 2+NFtX80UA1TvJNdytM4DwO4kY7bJz8Qcd0G0ceslZGkkeoBsjUHwF1+jjM3XHaXEZ7mGLfwPFO+ RV9QLY2iEdmDo78D/gNPaXVYqd+pyQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wOC0wOFQyMzoz MDoyOCswMjowMGy/yHYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDgtMDhUMjM6MzA6MjgrMDI6 MDAd4nDKAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) In its initializationOptions, Eglot do not state that it supports any resourceOperations. So the server made a mistake when it sent a "create" kind. Sure, Eglot could handle better the server's mistake or support this feature, but this is primarily a server bug in my opinion. Background: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspaceEditClientCapabilities Misha Zharov writes: > When I declare a module that does not exist in Rust, > `M-x eglot-code-actions` suggests that I create the file. However, when I > select this option I get the following traceback and the change is not > applied: > > ``` > Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > file-truename(nil) > find-buffer-visiting(nil) > cl-every(find-buffer-visiting (nil)) > cl-notevery(find-buffer-visiting (nil)) > eglot--apply-workspace-edit((:documentChanges [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing.rs")])) > eglot--read-execute-code-action(((:title "Create module at > `thing.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" > :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) (:title "Create > module at `thing/mod.rs`" :kind "quickfix" :edit (:documentChanges > [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))) > # nil) > eglot-code-actions(5 10 nil t) > funcall-interactively(eglot-code-actions 5 10 nil t) > command-execute(eglot-code-actions record) > execute-extended-command(nil "eglot-code-actions" "eglot-code-actions") > funcall-interactively(execute-extended-command nil > "eglot-code-actions" "eglot-code-actions") > command-execute(execute-extended-command) > ``` > > Reproduction (from `emacs -Q`): > Create a `Cargo.toml`: > ``` > [package] > name = "tmp" > version = "0.1.0" > edition = "2021" > > # See more keys and their definitions at > https://doc.rust-lang.org/cargo/reference/manifest.html > > [dependencies] > > [[bin]] > name = "tmp" > path = "main.rs" > ``` > > Create a `main.rs`: > ``` > mod thing; > > fn main() { > println!("Hello world"); > } > ``` > > Enable `rust-ts-mode` (the treesit grammar has to be installed I > assume). Flymake and ElDoc appear to be enabled as well. Enable eglot: > `M-x eglot`. > > Eglot should prompt us to choose a language server. This reproduces with > rust-analyzer which is shipped with Rust 1.69 (can be obtained at > `https://www.rust-lang.org/tools/install`). RLS should not be used. > > Now there should be a code action to fix the issue with the missing > module (by creating the file `thing.rs`). However, we see that the code > action is not applied successfully. > > `M-x eglot-events-buffer`: > ``` > [internal] Wed May 10 21:26:58 2023: > (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer") > [client-request] (id:1) Wed May 10 21:26:58 2023: > (:jsonrpc "2.0" :id 1 :method "initialize" :params > (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" > :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions > #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 > data > ()) > :capabilities > (:workspace > (:applyEdit t :executeCommand > (:dynamicRegistration :json-false) > :workspaceEdit > (:documentChanges t) > :didChangeWatchedFiles > (:dynamicRegistration t) > :symbol > (:dynamicRegistration :json-false) > :configuration t :workspaceFolders t) > :textDocument > (:synchronization > (:dynamicRegistration :json-false :willSave t > :willSaveWaitUntil t :didSave t) > :completion > (:dynamicRegistration :json-false :completionItem > (:snippetSupport :json-false > :deprecatedSupport t :resolveSupport > (:properties > ["documentation" "details" > "additionalTextEdits"]) > :tagSupport > (:valueSet > [1])) > :contextSupport t) > :hover > (:dynamicRegistration :json-false :contentFormat > ["plaintext"]) > :signatureHelp > (:dynamicRegistration :json-false :signatureInformation > (:parameterInformation > (:labelOffsetSupport t) > :activeParameterSupport t)) > :references > (:dynamicRegistration :json-false) > :definition > (:dynamicRegistration :json-false :linkSupport t) > :declaration > (:dynamicRegistration :json-false :linkSupport t) > :implementation > (:dynamicRegistration :json-false :linkSupport t) > :typeDefinition > (:dynamicRegistration :json-false :linkSupport t) > :documentSymbol > (:dynamicRegistration :json-false > :hierarchicalDocumentSymbolSupport t :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])) > :documentHighlight > (:dynamicRegistration :json-false) > :codeAction > (:dynamicRegistration :json-false :codeActionLiteralSupport > (:codeActionKind > (:valueSet > ["quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite" "source" > "source.organizeImports"])) > :isPreferredSupport t) > :formatting > (:dynamicRegistration :json-false) > :rangeFormatting > (:dynamicRegistration :json-false) > :rename > (:dynamicRegistration :json-false) > :inlayHint > (:dynamicRegistration :json-false) > :publishDiagnostics > (:relatedInformation :json-false :codeDescriptionSupport > :json-false :tagSupport > (:valueSet > [1 2]))) > :window > (:workDoneProgress t) > :general > (:positionEncodings > ["utf-32" "utf-8" "utf-16"]) > :experimental #s(hash-table size 1 test eql rehash-size > 1.5 rehash-threshold 0.8125 data > ())) > :workspaceFolders > [(:uri "file:///home/misha/sweet/repos/tmp" :name > "~/sweet/repos/tmp/")])) > [server-reply] (id:1) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 1 :result > (:capabilities > (:positionEncoding "utf-32" :textDocumentSync > (:openClose t :change 2 :save nil) > :selectionRangeProvider t :hoverProvider t :completionProvider > (:resolveProvider t :triggerCharacters > [":" "." "'" "("] > :completionItem > (:labelDetailsSupport :json-false)) > :signatureHelpProvider > (:triggerCharacters > ["(" "," "<"]) > :definitionProvider t :typeDefinitionProvider t > :implementationProvider t :referencesProvider t > :documentHighlightProvider t :documentSymbolProvider t > :workspaceSymbolProvider t :codeActionProvider > (:codeActionKinds > ["" "quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite"] > :resolveProvider t) > :codeLensProvider > (:resolveProvider t) > :documentFormattingProvider t > :documentRangeFormattingProvider :json-false > :documentOnTypeFormattingProvider > (:firstTriggerCharacter "=" :moreTriggerCharacter > ["." ">" "{"]) > :renameProvider > (:prepareProvider t) > :foldingRangeProvider t :declarationProvider t :workspace > (:workspaceFolders > (:supported t :changeNotifications t) > :fileOperations > (:willRename > (:filters > [(:scheme "file" :pattern > (:glob "**/*.rs" :matches "file")) > (:scheme "file" :pattern > (:glob "**" :matches "folder"))]))) > :callHierarchyProvider t :semanticTokensProvider > (:legend > (:tokenTypes > ["comment" "decorator" "enumMember" "enum" "function" > "interface" "keyword" "macro" "method" "namespace" "number" "operator" > "parameter" "property" "string" "struct" "typeParameter" "variable" > "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" > "boolean" "brace" "bracket" "builtinAttribute" "builtinType" > "character" "colon" "comma" "comparison" "constParameter" "derive" > "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" > "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" > "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" > "union" "unresolvedReference"] > :tokenModifiers > ["documentation" "declaration" "static" > "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" > "controlFlow" "crateRoot" "injected" "intraDocLink" "library" > "mutable" "public" "reference" "trait" "unsafe"]) > :range t :full > (:delta t)) > :inlayHintProvider > (:resolveProvider t) > :experimental > (:externalDocs t :hoverRange t :joinLines t > :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule > t :runnables > (:kinds > ["cargo"]) > :ssr t :workspaceSymbolScopeKindFiltering t)) > :serverInfo > (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) > [client-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 > test eql rehash-size 1.5 rehash-threshold 0.8125 data > ())) > [client-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "textDocument/didOpen" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 > :languageId "rust-ts" :text "mod thing;\n\nfn main() {\n > println!(\"Hello world\");\n}"))) > [client-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params > (:settings #s(hash-table size 1 test eql rehash-size 1.5 > rehash-threshold 0.8125 data > ()))) > [client-request] (id:2) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 4 :character 1)))) > [stderr] [ERROR rust_analyzer::config] failed to find any projects in > [AbsPathBuf("/home/misha/sweet/repos/tmp")] > [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to > discover workspace > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "window/showMessage" :params > (:type 1 :message "rust-analyzer failed to discover workspace")) > [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to > discover workspace > [server-request] (id:0) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:0) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 0 :result nil) > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "window/showMessage" :params > (:type 1 :message "rust-analyzer failed to discover workspace")) > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:1) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params > (:items > [(:section "rust-analyzer")])) > [client-reply] (id:1) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 1 :result > [nil]) > [server-request] (id:2) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 2 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Indexing")) > [client-reply] (id:2) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 2 :result nil) > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "begin" :title "Indexing" :cancellable :json-false > :percentage 0))) > [server-notification] Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "end"))) > [server-reply] (id:2) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 2 :result > []) > [client-request] (id:3) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 3 :character 24))) > [client-request] (id:4) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 3 :character 24))) > [client-request] (id:5) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 3 :character 24))) > [server-reply] (id:3) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 3 :result nil) > [server-reply] (id:4) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 4 :result nil) > [server-reply] (id:5) Wed May 10 21:27:00 2023: > (:jsonrpc "2.0" :id 5 :result nil) > [client-request] (id:6) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 6 :method "shutdown" :params nil) > [server-reply] (id:6) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 6 :result nil) > [client-notification] Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :method "exit" :params nil) > [internal] Wed May 10 21:29:29 2023: > (:message "Connection state changed" :change "killed\n") > > ----------b---y---e---b---y---e---------- > [stderr] > [stderr] > [stderr] nil > [stderr] nil > [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished > [client-request] (id:1) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 1 :method "initialize" :params > (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" > :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions > #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 > data > ()) > :capabilities > (:workspace > (:applyEdit t :executeCommand > (:dynamicRegistration :json-false) > :workspaceEdit > (:documentChanges t) > :didChangeWatchedFiles > (:dynamicRegistration t) > :symbol > (:dynamicRegistration :json-false) > :configuration t :workspaceFolders t) > :textDocument > (:synchronization > (:dynamicRegistration :json-false :willSave t > :willSaveWaitUntil t :didSave t) > :completion > (:dynamicRegistration :json-false :completionItem > (:snippetSupport :json-false > :deprecatedSupport t :resolveSupport > (:properties > ["documentation" "details" > "additionalTextEdits"]) > :tagSupport > (:valueSet > [1])) > :contextSupport t) > :hover > (:dynamicRegistration :json-false :contentFormat > ["plaintext"]) > :signatureHelp > (:dynamicRegistration :json-false :signatureInformation > (:parameterInformation > (:labelOffsetSupport t) > :activeParameterSupport t)) > :references > (:dynamicRegistration :json-false) > :definition > (:dynamicRegistration :json-false :linkSupport t) > :declaration > (:dynamicRegistration :json-false :linkSupport t) > :implementation > (:dynamicRegistration :json-false :linkSupport t) > :typeDefinition > (:dynamicRegistration :json-false :linkSupport t) > :documentSymbol > (:dynamicRegistration :json-false > :hierarchicalDocumentSymbolSupport t :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])) > :documentHighlight > (:dynamicRegistration :json-false) > :codeAction > (:dynamicRegistration :json-false :codeActionLiteralSupport > (:codeActionKind > (:valueSet > ["quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite" "source" > "source.organizeImports"])) > :isPreferredSupport t) > :formatting > (:dynamicRegistration :json-false) > :rangeFormatting > (:dynamicRegistration :json-false) > :rename > (:dynamicRegistration :json-false) > :inlayHint > (:dynamicRegistration :json-false) > :publishDiagnostics > (:relatedInformation :json-false :codeDescriptionSupport > :json-false :tagSupport > (:valueSet > [1 2]))) > :window > (:workDoneProgress t) > :general > (:positionEncodings > ["utf-32" "utf-8" "utf-16"]) > :experimental #s(hash-table size 1 test eql rehash-size > 1.5 rehash-threshold 0.8125 data > ())) > :workspaceFolders > [(:uri "file:///home/misha/sweet/repos/tmp" :name > "~/sweet/repos/tmp/")])) > [server-reply] (id:1) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 1 :result > (:capabilities > (:positionEncoding "utf-32" :textDocumentSync > (:openClose t :change 2 :save nil) > :selectionRangeProvider t :hoverProvider t :completionProvider > (:resolveProvider t :triggerCharacters > [":" "." "'" "("] > :completionItem > (:labelDetailsSupport :json-false)) > :signatureHelpProvider > (:triggerCharacters > ["(" "," "<"]) > :definitionProvider t :typeDefinitionProvider t > :implementationProvider t :referencesProvider t > :documentHighlightProvider t :documentSymbolProvider t > :workspaceSymbolProvider t :codeActionProvider > (:codeActionKinds > ["" "quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite"] > :resolveProvider t) > :codeLensProvider > (:resolveProvider t) > :documentFormattingProvider t > :documentRangeFormattingProvider :json-false > :documentOnTypeFormattingProvider > (:firstTriggerCharacter "=" :moreTriggerCharacter > ["." ">" "{"]) > :renameProvider > (:prepareProvider t) > :foldingRangeProvider t :declarationProvider t :workspace > (:workspaceFolders > (:supported t :changeNotifications t) > :fileOperations > (:willRename > (:filters > [(:scheme "file" :pattern > (:glob "**/*.rs" :matches "file")) > (:scheme "file" :pattern > (:glob "**" :matches "folder"))]))) > :callHierarchyProvider t :semanticTokensProvider > (:legend > (:tokenTypes > ["comment" "decorator" "enumMember" "enum" "function" > "interface" "keyword" "macro" "method" "namespace" "number" "operator" > "parameter" "property" "string" "struct" "typeParameter" "variable" > "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" > "boolean" "brace" "bracket" "builtinAttribute" "builtinType" > "character" "colon" "comma" "comparison" "constParameter" "derive" > "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" > "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" > "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" > "union" "unresolvedReference"] > :tokenModifiers > ["documentation" "declaration" "static" > "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" > "controlFlow" "crateRoot" "injected" "intraDocLink" "library" > "mutable" "public" "reference" "trait" "unsafe"]) > :range t :full > (:delta t)) > :inlayHintProvider > (:resolveProvider t) > :experimental > (:externalDocs t :hoverRange t :joinLines t > :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule > t :runnables > (:kinds > ["cargo"]) > :ssr t :workspaceSymbolScopeKindFiltering t)) > :serverInfo > (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) > [client-notification] Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 > test eql rehash-size 1.5 rehash-threshold 0.8125 data > ())) > [client-notification] Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params > (:settings #s(hash-table size 1 test eql rehash-size 1.5 > rehash-threshold 0.8125 data > ()))) > [server-request] (id:0) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 0 :method "workspace/configuration" :params > (:items > [(:section "rust-analyzer")])) > [client-reply] (id:0) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 0 :result > [nil]) > [server-request] (id:1) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 1 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:1) Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :id 1 :result nil) > [server-notification] Wed May 10 21:29:29 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-notification] Wed May 10 21:29:32 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-request] (id:2) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params > (:registrations > [(:id "workspace/didChangeWatchedFiles" :method > "workspace/didChangeWatchedFiles" :registerOptions > (:watchers > [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) > [client-reply] (id:2) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 2 :result nil) > [server-notification] Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:3) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Roots Scanned")) > [client-reply] (id:3) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 3 :result nil) > [server-notification] Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "begin" :title "Roots Scanned" :cancellable > :json-false :message "0/2" :percentage 0))) > [server-notification] Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "report" :cancellable :json-false :message "1/2" > :percentage 50))) > [server-request] (id:4) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:4) Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :id 4 :result nil) > [server-notification] Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-notification] Wed May 10 21:29:35 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-notification] Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:5) Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Loading")) > [client-reply] (id:5) Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :id 5 :result nil) > [server-notification] Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "begin" :title "Loading" :cancellable :json-false))) > [server-notification] Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "report" :cancellable :json-false :message "building > proc-macros: tmp"))) > [server-notification] Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "report" :cancellable :json-false :message "building > proc-macros: tmp"))) > [server-request] (id:6) Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :id 6 :method "client/registerCapability" :params > (:registrations > [(:id "workspace/didChangeWatchedFiles" :method > "workspace/didChangeWatchedFiles" :registerOptions > (:watchers > [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) > [client-reply] (id:6) Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :id 6 :result nil) > [server-notification] Wed May 10 21:29:36 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "end"))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "end" :message "2/2"))) > [server-request] (id:7) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 7 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Roots Scanned")) > [client-reply] (id:7) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 7 :result nil) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "begin" :title "Roots Scanned" :cancellable > :json-false :message "0/2" :percentage 0))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "report" :cancellable :json-false :message "1/2" > :percentage 50))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "end" :message "2/2"))) > [server-request] (id:8) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:8) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 8 :result nil) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:9) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Indexing")) > [client-reply] (id:9) Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :id 9 :result nil) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "begin" :title "Indexing" :cancellable :json-false > :percentage 0))) > [server-notification] Wed May 10 21:29:48 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "0/5 (test > + 1 more)" :percentage 0))) > [server-request] (id:10) Wed May 10 21:29:49 2023: > (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params > (:token "rust-analyzer/flycheck/0")) > [client-reply] (id:10) Wed May 10 21:29:49 2023: > (:jsonrpc "2.0" :id 10 :result nil) > [server-notification] Wed May 10 21:29:49 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "begin" :title "cargo check" :cancellable t))) > [server-notification] Wed May 10 21:29:49 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "1/5 > (core)" :percentage 20))) > [server-notification] Wed May 10 21:29:49 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "E0583" :codeDescription > (:href "https://doc.rust-lang.org/error-index.html#E0583") > :source "rustc" :message "file not found for module > `thing`\nto create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"" :data > (:rendered "error[E0583]: file not found for module > `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n > = help: to create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"\n\n"))])) > [server-notification] Wed May 10 21:29:52 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 40))) > [server-notification] Wed May 10 21:29:52 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "2/5 > (alloc)" :percentage 40))) > [server-notification] Wed May 10 21:29:52 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 60))) > [server-notification] Wed May 10 21:29:52 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "3/5 > (std)" :percentage 60))) > [server-notification] Wed May 10 21:29:53 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 80))) > [server-notification] Wed May 10 21:29:53 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "4/5 > (proc_macro)" :percentage 80))) > [server-notification] Wed May 10 21:29:53 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 100))) > [server-notification] Wed May 10 21:29:53 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "end"))) > [server-notification] Wed May 10 21:29:54 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "end"))) > [client-notification] Wed May 10 21:30:01 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" > :type 1)])) > [client-notification] Wed May 10 21:30:08 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 1)])) > [client-notification] Wed May 10 21:30:08 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) > [client-notification] Wed May 10 21:30:08 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) > [stderr] > [stderr] > [stderr] nil > [stderr] nil > [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished > [internal] Wed May 10 21:30:16 2023: > (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer") > [client-request] (id:1) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 1 :method "initialize" :params > (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" > :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions > #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 > data > ()) > :capabilities > (:workspace > (:applyEdit t :executeCommand > (:dynamicRegistration :json-false) > :workspaceEdit > (:documentChanges t) > :didChangeWatchedFiles > (:dynamicRegistration t) > :symbol > (:dynamicRegistration :json-false) > :configuration t :workspaceFolders t) > :textDocument > (:synchronization > (:dynamicRegistration :json-false :willSave t > :willSaveWaitUntil t :didSave t) > :completion > (:dynamicRegistration :json-false :completionItem > (:snippetSupport :json-false > :deprecatedSupport t :resolveSupport > (:properties > ["documentation" "details" > "additionalTextEdits"]) > :tagSupport > (:valueSet > [1])) > :contextSupport t) > :hover > (:dynamicRegistration :json-false :contentFormat > ["plaintext"]) > :signatureHelp > (:dynamicRegistration :json-false :signatureInformation > (:parameterInformation > (:labelOffsetSupport t) > :activeParameterSupport t)) > :references > (:dynamicRegistration :json-false) > :definition > (:dynamicRegistration :json-false :linkSupport t) > :declaration > (:dynamicRegistration :json-false :linkSupport t) > :implementation > (:dynamicRegistration :json-false :linkSupport t) > :typeDefinition > (:dynamicRegistration :json-false :linkSupport t) > :documentSymbol > (:dynamicRegistration :json-false > :hierarchicalDocumentSymbolSupport t :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])) > :documentHighlight > (:dynamicRegistration :json-false) > :codeAction > (:dynamicRegistration :json-false :codeActionLiteralSupport > (:codeActionKind > (:valueSet > ["quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite" "source" > "source.organizeImports"])) > :isPreferredSupport t) > :formatting > (:dynamicRegistration :json-false) > :rangeFormatting > (:dynamicRegistration :json-false) > :rename > (:dynamicRegistration :json-false) > :inlayHint > (:dynamicRegistration :json-false) > :publishDiagnostics > (:relatedInformation :json-false :codeDescriptionSupport > :json-false :tagSupport > (:valueSet > [1 2]))) > :window > (:workDoneProgress t) > :general > (:positionEncodings > ["utf-32" "utf-8" "utf-16"]) > :experimental #s(hash-table size 1 test eql rehash-size > 1.5 rehash-threshold 0.8125 data > ())) > :workspaceFolders > [(:uri "file:///home/misha/sweet/repos/tmp" :name > "~/sweet/repos/tmp/")])) > [server-reply] (id:1) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 1 :result > (:capabilities > (:positionEncoding "utf-32" :textDocumentSync > (:openClose t :change 2 :save nil) > :selectionRangeProvider t :hoverProvider t :completionProvider > (:resolveProvider t :triggerCharacters > [":" "." "'" "("] > :completionItem > (:labelDetailsSupport :json-false)) > :signatureHelpProvider > (:triggerCharacters > ["(" "," "<"]) > :definitionProvider t :typeDefinitionProvider t > :implementationProvider t :referencesProvider t > :documentHighlightProvider t :documentSymbolProvider t > :workspaceSymbolProvider t :codeActionProvider > (:codeActionKinds > ["" "quickfix" "refactor" "refactor.extract" > "refactor.inline" "refactor.rewrite"] > :resolveProvider t) > :codeLensProvider > (:resolveProvider t) > :documentFormattingProvider t > :documentRangeFormattingProvider :json-false > :documentOnTypeFormattingProvider > (:firstTriggerCharacter "=" :moreTriggerCharacter > ["." ">" "{"]) > :renameProvider > (:prepareProvider t) > :foldingRangeProvider t :declarationProvider t :workspace > (:workspaceFolders > (:supported t :changeNotifications t) > :fileOperations > (:willRename > (:filters > [(:scheme "file" :pattern > (:glob "**/*.rs" :matches "file")) > (:scheme "file" :pattern > (:glob "**" :matches "folder"))]))) > :callHierarchyProvider t :semanticTokensProvider > (:legend > (:tokenTypes > ["comment" "decorator" "enumMember" "enum" "function" > "interface" "keyword" "macro" "method" "namespace" "number" "operator" > "parameter" "property" "string" "struct" "typeParameter" "variable" > "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" > "boolean" "brace" "bracket" "builtinAttribute" "builtinType" > "character" "colon" "comma" "comparison" "constParameter" "derive" > "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" > "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" > "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" > "union" "unresolvedReference"] > :tokenModifiers > ["documentation" "declaration" "static" > "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" > "controlFlow" "crateRoot" "injected" "intraDocLink" "library" > "mutable" "public" "reference" "trait" "unsafe"]) > :range t :full > (:delta t)) > :inlayHintProvider > (:resolveProvider t) > :experimental > (:externalDocs t :hoverRange t :joinLines t > :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule > t :runnables > (:kinds > ["cargo"]) > :ssr t :workspaceSymbolScopeKindFiltering t)) > :serverInfo > (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) > [client-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 > test eql rehash-size 1.5 rehash-threshold 0.8125 data > ())) > [client-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "textDocument/didOpen" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 > :languageId "rust-ts" :text "fn main() {\n println!(\"Hello > world\");\n}\n"))) > [client-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params > (:settings #s(hash-table size 1 test eql rehash-size 1.5 > rehash-threshold 0.8125 data > ()))) > [client-request] (id:2) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 3 :character 0)))) > [server-request] (id:0) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:0) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 0 :result nil) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-request] (id:1) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params > (:items > [(:section "rust-analyzer")])) > [client-reply] (id:1) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 1 :result > [nil]) > [server-reply] (id:2) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 2 :result > []) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-request] (id:2) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params > (:registrations > [(:id "workspace/didChangeWatchedFiles" :method > "workspace/didChangeWatchedFiles" :registerOptions > (:watchers > [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) > [client-reply] (id:2) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 2 :result nil) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:3) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Roots Scanned")) > [client-reply] (id:3) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 3 :result nil) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "begin" :title "Roots Scanned" :cancellable > :json-false :message "0/2" :percentage 0))) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "report" :cancellable :json-false :message "1/2" > :percentage 50))) > [server-request] (id:4) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:4) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 4 :result nil) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [client-request] (id:3) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 0))) > [client-request] (id:4) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 0))) > [client-request] (id:5) Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 0))) > [server-notification] Wed May 10 21:30:16 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "end" :message "2/2"))) > [server-reply] (id:3) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 3 :result nil) > [server-reply] (id:4) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 4 :result nil) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:5) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Fetching")) > [client-reply] (id:5) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 5 :result nil) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "begin" :title "Fetching" :cancellable :json-false))) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "report" :cancellable :json-false :message "metadata"))) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Fetching" :value > (:kind "end"))) > [server-request] (id:6) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 6 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Loading")) > [client-reply] (id:6) Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :id 6 :result nil) > [server-notification] Wed May 10 21:30:17 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "begin" :title "Loading" :cancellable :json-false))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "report" :cancellable :json-false :message "building > proc-macros: tmp"))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "report" :cancellable :json-false :message "building > proc-macros: tmp"))) > [server-request] (id:7) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 7 :method "client/registerCapability" :params > (:registrations > [(:id "workspace/didChangeWatchedFiles" :method > "workspace/didChangeWatchedFiles" :registerOptions > (:watchers > [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") > (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))])) > [client-reply] (id:7) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 7 :result nil) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Loading" :value > (:kind "end"))) > [server-request] (id:8) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Roots Scanned")) > [client-reply] (id:8) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 8 :result nil) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "begin" :title "Roots Scanned" :cancellable > :json-false :message "0/2" :percentage 0))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "report" :cancellable :json-false :message "1/2" > :percentage 50))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Roots Scanned" :value > (:kind "end" :message "2/2"))) > [server-request] (id:9) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params > (:token "rustAnalyzer/Indexing")) > [client-reply] (id:9) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 9 :result nil) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "begin" :title "Indexing" :cancellable :json-false > :percentage 0))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "0/5 (core > + 1 more)" :percentage 0))) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "1/5 > (core)" :percentage 20))) > [server-request] (id:10) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params > (:token "rust-analyzer/flycheck/0")) > [client-reply] (id:10) Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :id 10 :result nil) > [server-notification] Wed May 10 21:30:18 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "begin" :title "cargo check" :cancellable t))) > [server-notification] Wed May 10 21:30:19 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "report" :cancellable t :message "tmp"))) > [server-notification] Wed May 10 21:30:19 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "report" :cancellable t :message "tmp"))) > [server-notification] Wed May 10 21:30:19 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "end"))) > [server-notification] Wed May 10 21:30:20 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "2/5 > (alloc)" :percentage 40))) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 60))) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "3/5 > (std)" :percentage 60))) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 80))) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :message "4/5 > (proc_macro)" :percentage 80))) > [client-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" > :type 1)])) > [client-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.14861%3A1683769648" > :type 1)])) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "report" :cancellable :json-false :percentage 100))) > [server-notification] Wed May 10 21:30:21 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rustAnalyzer/Indexing" :value > (:kind "end"))) > [server-reply] (id:5) Wed May 10 21:30:23 2023: > (:jsonrpc "2.0" :id 5 :result > []) > [server-notification] Wed May 10 21:30:23 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [] > :version 0)) > [client-notification] Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 9) > :contentChanges > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 0)) > :rangeLength 0 :text "\n") > (:range > (:start > (:line 1 :character 0) > :end > (:line 1 :character 0)) > :rangeLength 0 :text "\n") > (:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 0)) > :rangeLength 0 :text "m") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :rangeLength 0 :text "d") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 2)) > :rangeLength 1 :text "") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :rangeLength 0 :text "d") > (:range > (:start > (:line 0 :character 2) > :end > (:line 0 :character 2)) > :rangeLength 0 :text " ") > (:range > (:start > (:line 0 :character 2) > :end > (:line 0 :character 3)) > :rangeLength 1 :text "") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 2)) > :rangeLength 1 :text "")])) > [client-request] (id:6) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 6 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 1))) > [client-request] (id:7) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 7 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 1))) > [client-request] (id:8) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 8 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 1))) > [client-request] (id:9) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 9 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-reply] (id:6) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 6 :result nil) > [server-reply] (id:7) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 7 :result nil) > [server-reply] (id:8) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 8 :result nil) > [server-reply] (id:9) Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :id 9 :result > []) > [server-notification] Wed May 10 21:30:24 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected BANG") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected > `{`, `[`, `(`") > (:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected SEMICOLON")] > :version 9)) > [client-notification] Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 12) > :contentChanges > [(:range > (:start > (:line 0 :character 1) > :end > (:line 0 :character 1)) > :rangeLength 0 :text "o") > (:range > (:start > (:line 0 :character 2) > :end > (:line 0 :character 2)) > :rangeLength 0 :text "d") > (:range > (:start > (:line 0 :character 3) > :end > (:line 0 :character 3)) > :rangeLength 0 :text " ")])) > [client-request] (id:10) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 10 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:11) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 11 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:12) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 12 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:13) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 13 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-notification] Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 2 :character 0) > :end > (:line 2 :character 0)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected a name") > (:range > (:start > (:line 2 :character 2) > :end > (:line 2 :character 2)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`") > (:range > (:start > (:line 2 :character 7) > :end > (:line 2 :character 7)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected BANG") > (:range > (:start > (:line 2 :character 9) > :end > (:line 2 :character 9)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected SEMICOLON") > (:range > (:start > (:line 2 :character 10) > :end > (:line 2 :character 10)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected an item")] > :version 12)) > [server-reply] (id:10) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 10 :result nil) > [server-reply] (id:11) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 11 :result nil) > [server-reply] (id:12) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 12 :result nil) > [server-reply] (id:13) Wed May 10 21:30:25 2023: > (:jsonrpc "2.0" :id 13 :result > []) > [client-notification] Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 15) > :contentChanges > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 4)) > :rangeLength 0 :text "t") > (:range > (:start > (:line 0 :character 5) > :end > (:line 0 :character 5)) > :rangeLength 0 :text "m") > (:range > (:start > (:line 0 :character 6) > :end > (:line 0 :character 6)) > :rangeLength 0 :text "p")])) > [client-request] (id:14) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 14 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 7))) > [client-request] (id:15) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 7))) > [client-request] (id:16) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 16 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 7))) > [client-request] (id:17) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 17 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-notification] Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 7) > :end > (:line 0 :character 7)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`")] > :version 15)) > [server-reply] (id:14) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 14 :result nil) > [server-reply] (id:17) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 17 :result > []) > [server-reply] (id:15) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 15 :result > (:contents > (:kind "plaintext" :value "tmp\n\nmod tmp") > :range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 7)))) > [server-reply] (id:16) Wed May 10 21:30:27 2023: > (:jsonrpc "2.0" :id 16 :result > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 7)))]) > [internal] (id:18) Wed May 10 21:30:29 2023: > (:deferring :textDocument/signatureHelp :id 18 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [internal] (id:19) Wed May 10 21:30:29 2023: > (:deferring :textDocument/hover :id 19 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [internal] (id:20) Wed May 10 21:30:29 2023: > (:deferring :textDocument/documentHighlight :id 20 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [client-notification] Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 16) > :contentChanges > [(:range > (:start > (:line 0 :character 7) > :end > (:line 0 :character 7)) > :rangeLength 0 :text ";")])) > [internal] Wed May 10 21:30:29 2023: > (:maybe-run-deferred > (20 19 18)) > [client-request] (id:20) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 20 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [client-request] (id:19) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 19 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [client-request] (id:18) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 18 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [client-request] (id:21) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 21 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-reply] (id:20) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 20 :result nil) > [server-reply] (id:19) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 19 :result nil) > [server-reply] (id:18) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 18 :result nil) > [server-notification] Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 8)) > :severity 1 :code "unresolved-module" :codeDescription > (:href > "https://rust-analyzer.github.io/manual.html#unresolved-module") > :source "rust-analyzer" :message "unresolved module, can't > find module file: tmp.rs, or tmp/mod.rs")] > :version 16)) > [server-reply] (id:21) Wed May 10 21:30:29 2023: > (:jsonrpc "2.0" :id 21 :result > []) > [client-notification] Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 19) > :contentChanges > [(:range > (:start > (:line 0 :character 6) > :end > (:line 0 :character 7)) > :rangeLength 1 :text "") > (:range > (:start > (:line 0 :character 5) > :end > (:line 0 :character 6)) > :rangeLength 1 :text "") > (:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 5)) > :rangeLength 1 :text "")])) > [client-request] (id:22) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 22 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:23) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 23 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:24) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 24 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 4))) > [client-request] (id:25) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 25 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-notification] Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 4)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected a name") > (:range > (:start > (:line 0 :character 5) > :end > (:line 0 :character 5)) > :severity 1 :code "syntax-error" :codeDescription > (:href "https://rust-analyzer.github.io/manual.html#syntax-error") > :source "rust-analyzer" :message "Syntax Error: expected `;` or `{`")] > :version 19)) > [server-reply] (id:22) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 22 :result nil) > [server-reply] (id:23) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 23 :result nil) > [server-reply] (id:24) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 24 :result nil) > [server-reply] (id:25) Wed May 10 21:30:31 2023: > (:jsonrpc "2.0" :id 25 :result > []) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "textDocument/didChange" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 24) > :contentChanges > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 4)) > :rangeLength 0 :text "t") > (:range > (:start > (:line 0 :character 5) > :end > (:line 0 :character 5)) > :rangeLength 0 :text "h") > (:range > (:start > (:line 0 :character 6) > :end > (:line 0 :character 6)) > :rangeLength 0 :text "i") > (:range > (:start > (:line 0 :character 7) > :end > (:line 0 :character 7)) > :rangeLength 0 :text "n") > (:range > (:start > (:line 0 :character 8) > :end > (:line 0 :character 8)) > :rangeLength 0 :text "g")])) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "textDocument/didSave" :params > (:text "mod thing;\n\nfn main() {\n println!(\"Hello > world\");\n}\n" :textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs"))) > [server-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "unresolved-module" :codeDescription > (:href > "https://rust-analyzer.github.io/manual.html#unresolved-module") > :source "rust-analyzer" :message "unresolved module, can't > find module file: thing.rs, or thing/mod.rs")] > :version 24)) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) > [client-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params > (:changes > [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)])) > [server-request] (id:11) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 11 :method "window/workDoneProgress/create" :params > (:token "rust-analyzer/flycheck/0")) > [client-reply] (id:11) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 11 :result nil) > [server-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "begin" :title "cargo check" :cancellable t))) > [server-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params > (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "unresolved-module" :codeDescription > (:href > "https://rust-analyzer.github.io/manual.html#unresolved-module") > :source "rust-analyzer" :message "unresolved module, can't > find module file: thing.rs, or thing/mod.rs") > (:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "E0583" :codeDescription > (:href "https://doc.rust-lang.org/error-index.html#E0583") > :source "rustc" :message "file not found for module > `thing`\nto create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"" :data > (:rendered "error[E0583]: file not found for module > `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n > = help: to create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"\n\n"))] > :version 24)) > [server-notification] Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :method "$/progress" :params > (:token "rust-analyzer/flycheck/0" :value > (:kind "end"))) > [client-request] (id:26) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 26 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [client-request] (id:27) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 27 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [client-request] (id:28) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 28 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [client-request] (id:29) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 29 :method "textDocument/inlayHint" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 0) > :end > (:line 5 :character 0)))) > [server-reply] (id:26) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 26 :result nil) > [server-reply] (id:27) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 27 :result > (:contents > (:kind "plaintext" :value "tmp\n\nmod thing") > :range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)))) > [server-reply] (id:28) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 28 :result > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)))]) > [server-reply] (id:29) Wed May 10 21:30:33 2023: > (:jsonrpc "2.0" :id 29 :result > []) > [internal] (id:18) Wed May 10 21:30:39 2023: > (:timed-out :textDocument/signatureHelp :id 18 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [internal] (id:19) Wed May 10 21:30:39 2023: > (:timed-out :textDocument/hover :id 19 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [internal] (id:20) Wed May 10 21:30:39 2023: > (:timed-out :textDocument/documentHighlight :id 20 :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 8))) > [client-request] (id:30) Wed May 10 21:30:40 2023: > (:jsonrpc "2.0" :id 30 :method "textDocument/codeAction" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)) > :context > (:diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "E0583" :codeDescription > (:href "https://doc.rust-lang.org/error-index.html#E0583") > :source "rustc" :message "file not found for module > `thing`\nto create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"" :data > (:rendered "error[E0583]: file not found for module > `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n > = help: to create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"\n\n")) > (:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "unresolved-module" :codeDescription > (:href > "https://rust-analyzer.github.io/manual.html#unresolved-module") > :source "rust-analyzer" :message "unresolved module, can't > find module file: thing.rs, or thing/mod.rs")]))) > [server-reply] (id:30) Wed May 10 21:30:41 2023: > (:jsonrpc "2.0" :id 30 :result > [(:title "Create module at `thing.rs`" :kind "quickfix" :edit > (:documentChanges > [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing.rs")])) > (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit > (:documentChanges > [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) > [client-request] (id:31) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 31 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [client-request] (id:32) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 32 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [client-request] (id:33) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 33 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 9))) > [server-reply] (id:31) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 31 :result nil) > [server-reply] (id:32) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 32 :result > (:contents > (:kind "plaintext" :value "tmp\n\nmod thing") > :range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)))) > [server-reply] (id:33) Wed May 10 21:30:43 2023: > (:jsonrpc "2.0" :id 33 :result > [(:range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)))]) > [client-request] (id:34) Wed May 10 21:31:45 2023: > (:jsonrpc "2.0" :id 34 :method "textDocument/codeAction" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :range > (:start > (:line 0 :character 4) > :end > (:line 0 :character 9)) > :context > (:diagnostics > [(:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "E0583" :codeDescription > (:href "https://doc.rust-lang.org/error-index.html#E0583") > :source "rustc" :message "file not found for module > `thing`\nto create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"" :data > (:rendered "error[E0583]: file not found for module > `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n > = help: to create the module `thing`, create file \"thing.rs\" or > \"thing/mod.rs\"\n\n")) > (:range > (:start > (:line 0 :character 0) > :end > (:line 0 :character 10)) > :severity 1 :code "unresolved-module" :codeDescription > (:href > "https://rust-analyzer.github.io/manual.html#unresolved-module") > :source "rust-analyzer" :message "unresolved module, can't > find module file: thing.rs, or thing/mod.rs")]))) > [server-reply] (id:34) Wed May 10 21:31:45 2023: > (:jsonrpc "2.0" :id 34 :result > [(:title "Create module at `thing.rs`" :kind "quickfix" :edit > (:documentChanges > [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing.rs")])) > (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit > (:documentChanges > [(:kind "create" :uri > "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) > [client-request] (id:35) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 35 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 10))) > [client-request] (id:36) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 36 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 10))) > [client-request] (id:37) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 37 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 0 :character 10))) > [server-reply] (id:35) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 35 :result nil) > [server-reply] (id:36) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 36 :result nil) > [server-reply] (id:37) Wed May 10 21:38:05 2023: > (:jsonrpc "2.0" :id 37 :result nil) > [client-request] (id:38) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 38 :method "textDocument/signatureHelp" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 5 :character 0))) > [client-request] (id:39) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 39 :method "textDocument/hover" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 5 :character 0))) > [client-request] (id:40) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 40 :method "textDocument/documentHighlight" :params > (:textDocument > (:uri "file:///home/misha/sweet/repos/tmp/main.rs") > :position > (:line 5 :character 0))) > [server-reply] (id:38) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 38 :result nil) > [server-reply] (id:39) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 39 :result nil) > [server-reply] (id:40) Wed May 10 21:38:08 2023: > (:jsonrpc "2.0" :id 40 :result nil) > ``` > > There's nothing in `M-x eglot-stderr-buffer` > > > In GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.33, cairo version 1.16.0) of 2023-05-10 built on misha-N552VX > Repository revision: 93005cd9dc2bab882e66ac7b81f593cd6c021e43 > Repository branch: emacs-29 > Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 > System Description: Ubuntu 22.04.2 LTS > > Configured using: > 'configure --with-json --with-cairo --with-xwidgets > --prefix=/opt/emacs/ --with-x-toolkit=gtk3 --with-tree-sitter > --with-native-compilation --with-modules' > > Configured features: > CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON > LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG > SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 > XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB > > Important settings: > value of $LANG: en_CA.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > > Major mode: Rust > > Minor modes in effect: > eglot-inlay-hints-mode: t > eglot--managed-mode: t > flymake-mode: t > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > line-number-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr help-fns radix-tree cl-print cus-start cus-load > emacsbug message mailcap yank-media puny rfc822 mml mml-sec epa derived > epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode > mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 > rfc2045 ietf-drums mm-util mail-prsvr mail-utils files-x find-dired grep > misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher > conf-mode time-date eglot external-completion array filenotify jsonrpc > ert pp ewoc debug backtrace find-func xref flymake-proc flymake > thingatpt compile text-property-search comint ansi-osc ansi-color ring > pcase url-util url-parse auth-source eieio eieio-core password-cache > json map url-vars project byte-opt imenu rust-ts-mode c-ts-common > treesit dired-aux cl-loaddefs comp comp-cstr warnings icons subr-x rx > cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib dired > dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric > uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel > term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image > regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode > prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu > timer select scroll-bar mouse jit-lock font-lock syntax font-core > term/tty-colors frame minibuffer nadvice seq simple cl-generic > indonesian philippine cham georgian utf-8-lang misc-lang vietnamese > tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek > romanian slovak czech european ethiopic indian cyrillic chinese > composite emoji-zwj charscript charprop case-table epa-hook > jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs > theme-loaddefs faces cus-face macroexp files window text-properties > overlay sha1 md5 base64 format env code-pages mule custom widget keymap > hashtable-print-readable backquote threads xwidget-internal dbusbind > inotify dynamic-setting system-font-setting font-render-setting cairo > move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process > native-compile emacs) > > Memory information: > ((conses 16 156384 23572) > (symbols 48 13274 0) > (strings 32 39865 2264) > (string-bytes 1 1247909) > (vectors 16 27590) > (vector-slots 8 541569 23397) > (floats 8 51 48) > (intervals 56 943 0) > (buffers 984 23)) From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Misha Zharov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2023 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Felician Nemeth Cc: 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.168378900615078 (code B ref 63433); Thu, 11 May 2023 07:11:02 +0000 Received: (at 63433) by debbugs.gnu.org; 11 May 2023 07:10:06 +0000 Received: from localhost ([127.0.0.1]:49578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px0RB-0003v8-OZ for submit@debbugs.gnu.org; Thu, 11 May 2023 03:10:05 -0400 Received: from mail-ua1-f49.google.com ([209.85.222.49]:38063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px0R8-0003uU-AA for 63433@debbugs.gnu.org; Thu, 11 May 2023 03:10:04 -0400 Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-771eeb2a3b3so892770241.0 for <63433@debbugs.gnu.org>; Thu, 11 May 2023 00:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683788996; x=1686380996; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nsQLuIBMdUGFiLOg4KB4fBRgcE9kqsFSAQwRgtXiK84=; b=NqXxX6XG0Qv8RaV1Eo7X4ZHAJIAbg6LBp53Vm2+QO9kpZyqAjLPRUrpj5+A0Rr10f1 94tPw5ll4HItVo6LMWV91atjuEezeOMrYVVKBlQ68bGQFdGEjhWp0e7fDJ7Kc3FeYW+B ZiEsMRoTob1TmANhgk9jz8NH9ZIKc15fZCEp+7YsSg3IvuRbLcSaH0XCu3nzjs9V1T+c gLM6wrtqjmyujREyF+UZsxZ2tOkgJgUredREXhdDxJ6qHGVNJzg7dWMhcDaAutO7Eeww vE5LI4iIt4ZAJk/k4gufjeS1J+kK7rPr6liMB2+U/ujZSl7fAouD8ShjEUX2NxSkGjYF nFrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683788996; x=1686380996; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nsQLuIBMdUGFiLOg4KB4fBRgcE9kqsFSAQwRgtXiK84=; b=RquYaZFAFJRueOJk+C/7F9MpoNSWjlELpkIllcaBEfivwjcff2I/cehk2YZHIU/YeO B/s2/wW1goPbA01LywNO8HqVVEdK8It8evkp+Lz5XwJNocrIeCa+WR8xxvX3wkfJzpmh gOtRJZd9zzLLoW0X3sZIJ/WMQdMhxrOIhviV4WaPWLRLKipaCKqQuQpGfO5DVyBl85Gu 3KScPDGwkEP86O1HIxtuMRUMu1Zn6hqIEZSO5ABESu+2LzrSZI3E2ROGqxgfLwQGvAYF gKJfFiBwNsPIP2Av3o/Oy8JEWEwI6/eTM3L5z9DKOZFuC1GPYl8BYI7qpHN1zteI7NtS JwlQ== X-Gm-Message-State: AC+VfDzeYFbBwlVYXmZfKhXM8g4GxYFKFsdge/m5fKL4STGW7B+C2U3x 26zaP84uu29emtfpLjOhnth630XTBvcxe6Ac1mg= X-Google-Smtp-Source: ACHHUZ6QNFGR3xLRyvo3eJKeWkOmcpWmDeNah05VxAn63KBF5ccxuQv5dJagUHAMCRk2GIdPu6romHyiQ0+1NBAUa9M= X-Received: by 2002:a05:6102:3e23:b0:436:156:82f2 with SMTP id j35-20020a0561023e2300b00436015682f2mr4199896vsv.3.1683788996529; Thu, 11 May 2023 00:09:56 -0700 (PDT) MIME-Version: 1.0 References: <87zg6b8jea.fsf@betli.tmit.bme.hu> In-Reply-To: <87zg6b8jea.fsf@betli.tmit.bme.hu> From: Misha Zharov Date: Thu, 11 May 2023 00:09:20 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Thanks for taking a look. It looks like rust-analyzer has an issue for it: https://github.com/rust-lang/rust-analyzer/issues/144 Although this is a bug in rust-analyzer, it would also be nice to implement resourceOperations in Eglot so that users are able to apply the suggested fixes. I would take a stab at it, but I am still a lisp novice From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 21:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Misha Zharov Cc: felician.nemeth@gmail.com, 63433@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.16839282111745 (code B ref 63433); Fri, 12 May 2023 21:51:01 +0000 Received: (at 63433) by debbugs.gnu.org; 12 May 2023 21:50:11 +0000 Received: from localhost ([127.0.0.1]:33848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxaeQ-0000S5-KI for submit@debbugs.gnu.org; Fri, 12 May 2023 17:50:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxaeO-0000Ro-LC for 63433@debbugs.gnu.org; Fri, 12 May 2023 17:50:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxaeJ-0006Zk-7e; Fri, 12 May 2023 17:50:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=pSz353XuAq+/p2TAlS+D8BFSmrmMsZ8O8RDNluwcDVI=; b=c+UD1ENU/l3J fSQ/gCVGjjpP5JIWd+nrRZRk0XnSy0fD0WVtMviawSO9lMKKUe44lUYPNeU8Ji5ckT67Zaac+4rWs xXjf8rJ7sGKVFJtEU7+QwQzaItY5RDU0DegV6dnTilFlCXdNWlD2aNTNPiyvNkxlAx81MhMfAE+d/ wXuUgF/3YMkgsj1f6RAtOZVtFDgP0tL/wmNDTUE12nxrtxf5GXk+8a2aTpicuJSe611ZBnE+6CqLv lakEhj9WlJ5XGDMRJ0KorMrWdZCY/6u/21IZBK1ey8b5dLtZf/FTksvXPL+d6G9Mcdl882VvrswKL ViWzRDKfvKM36X1g0hKHpw==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pxaeI-0000z2-UL; Fri, 12 May 2023 17:50:02 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: (message from Misha Zharov on Thu, 11 May 2023 00:09:20 -0700) References: <87zg6b8jea.fsf@betli.tmit.bme.hu> Message-Id: Date: Fri, 12 May 2023 17:50:02 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Could someone please tell me the basic info about rust-analyzer? What job does it do, who wrote it, and what license does it carry? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Richard Stallman Cc: Misha Zharov , felician.nemeth@gmail.com, 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.16839309316677 (code B ref 63433); Fri, 12 May 2023 22:36:02 +0000 Received: (at 63433) by debbugs.gnu.org; 12 May 2023 22:35:31 +0000 Received: from localhost ([127.0.0.1]:33920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxbMI-0001jd-S2 for submit@debbugs.gnu.org; Fri, 12 May 2023 18:35:31 -0400 Received: from heytings.org ([95.142.160.155]:59296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxbMG-0001jQ-Sn for 63433@debbugs.gnu.org; Fri, 12 May 2023 18:35:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1683930927; bh=Ht1dX0atx9CCKfKRZQ8CZLztFIcEyvfLGfLzKNeL7p8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=QDP4eXsbj38h3rZXFN6IwAIrWg6//FKwS8IDTqQO84TX7paIq0aK5Gk2B/PM2LAt9 EBOKnWi81AXe6110pyxKeGhGyz3yyuqRWQEg09TcWNi0I9MRwx4bt5HSbj/OAesrW1 EW7AH2A6VBk/pWEogbCSiHcMUvhqBhcMOh4ORqpYKNkCBV2+RftFBaUnlgCTBbKdBs zjJKZ83KrGR86WqlWXl3lEGwINtUSWLjBI/DV7qNHRp5KZaycB42b+g5F/+TNWdDt7 WgPbYkKgxm4Z7mkVtO2SAMfugSb5Ut4vVC1BoPqjfgEcHDvQyl8uYo0RfpR7e7IZak IdR6syPhmetxg== Date: Fri, 12 May 2023 22:35:27 +0000 From: Gregory Heytings In-Reply-To: Message-ID: <78c44aa5153172cefb7a@heytings.org> References: <87zg6b8jea.fsf@betli.tmit.bme.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > Could someone please tell me the basic info about rust-analyzer? > What job does it do, > See https://rust-analyzer.github.io: rust-analyzer is an implementation of Language Server Protocol for the Rust programming language. It provides features like completion and goto definition for many code editors, including VS Code, Emacs and Vim. > > who wrote it > Contributors to the Rust project. > > and what license does it carry? > Like most Rust-related code, it is dual-licensed: Apache 2.0 and MIT. From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 May 2023 22:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings Cc: mishazharov1@gmail.com, felician.nemeth@gmail.com, 63433@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.16841888301272 (code B ref 63433); Mon, 15 May 2023 22:14:02 +0000 Received: (at 63433) by debbugs.gnu.org; 15 May 2023 22:13:50 +0000 Received: from localhost ([127.0.0.1]:44672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pygRx-0000KQ-JJ for submit@debbugs.gnu.org; Mon, 15 May 2023 18:13:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pygRv-0000KD-SB for 63433@debbugs.gnu.org; Mon, 15 May 2023 18:13:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pygRq-0006Dc-BK; Mon, 15 May 2023 18:13:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=JxNlr7WfHrFVY5ZFMTYw7N3Mgb1vXfFAWricSNXoS5E=; b=YkNbnLquvs8I RuKPuY7V2hJ2GXBUcapRSqixiIZdbhNDsYbIXQhjhl1WHqHO5dwT47PmIT4q1ssXgYB/4TG2WMPFN 8331DQnGucbsLrMzxbR7Hwf2BX/dPJ3Mhje2NgS+oo6wCLKn7qZqV5vwv6Ispe8XGeeozR+jDu+Fq kMM45h6vTwcg5F3Zg0a4BmXwXq5l7F70RAVUph7zjagr57/TmMR6DhyBk5GrH2Y7KTy10whb2hEA6 ZPBCbQ1eK7cJ9dPeHvgAKgWWZVxXbyKiE4LBwNgVShlFeDo62r9DkCRuBNtqSGlvyOWZGfQZj5HCz Smzwe9exdWYLnNS1ql2JiQ==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pygRq-0004JR-3e; Mon, 15 May 2023 18:13:42 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <78c44aa5153172cefb7a@heytings.org> (message from Gregory Heytings on Fri, 12 May 2023 22:35:27 +0000) References: <87zg6b8jea.fsf@betli.tmit.bme.hu> <78c44aa5153172cefb7a@heytings.org> Message-Id: Date: Mon, 15 May 2023 18:13:42 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Thanks for the info. You've told me all I needed to know. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Felician Nemeth Cc: Misha Zharov , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.169408079718148 (code B ref 63433); Thu, 07 Sep 2023 10:00:02 +0000 Received: (at 63433) by debbugs.gnu.org; 7 Sep 2023 09:59:57 +0000 Received: from localhost ([127.0.0.1]:38656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeBnl-0004ia-6V for submit@debbugs.gnu.org; Thu, 07 Sep 2023 05:59:57 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:49251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeBne-0004iG-N4 for 63433@debbugs.gnu.org; Thu, 07 Sep 2023 05:59:51 -0400 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2bcfd3220d3so13052861fa.2 for <63433@debbugs.gnu.org>; Thu, 07 Sep 2023 02:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694080779; x=1694685579; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=bF8jeknpbSTUotXdGgxsb62e0pb2/o6MnbuNvEtO2PA=; b=ik5jF9PUs3FP/Fg3iAfpb35MM6ZLpEYTKhuEc62pJMAI368/1+P8fZSsV0fUMCrRnN oY66F2TpNpkrA6zkKEc7BrttO5xSWLMVKPCfHH9fJd3qnBRHYG370lvSMiCcuSFRY1Qb C504nGHjNnW1mVcnYBnee/V1PMKFRMMXF1Q7lv876380Q3pKoGpIlXx2/KdXtBBbTSSY YMwT+sUwMPE89IwKMvuCasiJplBLY6q+jIWyf9N2XBG6ZmwQk3Ed0Lryun/IL4+oA8Z1 AoErw+nBC1VyYfBHG7fnMf5uWPV8STq1hw+6+vij/pxe+AlsR1+pG4Spw4jk+4V6jPtv MaoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694080779; x=1694685579; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=bF8jeknpbSTUotXdGgxsb62e0pb2/o6MnbuNvEtO2PA=; b=cgeEnytzyLR6apeVZoq8isl303H8ElMQNEwK3t3AtosQYxX73RECBz0GqrXKCEOTU8 siaxiZLRrGu7iOStypZiUIR/6ffiTgjjLdsFjNPRj74fGmpa/Iu0aGFNFnzwGvB7qa/f sAVSmnFJZM/fRc8fj051FG+SC6ZAGnQ8TLwcq9BJUOJ3CmNSxlURo67SfvAz05WOiUBc hgHUzweJ8aiLOhLNdU/3e8pmFTrS41504++wSozEs24g2Rn9bwG6p6FpMM3zkfzq1P8C Oco0un5uiwkMBouNqgzJ1tzt4WtpI3DIG78eSNIBiUV7PLTpkUdypcCUZPhIev0khLk4 8DVQ== X-Gm-Message-State: AOJu0YwAyj5kKFYiIQ6iP1+djTqSfHOYmFUsBmE/HJVNtL5sfzywaa+U EX9DwZ1cO+4eerJrUtzu1ADF1CuxP/vN+gW2WCmVygBHV4U= X-Google-Smtp-Source: AGHT+IHaYNLC54iWhdQs9di5BAaqIHPiRHCvliq4T7yqtM8zAFP9N9YB7rZeXQ4oLVsmlav1Vse5WaYSlFN3LEsKcAo= X-Received: by 2002:a05:6512:3454:b0:500:75f1:c22e with SMTP id j20-20020a056512345400b0050075f1c22emr3891599lfr.40.1694080778171; Thu, 07 Sep 2023 02:59:38 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 Sep 2023 02:59:37 -0700 From: Stefan Kangas In-Reply-To: <87zg6b8jea.fsf@betli.tmit.bme.hu> (Felician Nemeth's message of "Thu, 11 May 2023 08:35:57 +0200") References: <87zg6b8jea.fsf@betli.tmit.bme.hu> MIME-Version: 1.0 Date: Thu, 7 Sep 2023 02:59:37 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Felician Nemeth writes: > In its initializationOptions, Eglot do not state that it supports any > resourceOperations. So the server made a mistake when it sent a > "create" kind. > > Sure, Eglot could handle better the server's mistake or support this > feature, but this is primarily a server bug in my opinion. > > Background: > https://microsoft.github.io/language-server-protocol/specifications/lsp/3= .17/specification/#workspaceEditClientCapabilities Jo=C3=A3o, any comments here? > Misha Zharov writes: > >> When I declare a module that does not exist in Rust, >> `M-x eglot-code-actions` suggests that I create the file. However, when = I >> select this option I get the following traceback and the change is not >> applied: >> >> ``` >> Debugger entered--Lisp error: (wrong-type-argument arrayp nil) >> file-truename(nil) >> find-buffer-visiting(nil) >> cl-every(find-buffer-visiting (nil)) >> cl-notevery(find-buffer-visiting (nil)) >> eglot--apply-workspace-edit((:documentChanges [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing.rs")])) >> eglot--read-execute-code-action(((:title "Create module at >> `thing.rs`" :kind "quickfix" :edit (:documentChanges [(:kind "create" >> :uri "file:///home/misha/sweet/repos/tmp/thing.rs")])) (:title "Create >> module at `thing/mod.rs`" :kind "quickfix" :edit (:documentChanges >> [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))) >> # nil) >> eglot-code-actions(5 10 nil t) >> funcall-interactively(eglot-code-actions 5 10 nil t) >> command-execute(eglot-code-actions record) >> execute-extended-command(nil "eglot-code-actions" "eglot-code-actions"= ) >> funcall-interactively(execute-extended-command nil >> "eglot-code-actions" "eglot-code-actions") >> command-execute(execute-extended-command) >> ``` >> >> Reproduction (from `emacs -Q`): >> Create a `Cargo.toml`: >> ``` >> [package] >> name =3D "tmp" >> version =3D "0.1.0" >> edition =3D "2021" >> >> # See more keys and their definitions at >> https://doc.rust-lang.org/cargo/reference/manifest.html >> >> [dependencies] >> >> [[bin]] >> name =3D "tmp" >> path =3D "main.rs" >> ``` >> >> Create a `main.rs`: >> ``` >> mod thing; >> >> fn main() { >> println!("Hello world"); >> } >> ``` >> >> Enable `rust-ts-mode` (the treesit grammar has to be installed I >> assume). Flymake and ElDoc appear to be enabled as well. Enable eglot: >> `M-x eglot`. >> >> Eglot should prompt us to choose a language server. This reproduces with >> rust-analyzer which is shipped with Rust 1.69 (can be obtained at >> `https://www.rust-lang.org/tools/install`). RLS should not be used. >> >> Now there should be a code action to fix the issue with the missing >> module (by creating the file `thing.rs`). However, we see that the code >> action is not applied successfully. >> >> `M-x eglot-events-buffer`: >> ``` >> [internal] Wed May 10 21:26:58 2023: >> (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer= ") >> [client-request] (id:1) Wed May 10 21:26:58 2023: >> (:jsonrpc "2.0" :id 1 :method "initialize" :params >> (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" >> :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions >> #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 >> data >> = ()) >> :capabilities >> (:workspace >> (:applyEdit t :executeCommand >> (:dynamicRegistration :json-false) >> :workspaceEdit >> (:documentChanges t) >> :didChangeWatchedFiles >> (:dynamicRegistration t) >> :symbol >> (:dynamicRegistration :json-false) >> :configuration t :workspaceFolders t) >> :textDocument >> (:synchronization >> (:dynamicRegistration :json-false :willSave t >> :willSaveWaitUntil t :didSave t) >> :completion >> (:dynamicRegistration :json-false :completionItem >> (:snippetSupport :json-false >> :deprecatedSupport t :resolveSupport >> (:properties >> ["documentation" "details" >> "additionalTextEdits"]) >> :tagSupport >> (:valueSet >> [1])) >> :contextSupport t) >> :hover >> (:dynamicRegistration :json-false :contentFormat >> ["plaintext"]) >> :signatureHelp >> (:dynamicRegistration :json-false :signatureInformation >> (:parameterInformation >> (:labelOffsetSupport t) >> :activeParameterSupport t)) >> :references >> (:dynamicRegistration :json-false) >> :definition >> (:dynamicRegistration :json-false :linkSupport t) >> :declaration >> (:dynamicRegistration :json-false :linkSupport t) >> :implementation >> (:dynamicRegistration :json-false :linkSupport t) >> :typeDefinition >> (:dynamicRegistration :json-false :linkSupport t) >> :documentSymbol >> (:dynamicRegistration :json-false >> :hierarchicalDocumentSymbolSupport t :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])) >> :documentHighlight >> (:dynamicRegistration :json-false) >> :codeAction >> (:dynamicRegistration :json-false :codeActionLiteralSupport >> (:codeActionKind >> (:valueSet >> ["quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite" "source" >> "source.organizeImports"])) >> :isPreferredSupport t) >> :formatting >> (:dynamicRegistration :json-false) >> :rangeFormatting >> (:dynamicRegistration :json-false) >> :rename >> (:dynamicRegistration :json-false) >> :inlayHint >> (:dynamicRegistration :json-false) >> :publishDiagnostics >> (:relatedInformation :json-false :codeDescriptionSupport >> :json-false :tagSupport >> (:valueSet >> [1 2]))) >> :window >> (:workDoneProgress t) >> :general >> (:positionEncodings >> ["utf-32" "utf-8" "utf-16"]) >> :experimental #s(hash-table size 1 test eql rehash-size >> 1.5 rehash-threshold 0.8125 data >> ())) >> :workspaceFolders >> [(:uri "file:///home/misha/sweet/repos/tmp" :name >> "~/sweet/repos/tmp/")])) >> [server-reply] (id:1) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 1 :result >> (:capabilities >> (:positionEncoding "utf-32" :textDocumentSync >> (:openClose t :change 2 :save nil) >> :selectionRangeProvider t :hoverProvider t :completion= Provider >> (:resolveProvider t :triggerCharacters >> [":" "." "'" "("] >> :completionItem >> (:labelDetailsSupport :json-false)) >> :signatureHelpProvider >> (:triggerCharacters >> ["(" "," "<"]) >> :definitionProvider t :typeDefinitionProvider t >> :implementationProvider t :referencesProvider t >> :documentHighlightProvider t :documentSymbolProvider t >> :workspaceSymbolProvider t :codeActionProvider >> (:codeActionKinds >> ["" "quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite"] >> :resolveProvider t) >> :codeLensProvider >> (:resolveProvider t) >> :documentFormattingProvider t >> :documentRangeFormattingProvider :json-false >> :documentOnTypeFormattingProvider >> (:firstTriggerCharacter "=3D" :moreTriggerCharacter >> ["." ">" "{"]) >> :renameProvider >> (:prepareProvider t) >> :foldingRangeProvider t :declarationProvider t :worksp= ace >> (:workspaceFolders >> (:supported t :changeNotifications t) >> :fileOperations >> (:willRename >> (:filters >> [(:scheme "file" :pattern >> (:glob "**/*.rs" :matches "file")) >> (:scheme "file" :pattern >> (:glob "**" :matches "folder"))]))) >> :callHierarchyProvider t :semanticTokensProvider >> (:legend >> (:tokenTypes >> ["comment" "decorator" "enumMember" "enum" "function" >> "interface" "keyword" "macro" "method" "namespace" "number" "operator" >> "parameter" "property" "string" "struct" "typeParameter" "variable" >> "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" >> "boolean" "brace" "bracket" "builtinAttribute" "builtinType" >> "character" "colon" "comma" "comparison" "constParameter" "derive" >> "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" >> "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" >> "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" >> "union" "unresolvedReference"] >> :tokenModifiers >> ["documentation" "declaration" "static" >> "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" >> "controlFlow" "crateRoot" "injected" "intraDocLink" "library" >> "mutable" "public" "reference" "trait" "unsafe"]) >> :range t :full >> (:delta t)) >> :inlayHintProvider >> (:resolveProvider t) >> :experimental >> (:externalDocs t :hoverRange t :joinLines t >> :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule >> t :runnables >> (:kinds >> ["cargo"]) >> :ssr t :workspaceSymbolScopeKindFiltering t)) >> :serverInfo >> (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) >> [client-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 >> test eql rehash-size 1.5 rehash-threshold 0.8125 data >> ())) >> [client-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "textDocument/didOpen" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 >> :languageId "rust-ts" :text "mod thing;\n\nfn main() {\n >> println!(\"Hello world\");\n}"))) >> [client-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params >> (:settings #s(hash-table size 1 test eql rehash-size 1.5 >> rehash-threshold 0.8125 data >> ()))) >> [client-request] (id:2) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 4 :character 1)))) >> [stderr] [ERROR rust_analyzer::config] failed to find any projects in >> [AbsPathBuf("/home/misha/sweet/repos/tmp")] >> [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to >> discover workspace >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "window/showMessage" :params >> (:type 1 :message "rust-analyzer failed to discover workspace")) >> [stderr] [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to >> discover workspace >> [server-request] (id:0) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:0) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 0 :result nil) >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "window/showMessage" :params >> (:type 1 :message "rust-analyzer failed to discover workspace")) >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:1) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params >> (:items >> [(:section "rust-analyzer")])) >> [client-reply] (id:1) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 1 :result >> [nil]) >> [server-request] (id:2) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 2 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Indexing")) >> [client-reply] (id:2) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 2 :result nil) >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "begin" :title "Indexing" :cancellable :json-false >> :percentage 0))) >> [server-notification] Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "end"))) >> [server-reply] (id:2) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 2 :result >> []) >> [client-request] (id:3) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 3 :character 24))) >> [client-request] (id:4) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 3 :character 24))) >> [client-request] (id:5) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 3 :character 24))) >> [server-reply] (id:3) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 3 :result nil) >> [server-reply] (id:4) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 4 :result nil) >> [server-reply] (id:5) Wed May 10 21:27:00 2023: >> (:jsonrpc "2.0" :id 5 :result nil) >> [client-request] (id:6) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 6 :method "shutdown" :params nil) >> [server-reply] (id:6) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 6 :result nil) >> [client-notification] Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :method "exit" :params nil) >> [internal] Wed May 10 21:29:29 2023: >> (:message "Connection state changed" :change "killed\n") >> >> ----------b---y---e---b---y---e---------- >> [stderr] >> [stderr] >> [stderr] nil >> [stderr] nil >> [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished >> [client-request] (id:1) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 1 :method "initialize" :params >> (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" >> :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions >> #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 >> data >> = ()) >> :capabilities >> (:workspace >> (:applyEdit t :executeCommand >> (:dynamicRegistration :json-false) >> :workspaceEdit >> (:documentChanges t) >> :didChangeWatchedFiles >> (:dynamicRegistration t) >> :symbol >> (:dynamicRegistration :json-false) >> :configuration t :workspaceFolders t) >> :textDocument >> (:synchronization >> (:dynamicRegistration :json-false :willSave t >> :willSaveWaitUntil t :didSave t) >> :completion >> (:dynamicRegistration :json-false :completionItem >> (:snippetSupport :json-false >> :deprecatedSupport t :resolveSupport >> (:properties >> ["documentation" "details" >> "additionalTextEdits"]) >> :tagSupport >> (:valueSet >> [1])) >> :contextSupport t) >> :hover >> (:dynamicRegistration :json-false :contentFormat >> ["plaintext"]) >> :signatureHelp >> (:dynamicRegistration :json-false :signatureInformation >> (:parameterInformation >> (:labelOffsetSupport t) >> :activeParameterSupport t)) >> :references >> (:dynamicRegistration :json-false) >> :definition >> (:dynamicRegistration :json-false :linkSupport t) >> :declaration >> (:dynamicRegistration :json-false :linkSupport t) >> :implementation >> (:dynamicRegistration :json-false :linkSupport t) >> :typeDefinition >> (:dynamicRegistration :json-false :linkSupport t) >> :documentSymbol >> (:dynamicRegistration :json-false >> :hierarchicalDocumentSymbolSupport t :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])) >> :documentHighlight >> (:dynamicRegistration :json-false) >> :codeAction >> (:dynamicRegistration :json-false :codeActionLiteralSupport >> (:codeActionKind >> (:valueSet >> ["quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite" "source" >> "source.organizeImports"])) >> :isPreferredSupport t) >> :formatting >> (:dynamicRegistration :json-false) >> :rangeFormatting >> (:dynamicRegistration :json-false) >> :rename >> (:dynamicRegistration :json-false) >> :inlayHint >> (:dynamicRegistration :json-false) >> :publishDiagnostics >> (:relatedInformation :json-false :codeDescriptionSupport >> :json-false :tagSupport >> (:valueSet >> [1 2]))) >> :window >> (:workDoneProgress t) >> :general >> (:positionEncodings >> ["utf-32" "utf-8" "utf-16"]) >> :experimental #s(hash-table size 1 test eql rehash-size >> 1.5 rehash-threshold 0.8125 data >> ())) >> :workspaceFolders >> [(:uri "file:///home/misha/sweet/repos/tmp" :name >> "~/sweet/repos/tmp/")])) >> [server-reply] (id:1) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 1 :result >> (:capabilities >> (:positionEncoding "utf-32" :textDocumentSync >> (:openClose t :change 2 :save nil) >> :selectionRangeProvider t :hoverProvider t :completion= Provider >> (:resolveProvider t :triggerCharacters >> [":" "." "'" "("] >> :completionItem >> (:labelDetailsSupport :json-false)) >> :signatureHelpProvider >> (:triggerCharacters >> ["(" "," "<"]) >> :definitionProvider t :typeDefinitionProvider t >> :implementationProvider t :referencesProvider t >> :documentHighlightProvider t :documentSymbolProvider t >> :workspaceSymbolProvider t :codeActionProvider >> (:codeActionKinds >> ["" "quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite"] >> :resolveProvider t) >> :codeLensProvider >> (:resolveProvider t) >> :documentFormattingProvider t >> :documentRangeFormattingProvider :json-false >> :documentOnTypeFormattingProvider >> (:firstTriggerCharacter "=3D" :moreTriggerCharacter >> ["." ">" "{"]) >> :renameProvider >> (:prepareProvider t) >> :foldingRangeProvider t :declarationProvider t :worksp= ace >> (:workspaceFolders >> (:supported t :changeNotifications t) >> :fileOperations >> (:willRename >> (:filters >> [(:scheme "file" :pattern >> (:glob "**/*.rs" :matches "file")) >> (:scheme "file" :pattern >> (:glob "**" :matches "folder"))]))) >> :callHierarchyProvider t :semanticTokensProvider >> (:legend >> (:tokenTypes >> ["comment" "decorator" "enumMember" "enum" "function" >> "interface" "keyword" "macro" "method" "namespace" "number" "operator" >> "parameter" "property" "string" "struct" "typeParameter" "variable" >> "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" >> "boolean" "brace" "bracket" "builtinAttribute" "builtinType" >> "character" "colon" "comma" "comparison" "constParameter" "derive" >> "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" >> "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" >> "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" >> "union" "unresolvedReference"] >> :tokenModifiers >> ["documentation" "declaration" "static" >> "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" >> "controlFlow" "crateRoot" "injected" "intraDocLink" "library" >> "mutable" "public" "reference" "trait" "unsafe"]) >> :range t :full >> (:delta t)) >> :inlayHintProvider >> (:resolveProvider t) >> :experimental >> (:externalDocs t :hoverRange t :joinLines t >> :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule >> t :runnables >> (:kinds >> ["cargo"]) >> :ssr t :workspaceSymbolScopeKindFiltering t)) >> :serverInfo >> (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) >> [client-notification] Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 >> test eql rehash-size 1.5 rehash-threshold 0.8125 data >> ())) >> [client-notification] Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params >> (:settings #s(hash-table size 1 test eql rehash-size 1.5 >> rehash-threshold 0.8125 data >> ()))) >> [server-request] (id:0) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 0 :method "workspace/configuration" :params >> (:items >> [(:section "rust-analyzer")])) >> [client-reply] (id:0) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 0 :result >> [nil]) >> [server-request] (id:1) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 1 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:1) Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :id 1 :result nil) >> [server-notification] Wed May 10 21:29:29 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-notification] Wed May 10 21:29:32 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-request] (id:2) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params >> (:registrations >> [(:id "workspace/didChangeWatchedFiles" :method >> "workspace/didChangeWatchedFiles" :registerOptions >> (:watchers >> [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))= ])) >> [client-reply] (id:2) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 2 :result nil) >> [server-notification] Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:3) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Roots Scanned")) >> [client-reply] (id:3) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 3 :result nil) >> [server-notification] Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "begin" :title "Roots Scanned" :cancellable >> :json-false :message "0/2" :percentage 0))) >> [server-notification] Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "report" :cancellable :json-false :message "1/2" >> :percentage 50))) >> [server-request] (id:4) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:4) Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :id 4 :result nil) >> [server-notification] Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-notification] Wed May 10 21:29:35 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-notification] Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:5) Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Loading")) >> [client-reply] (id:5) Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :id 5 :result nil) >> [server-notification] Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "begin" :title "Loading" :cancellable :json-false))) >> [server-notification] Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "report" :cancellable :json-false :message "building >> proc-macros: tmp"))) >> [server-notification] Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "report" :cancellable :json-false :message "building >> proc-macros: tmp"))) >> [server-request] (id:6) Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :id 6 :method "client/registerCapability" :params >> (:registrations >> [(:id "workspace/didChangeWatchedFiles" :method >> "workspace/didChangeWatchedFiles" :registerOptions >> (:watchers >> [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))= ])) >> [client-reply] (id:6) Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :id 6 :result nil) >> [server-notification] Wed May 10 21:29:36 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "end"))) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "end" :message "2/2"))) >> [server-request] (id:7) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 7 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Roots Scanned")) >> [client-reply] (id:7) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 7 :result nil) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "begin" :title "Roots Scanned" :cancellable >> :json-false :message "0/2" :percentage 0))) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "report" :cancellable :json-false :message "1/2" >> :percentage 50))) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "end" :message "2/2"))) >> [server-request] (id:8) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:8) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 8 :result nil) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:9) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Indexing")) >> [client-reply] (id:9) Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :id 9 :result nil) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "begin" :title "Indexing" :cancellable :json-false >> :percentage 0))) >> [server-notification] Wed May 10 21:29:48 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "0/5 (test >> + 1 more)" :percentage 0))) >> [server-request] (id:10) Wed May 10 21:29:49 2023: >> (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params >> (:token "rust-analyzer/flycheck/0")) >> [client-reply] (id:10) Wed May 10 21:29:49 2023: >> (:jsonrpc "2.0" :id 10 :result nil) >> [server-notification] Wed May 10 21:29:49 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "begin" :title "cargo check" :cancellable t))) >> [server-notification] Wed May 10 21:29:49 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "1/5 >> (core)" :percentage 20))) >> [server-notification] Wed May 10 21:29:49 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "E0583" :codeDescription >> (:href "https://doc.rust-lang.org/error-index.html#E0583") >> :source "rustc" :message "file not found for module >> `thing`\nto create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"" :data >> (:rendered "error[E0583]: file not found for module >> `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n >> =3D help: to create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"\n\n"))])) >> [server-notification] Wed May 10 21:29:52 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 40))) >> [server-notification] Wed May 10 21:29:52 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "2/5 >> (alloc)" :percentage 40))) >> [server-notification] Wed May 10 21:29:52 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 60))) >> [server-notification] Wed May 10 21:29:52 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "3/5 >> (std)" :percentage 60))) >> [server-notification] Wed May 10 21:29:53 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 80))) >> [server-notification] Wed May 10 21:29:53 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "4/5 >> (proc_macro)" :percentage 80))) >> [server-notification] Wed May 10 21:29:53 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 100))) >> [server-notification] Wed May 10 21:29:53 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "end"))) >> [server-notification] Wed May 10 21:29:54 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "end"))) >> [client-notification] Wed May 10 21:30:01 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.148= 61%3A1683769648" >> :type 1)])) >> [client-notification] Wed May 10 21:30:08 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 1)])) >> [client-notification] Wed May 10 21:30:08 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) >> [client-notification] Wed May 10 21:30:08 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)]= )) >> [stderr] >> [stderr] >> [stderr] nil >> [stderr] nil >> [stderr] Process EGLOT (tmp/(rust-ts-mode rust-mode)) stderr finished >> [internal] Wed May 10 21:30:16 2023: >> (:message "Running language server: /home/misha/.cargo/bin/rust-analyzer= ") >> [client-request] (id:1) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 1 :method "initialize" :params >> (:processId 14861 :rootPath "/home/misha/sweet/repos/tmp/" >> :rootUri "file:///home/misha/sweet/repos/tmp" :initializationOptions >> #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 >> data >> = ()) >> :capabilities >> (:workspace >> (:applyEdit t :executeCommand >> (:dynamicRegistration :json-false) >> :workspaceEdit >> (:documentChanges t) >> :didChangeWatchedFiles >> (:dynamicRegistration t) >> :symbol >> (:dynamicRegistration :json-false) >> :configuration t :workspaceFolders t) >> :textDocument >> (:synchronization >> (:dynamicRegistration :json-false :willSave t >> :willSaveWaitUntil t :didSave t) >> :completion >> (:dynamicRegistration :json-false :completionItem >> (:snippetSupport :json-false >> :deprecatedSupport t :resolveSupport >> (:properties >> ["documentation" "details" >> "additionalTextEdits"]) >> :tagSupport >> (:valueSet >> [1])) >> :contextSupport t) >> :hover >> (:dynamicRegistration :json-false :contentFormat >> ["plaintext"]) >> :signatureHelp >> (:dynamicRegistration :json-false :signatureInformation >> (:parameterInformation >> (:labelOffsetSupport t) >> :activeParameterSupport t)) >> :references >> (:dynamicRegistration :json-false) >> :definition >> (:dynamicRegistration :json-false :linkSupport t) >> :declaration >> (:dynamicRegistration :json-false :linkSupport t) >> :implementation >> (:dynamicRegistration :json-false :linkSupport t) >> :typeDefinition >> (:dynamicRegistration :json-false :linkSupport t) >> :documentSymbol >> (:dynamicRegistration :json-false >> :hierarchicalDocumentSymbolSupport t :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])) >> :documentHighlight >> (:dynamicRegistration :json-false) >> :codeAction >> (:dynamicRegistration :json-false :codeActionLiteralSupport >> (:codeActionKind >> (:valueSet >> ["quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite" "source" >> "source.organizeImports"])) >> :isPreferredSupport t) >> :formatting >> (:dynamicRegistration :json-false) >> :rangeFormatting >> (:dynamicRegistration :json-false) >> :rename >> (:dynamicRegistration :json-false) >> :inlayHint >> (:dynamicRegistration :json-false) >> :publishDiagnostics >> (:relatedInformation :json-false :codeDescriptionSupport >> :json-false :tagSupport >> (:valueSet >> [1 2]))) >> :window >> (:workDoneProgress t) >> :general >> (:positionEncodings >> ["utf-32" "utf-8" "utf-16"]) >> :experimental #s(hash-table size 1 test eql rehash-size >> 1.5 rehash-threshold 0.8125 data >> ())) >> :workspaceFolders >> [(:uri "file:///home/misha/sweet/repos/tmp" :name >> "~/sweet/repos/tmp/")])) >> [server-reply] (id:1) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 1 :result >> (:capabilities >> (:positionEncoding "utf-32" :textDocumentSync >> (:openClose t :change 2 :save nil) >> :selectionRangeProvider t :hoverProvider t :completion= Provider >> (:resolveProvider t :triggerCharacters >> [":" "." "'" "("] >> :completionItem >> (:labelDetailsSupport :json-false)) >> :signatureHelpProvider >> (:triggerCharacters >> ["(" "," "<"]) >> :definitionProvider t :typeDefinitionProvider t >> :implementationProvider t :referencesProvider t >> :documentHighlightProvider t :documentSymbolProvider t >> :workspaceSymbolProvider t :codeActionProvider >> (:codeActionKinds >> ["" "quickfix" "refactor" "refactor.extract" >> "refactor.inline" "refactor.rewrite"] >> :resolveProvider t) >> :codeLensProvider >> (:resolveProvider t) >> :documentFormattingProvider t >> :documentRangeFormattingProvider :json-false >> :documentOnTypeFormattingProvider >> (:firstTriggerCharacter "=3D" :moreTriggerCharacter >> ["." ">" "{"]) >> :renameProvider >> (:prepareProvider t) >> :foldingRangeProvider t :declarationProvider t :worksp= ace >> (:workspaceFolders >> (:supported t :changeNotifications t) >> :fileOperations >> (:willRename >> (:filters >> [(:scheme "file" :pattern >> (:glob "**/*.rs" :matches "file")) >> (:scheme "file" :pattern >> (:glob "**" :matches "folder"))]))) >> :callHierarchyProvider t :semanticTokensProvider >> (:legend >> (:tokenTypes >> ["comment" "decorator" "enumMember" "enum" "function" >> "interface" "keyword" "macro" "method" "namespace" "number" "operator" >> "parameter" "property" "string" "struct" "typeParameter" "variable" >> "angle" "arithmetic" "attribute" "attributeBracket" "bitwise" >> "boolean" "brace" "bracket" "builtinAttribute" "builtinType" >> "character" "colon" "comma" "comparison" "constParameter" "derive" >> "deriveHelper" "dot" "escapeSequence" "formatSpecifier" "generic" >> "label" "lifetime" "logical" "macroBang" "parenthesis" "punctuation" >> "selfKeyword" "selfTypeKeyword" "semicolon" "typeAlias" "toolModule" >> "union" "unresolvedReference"] >> :tokenModifiers >> ["documentation" "declaration" "static" >> "defaultLibrary" "async" "attribute" "callable" "constant" "consuming" >> "controlFlow" "crateRoot" "injected" "intraDocLink" "library" >> "mutable" "public" "reference" "trait" "unsafe"]) >> :range t :full >> (:delta t)) >> :inlayHintProvider >> (:resolveProvider t) >> :experimental >> (:externalDocs t :hoverRange t :joinLines t >> :matchingBrace t :moveItem t :onEnter t :openCargoToml t :parentModule >> t :runnables >> (:kinds >> ["cargo"]) >> :ssr t :workspaceSymbolScopeKindFiltering t)) >> :serverInfo >> (:name "rust-analyzer" :version "1.69.0 (84c898d 2023-04-16)"))) >> [client-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 >> test eql rehash-size 1.5 rehash-threshold 0.8125 data >> ())) >> [client-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "textDocument/didOpen" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 0 >> :languageId "rust-ts" :text "fn main() {\n println!(\"Hello >> world\");\n}\n"))) >> [client-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params >> (:settings #s(hash-table size 1 test eql rehash-size 1.5 >> rehash-threshold 0.8125 data >> ()))) >> [client-request] (id:2) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 2 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 3 :character 0)))) >> [server-request] (id:0) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 0 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:0) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 0 :result nil) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-request] (id:1) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 1 :method "workspace/configuration" :params >> (:items >> [(:section "rust-analyzer")])) >> [client-reply] (id:1) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 1 :result >> [nil]) >> [server-reply] (id:2) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 2 :result >> []) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-request] (id:2) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 2 :method "client/registerCapability" :params >> (:registrations >> [(:id "workspace/didChangeWatchedFiles" :method >> "workspace/didChangeWatchedFiles" :registerOptions >> (:watchers >> [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))= ])) >> [client-reply] (id:2) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 2 :result nil) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:3) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 3 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Roots Scanned")) >> [client-reply] (id:3) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 3 :result nil) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "begin" :title "Roots Scanned" :cancellable >> :json-false :message "0/2" :percentage 0))) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "report" :cancellable :json-false :message "1/2" >> :percentage 50))) >> [server-request] (id:4) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 4 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:4) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 4 :result nil) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [client-request] (id:3) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 0))) >> [client-request] (id:4) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 0))) >> [client-request] (id:5) Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :id 5 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 0))) >> [server-notification] Wed May 10 21:30:16 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "end" :message "2/2"))) >> [server-reply] (id:3) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 3 :result nil) >> [server-reply] (id:4) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 4 :result nil) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:5) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 5 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Fetching")) >> [client-reply] (id:5) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 5 :result nil) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "begin" :title "Fetching" :cancellable :json-false))) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "report" :cancellable :json-false :message "metadata"))= ) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Fetching" :value >> (:kind "end"))) >> [server-request] (id:6) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 6 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Loading")) >> [client-reply] (id:6) Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :id 6 :result nil) >> [server-notification] Wed May 10 21:30:17 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "begin" :title "Loading" :cancellable :json-false))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "report" :cancellable :json-false :message "building >> proc-macros: tmp"))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "report" :cancellable :json-false :message "building >> proc-macros: tmp"))) >> [server-request] (id:7) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 7 :method "client/registerCapability" :params >> (:registrations >> [(:id "workspace/didChangeWatchedFiles" :method >> "workspace/didChangeWatchedFiles" :registerOptions >> (:watchers >> [(:globPattern "/home/misha/sweet/repos/tmp/**/*.rs") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.toml") >> (:globPattern "/home/misha/sweet/repos/tmp/**/Cargo.lock")]))= ])) >> [client-reply] (id:7) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 7 :result nil) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Loading" :value >> (:kind "end"))) >> [server-request] (id:8) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 8 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Roots Scanned")) >> [client-reply] (id:8) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 8 :result nil) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "begin" :title "Roots Scanned" :cancellable >> :json-false :message "0/2" :percentage 0))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "report" :cancellable :json-false :message "1/2" >> :percentage 50))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Roots Scanned" :value >> (:kind "end" :message "2/2"))) >> [server-request] (id:9) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 9 :method "window/workDoneProgress/create" :params >> (:token "rustAnalyzer/Indexing")) >> [client-reply] (id:9) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 9 :result nil) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "begin" :title "Indexing" :cancellable :json-false >> :percentage 0))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "0/5 (core >> + 1 more)" :percentage 0))) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "1/5 >> (core)" :percentage 20))) >> [server-request] (id:10) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 10 :method "window/workDoneProgress/create" :params >> (:token "rust-analyzer/flycheck/0")) >> [client-reply] (id:10) Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :id 10 :result nil) >> [server-notification] Wed May 10 21:30:18 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "begin" :title "cargo check" :cancellable t))) >> [server-notification] Wed May 10 21:30:19 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "report" :cancellable t :message "tmp"))) >> [server-notification] Wed May 10 21:30:19 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "report" :cancellable t :message "tmp"))) >> [server-notification] Wed May 10 21:30:19 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "end"))) >> [server-notification] Wed May 10 21:30:20 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "2/5 >> (alloc)" :percentage 40))) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 60))) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "3/5 >> (std)" :percentage 60))) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 80))) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :message "4/5 >> (proc_macro)" :percentage 80))) >> [client-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.148= 61%3A1683769648" >> :type 1)])) >> [client-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/misha@misha-N552VX.148= 61%3A1683769648" >> :type 1)])) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "report" :cancellable :json-false :percentage 100))) >> [server-notification] Wed May 10 21:30:21 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rustAnalyzer/Indexing" :value >> (:kind "end"))) >> [server-reply] (id:5) Wed May 10 21:30:23 2023: >> (:jsonrpc "2.0" :id 5 :result >> []) >> [server-notification] Wed May 10 21:30:23 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [] >> :version 0)) >> [client-notification] Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 9) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 0)) >> :rangeLength 0 :text "\n") >> (:range >> (:start >> (:line 1 :character 0) >> :end >> (:line 1 :character 0)) >> :rangeLength 0 :text "\n") >> (:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 0)) >> :rangeLength 0 :text "m") >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :rangeLength 0 :text "d") >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 2)) >> :rangeLength 1 :text "") >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :rangeLength 0 :text "d") >> (:range >> (:start >> (:line 0 :character 2) >> :end >> (:line 0 :character 2)) >> :rangeLength 0 :text " ") >> (:range >> (:start >> (:line 0 :character 2) >> :end >> (:line 0 :character 3)) >> :rangeLength 1 :text "") >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 2)) >> :rangeLength 1 :text "")])) >> [client-request] (id:6) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 6 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 1))) >> [client-request] (id:7) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 7 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 1))) >> [client-request] (id:8) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 8 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 1))) >> [client-request] (id:9) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 9 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-reply] (id:6) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 6 :result nil) >> [server-reply] (id:7) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 7 :result nil) >> [server-reply] (id:8) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 8 :result nil) >> [server-reply] (id:9) Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :id 9 :result >> []) >> [server-notification] Wed May 10 21:30:24 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected BANG"= ) >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected >> `{`, `[`, `(`") >> (:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected SEMIC= OLON")] >> :version 9)) >> [client-notification] Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 12) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 1) >> :end >> (:line 0 :character 1)) >> :rangeLength 0 :text "o") >> (:range >> (:start >> (:line 0 :character 2) >> :end >> (:line 0 :character 2)) >> :rangeLength 0 :text "d") >> (:range >> (:start >> (:line 0 :character 3) >> :end >> (:line 0 :character 3)) >> :rangeLength 0 :text " ")])) >> [client-request] (id:10) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 10 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:11) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 11 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:12) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 12 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:13) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 13 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-notification] Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 2 :character 0) >> :end >> (:line 2 :character 0)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected a nam= e") >> (:range >> (:start >> (:line 2 :character 2) >> :end >> (:line 2 :character 2)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected `;` o= r `{`") >> (:range >> (:start >> (:line 2 :character 7) >> :end >> (:line 2 :character 7)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected BANG"= ) >> (:range >> (:start >> (:line 2 :character 9) >> :end >> (:line 2 :character 9)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected SEMIC= OLON") >> (:range >> (:start >> (:line 2 :character 10) >> :end >> (:line 2 :character 10)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected an it= em")] >> :version 12)) >> [server-reply] (id:10) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 10 :result nil) >> [server-reply] (id:11) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 11 :result nil) >> [server-reply] (id:12) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 12 :result nil) >> [server-reply] (id:13) Wed May 10 21:30:25 2023: >> (:jsonrpc "2.0" :id 13 :result >> []) >> [client-notification] Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 15) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 4)) >> :rangeLength 0 :text "t") >> (:range >> (:start >> (:line 0 :character 5) >> :end >> (:line 0 :character 5)) >> :rangeLength 0 :text "m") >> (:range >> (:start >> (:line 0 :character 6) >> :end >> (:line 0 :character 6)) >> :rangeLength 0 :text "p")])) >> [client-request] (id:14) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 14 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 7))) >> [client-request] (id:15) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 7))) >> [client-request] (id:16) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 16 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 7))) >> [client-request] (id:17) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 17 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-notification] Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 7) >> :end >> (:line 0 :character 7)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected `;` o= r `{`")] >> :version 15)) >> [server-reply] (id:14) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 14 :result nil) >> [server-reply] (id:17) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 17 :result >> []) >> [server-reply] (id:15) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 15 :result >> (:contents >> (:kind "plaintext" :value "tmp\n\nmod tmp") >> :range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 7)))) >> [server-reply] (id:16) Wed May 10 21:30:27 2023: >> (:jsonrpc "2.0" :id 16 :result >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 7)))]) >> [internal] (id:18) Wed May 10 21:30:29 2023: >> (:deferring :textDocument/signatureHelp :id 18 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [internal] (id:19) Wed May 10 21:30:29 2023: >> (:deferring :textDocument/hover :id 19 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [internal] (id:20) Wed May 10 21:30:29 2023: >> (:deferring :textDocument/documentHighlight :id 20 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [client-notification] Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 16) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 7) >> :end >> (:line 0 :character 7)) >> :rangeLength 0 :text ";")])) >> [internal] Wed May 10 21:30:29 2023: >> (:maybe-run-deferred >> (20 19 18)) >> [client-request] (id:20) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 20 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [client-request] (id:19) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 19 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [client-request] (id:18) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 18 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [client-request] (id:21) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 21 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-reply] (id:20) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 20 :result nil) >> [server-reply] (id:19) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 19 :result nil) >> [server-reply] (id:18) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 18 :result nil) >> [server-notification] Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 8)) >> :severity 1 :code "unresolved-module" :codeDescription >> (:href >> "https://rust-analyzer.github.io/manual.html#unresolved-module") >> :source "rust-analyzer" :message "unresolved module, can't >> find module file: tmp.rs, or tmp/mod.rs")] >> :version 16)) >> [server-reply] (id:21) Wed May 10 21:30:29 2023: >> (:jsonrpc "2.0" :id 21 :result >> []) >> [client-notification] Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 19) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 6) >> :end >> (:line 0 :character 7)) >> :rangeLength 1 :text "") >> (:range >> (:start >> (:line 0 :character 5) >> :end >> (:line 0 :character 6)) >> :rangeLength 1 :text "") >> (:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 5)) >> :rangeLength 1 :text "")])) >> [client-request] (id:22) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 22 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:23) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 23 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:24) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 24 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 4))) >> [client-request] (id:25) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 25 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-notification] Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 4)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected a nam= e") >> (:range >> (:start >> (:line 0 :character 5) >> :end >> (:line 0 :character 5)) >> :severity 1 :code "syntax-error" :codeDescription >> (:href "https://rust-analyzer.github.io/manual.html#syntax-err= or") >> :source "rust-analyzer" :message "Syntax Error: expected `;` o= r `{`")] >> :version 19)) >> [server-reply] (id:22) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 22 :result nil) >> [server-reply] (id:23) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 23 :result nil) >> [server-reply] (id:24) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 24 :result nil) >> [server-reply] (id:25) Wed May 10 21:30:31 2023: >> (:jsonrpc "2.0" :id 25 :result >> []) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "textDocument/didChange" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :version 24) >> :contentChanges >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 4)) >> :rangeLength 0 :text "t") >> (:range >> (:start >> (:line 0 :character 5) >> :end >> (:line 0 :character 5)) >> :rangeLength 0 :text "h") >> (:range >> (:start >> (:line 0 :character 6) >> :end >> (:line 0 :character 6)) >> :rangeLength 0 :text "i") >> (:range >> (:start >> (:line 0 :character 7) >> :end >> (:line 0 :character 7)) >> :rangeLength 0 :text "n") >> (:range >> (:start >> (:line 0 :character 8) >> :end >> (:line 0 :character 8)) >> :rangeLength 0 :text "g")])) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "textDocument/didSave" :params >> (:text "mod thing;\n\nfn main() {\n println!(\"Hello >> world\");\n}\n" :textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs"))) >> [server-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "unresolved-module" :codeDescription >> (:href >> "https://rust-analyzer.github.io/manual.html#unresolved-module") >> :source "rust-analyzer" :message "unresolved module, can't >> find module file: thing.rs, or thing/mod.rs")] >> :version 24)) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/main.rs" :type 2)])) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)]= )) >> [client-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "workspace/didChangeWatchedFiles" :params >> (:changes >> [(:uri "file:///home/misha/sweet/repos/tmp/.%23main.rs" :type 3)]= )) >> [server-request] (id:11) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 11 :method "window/workDoneProgress/create" :params >> (:token "rust-analyzer/flycheck/0")) >> [client-reply] (id:11) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 11 :result nil) >> [server-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "begin" :title "cargo check" :cancellable t))) >> [server-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs" :diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "unresolved-module" :codeDescription >> (:href >> "https://rust-analyzer.github.io/manual.html#unresolved-module") >> :source "rust-analyzer" :message "unresolved module, can't >> find module file: thing.rs, or thing/mod.rs") >> (:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "E0583" :codeDescription >> (:href "https://doc.rust-lang.org/error-index.html#E0583") >> :source "rustc" :message "file not found for module >> `thing`\nto create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"" :data >> (:rendered "error[E0583]: file not found for module >> `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n >> =3D help: to create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"\n\n"))] >> :version 24)) >> [server-notification] Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :method "$/progress" :params >> (:token "rust-analyzer/flycheck/0" :value >> (:kind "end"))) >> [client-request] (id:26) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 26 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [client-request] (id:27) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 27 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [client-request] (id:28) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 28 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [client-request] (id:29) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 29 :method "textDocument/inlayHint" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 0) >> :end >> (:line 5 :character 0)))) >> [server-reply] (id:26) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 26 :result nil) >> [server-reply] (id:27) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 27 :result >> (:contents >> (:kind "plaintext" :value "tmp\n\nmod thing") >> :range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)))) >> [server-reply] (id:28) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 28 :result >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)))]) >> [server-reply] (id:29) Wed May 10 21:30:33 2023: >> (:jsonrpc "2.0" :id 29 :result >> []) >> [internal] (id:18) Wed May 10 21:30:39 2023: >> (:timed-out :textDocument/signatureHelp :id 18 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [internal] (id:19) Wed May 10 21:30:39 2023: >> (:timed-out :textDocument/hover :id 19 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [internal] (id:20) Wed May 10 21:30:39 2023: >> (:timed-out :textDocument/documentHighlight :id 20 :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 8))) >> [client-request] (id:30) Wed May 10 21:30:40 2023: >> (:jsonrpc "2.0" :id 30 :method "textDocument/codeAction" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)) >> :context >> (:diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "E0583" :codeDescription >> (:href "https://doc.rust-lang.org/error-index.html#E0583") >> :source "rustc" :message "file not found for module >> `thing`\nto create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"" :data >> (:rendered "error[E0583]: file not found for module >> `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n >> =3D help: to create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"\n\n")) >> (:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "unresolved-module" :codeDescription >> (:href >> "https://rust-analyzer.github.io/manual.html#unresolved-module") >> :source "rust-analyzer" :message "unresolved module, can't >> find module file: thing.rs, or thing/mod.rs")]))) >> [server-reply] (id:30) Wed May 10 21:30:41 2023: >> (:jsonrpc "2.0" :id 30 :result >> [(:title "Create module at `thing.rs`" :kind "quickfix" :edit >> (:documentChanges >> [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing.rs")])) >> (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit >> (:documentChanges >> [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) >> [client-request] (id:31) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 31 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [client-request] (id:32) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 32 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [client-request] (id:33) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 33 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 9))) >> [server-reply] (id:31) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 31 :result nil) >> [server-reply] (id:32) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 32 :result >> (:contents >> (:kind "plaintext" :value "tmp\n\nmod thing") >> :range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)))) >> [server-reply] (id:33) Wed May 10 21:30:43 2023: >> (:jsonrpc "2.0" :id 33 :result >> [(:range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)))]) >> [client-request] (id:34) Wed May 10 21:31:45 2023: >> (:jsonrpc "2.0" :id 34 :method "textDocument/codeAction" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :range >> (:start >> (:line 0 :character 4) >> :end >> (:line 0 :character 9)) >> :context >> (:diagnostics >> [(:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "E0583" :codeDescription >> (:href "https://doc.rust-lang.org/error-index.html#E0583") >> :source "rustc" :message "file not found for module >> `thing`\nto create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"" :data >> (:rendered "error[E0583]: file not found for module >> `thing`\n --> main.rs:1:1\n |\n1 | mod thing;\n | ^^^^^^^^^^\n |\n >> =3D help: to create the module `thing`, create file \"thing.rs\" or >> \"thing/mod.rs\"\n\n")) >> (:range >> (:start >> (:line 0 :character 0) >> :end >> (:line 0 :character 10)) >> :severity 1 :code "unresolved-module" :codeDescription >> (:href >> "https://rust-analyzer.github.io/manual.html#unresolved-module") >> :source "rust-analyzer" :message "unresolved module, can't >> find module file: thing.rs, or thing/mod.rs")]))) >> [server-reply] (id:34) Wed May 10 21:31:45 2023: >> (:jsonrpc "2.0" :id 34 :result >> [(:title "Create module at `thing.rs`" :kind "quickfix" :edit >> (:documentChanges >> [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing.rs")])) >> (:title "Create module at `thing/mod.rs`" :kind "quickfix" :edit >> (:documentChanges >> [(:kind "create" :uri >> "file:///home/misha/sweet/repos/tmp/thing/mod.rs")]))]) >> [client-request] (id:35) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 35 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 10))) >> [client-request] (id:36) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 36 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 10))) >> [client-request] (id:37) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 37 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 0 :character 10))) >> [server-reply] (id:35) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 35 :result nil) >> [server-reply] (id:36) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 36 :result nil) >> [server-reply] (id:37) Wed May 10 21:38:05 2023: >> (:jsonrpc "2.0" :id 37 :result nil) >> [client-request] (id:38) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 38 :method "textDocument/signatureHelp" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 5 :character 0))) >> [client-request] (id:39) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 39 :method "textDocument/hover" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 5 :character 0))) >> [client-request] (id:40) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 40 :method "textDocument/documentHighlight" :params >> (:textDocument >> (:uri "file:///home/misha/sweet/repos/tmp/main.rs") >> :position >> (:line 5 :character 0))) >> [server-reply] (id:38) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 38 :result nil) >> [server-reply] (id:39) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 39 :result nil) >> [server-reply] (id:40) Wed May 10 21:38:08 2023: >> (:jsonrpc "2.0" :id 40 :result nil) >> ``` >> >> There's nothing in `M-x eglot-stderr-buffer` >> >> >> In GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version >> 3.24.33, cairo version 1.16.0) of 2023-05-10 built on misha-N552VX >> Repository revision: 93005cd9dc2bab882e66ac7b81f593cd6c021e43 >> Repository branch: emacs-29 >> Windowing system distributor 'The X.Org Foundation', version 11.0.121010= 04 >> System Description: Ubuntu 22.04.2 LTS >> >> Configured using: >> 'configure --with-json --with-cairo --with-xwidgets >> --prefix=3D/opt/emacs/ --with-x-toolkit=3Dgtk3 --with-tree-sitter >> --with-native-compilation --with-modules' >> >> Configured features: >> CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON >> LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG >> SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 >> XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB >> >> Important settings: >> value of $LANG: en_CA.UTF-8 >> value of $XMODIFIERS: @im=3Dibus >> locale-coding-system: utf-8-unix >> >> Major mode: Rust >> >> Minor modes in effect: >> eglot-inlay-hints-mode: t >> eglot--managed-mode: t >> flymake-mode: t >> tooltip-mode: t >> global-eldoc-mode: t >> eldoc-mode: t >> show-paren-mode: t >> electric-indent-mode: t >> mouse-wheel-mode: t >> tool-bar-mode: t >> menu-bar-mode: t >> file-name-shadow-mode: t >> global-font-lock-mode: t >> font-lock-mode: t >> blink-cursor-mode: t >> line-number-mode: t >> transient-mark-mode: t >> auto-composition-mode: t >> auto-encryption-mode: t >> auto-compression-mode: t >> >> Load-path shadows: >> None found. >> >> Features: >> (shadow sort mail-extr help-fns radix-tree cl-print cus-start cus-load >> emacsbug message mailcap yank-media puny rfc822 mml mml-sec epa derived >> epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode >> mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 >> rfc2045 ietf-drums mm-util mail-prsvr mail-utils files-x find-dired grep >> misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher >> conf-mode time-date eglot external-completion array filenotify jsonrpc >> ert pp ewoc debug backtrace find-func xref flymake-proc flymake >> thingatpt compile text-property-search comint ansi-osc ansi-color ring >> pcase url-util url-parse auth-source eieio eieio-core password-cache >> json map url-vars project byte-opt imenu rust-ts-mode c-ts-common >> treesit dired-aux cl-loaddefs comp comp-cstr warnings icons subr-x rx >> cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib dired >> dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric >> uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel >> term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image >> regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode >> prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu >> timer select scroll-bar mouse jit-lock font-lock syntax font-core >> term/tty-colors frame minibuffer nadvice seq simple cl-generic >> indonesian philippine cham georgian utf-8-lang misc-lang vietnamese >> tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek >> romanian slovak czech european ethiopic indian cyrillic chinese >> composite emoji-zwj charscript charprop case-table epa-hook >> jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs >> theme-loaddefs faces cus-face macroexp files window text-properties >> overlay sha1 md5 base64 format env code-pages mule custom widget keymap >> hashtable-print-readable backquote threads xwidget-internal dbusbind >> inotify dynamic-setting system-font-setting font-render-setting cairo >> move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process >> native-compile emacs) >> >> Memory information: >> ((conses 16 156384 23572) >> (symbols 48 13274 0) >> (strings 32 39865 2264) >> (string-bytes 1 1247909) >> (vectors 16 27590) >> (vector-slots 8 541569 23397) >> (floats 8 51 48) >> (intervals 56 943 0) >> (buffers 984 23)) From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: Misha Zharov , Felician Nemeth , 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.169408316722695 (code B ref 63433); Thu, 07 Sep 2023 10:40:02 +0000 Received: (at 63433) by debbugs.gnu.org; 7 Sep 2023 10:39:27 +0000 Received: from localhost ([127.0.0.1]:38718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeCQ3-0005ty-G6 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 06:39:27 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:54553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeCPz-0005tj-Qh for 63433@debbugs.gnu.org; Thu, 07 Sep 2023 06:39:26 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bce552508fso14320551fa.1 for <63433@debbugs.gnu.org>; Thu, 07 Sep 2023 03:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694083155; x=1694687955; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hzihnw7zJuQ11xGTznPCwkm+mBrqvIuW3uZbNcRC2uw=; b=W3puWrTB1VPlob0reLHKl0bZJ8WS10w8me2tCSgqEwD7HysiqxfYFYpnBqRWmplUBc g2puo2CLDY8utArzAdqDyO64NrFLD01nyF7nP4wAWBZOmWG+yjFNF+1qD54EyG06ckmL w8Nnqb7HCCap3WVaQHqQWRHE9qaBX/HqrlvIyc7L737DfdOgNE83br1dYxi53vksN2Dc Ql3cVVlQ8PblAyCs+UZlbY8xl+7pMrPEEzRASg89SO88RzznuYqvP7eWRpruh1w79fBJ WPkE9r8Ni+KCilkUca/K2vw8sZeYINcfVXW4u8F4+NH8GVtQzp+dndy9/DGOjVnPaytz ATPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694083155; x=1694687955; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hzihnw7zJuQ11xGTznPCwkm+mBrqvIuW3uZbNcRC2uw=; b=lBQlJ0aUwLq903nafV7xgeOJ38oahW4Q/FOWP+cs4nfEKMLAFurmnjVfDsKjoDL4PU F6Vt7ZVZK1Bn54CX5wP71UDLH9/kegBcd+n9EoeaG94P1/++4QLU9MfliPtQmUbFS19J 55uSSRKdfK4xpC3vKXNnHaRnw8bkicLCuAQotwkVEmObVWszXwiN5q9RfO41Ci6aS6GS Usjgkd9BvmA30MlY0BuTFRIwZNnagXoUhI5fdjoH2FkdW/7AHyk5MGdRuQYh8Da8lLN8 dJDIzZJxM7OhqB4IKWyBgz4vXlCLsayZ5PnfZbvo26HM7+KU+rzSNWQMaRGbF9cIh9VB Oldg== X-Gm-Message-State: AOJu0YwPMDMVeMUduxTaIxokqmd1YrKREoO4RiRRD0Wi+WpgsViwXa7b pXPKIm7z8prj1zBc51ct2u7+wsZz9WC/e+V5p6U= X-Google-Smtp-Source: AGHT+IHyhoy5td/UTQGyjhXttTN7+PvkHL5dtqjqwC0fypCEytU863YRVjShnzOmJ2/hKNgT8JV2YRXUoFxbbHaPVwo= X-Received: by 2002:a2e:8194:0:b0:2bc:e2fb:4c8b with SMTP id e20-20020a2e8194000000b002bce2fb4c8bmr4404727ljg.38.1694083155360; Thu, 07 Sep 2023 03:39:15 -0700 (PDT) MIME-Version: 1.0 References: <87zg6b8jea.fsf@betli.tmit.bme.hu> In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 7 Sep 2023 11:39:03 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Sep 7, 2023 at 10:59=E2=80=AFAM Stefan Kangas wrote: > > Felician Nemeth writes: > > > In its initializationOptions, Eglot do not state that it supports any > > resourceOperations. So the server made a mistake when it sent a > > "create" kind. > > > > Sure, Eglot could handle better the server's mistake or support this > > feature, but this is primarily a server bug in my opinion. > > > > Background: > > https://microsoft.github.io/language-server-protocol/specifications/lsp= /3.17/specification/#workspaceEditClientCapabilities > > Jo=C3=A3o, any comments here? Thanks for pinging. But no, no further comments, I think Felici=C3=A1n's description is very accurate. But I would like to see Eglot support this of course. Jo=C3=A3o From unknown Mon Jun 23 04:11:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63433: Eglot "eglot--apply-workspace-edit > documentChanges > create" fails Resent-From: Felician Nemeth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 10:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: Misha Zharov , Stefan Kangas , 63433@debbugs.gnu.org Received: via spool by 63433-submit@debbugs.gnu.org id=B63433.169408398924190 (code B ref 63433); Thu, 07 Sep 2023 10:54:02 +0000 Received: (at 63433) by debbugs.gnu.org; 7 Sep 2023 10:53:09 +0000 Received: from localhost ([127.0.0.1]:38727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeCdJ-0006I6-18 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 06:53:09 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:57399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeCdE-0006Hb-Rv for 63433@debbugs.gnu.org; Thu, 07 Sep 2023 06:53:07 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401b0d97850so9269245e9.2 for <63433@debbugs.gnu.org>; Thu, 07 Sep 2023 03:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694083977; x=1694688777; darn=debbugs.gnu.org; h=mime-version:message-id:date:face:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=BT/n1zijocyxKIEmj/dnS5S12uY3yJOHZTEfUkvvwZc=; b=kgfWwHjia/05CvUqDWofHsqvxNz5j2YGMKj4wj6AoMgWn2hRpW+670gDGGIJNegYKC 4puYgJvb0STnl6uS1F8y1PgPJPD/RydIZB4cBYSgb5zb3oAauQmozu1w0530SZdbXx+P +4FXpplffigxNZpH0PQfPsAb08gq/8Qz/wvxssIC7d24xlsHQV0QfhQ7oMRM+otXay1v 8ZXo3gm9PpXnyHSgywMTvZsGUglr0bmSan3hL/bAfIA2BaROhFpWnT0qUcDllB0ImCK/ wvAiVJBee7mUE9VjWZwxpYhKj0MSpR9K88qBl1dp9BzfYpu9SLd7PVd2nETdXJzc/a20 7NdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694083977; x=1694688777; h=mime-version:message-id:date:face:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BT/n1zijocyxKIEmj/dnS5S12uY3yJOHZTEfUkvvwZc=; b=HgAHWzaiqsBZL+a9BzKiFchpMY/Wqr+JegRoioPkRRne4k4AzKwbTmsCcW3TGxwvx+ 8ozFZy/s7Av5z6pw4Jd0vXJSzV468mZQjF8LtveepbzSoxu/vgLyTQ29McJlKzD6S1dF aZeTwo8lY/PqxOxBCC4WPXqSTKliRgG9KVcfv7EcULEnWCrT29PuoVa0YnOkKKhCVDOm JR0dGj9G8o31IHVd55CFYXqELt0ZdvI8NZTV+gugehYN/5UnPbSh0CVCvCMzzQ57MMlM G24VUq+gXY8tseWHgQSA6MwOOc9mzR7Hg3p69exm6hBWvuZKHLTfCk+zmn/e/TC+POcu 1McA== X-Gm-Message-State: AOJu0Yz1Zgf1LPazfqAtmP/AVjLR3/DqL69mVyn+T591+dkPmHHXbHJu ZNrNpPzr46+1XUYSWcGFLAwr9l/ohqo= X-Google-Smtp-Source: AGHT+IH+K3X4LkF6VRldSE8Wa1Hfv99K7gNOytGZ76/nRBQlav7kAUxuYWLVuUbHyNFxEDkOvRGPvg== X-Received: by 2002:a05:600c:24c:b0:3fe:fc0f:52e2 with SMTP id 12-20020a05600c024c00b003fefc0f52e2mr4100068wmj.37.1694083976944; Thu, 07 Sep 2023 03:52:56 -0700 (PDT) Received: from ulti.gmail.com ([2001:738:2001:407f:d329:3c92:fe6f:14c3]) by smtp.gmail.com with ESMTPSA id l12-20020a7bc44c000000b003fe61c33df5sm2148468wmi.3.2023.09.07.03.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 03:52:56 -0700 (PDT) From: Felician Nemeth In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 7 Sep 2023 11:39:03 +0100") References: <87zg6b8jea.fsf@betli.tmit.bme.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEWOdXElERN7LDLZs6/l 0dDQq6TepMcqAAACW0lEQVQ4jWWSzY7bMAyEaSm6mypylxjkroTRvUW8d9lavf+r7NDOZotWQHzg lyGHP0Sn5ed9qKrLWWIWos9/QJWIeCSywPNTd/AE0LtwFj7A+3WT5PwfeBrQKcsBnkfwVcNySWQr 3i34XN6gRNgis/v4uwSKHCD9lPitB0Aq9BHfHX4cgsI7cJJfLdZg/4bbCzoRmkD9MsagQSBDedZi CgNxkVSJmSOStTBUBKkywEnEoZzbwWj+ACiVJkF6pOpak2PMCqkMYDpaw+gatLR8atMOrB3JGzmm 3rSQo+tkxU+UAbhQSgtslULhsXKk6+IyQ1QTzeQB0MzjlpkCEUCeUdviWrwBcxVqpZjP+v0MYPA0 aq2rvIEZe4GRM0v+9QIB03rsABVSk5y+Mz3LSzExtJLlCCO6dV1uzDQFTBad+gO0TqqL9XE8x4ek +orvYiMJgzC8e+r6TqaPaK6QyqVNvoHtsRrooQ6tTi4vgaSkd8wIikodB3B0iIk58avsDdYNajpS bSKJ+mQnipGszB6zW4lGgsOkKHE2RWVcBpwhaIv3BYIAu3WsnC7YYKLRchp6w8fRGZIWiZuFsVai 7gbcUcJEhiDZ3K1+uzZvBlfaEO8oH4MLu6/hrKVM7QpQcIXJFuC1XjfbfKRxNslk94l9cYcEihV2 HWyNDQAXaLsvnrSyp7HaQhrAn13V6/XW11nh0XINBOEAV+tHK4EvAGNGvEwc0eZw8Vyr56imYEsV sOW9jxm/yb9AH1ufqGMviIK7A0Tc/723oM3tJ4HTOu9gDr3ftbdkxfdjsUv5AqWKwyfCYo5WAAAA AElFTkSuQmCC Date: Thu, 07 Sep 2023 12:52:55 +0200 Message-ID: <87o7ieb6go.fsf@ulti.tmit.bme.hu> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> > In its initializationOptions, Eglot do not state that it supports any >> > resourceOperations. So the server made a mistake when it sent a >> > "create" kind. In the meantime, rust-analyzer gained a fix for this issue. However, it still offers these code-actions and if the user selects one, then the server now sends an error like "Client does not support create capability". I think this is suboptimal, but understandable. https://github.com/rust-lang/rust-analyzer/pull/15101