-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3.
-->After updating my nightly toolchain rust-analyser fails to find my custom target json. Cargo can still build the code however.
rust-analyzer version: 0.3.2711-standalone (5e3e9c4 2025-12-07)
rustc version: rustc 1.94.0-nightly (f52090008 2025-12-10)
editor or extension: VSCode
relevant settings:
#Config.toml
[env]
RUST_TARGET_PATH = { value = "target-specs", relative = true }
[build]
target = ["x86_64-unknown-trinium-kernel.json"]
[release]
overflow-check = true
codegen-units = 1
lto = true
opt-level = "3"
[debug]
overflow-check = true
codegen-units = 128
lto = true
opt-level = "3"
[unstable]
build-std-features = ["compiler-builtins-mem"]
build-std = ["core", "compiler_builtins", "alloc"]{
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": 64,
"target-c-int-width": 32,
"max-atomic-width": 64,
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,-sse2,+soft-float",
"rustc-abi": "x86-softfloat",
"dynamic-linking": false,
"relocation-model": "pie",
"tls-model": "local-exec",
"code-model": "kernel",
"exe-suffix": ".elf",
"has-rpath": false,
"no-default-libraries": true,
"position-independent-executables": true,
"pre-link-args": {
"ld.lld": [ "--script=link.ld" ]
}
}error:
2025-12-12T10:45:35.8334203+01:00 WARN `cargo metadata` failed and returning succeeded result with `--no-deps` error=`cargo metadata` exited with an error: error: target path "x86_64-unknown-trinium-kernel.json" is not a valid file
Caused by:
the path was not found
Stack backtrace:
0: std::backtrace_rs::backtrace::win64::trace
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: std::backtrace::Backtrace::create
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:331
3: std::backtrace::Backtrace::capture
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:296
4: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
5: project_model::cargo_workspace::FetchMetadata::exec
6: project_model::sysroot::Sysroot::load_workspace
7: std::sys::backtrace::__rust_begin_short_backtrace
8: hashbrown::raw::RawTable<T,A>::reserve_rehash
9: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
10: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
11: std::sys::thread::windows::impl$0::new::thread_start
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\sys\thread\windows.rs:60
12: BaseThreadInitThunk
13: RtlUserThreadStart
2025-12-12T10:45:36.5777419+01:00 WARN `cargo metadata` failed and returning succeeded result with `--no-deps` error=`cargo metadata` exited with an error: error: target path "x86_64-unknown-trinium-kernel.json" is not a valid file
Caused by:
the path was not found
Stack backtrace:
0: std::backtrace_rs::backtrace::win64::trace
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: std::backtrace::Backtrace::create
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:331
3: std::backtrace::Backtrace::capture
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:296
4: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
5: project_model::cargo_workspace::FetchMetadata::exec
6: project_model::sysroot::Sysroot::load_workspace
7: std::sys::backtrace::__rust_begin_short_backtrace
8: hashbrown::raw::RawTable<T,A>::reserve_rehash
9: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
10: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
11: std::sys::thread::windows::impl$0::new::thread_start
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\sys\thread\windows.rs:60
12: BaseThreadInitThunk
13: RtlUserThreadStart
2025-12-12T10:45:37.0867725+01:00 WARN `cargo metadata` failed and returning succeeded result with `--no-deps` error=`cargo metadata` exited with an error: error: target path "x86_64-unknown-trinium-kernel.json" is not a valid file
Caused by:
the path was not found
Stack backtrace:
0: std::backtrace_rs::backtrace::win64::trace
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: std::backtrace::Backtrace::create
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:331
3: std::backtrace::Backtrace::capture
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\backtrace.rs:296
4: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
5: project_model::cargo_workspace::FetchMetadata::exec
6: project_model::sysroot::Sysroot::load_workspace
7: std::sys::backtrace::__rust_begin_short_backtrace
8: hashbrown::raw::RawTable<T,A>::reserve_rehash
9: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
10: alloc::boxed::impl$29::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\alloc\src\boxed.rs:1985
11: std::sys::thread::windows::impl$0::new::thread_start
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library\std\src\sys\thread\windows.rs:60
12: BaseThreadInitThunk
13: RtlUserThreadStart
2025-12-12T10:45:37.4188182+01:00 ERROR Received compiler message for unknown package: path+file:///C:/Users/juven/.rustup/toolchains/nightly-2025-12-12-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins#[email protected]
registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], path+file:///C:/Users/juven/Documents/Synology%20Drive%20Copy/trinium-kernel#0.1.0, registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected]
2025-12-12T10:45:37.4190911+01:00 ERROR Received compiler message for unknown package: path+file:///C:/Users/juven/.rustup/toolchains/nightly-2025-12-12-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins#[email protected]
registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], path+file:///C:/Users/juven/Documents/Synology%20Drive%20Copy/trinium-kernel#0.1.0, registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected], registry+https://github.com/rust-lang/crates.io-index#[email protected]