You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is: in a crate with the rustc_private feature enabled, I imported the tracing crate by #[macro_use] extern crate tracing; that uses the tracing inside rustc, and wrote a function attributed by #[instrument], and edit it. Then hover on that function, which resulted in the whole function being highlighted with annoying red tildes.
I'm not sure which I should blame, rustc, rust-analyzer, tracing, or proc-macro.
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
2024-11-14T14:43:33.626439515+08:00 ERROR Position LineCol { line: 0, col: 1 } column exceeds line length 0, clamping it
2024-11-14T14:45:16.700340054+08:00 ERROR flycheck 0: File with cargo diagnostic not found in VFS: file not found: /rust/deps/tracing-0.1.37/src/macros.rs
2024-11-14T14:45:16.700425501+08:00 ERROR flycheck 0: File with cargo diagnostic not found in VFS: file not found: /rust/deps/tracing-0.1.37/src/macros.rs
[Error - 2:45:28 PM] Server process exited with code 0.
The problem is: in a crate with the
rustc_private
feature enabled, I imported thetracing
crate by#[macro_use] extern crate tracing;
that uses thetracing
insiderustc
, and wrote a function attributed by#[instrument]
, and edit it. Then hover on that function, which resulted in the whole function being highlighted with annoying red tildes.I'm not sure which I should blame,
rustc
,rust-analyzer
,tracing
, orproc-macro
.rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.4.2183-standalone [/home/whjpji/.vscode/extensions/rust-lang.rust-analyzer-0.4.2183-linux-x64/server/rust-analyzer]
rustc version: (eg. output of
rustc -V
)rustc 1.84.0-nightly (86d69c705 2024-10-22)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)screenshots:
logs:
Rust-Analyzer Language Server
Rust-Analyzer Client
repository link (if public, optional) No
code snippet to reproduce:
Here is a minimal reproducible code setup
EDIT: I've tested with this toolchain specification, and it doesn't work either.
The text was updated successfully, but these errors were encountered: