rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.05k stars 1.56k forks source link

Type inference for struct fields suddenly stopped working correctly #17027

Closed chrisjsewell closed 5 months ago

chrisjsewell commented 5 months ago

rust-analyzer version: rust-analyzer version: 0.3.1906-standalone (e4a405f87 2024-03-31)

rustc version: rustc 1.76.0 (07dca489a 2024-02-04)

editor or extension: VSCode v0.3.1906

relevant settings: NONE

repository link (if public, optional): (eg. rust-analyzer)

code snippet to reproduce:

after running cargo init to create a new project, then add to main.rs

#[allow(dead_code)]
struct X {
    items: Vec<usize>,
    other: Option<usize>
}

#[allow(dead_code)]
impl X {
    fn tester(&mut self) -> usize {
        if self.other.is_some_and(|i| i > 1) {
            return 1;
        }
        for item in self.items.iter() {
            if item > &1 {
                return 1;
            }
        }
        2
    }
}

This seems to have suddenly started happening in the last day, I'm not sure why 🤷

you can see below, it does not seem to infer the type of a Some

Then for items, its ok normally, but then breaks on use of for loop (there is no hover or method completion for item)

image

Note, there are no log outputs from Output > Rust Analyzer Language Server

chrisjsewell commented 5 months ago

Here is the trace output:

Verbose Trace Output ``` [Trace - 03:07:49] Sending request 'initialize - (0)'. Params: { "processId": 58892, "clientInfo": { "name": "Visual Studio Code", "version": "1.88.0" }, "locale": "en", "rootPath": "/Users/chrisjsewell/Documents/rust_test", "rootUri": "file:///Users/chrisjsewell/Documents/rust_test", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional", "normalizesLineEndings": true, "changeAnnotationSupport": { "groupsOnLabel": true } }, "configuration": true, "didChangeWatchedFiles": { "dynamicRegistration": true, "relativePatternSupport": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "tagSupport": { "valueSet": [ 1 ] }, "resolveSupport": { "properties": [ "location.range" ] } }, "codeLens": { "refreshSupport": true }, "executeCommand": { "dynamicRegistration": true }, "didChangeConfiguration": { "dynamicRegistration": true }, "workspaceFolders": true, "semanticTokens": { "refreshSupport": true }, "fileOperations": { "dynamicRegistration": true, "didCreate": true, "didRename": true, "didDelete": true, "willCreate": true, "willRename": true, "willDelete": true }, "inlineValue": { "refreshSupport": true }, "inlayHint": { "refreshSupport": true }, "diagnostics": { "refreshSupport": true } }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] }, "codeDescriptionSupport": true, "dataSupport": true }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "insertReplaceSupport": true, "resolveSupport": { "properties": [ "documentation", "detail", "additionalTextEdits" ] }, "insertTextModeSupport": { "valueSet": [ 1, 2 ] }, "labelDetailsSupport": true }, "insertTextMode": 2, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] }, "completionList": { "itemDefaults": [ "commitCharacters", "editRange", "insertTextFormat", "insertTextMode" ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true }, "activeParameterSupport": true }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "labelSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "disabledSupport": true, "dataSupport": true, "resolveSupport": { "properties": [ "edit" ] }, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } }, "honorsChangeAnnotations": false }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true, "prepareSupportDefaultBehavior": 1, "honorsChangeAnnotations": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true, "foldingRangeKind": { "valueSet": [ "comment", "imports", "region" ] }, "foldingRange": { "collapsedText": false } }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true }, "callHierarchy": { "dynamicRegistration": true }, "semanticTokens": { "dynamicRegistration": true, "tokenTypes": [ "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" ], "tokenModifiers": [ "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" ], "formats": [ "relative" ], "requests": { "range": true, "full": { "delta": true } }, "multilineTokenSupport": false, "overlappingTokenSupport": false, "serverCancelSupport": true, "augmentsSyntaxTokens": false }, "linkedEditingRange": { "dynamicRegistration": true }, "typeHierarchy": { "dynamicRegistration": true }, "inlineValue": { "dynamicRegistration": true }, "inlayHint": { "dynamicRegistration": true, "resolveSupport": { "properties": [ "tooltip", "textEdits", "label.tooltip", "label.location", "label.command" ] } }, "diagnostic": { "dynamicRegistration": true, "relatedDocumentSupport": false } }, "window": { "showMessage": { "messageActionItem": { "additionalPropertiesSupport": true } }, "showDocument": { "support": true }, "workDoneProgress": true }, "general": { "staleRequestSupport": { "cancel": true, "retryOnContentModified": [ "textDocument/semanticTokens/full", "textDocument/semanticTokens/range", "textDocument/semanticTokens/full/delta" ] }, "regularExpressions": { "engine": "ECMAScript", "version": "ES2020" }, "markdown": { "parser": "marked", "version": "1.1.0", "allowedTags": [ "ul", "li", "p", "code", "blockquote", "ol", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "em", "pre", "table", "thead", "tbody", "tr", "th", "td", "div", "del", "a", "strong", "br", "img", "span" ] }, "positionEncodings": [ "utf-16" ] }, "notebookDocument": { "synchronization": { "dynamicRegistration": true, "executionSummarySupport": true } }, "experimental": { "snippetTextEdit": true, "codeActionGroup": true, "hoverActions": true, "serverStatusNotification": true, "colorDiagnosticOutput": true, "openServerLogs": true, "localDocs": true, "testExplorer": false, "commands": { "commands": [ "rust-analyzer.runSingle", "rust-analyzer.debugSingle", "rust-analyzer.showReferences", "rust-analyzer.gotoLocation", "editor.action.triggerParameterHints" ] } } }, "initializationOptions": { "cargoRunner": null, "runnables": { "extraEnv": null, "problemMatcher": [ "$rustc" ], "command": null, "extraArgs": [] }, "statusBar": { "clickAction": "openLogs" }, "server": { "path": null, "extraEnv": null }, "trace": { "server": "verbose", "extension": true }, "debug": { "engine": "auto", "sourceFileMap": { "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" }, "openDebugPane": false, "engineSettings": {} }, "restartServerOnConfigChange": false, "typing": { "continueCommentsOnNewline": true, "autoClosingAngleBrackets": { "enable": false } }, "diagnostics": { "previewRustcOutput": false, "useRustcErrorCode": false, "disabled": [], "enable": true, "experimental": { "enable": false }, "remapPrefix": {}, "styleLints": { "enable": false }, "warningsAsHint": [], "warningsAsInfo": [] }, "discoverProjectRunner": null, "showUnlinkedFileNotification": true, "showRequestFailedErrorNotification": true, "showDependenciesExplorer": true, "testExplorer": false, "assist": { "emitMustUse": false, "expressionFillDefault": "todo" }, "cachePriming": { "enable": true, "numThreads": 0 }, "cargo": { "autoreload": true, "buildScripts": { "enable": true, "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "overrideCommand": null, "rebuildOnSave": true, "useRustcWrapper": true }, "cfgs": {}, "extraArgs": [], "extraEnv": {}, "features": [], "noDefaultFeatures": false, "sysroot": "discover", "sysrootQueryMetadata": false, "sysrootSrc": null, "target": null, "targetDir": null, "unsetTest": [ "core" ] }, "checkOnSave": true, "check": { "allTargets": true, "command": "check", "extraArgs": [], "extraEnv": {}, "features": null, "ignore": [], "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "noDefaultFeatures": null, "overrideCommand": null, "targets": null, "workspace": true }, "completion": { "autoimport": { "enable": true }, "autoself": { "enable": true }, "callable": { "snippets": "fill_arguments" }, "fullFunctionSignatures": { "enable": false }, "limit": null, "postfix": { "enable": true }, "privateEditable": { "enable": false }, "snippets": { "custom": { "Arc::new": { "postfix": "arc", "body": "Arc::new(${receiver})", "requires": "std::sync::Arc", "description": "Put the expression into an `Arc`", "scope": "expr" }, "Rc::new": { "postfix": "rc", "body": "Rc::new(${receiver})", "requires": "std::rc::Rc", "description": "Put the expression into an `Rc`", "scope": "expr" }, "Box::pin": { "postfix": "pinbox", "body": "Box::pin(${receiver})", "requires": "std::boxed::Box", "description": "Put the expression into a pinned `Box`", "scope": "expr" }, "Ok": { "postfix": "ok", "body": "Ok(${receiver})", "description": "Wrap the expression in a `Result::Ok`", "scope": "expr" }, "Err": { "postfix": "err", "body": "Err(${receiver})", "description": "Wrap the expression in a `Result::Err`", "scope": "expr" }, "Some": { "postfix": "some", "body": "Some(${receiver})", "description": "Wrap the expression in an `Option::Some`", "scope": "expr" } } }, "termSearch": { "enable": false } }, "files": { "excludeDirs": [], "watcher": "client" }, "highlightRelated": { "breakPoints": { "enable": true }, "closureCaptures": { "enable": true }, "exitPoints": { "enable": true }, "references": { "enable": true }, "yieldPoints": { "enable": true } }, "hover": { "actions": { "debug": { "enable": true }, "enable": true, "gotoTypeDef": { "enable": true }, "implementations": { "enable": true }, "references": { "enable": false }, "run": { "enable": true } }, "documentation": { "enable": true, "keywords": { "enable": true } }, "links": { "enable": true }, "memoryLayout": { "alignment": "hexadecimal", "enable": true, "niches": false, "offset": "hexadecimal", "size": "both" }, "show": { "structFields": null, "traitAssocItems": null } }, "imports": { "granularity": { "enforce": false, "group": "crate" }, "group": { "enable": true }, "merge": { "glob": true }, "preferNoStd": false, "preferPrelude": false, "prefix": "plain" }, "inlayHints": { "bindingModeHints": { "enable": false }, "chainingHints": { "enable": true }, "closingBraceHints": { "enable": true, "minLines": 25 }, "closureCaptureHints": { "enable": false }, "closureReturnTypeHints": { "enable": "never" }, "closureStyle": "impl_fn", "discriminantHints": { "enable": "never" }, "expressionAdjustmentHints": { "enable": "never", "hideOutsideUnsafe": false, "mode": "prefix" }, "implicitDrops": { "enable": false }, "lifetimeElisionHints": { "enable": "never", "useParameterNames": false }, "maxLength": 25, "parameterHints": { "enable": true }, "rangeExclusiveHints": { "enable": false }, "reborrowHints": { "enable": "never" }, "renderColons": true, "typeHints": { "enable": true, "hideClosureInitialization": false, "hideNamedConstructor": false } }, "interpret": { "tests": false }, "joinLines": { "joinAssignments": true, "joinElseIf": true, "removeTrailingComma": true, "unwrapTrivialBlock": true }, "lens": { "debug": { "enable": true }, "enable": true, "forceCustomCommands": true, "implementations": { "enable": true }, "location": "above_name", "references": { "adt": { "enable": false }, "enumVariant": { "enable": false }, "method": { "enable": false }, "trait": { "enable": false } }, "run": { "enable": true } }, "linkedProjects": [], "lru": { "capacity": null, "query": { "capacities": {} } }, "notifications": { "cargoTomlNotFound": true, "unindexedProject": false }, "numThreads": null, "procMacro": { "attributes": { "enable": true }, "enable": true, "ignored": {}, "server": null }, "references": { "excludeImports": false, "excludeTests": false }, "rustc": { "source": null }, "rustfmt": { "extraArgs": [], "overrideCommand": null, "rangeFormatting": { "enable": false } }, "semanticHighlighting": { "doc": { "comment": { "inject": { "enable": true } } }, "nonStandardTokens": true, "operator": { "enable": true, "specialization": { "enable": false } }, "punctuation": { "enable": false, "separate": { "macro": { "bang": false } }, "specialization": { "enable": false } }, "strings": { "enable": true } }, "signatureInfo": { "detail": "full", "documentation": { "enable": true } }, "workspace": { "symbol": { "search": { "kind": "only_types", "limit": 128, "scope": "workspace" } } } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///Users/chrisjsewell/Documents/rust_test", "name": "rust_test" } ] } [Trace - 03:07:49] Received response 'initialize - (0)' in 4ms. Result: { "capabilities": { "positionEncoding": "utf-16", "textDocumentSync": { "openClose": true, "change": 2, "save": {} }, "selectionRangeProvider": true, "hoverProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ ":", ".", "'", "(" ], "completionItem": { "labelDetailsSupport": true } }, "signatureHelpProvider": { "triggerCharacters": [ "(", ",", "<" ] }, "definitionProvider": true, "typeDefinitionProvider": true, "implementationProvider": true, "referencesProvider": true, "documentHighlightProvider": true, "documentSymbolProvider": true, "workspaceSymbolProvider": true, "codeActionProvider": { "codeActionKinds": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite" ], "resolveProvider": true }, "codeLensProvider": { "resolveProvider": true }, "documentFormattingProvider": true, "documentRangeFormattingProvider": false, "documentOnTypeFormattingProvider": { "firstTriggerCharacter": "=", "moreTriggerCharacter": [ ".", ">", "{", "(", "<" ] }, "renameProvider": { "prepareProvider": true }, "foldingRangeProvider": true, "declarationProvider": true, "workspace": { "workspaceFolders": { "supported": true, "changeNotifications": true }, "fileOperations": { "willRename": { "filters": [ { "scheme": "file", "pattern": { "glob": "**/*.rs", "matches": "file" } }, { "scheme": "file", "pattern": { "glob": "**", "matches": "folder" } } ] } } }, "callHierarchyProvider": true, "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", "invalidEscapeSequence", "formatSpecifier", "generic", "label", "lifetime", "logical", "macroBang", "procMacro", "parenthesis", "punctuation", "selfKeyword", "selfTypeKeyword", "semicolon", "typeAlias", "toolModule", "union", "unresolvedReference" ], "tokenModifiers": [ "async", "documentation", "declaration", "static", "defaultLibrary", "associated", "attribute", "callable", "constant", "consuming", "controlFlow", "crateRoot", "injected", "intraDocLink", "library", "macro", "proc_macro", "mutable", "public", "reference", "trait", "unsafe" ] }, "range": true, "full": { "delta": true } }, "inlayHintProvider": { "resolveProvider": true }, "experimental": { "externalDocs": true, "hoverRange": true, "joinLines": true, "matchingBrace": true, "moveItem": true, "onEnter": true, "openCargoToml": true, "parentModule": true, "runnables": { "kinds": [ "cargo" ] }, "ssr": true, "workspaceSymbolScopeKindFiltering": true } }, "serverInfo": { "name": "rust-analyzer", "version": "0.3.1906-standalone (e4a405f87 2024-03-31)" } } [Trace - 03:07:49] Sending notification 'initialized'. Params: {} [Trace - 03:07:49] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "languageId": "rust", "version": 1, "text": "#[allow(dead_code)]\nstruct X {\n items: Vec,\n other: Option\n}\n\n#[allow(dead_code)]\nimpl X {\n fn tester(&mut self) -> usize {\n if self.other.is_some_and(|i| i > 1) {\n return 1;\n }\n for item in self.items.iter() {\n if item > &1 {\n return 1;\n }\n }\n 2\n }\n}\n\nfn main() {\n println!(\"Hello, world!\");\n}\n" } } [Trace - 03:07:49] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:49] Sending request 'textDocument/inlayHint - (2)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:49] Received notification 'experimental/serverStatus'. Params: { "health": "ok", "quiescent": false, "message": null } [Trace - 03:07:49] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "textDocument/didSave", "method": "textDocument/didSave", "registerOptions": { "includeText": false, "documentSelector": [ { "pattern": "**/*.rs" }, { "pattern": "**/Cargo.toml" }, { "pattern": "**/Cargo.lock" } ] } } ] } [Trace - 03:07:49] Sending response 'client/registerCapability - (0)'. Processing request took 6ms No result returned. [Trace - 03:07:49] Received request 'window/workDoneProgress/create - (1)'. Params: { "token": "rustAnalyzer/Fetching" } [Trace - 03:07:49] Sending response 'window/workDoneProgress/create - (1)'. Processing request took 1ms No result returned. [Trace - 03:07:49] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching", "cancellable": false } } [Trace - 03:07:49] Received response 'textDocument/inlayHint - (2)' in 29ms. Result: [] [Trace - 03:07:49] Received response 'textDocument/codeAction - (1)' in 44ms. Result: [ { "title": "Unwrap block", "kind": "refactor.rewrite", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "unwrap_block:RefactorRewrite:0" } }, { "title": "Extract into variable", "kind": "refactor.extract", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "extract_variable:RefactorExtract:1" } } ] [Trace - 03:07:49] Sending notification '$/setTrace'. Params: { "value": "verbose" } [Trace - 03:07:49] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": "" } [Trace - 03:07:49] Received request 'workspace/configuration - (2)'. Params: { "items": [ { "section": "rust-analyzer" } ] } [Trace - 03:07:49] Sending response 'workspace/configuration - (2)'. Processing request took 1ms Result: [ { "cargoRunner": null, "runnables": { "extraEnv": null, "problemMatcher": [ "$rustc" ], "command": null, "extraArgs": [] }, "statusBar": { "clickAction": "openLogs" }, "server": { "path": null, "extraEnv": null }, "trace": { "server": "verbose", "extension": true }, "debug": { "engine": "auto", "sourceFileMap": { "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" }, "openDebugPane": false, "engineSettings": {} }, "restartServerOnConfigChange": false, "typing": { "continueCommentsOnNewline": true, "autoClosingAngleBrackets": { "enable": false } }, "diagnostics": { "previewRustcOutput": false, "useRustcErrorCode": false, "disabled": [], "enable": true, "experimental": { "enable": false }, "remapPrefix": {}, "styleLints": { "enable": false }, "warningsAsHint": [], "warningsAsInfo": [] }, "discoverProjectRunner": null, "showUnlinkedFileNotification": true, "showRequestFailedErrorNotification": true, "showDependenciesExplorer": true, "testExplorer": false, "assist": { "emitMustUse": false, "expressionFillDefault": "todo" }, "cachePriming": { "enable": true, "numThreads": 0 }, "cargo": { "autoreload": true, "buildScripts": { "enable": true, "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "overrideCommand": null, "rebuildOnSave": true, "useRustcWrapper": true }, "cfgs": {}, "extraArgs": [], "extraEnv": {}, "features": [], "noDefaultFeatures": false, "sysroot": "discover", "sysrootQueryMetadata": false, "sysrootSrc": null, "target": null, "targetDir": null, "unsetTest": [ "core" ] }, "checkOnSave": true, "check": { "allTargets": true, "command": "check", "extraArgs": [], "extraEnv": {}, "features": null, "ignore": [], "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "noDefaultFeatures": null, "overrideCommand": null, "targets": null, "workspace": true }, "completion": { "autoimport": { "enable": true }, "autoself": { "enable": true }, "callable": { "snippets": "fill_arguments" }, "fullFunctionSignatures": { "enable": false }, "limit": null, "postfix": { "enable": true }, "privateEditable": { "enable": false }, "snippets": { "custom": { "Arc::new": { "postfix": "arc", "body": "Arc::new(${receiver})", "requires": "std::sync::Arc", "description": "Put the expression into an `Arc`", "scope": "expr" }, "Rc::new": { "postfix": "rc", "body": "Rc::new(${receiver})", "requires": "std::rc::Rc", "description": "Put the expression into an `Rc`", "scope": "expr" }, "Box::pin": { "postfix": "pinbox", "body": "Box::pin(${receiver})", "requires": "std::boxed::Box", "description": "Put the expression into a pinned `Box`", "scope": "expr" }, "Ok": { "postfix": "ok", "body": "Ok(${receiver})", "description": "Wrap the expression in a `Result::Ok`", "scope": "expr" }, "Err": { "postfix": "err", "body": "Err(${receiver})", "description": "Wrap the expression in a `Result::Err`", "scope": "expr" }, "Some": { "postfix": "some", "body": "Some(${receiver})", "description": "Wrap the expression in an `Option::Some`", "scope": "expr" } } }, "termSearch": { "enable": false } }, "files": { "excludeDirs": [], "watcher": "client" }, "highlightRelated": { "breakPoints": { "enable": true }, "closureCaptures": { "enable": true }, "exitPoints": { "enable": true }, "references": { "enable": true }, "yieldPoints": { "enable": true } }, "hover": { "actions": { "debug": { "enable": true }, "enable": true, "gotoTypeDef": { "enable": true }, "implementations": { "enable": true }, "references": { "enable": false }, "run": { "enable": true } }, "documentation": { "enable": true, "keywords": { "enable": true } }, "links": { "enable": true }, "memoryLayout": { "alignment": "hexadecimal", "enable": true, "niches": false, "offset": "hexadecimal", "size": "both" }, "show": { "structFields": null, "traitAssocItems": null } }, "imports": { "granularity": { "enforce": false, "group": "crate" }, "group": { "enable": true }, "merge": { "glob": true }, "preferNoStd": false, "preferPrelude": false, "prefix": "plain" }, "inlayHints": { "bindingModeHints": { "enable": false }, "chainingHints": { "enable": true }, "closingBraceHints": { "enable": true, "minLines": 25 }, "closureCaptureHints": { "enable": false }, "closureReturnTypeHints": { "enable": "never" }, "closureStyle": "impl_fn", "discriminantHints": { "enable": "never" }, "expressionAdjustmentHints": { "enable": "never", "hideOutsideUnsafe": false, "mode": "prefix" }, "implicitDrops": { "enable": false }, "lifetimeElisionHints": { "enable": "never", "useParameterNames": false }, "maxLength": 25, "parameterHints": { "enable": true }, "rangeExclusiveHints": { "enable": false }, "reborrowHints": { "enable": "never" }, "renderColons": true, "typeHints": { "enable": true, "hideClosureInitialization": false, "hideNamedConstructor": false } }, "interpret": { "tests": false }, "joinLines": { "joinAssignments": true, "joinElseIf": true, "removeTrailingComma": true, "unwrapTrivialBlock": true }, "lens": { "debug": { "enable": true }, "enable": true, "forceCustomCommands": true, "implementations": { "enable": true }, "location": "above_name", "references": { "adt": { "enable": false }, "enumVariant": { "enable": false }, "method": { "enable": false }, "trait": { "enable": false } }, "run": { "enable": true } }, "linkedProjects": [], "lru": { "capacity": null, "query": { "capacities": {} } }, "notifications": { "cargoTomlNotFound": true, "unindexedProject": false }, "numThreads": null, "procMacro": { "attributes": { "enable": true }, "enable": true, "ignored": {}, "server": null }, "references": { "excludeImports": false, "excludeTests": false }, "rustc": { "source": null }, "rustfmt": { "extraArgs": [], "overrideCommand": null, "rangeFormatting": { "enable": false } }, "semanticHighlighting": { "doc": { "comment": { "inject": { "enable": true } } }, "nonStandardTokens": true, "operator": { "enable": true, "specialization": { "enable": false } }, "punctuation": { "enable": false, "separate": { "macro": { "bang": false } }, "specialization": { "enable": false } }, "strings": { "enable": true } }, "signatureInfo": { "detail": "full", "documentation": { "enable": true } }, "workspace": { "symbol": { "search": { "kind": "only_types", "limit": 128, "scope": "workspace" } } } } ] [Trace - 03:07:49] Sending request 'textDocument/semanticTokens/range - (3)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:49] Received response 'textDocument/semanticTokens/range - (3)' in 1ms. Result: { "resultId": "1", "data": [] } [Trace - 03:07:49] Sending request 'textDocument/documentSymbol - (4)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:49] Received response 'textDocument/documentSymbol - (4)' in 2ms. Result: [ { "name": "X", "kind": 23, "tags": [], "deprecated": false, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 4, "character": 1 } }, "selectionRange": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } }, "children": [ { "name": "items", "detail": "Vec", "kind": 8, "tags": [], "deprecated": false, "range": { "start": { "line": 2, "character": 4 }, "end": { "line": 2, "character": 21 } }, "selectionRange": { "start": { "line": 2, "character": 4 }, "end": { "line": 2, "character": 9 } } }, { "name": "other", "detail": "Option", "kind": 8, "tags": [], "deprecated": false, "range": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 24 } }, "selectionRange": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 9 } } } ] }, { "name": "impl X", "kind": 19, "tags": [], "deprecated": false, "range": { "start": { "line": 6, "character": 0 }, "end": { "line": 19, "character": 1 } }, "selectionRange": { "start": { "line": 7, "character": 5 }, "end": { "line": 7, "character": 6 } }, "children": [ { "name": "tester", "detail": "fn(&mut self) -> usize", "kind": 6, "tags": [], "deprecated": false, "range": { "start": { "line": 8, "character": 4 }, "end": { "line": 18, "character": 5 } }, "selectionRange": { "start": { "line": 8, "character": 7 }, "end": { "line": 8, "character": 13 } } } ] }, { "name": "main", "detail": "fn()", "kind": 12, "tags": [], "deprecated": false, "range": { "start": { "line": 21, "character": 0 }, "end": { "line": 23, "character": 1 } }, "selectionRange": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } } } ] [Trace - 03:07:49] Sending notification '$/setTrace'. Params: { "value": "verbose" } [Trace - 03:07:49] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": "" } [Trace - 03:07:49] Received request 'workspace/configuration - (3)'. Params: { "items": [ { "section": "rust-analyzer" } ] } [Trace - 03:07:49] Sending response 'workspace/configuration - (3)'. Processing request took 1ms Result: [ { "cargoRunner": null, "runnables": { "extraEnv": null, "problemMatcher": [ "$rustc" ], "command": null, "extraArgs": [] }, "statusBar": { "clickAction": "openLogs" }, "server": { "path": null, "extraEnv": null }, "trace": { "server": "verbose", "extension": true }, "debug": { "engine": "auto", "sourceFileMap": { "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" }, "openDebugPane": false, "engineSettings": {} }, "restartServerOnConfigChange": false, "typing": { "continueCommentsOnNewline": true, "autoClosingAngleBrackets": { "enable": false } }, "diagnostics": { "previewRustcOutput": false, "useRustcErrorCode": false, "disabled": [], "enable": true, "experimental": { "enable": false }, "remapPrefix": {}, "styleLints": { "enable": false }, "warningsAsHint": [], "warningsAsInfo": [] }, "discoverProjectRunner": null, "showUnlinkedFileNotification": true, "showRequestFailedErrorNotification": true, "showDependenciesExplorer": true, "testExplorer": false, "assist": { "emitMustUse": false, "expressionFillDefault": "todo" }, "cachePriming": { "enable": true, "numThreads": 0 }, "cargo": { "autoreload": true, "buildScripts": { "enable": true, "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "overrideCommand": null, "rebuildOnSave": true, "useRustcWrapper": true }, "cfgs": {}, "extraArgs": [], "extraEnv": {}, "features": [], "noDefaultFeatures": false, "sysroot": "discover", "sysrootQueryMetadata": false, "sysrootSrc": null, "target": null, "targetDir": null, "unsetTest": [ "core" ] }, "checkOnSave": true, "check": { "allTargets": true, "command": "check", "extraArgs": [], "extraEnv": {}, "features": null, "ignore": [], "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "noDefaultFeatures": null, "overrideCommand": null, "targets": null, "workspace": true }, "completion": { "autoimport": { "enable": true }, "autoself": { "enable": true }, "callable": { "snippets": "fill_arguments" }, "fullFunctionSignatures": { "enable": false }, "limit": null, "postfix": { "enable": true }, "privateEditable": { "enable": false }, "snippets": { "custom": { "Arc::new": { "postfix": "arc", "body": "Arc::new(${receiver})", "requires": "std::sync::Arc", "description": "Put the expression into an `Arc`", "scope": "expr" }, "Rc::new": { "postfix": "rc", "body": "Rc::new(${receiver})", "requires": "std::rc::Rc", "description": "Put the expression into an `Rc`", "scope": "expr" }, "Box::pin": { "postfix": "pinbox", "body": "Box::pin(${receiver})", "requires": "std::boxed::Box", "description": "Put the expression into a pinned `Box`", "scope": "expr" }, "Ok": { "postfix": "ok", "body": "Ok(${receiver})", "description": "Wrap the expression in a `Result::Ok`", "scope": "expr" }, "Err": { "postfix": "err", "body": "Err(${receiver})", "description": "Wrap the expression in a `Result::Err`", "scope": "expr" }, "Some": { "postfix": "some", "body": "Some(${receiver})", "description": "Wrap the expression in an `Option::Some`", "scope": "expr" } } }, "termSearch": { "enable": false } }, "files": { "excludeDirs": [], "watcher": "client" }, "highlightRelated": { "breakPoints": { "enable": true }, "closureCaptures": { "enable": true }, "exitPoints": { "enable": true }, "references": { "enable": true }, "yieldPoints": { "enable": true } }, "hover": { "actions": { "debug": { "enable": true }, "enable": true, "gotoTypeDef": { "enable": true }, "implementations": { "enable": true }, "references": { "enable": false }, "run": { "enable": true } }, "documentation": { "enable": true, "keywords": { "enable": true } }, "links": { "enable": true }, "memoryLayout": { "alignment": "hexadecimal", "enable": true, "niches": false, "offset": "hexadecimal", "size": "both" }, "show": { "structFields": null, "traitAssocItems": null } }, "imports": { "granularity": { "enforce": false, "group": "crate" }, "group": { "enable": true }, "merge": { "glob": true }, "preferNoStd": false, "preferPrelude": false, "prefix": "plain" }, "inlayHints": { "bindingModeHints": { "enable": false }, "chainingHints": { "enable": true }, "closingBraceHints": { "enable": true, "minLines": 25 }, "closureCaptureHints": { "enable": false }, "closureReturnTypeHints": { "enable": "never" }, "closureStyle": "impl_fn", "discriminantHints": { "enable": "never" }, "expressionAdjustmentHints": { "enable": "never", "hideOutsideUnsafe": false, "mode": "prefix" }, "implicitDrops": { "enable": false }, "lifetimeElisionHints": { "enable": "never", "useParameterNames": false }, "maxLength": 25, "parameterHints": { "enable": true }, "rangeExclusiveHints": { "enable": false }, "reborrowHints": { "enable": "never" }, "renderColons": true, "typeHints": { "enable": true, "hideClosureInitialization": false, "hideNamedConstructor": false } }, "interpret": { "tests": false }, "joinLines": { "joinAssignments": true, "joinElseIf": true, "removeTrailingComma": true, "unwrapTrivialBlock": true }, "lens": { "debug": { "enable": true }, "enable": true, "forceCustomCommands": true, "implementations": { "enable": true }, "location": "above_name", "references": { "adt": { "enable": false }, "enumVariant": { "enable": false }, "method": { "enable": false }, "trait": { "enable": false } }, "run": { "enable": true } }, "linkedProjects": [], "lru": { "capacity": null, "query": { "capacities": {} } }, "notifications": { "cargoTomlNotFound": true, "unindexedProject": false }, "numThreads": null, "procMacro": { "attributes": { "enable": true }, "enable": true, "ignored": {}, "server": null }, "references": { "excludeImports": false, "excludeTests": false }, "rustc": { "source": null }, "rustfmt": { "extraArgs": [], "overrideCommand": null, "rangeFormatting": { "enable": false } }, "semanticHighlighting": { "doc": { "comment": { "inject": { "enable": true } } }, "nonStandardTokens": true, "operator": { "enable": true, "specialization": { "enable": false } }, "punctuation": { "enable": false, "separate": { "macro": { "bang": false } }, "specialization": { "enable": false } }, "strings": { "enable": true } }, "signatureInfo": { "detail": "full", "documentation": { "enable": true } }, "workspace": { "symbol": { "search": { "kind": "only_types", "limit": 128, "scope": "workspace" } } } } ] [Trace - 03:07:49] Sending request 'textDocument/codeLens - (5)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:49] Received response 'textDocument/codeLens - (5)' in 0ms. Result: [] [Trace - 03:07:49] Sending request 'textDocument/codeAction - (6)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:49] Sending notification '$/cancelRequest'. Params: { "id": 6 } [Trace - 03:07:49] Sending request 'textDocument/codeAction - (7)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:49] Received response 'textDocument/codeAction - (6)' in 3ms. Result: [ { "title": "Unwrap block", "kind": "refactor.rewrite", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "unwrap_block:RefactorRewrite:0" } }, { "title": "Extract into variable", "kind": "refactor.extract", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "extract_variable:RefactorExtract:1" } } ] [Trace - 03:07:49] Received response 'textDocument/codeAction - (7)' in 1ms. Result: [ { "title": "Unwrap block", "kind": "refactor.rewrite", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "unwrap_block:RefactorRewrite:0" } }, { "title": "Extract into variable", "kind": "refactor.extract", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "extract_variable:RefactorExtract:1" } } ] [Trace - 03:07:49] Sending notification '$/setTrace'. Params: { "value": "verbose" } [Trace - 03:07:49] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": "" } [Trace - 03:07:49] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "report", "cancellable": false, "message": "metadata" } } [Trace - 03:07:49] Received request 'workspace/configuration - (4)'. Params: { "items": [ { "section": "rust-analyzer" } ] } [Trace - 03:07:49] Sending response 'workspace/configuration - (4)'. Processing request took 0ms Result: [ { "cargoRunner": null, "runnables": { "extraEnv": null, "problemMatcher": [ "$rustc" ], "command": null, "extraArgs": [] }, "statusBar": { "clickAction": "openLogs" }, "server": { "path": null, "extraEnv": null }, "trace": { "server": "verbose", "extension": true }, "debug": { "engine": "auto", "sourceFileMap": { "/rustc/": "${env:USERPROFILE}/.rustup/toolchains//lib/rustlib/src/rust" }, "openDebugPane": false, "engineSettings": {} }, "restartServerOnConfigChange": false, "typing": { "continueCommentsOnNewline": true, "autoClosingAngleBrackets": { "enable": false } }, "diagnostics": { "previewRustcOutput": false, "useRustcErrorCode": false, "disabled": [], "enable": true, "experimental": { "enable": false }, "remapPrefix": {}, "styleLints": { "enable": false }, "warningsAsHint": [], "warningsAsInfo": [] }, "discoverProjectRunner": null, "showUnlinkedFileNotification": true, "showRequestFailedErrorNotification": true, "showDependenciesExplorer": true, "testExplorer": false, "assist": { "emitMustUse": false, "expressionFillDefault": "todo" }, "cachePriming": { "enable": true, "numThreads": 0 }, "cargo": { "autoreload": true, "buildScripts": { "enable": true, "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "overrideCommand": null, "rebuildOnSave": true, "useRustcWrapper": true }, "cfgs": {}, "extraArgs": [], "extraEnv": {}, "features": [], "noDefaultFeatures": false, "sysroot": "discover", "sysrootQueryMetadata": false, "sysrootSrc": null, "target": null, "targetDir": null, "unsetTest": [ "core" ] }, "checkOnSave": true, "check": { "allTargets": true, "command": "check", "extraArgs": [], "extraEnv": {}, "features": null, "ignore": [], "invocationLocation": "workspace", "invocationStrategy": "per_workspace", "noDefaultFeatures": null, "overrideCommand": null, "targets": null, "workspace": true }, "completion": { "autoimport": { "enable": true }, "autoself": { "enable": true }, "callable": { "snippets": "fill_arguments" }, "fullFunctionSignatures": { "enable": false }, "limit": null, "postfix": { "enable": true }, "privateEditable": { "enable": false }, "snippets": { "custom": { "Arc::new": { "postfix": "arc", "body": "Arc::new(${receiver})", "requires": "std::sync::Arc", "description": "Put the expression into an `Arc`", "scope": "expr" }, "Rc::new": { "postfix": "rc", "body": "Rc::new(${receiver})", "requires": "std::rc::Rc", "description": "Put the expression into an `Rc`", "scope": "expr" }, "Box::pin": { "postfix": "pinbox", "body": "Box::pin(${receiver})", "requires": "std::boxed::Box", "description": "Put the expression into a pinned `Box`", "scope": "expr" }, "Ok": { "postfix": "ok", "body": "Ok(${receiver})", "description": "Wrap the expression in a `Result::Ok`", "scope": "expr" }, "Err": { "postfix": "err", "body": "Err(${receiver})", "description": "Wrap the expression in a `Result::Err`", "scope": "expr" }, "Some": { "postfix": "some", "body": "Some(${receiver})", "description": "Wrap the expression in an `Option::Some`", "scope": "expr" } } }, "termSearch": { "enable": false } }, "files": { "excludeDirs": [], "watcher": "client" }, "highlightRelated": { "breakPoints": { "enable": true }, "closureCaptures": { "enable": true }, "exitPoints": { "enable": true }, "references": { "enable": true }, "yieldPoints": { "enable": true } }, "hover": { "actions": { "debug": { "enable": true }, "enable": true, "gotoTypeDef": { "enable": true }, "implementations": { "enable": true }, "references": { "enable": false }, "run": { "enable": true } }, "documentation": { "enable": true, "keywords": { "enable": true } }, "links": { "enable": true }, "memoryLayout": { "alignment": "hexadecimal", "enable": true, "niches": false, "offset": "hexadecimal", "size": "both" }, "show": { "structFields": null, "traitAssocItems": null } }, "imports": { "granularity": { "enforce": false, "group": "crate" }, "group": { "enable": true }, "merge": { "glob": true }, "preferNoStd": false, "preferPrelude": false, "prefix": "plain" }, "inlayHints": { "bindingModeHints": { "enable": false }, "chainingHints": { "enable": true }, "closingBraceHints": { "enable": true, "minLines": 25 }, "closureCaptureHints": { "enable": false }, "closureReturnTypeHints": { "enable": "never" }, "closureStyle": "impl_fn", "discriminantHints": { "enable": "never" }, "expressionAdjustmentHints": { "enable": "never", "hideOutsideUnsafe": false, "mode": "prefix" }, "implicitDrops": { "enable": false }, "lifetimeElisionHints": { "enable": "never", "useParameterNames": false }, "maxLength": 25, "parameterHints": { "enable": true }, "rangeExclusiveHints": { "enable": false }, "reborrowHints": { "enable": "never" }, "renderColons": true, "typeHints": { "enable": true, "hideClosureInitialization": false, "hideNamedConstructor": false } }, "interpret": { "tests": false }, "joinLines": { "joinAssignments": true, "joinElseIf": true, "removeTrailingComma": true, "unwrapTrivialBlock": true }, "lens": { "debug": { "enable": true }, "enable": true, "forceCustomCommands": true, "implementations": { "enable": true }, "location": "above_name", "references": { "adt": { "enable": false }, "enumVariant": { "enable": false }, "method": { "enable": false }, "trait": { "enable": false } }, "run": { "enable": true } }, "linkedProjects": [], "lru": { "capacity": null, "query": { "capacities": {} } }, "notifications": { "cargoTomlNotFound": true, "unindexedProject": false }, "numThreads": null, "procMacro": { "attributes": { "enable": true }, "enable": true, "ignored": {}, "server": null }, "references": { "excludeImports": false, "excludeTests": false }, "rustc": { "source": null }, "rustfmt": { "extraArgs": [], "overrideCommand": null, "rangeFormatting": { "enable": false } }, "semanticHighlighting": { "doc": { "comment": { "inject": { "enable": true } } }, "nonStandardTokens": true, "operator": { "enable": true, "specialization": { "enable": false } }, "punctuation": { "enable": false, "separate": { "macro": { "bang": false } }, "specialization": { "enable": false } }, "strings": { "enable": true } }, "signatureInfo": { "detail": "full", "documentation": { "enable": true } }, "workspace": { "symbol": { "search": { "kind": "only_types", "limit": 128, "scope": "workspace" } } } } ] [Trace - 03:07:49] Sending request 'textDocument/semanticTokens/full - (8)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:49] Received response 'textDocument/semanticTokens/full - (8)' in 0ms. Result: { "resultId": "2", "data": [] } [Trace - 03:07:50] Received request 'client/registerCapability - (5)'. Params: { "registrations": [ { "id": "workspace/didChangeWatchedFiles", "method": "workspace/didChangeWatchedFiles", "registerOptions": { "watchers": [ { "globPattern": { "baseUri": "file:///Users/chrisjsewell/Documents/rust_test", "pattern": "**/*.rs" } }, { "globPattern": { "baseUri": "file:///Users/chrisjsewell/Documents/rust_test", "pattern": "**/Cargo.{lock,toml}" } } ] } } ] } [Trace - 03:07:50] Sending response 'client/registerCapability - (5)'. Processing request took 2ms No result returned. [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (6)'. Params: { "token": "rustAnalyzer/Building CrateGraph" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (6)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "begin", "title": "Building CrateGraph", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "end" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "end" } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (7)'. Params: { "token": "rustAnalyzer/Roots Scanned" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (7)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "begin", "title": "Roots Scanned", "cancellable": false, "message": "0/2", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc", "percentage": 0 } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (8)'. Params: { "token": "rustAnalyzer/Fetching" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (8)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/test", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/backtrace", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "report", "cancellable": false, "message": "metadata" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "end" } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (9)'. Params: { "token": "rustAnalyzer/Building build-artifacts" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (9)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building build-artifacts", "value": { "kind": "begin", "title": "Building build-artifacts", "cancellable": false } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (10)'. Params: { "token": "rustAnalyzer/Loading proc-macros" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (10)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Loading proc-macros", "value": { "kind": "begin", "title": "Loading proc-macros", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Loading proc-macros", "value": { "kind": "end" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-core", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/proc_macro", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-alloc", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/portable-simd", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_unwind", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/unwind", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rtstartup", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/stdarch", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-std", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/profiler_builtins", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_abort", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/sysroot", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: ", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: ", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: .vscode", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: src", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "end", "message": "2/2" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building build-artifacts", "value": { "kind": "report", "cancellable": false, "message": "building proc-macros: rust_test" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building build-artifacts", "value": { "kind": "report", "cancellable": false, "message": "building proc-macros: rust_test" } } [Trace - 03:07:50] Received request 'client/registerCapability - (11)'. Params: { "registrations": [ { "id": "workspace/didChangeWatchedFiles", "method": "workspace/didChangeWatchedFiles", "registerOptions": { "watchers": [ { "globPattern": { "baseUri": "file:///Users/chrisjsewell/Documents/rust_test", "pattern": "**/*.rs" } }, { "globPattern": { "baseUri": "file:///Users/chrisjsewell/Documents/rust_test", "pattern": "**/Cargo.{lock,toml}" } } ] } } ] } [Trace - 03:07:50] Sending response 'client/registerCapability - (11)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (12)'. Params: { "token": "rustAnalyzer/Building CrateGraph" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (12)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "begin", "title": "Building CrateGraph", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "end" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building build-artifacts", "value": { "kind": "end" } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (13)'. Params: { "token": "rustAnalyzer/Fetching" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (13)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "begin", "title": "Fetching", "cancellable": false } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (14)'. Params: { "token": "rustAnalyzer/Roots Scanned" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (14)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "begin", "title": "Roots Scanned", "cancellable": false, "message": "0/2", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/test", "percentage": 0 } } [Trace - 03:07:50] Sending request 'textDocument/foldingRange - (9)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:50] Received response 'textDocument/foldingRange - (9)' in 1ms. Result: [ { "startLine": 1, "endLine": 4 }, { "startLine": 7, "endLine": 19 }, { "startLine": 8, "endLine": 18 }, { "startLine": 9, "endLine": 11 }, { "startLine": 12, "endLine": 16 }, { "startLine": 13, "endLine": 15 }, { "startLine": 21, "endLine": 23 } ] [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/backtrace", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-core", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/proc_macro", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-alloc", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/portable-simd", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_unwind", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/unwind", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rtstartup", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/stdarch", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-std", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/profiler_builtins", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/panic_abort", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "0/2: /Users/chrisjsewell/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/sysroot", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: ", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: ", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: .vscode", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "report", "cancellable": false, "message": "1/2: src", "percentage": 50 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Roots Scanned", "value": { "kind": "end", "message": "2/2" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "report", "cancellable": false, "message": "metadata" } } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (15)'. Params: { "token": "rustAnalyzer/Building CrateGraph" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (15)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "begin", "title": "Building CrateGraph", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Building CrateGraph", "value": { "kind": "end" } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Fetching", "value": { "kind": "end" } } [Trace - 03:07:50] Received request 'workspace/semanticTokens/refresh - (16)'. [Trace - 03:07:50] Sending response 'workspace/semanticTokens/refresh - (16)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'workspace/codeLens/refresh - (17)'. [Trace - 03:07:50] Sending response 'workspace/codeLens/refresh - (17)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'workspace/inlayHint/refresh - (18)'. [Trace - 03:07:50] Sending response 'workspace/inlayHint/refresh - (18)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (19)'. Params: { "token": "rustAnalyzer/Loading proc-macros" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (19)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Loading proc-macros", "value": { "kind": "begin", "title": "Loading proc-macros", "cancellable": false } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Loading proc-macros", "value": { "kind": "end" } } [Trace - 03:07:50] Received request 'workspace/semanticTokens/refresh - (20)'. [Trace - 03:07:50] Sending response 'workspace/semanticTokens/refresh - (20)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'workspace/codeLens/refresh - (21)'. [Trace - 03:07:50] Sending response 'workspace/codeLens/refresh - (21)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received request 'workspace/inlayHint/refresh - (22)'. [Trace - 03:07:50] Sending response 'workspace/inlayHint/refresh - (22)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification 'experimental/serverStatus'. Params: { "health": "ok", "quiescent": true, "message": null } [Trace - 03:07:50] Received request 'window/workDoneProgress/create - (23)'. Params: { "token": "rustAnalyzer/Indexing" } [Trace - 03:07:50] Sending response 'window/workDoneProgress/create - (23)'. Processing request took 0ms No result returned. [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "begin", "title": "Indexing", "cancellable": false, "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "message": "0/5 (core + 1 more)", "percentage": 0 } } [Trace - 03:07:50] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "message": "1/5 (core)", "percentage": 20 } } [Trace - 03:07:50] Sending request 'textDocument/codeAction - (10)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:50] Sending request 'textDocument/semanticTokens/full/delta - (11)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "previousResultId": "2" } [Trace - 03:07:50] Sending request 'textDocument/inlayHint - (12)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:51] Received request 'window/workDoneProgress/create - (24)'. Params: { "token": "rust-analyzer/flycheck/0" } [Trace - 03:07:51] Sending response 'window/workDoneProgress/create - (24)'. Processing request took 0ms No result returned. [Trace - 03:07:51] Received notification '$/progress'. Params: { "token": "rust-analyzer/flycheck/0", "value": { "kind": "begin", "title": "cargo check", "cancellable": true } } [Trace - 03:07:51] Received notification '$/progress'. Params: { "token": "rust-analyzer/flycheck/0", "value": { "kind": "end" } } [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 10 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (13)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Received response 'textDocument/codeAction - (10)' in 645ms. Request failed: canceled by client (-32800). [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 13 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (14)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Received response 'textDocument/codeAction - (13)' in 222ms. Request failed: canceled by client (-32800). [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 14 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (15)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Sending request 'textDocument/documentSymbol - (16)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:51] Received response 'textDocument/codeAction - (14)' in 146ms. Request failed: canceled by client (-32800). [Trace - 03:07:51] Received response 'textDocument/documentSymbol - (16)' in 0ms. Result: [ { "name": "X", "kind": 23, "tags": [], "deprecated": false, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 4, "character": 1 } }, "selectionRange": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } }, "children": [ { "name": "items", "detail": "Vec", "kind": 8, "tags": [], "deprecated": false, "range": { "start": { "line": 2, "character": 4 }, "end": { "line": 2, "character": 21 } }, "selectionRange": { "start": { "line": 2, "character": 4 }, "end": { "line": 2, "character": 9 } } }, { "name": "other", "detail": "Option", "kind": 8, "tags": [], "deprecated": false, "range": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 24 } }, "selectionRange": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 9 } } } ] }, { "name": "impl X", "kind": 19, "tags": [], "deprecated": false, "range": { "start": { "line": 6, "character": 0 }, "end": { "line": 19, "character": 1 } }, "selectionRange": { "start": { "line": 7, "character": 5 }, "end": { "line": 7, "character": 6 } }, "children": [ { "name": "tester", "detail": "fn(&mut self) -> usize", "kind": 6, "tags": [], "deprecated": false, "range": { "start": { "line": 8, "character": 4 }, "end": { "line": 18, "character": 5 } }, "selectionRange": { "start": { "line": 8, "character": 7 }, "end": { "line": 8, "character": 13 } } } ] }, { "name": "main", "detail": "fn()", "kind": 12, "tags": [], "deprecated": false, "range": { "start": { "line": 21, "character": 0 }, "end": { "line": 23, "character": 1 } }, "selectionRange": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } } } ] [Trace - 03:07:51] Sending request 'textDocument/codeLens - (17)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" } } [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 15 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (18)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 18 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (19)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Sending notification '$/cancelRequest'. Params: { "id": 19 } [Trace - 03:07:51] Sending request 'textDocument/codeAction - (20)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } } [Trace - 03:07:51] Received response 'textDocument/codeAction - (15)' in 131ms. Request failed: canceled by client (-32800). [Trace - 03:07:51] Received response 'textDocument/codeAction - (18)' in 31ms. Request failed: canceled by client (-32800). [Trace - 03:07:51] Received response 'textDocument/codeAction - (19)' in 31ms. Request failed: canceled by client (-32800). [Trace - 03:07:52] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "message": "2/5 (alloc)", "percentage": 40 } } [Trace - 03:07:52] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "percentage": 60 } } [Trace - 03:07:52] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "message": "3/5 (std)", "percentage": 60 } } [Trace - 03:07:53] Received response 'textDocument/codeLens - (17)' in 1332ms. Result: [ { "range": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } }, "data": { "version": 1, "kind": { "impls": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "position": { "line": 1, "character": 7 } } } } }, { "range": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } }, "command": { "title": "▶︎ Run ", "command": "rust-analyzer.runSingle", "arguments": [ { "label": "run rust_test", "location": { "targetUri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "targetRange": { "start": { "line": 21, "character": 0 }, "end": { "line": 23, "character": 1 } }, "targetSelectionRange": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } } }, "kind": "cargo", "args": { "overrideCargo": null, "workspaceRoot": "/Users/chrisjsewell/Documents/rust_test", "cargoArgs": [ "run", "--package", "rust_test", "--bin", "rust_test" ], "cargoExtraArgs": [], "executableArgs": [] } } ] } }, { "range": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } }, "command": { "title": "Debug", "command": "rust-analyzer.debugSingle", "arguments": [ { "label": "run rust_test", "location": { "targetUri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "targetRange": { "start": { "line": 21, "character": 0 }, "end": { "line": 23, "character": 1 } }, "targetSelectionRange": { "start": { "line": 21, "character": 3 }, "end": { "line": 21, "character": 7 } } }, "kind": "cargo", "args": { "overrideCargo": null, "workspaceRoot": "/Users/chrisjsewell/Documents/rust_test", "cargoArgs": [ "run", "--package", "rust_test", "--bin", "rust_test" ], "cargoExtraArgs": [], "executableArgs": [] } } ] } } ] [Trace - 03:07:53] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "message": "4/5 (proc_macro)", "percentage": 80 } } [Trace - 03:07:53] Sending notification '$/cancelRequest'. Params: { "id": 12 } [Trace - 03:07:53] Sending request 'textDocument/inlayHint - (21)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:53] Received response 'textDocument/inlayHint - (12)' in 2118ms. Request failed: canceled by client (-32800). [Trace - 03:07:53] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "report", "cancellable": false, "percentage": 100 } } [Trace - 03:07:53] Received notification '$/progress'. Params: { "token": "rustAnalyzer/Indexing", "value": { "kind": "end" } } [Trace - 03:07:53] Sending request 'codeLens/resolve - (22)'. Params: { "range": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } }, "data": { "version": 1, "kind": { "impls": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "position": { "line": 1, "character": 7 } } } } } [Trace - 03:07:53] Received response 'codeLens/resolve - (22)' in 0ms. Result: { "range": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } }, "command": { "title": "1 implementation", "command": "rust-analyzer.showReferences", "arguments": [ "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", { "line": 1, "character": 7 }, [ { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "range": { "start": { "line": 6, "character": 0 }, "end": { "line": 19, "character": 1 } } } ] ] } } [Trace - 03:07:53] Received response 'textDocument/inlayHint - (21)' in 362ms. Result: [] [Trace - 03:07:53] Received notification 'textDocument/publishDiagnostics'. Params: { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "diagnostics": [], "version": 1 } [Trace - 03:07:53] Received response 'textDocument/codeAction - (20)' in 1693ms. Result: [ { "title": "Unwrap block", "kind": "refactor.rewrite", "data": { "codeActionParams": { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 12, "character": 39 }, "end": { "line": 12, "character": 39 } }, "context": { "diagnostics": [], "triggerKind": 2 } }, "id": "unwrap_block:RefactorRewrite:0" } } ] [Trace - 03:07:53] Received response 'textDocument/semanticTokens/full/delta - (11)' in 2512ms. Result: { "resultId": "3", "data": [ 0, 0, 1, 21, 64, 0, 1, 1, 21, 64, 0, 1, 5, 26, 16448, 0, 6, 9, 39, 64, 0, 10, 1, 21, 64, 1, 0, 6, 6, 0, 0, 7, 1, 15, 4, 1, 4, 5, 13, 4, 0, 7, 3, 15, 16400, 0, 4, 5, 27, 0, 1, 4, 5, 13, 4, 0, 7, 6, 53, 0, 0, 7, 5, 27, 0, 3, 0, 1, 21, 64, 0, 1, 1, 21, 64, 0, 1, 5, 26, 16448, 0, 6, 9, 39, 64, 0, 10, 1, 21, 64, 1, 0, 4, 6, 0, 0, 5, 1, 15, 0, 1, 4, 2, 6, 0, 0, 3, 6, 8, 655396, 0, 8, 3, 6, 0, 0, 4, 4, 47, 655364, 0, 6, 2, 11, 0, 0, 3, 5, 27, 0, 1, 8, 2, 6, 1024, 0, 3, 4, 47, 655360, 0, 4, 1, 11, 0, 0, 1, 5, 13, 0, 0, 5, 1, 11, 0, 0, 1, 11, 53, 0, 0, 13, 1, 12, 4, 0, 3, 1, 12, 0, 0, 2, 1, 11, 0, 0, 2, 1, 10, 0, 1, 12, 6, 6, 1024, 0, 7, 1, 10, 0, 2, 8, 3, 6, 1024, 0, 4, 4, 17, 4, 0, 5, 2, 6, 1024, 0, 3, 4, 47, 655360, 0, 4, 1, 11, 0, 0, 1, 5, 53, 0, 0, 5, 1, 11, 0, 0, 1, 4, 53, 0, 1, 12, 2, 6, 1024, 0, 3, 4, 53, 0, 0, 5, 1, 11, 0, 0, 2, 1, 11, 0, 0, 1, 1, 10, 0, 1, 16, 6, 6, 1024, 0, 7, 1, 10, 0, 3, 8, 1, 10, 0, 4, 0, 2, 6, 0, 0, 3, 4, 4, 4, 1, 4, 7, 7, 16400, 0, 7, 1, 7, 0, 0, 2, 15, 14, 32768 ] } [Trace - 03:07:54] Sending request 'textDocument/hover - (23)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "position": { "line": 8, "character": 20 } } [Trace - 03:07:54] Received response 'textDocument/hover - (23)' in 6ms. Result: { "contents": { "kind": "markdown", "value": "\n```rust\n// size = 8, align = 0x8\nself: &mut X\n```" }, "range": { "start": { "line": 8, "character": 19 }, "end": { "line": 8, "character": 23 } }, "actions": [ { "title": "Go to ", "commands": [ { "title": "X", "command": "rust-analyzer.gotoLocation", "arguments": [ { "targetUri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs", "targetRange": { "start": { "line": 0, "character": 0 }, "end": { "line": 4, "character": 1 } }, "targetSelectionRange": { "start": { "line": 1, "character": 7 }, "end": { "line": 1, "character": 8 } } } ], "tooltip": "rust_test::X" } ] } ] } [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (24)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (24)' in 3ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (25)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (25)' in 1ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (26)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (26)' in 1ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (27)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (27)' in 1ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (28)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (28)' in 0ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (29)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (29)' in 1ms. Result: [] [Trace - 03:07:55] Sending request 'textDocument/inlayHint - (30)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:55] Received response 'textDocument/inlayHint - (30)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (31)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (31)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (32)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (32)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (33)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (33)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (34)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (34)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (35)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (35)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (36)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (36)' in 1ms. Result: [] [Trace - 03:07:56] Sending request 'textDocument/inlayHint - (37)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:56] Received response 'textDocument/inlayHint - (37)' in 1ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (38)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (38)' in 2ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (39)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (39)' in 0ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (40)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (40)' in 0ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (41)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (41)' in 1ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (42)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (42)' in 1ms. Result: [] [Trace - 03:07:57] Sending request 'textDocument/inlayHint - (43)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 24, "character": 0 } } } [Trace - 03:07:57] Received response 'textDocument/inlayHint - (43)' in 1ms. Result: [] [Trace - 03:08:01] Sending request 'textDocument/hover - (44)'. Params: { "textDocument": { "uri": "file:///Users/chrisjsewell/Documents/rust_test/src/main.rs" }, "position": { "line": 12, "character": 14 } } [Trace - 03:08:01] Received response 'textDocument/hover - (44)' in 1ms. No result returned. ```
chrisjsewell commented 5 months ago

This is also affecting basic Option de-structuring, like:

fn main() {
    match Some(1) {
        Some(i) if i > 1 => println!("1"),
        _ => println!("2")
    }
}

image

Veykril commented 5 months ago

This still works fine for me, sounds like your sysroot is suddenly failing (that is your standard library doesn't seem to resolve). Are there are any warnings or errors in the logs? Does the status bar item say anything? (the trace isn't useful here, its mainly for LSP layer debugging)

chrisjsewell commented 5 months ago

Heya, thanks for the reply, I fixed it! I ran rustup update and now it works:

stable-aarch64-apple-darwin updated - rustc 1.77.1 (7cf61ebde 2024-03-27) (from rustc 1.76.0 (07dca489a 2024-02-04))

perhaps there was an update that broke support for 1.76.0?

anyhow I will close this