Closed
Description
When working in rustc, I often see an error pop up in the corner which says "Request textDocument/inlayHint failed". I am not entirely sure how to reproduce this, or what it even is talking about. The pop up has a "show output" button, and when I press that button I see a log which ends in
[Error - 11:55:04 AM] Request textDocument/inlayHint failed.
Message: Invalid offset
Code: -32603
I think I also saw this in Miri, but I am not entirely sure about that.
rust-analyzer version: rust-analyzer version: 0.3.1221-standalone
rustc version: rustc 1.66.0-nightly (c97d02cdb 2022-10-05)
relevant settings:
user settings
"rust-analyzer.lens.enable": false,
"rust-analyzer.cachePriming.enable": false,
"rust-analyzer.cargo.buildScripts.useRustcWrapper": false,
"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.procMacro.enable": true,
//
"rust-analyzer.diagnostics.disabled": [
"unlinked-file", // I guess for "normal" projects unlinked files are strange, for me they are common
"unresolved-module", // https://github.com/rust-lang/rust-analyzer/issues/9173
"unresolved-extern-crate", // https://github.com/rust-lang/rust-analyzer/issues/12926
"type-mismatch", // https://github.com/rust-lang/rust-analyzer/issues/1109
],
workspace settings
"rust-analyzer.rustc.source": "./Cargo.toml",
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
],
"rust-analyzer.checkOnSave.overrideCommand": [
"./x.py",
"check",
"--json-output",
"library/std",
],
"rust-analyzer.rustfmt.overrideCommand": [
"./build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt",
"--edition=2021"
],
"rust-analyzer.cargo.buildScripts.overrideCommand": ["false"],
"rust-analyzer.cargo.buildScripts.enable": false,
"rust-analyzer.procMacro.enable": false,