Qodana's first run on main (after #1) failed with 47 "Critical" problems, and every one is a false positive. The linter could not see the standard library:
unresolved methods in coverage.rs;
types that "do not implement" Debug or Clone;
format macro errors;
"Cargo project loading" on Cargo.toml.
Cause. The jetbrains/qodana-rust:2026.3-eap image ships rust-src only for its own default toolchain (1.94.0). It installs 1.100.0 from rust-toolchain.toml, whose minimal profile has no rust-src. Checked inside the cached image with rustup component list --installed.
Change.
rust-toolchain.toml lists rust-src; rust-analyzer needs it too.
The Linux CI job installs the same components.
The Windows job picks it up through rustup toolchain install, which adds missing components (seen locally).
Doc 02 records the image the run actually pulled, and doc 17 the first S10 data.
Check. Qodana does not run on pull requests, so I'll dispatch it on this branch to confirm the false positives are gone before merging.
Qodana's first run on `main` (after #1) failed with 47 "Critical" problems, and every one is a false positive. The linter could not see the standard library:
- unresolved methods in `coverage.rs`;
- types that "do not implement" `Debug` or `Clone`;
- format macro errors;
- "Cargo project loading" on `Cargo.toml`.
**Cause.** The `jetbrains/qodana-rust:2026.3-eap` image ships `rust-src` only for its own default toolchain (1.94.0). It installs 1.100.0 from `rust-toolchain.toml`, whose `minimal` profile has no `rust-src`. Checked inside the cached image with `rustup component list --installed`.
**Change.**
- `rust-toolchain.toml` lists `rust-src`; rust-analyzer needs it too.
- The Linux CI job installs the same components.
- The Windows job picks it up through `rustup toolchain install`, which adds missing components (seen locally).
- Doc 02 records the image the run actually pulled, and doc 17 the first S10 data.
**Check.** Qodana does not run on pull requests, so I'll dispatch it on this branch to confirm the false positives are gone before merging.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Qodana's first run on main reported 47 "Critical" problems, all false:
- unresolved methods;
- types that "do not implement" Debug or Clone;
- format macro errors;
- a Cargo project loading error in Cargo.toml.
The cause: the qodana-rust 2026.3-eap image ships rust-src only for its
own default toolchain (1.94.0). It installs 1.100.0 from
rust-toolchain.toml, whose minimal profile has no rust-src, so the
linter had no standard-library source. Checked inside the cached image
with `rustup component list --installed`.
rust-toolchain.toml now lists rust-src, which rust-analyzer needs too,
and the Linux CI job installs the same components. The Windows job
picks it up through `rustup toolchain install`, which adds missing
components.
doc 02 records the image the run pulled (2026.3-eap, QDRST-263.7944).
doc 17 records the first S10 data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit blamed the missing rust-src, and it was wrong about
the main cause. A Qodana run dispatched on that commit still found the
same 47 problems. It passed only because Qodana Cloud had taken the
first run as the baseline ("UNCHANGED: 47, NEW: 0").
The real cause, reproduced in the cached qodana-rust:2026.3-eap image:
`cargo check` fails on every build script (anyhow, serde_core, zmij)
with "linker `cc` not found". The image is a Docker Hardened Image with
no C toolchain. The linter runs build scripts while it opens the
project, so the project half-loaded and std/serde code read as errors.
qodana.yaml gets a bootstrap that installs build-essential, with the
dhi.io pin that free-steam-games-list needed for the same image. With
it, `cargo check --locked` succeeds in the image.
rust-src stays in rust-toolchain.toml, since the linter and
rust-analyzer resolve std from it; its comment now says only that.
doc 14 §6 and doc 17's S10 notes describe the real cause, and the
baseline that hid it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981
changed title from fix: give the pinned toolchain rust-src so Qodana can resolve std to fix: let Qodana build the workspace (C linker bootstrap, rust-src)2026-12-02 14:22:30 +00:00
Correction: the description above has the wrong main cause.
A Qodana run dispatched on cfb46da (the rust-src change alone) still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0").
Real cause. I reproduced it in the cached jetbrains/qodana-rust:2026.3-eap image. cargo check fails on every build script (anyhow, serde_core, zmij) with linker `cc` not found. The image is a Docker Hardened Image (Debian) with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors.
Fix (d18b35c).qodana.yaml gets a bootstrap that installs build-essential, with the dhi.io pin that free-steam-games-list needed for the same image. With that bootstrap, cargo check --locked succeeds in the image. rust-src stays, because the linter and rust-analyzer resolve std from it; its comment now says only that. Doc 14 §6 and doc 17's S10 notes are corrected. I'll dispatch Qodana on this branch again and check that the problem count drops, not just the "new" count.
**Correction: the description above has the wrong main cause.**
A Qodana run dispatched on `cfb46da` (the `rust-src` change alone) still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0").
**Real cause.** I reproduced it in the cached `jetbrains/qodana-rust:2026.3-eap` image. `cargo check` fails on every build script (`anyhow`, `serde_core`, `zmij`) with ``linker `cc` not found``. The image is a Docker Hardened Image (Debian) with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors.
**Fix (`d18b35c`).** `qodana.yaml` gets a `bootstrap` that installs `build-essential`, with the `dhi.io` pin that free-steam-games-list needed for the same image. With that bootstrap, `cargo check --locked` succeeds in the image. `rust-src` stays, because the linter and rust-analyzer resolve std from it; its comment now says only that. Doc 14 §6 and doc 17's S10 notes are corrected. I'll dispatch Qodana on this branch again and check that the problem count drops, not just the "new" count.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
A Qodana run with the C-linker bootstrap (d18b35c) showed two things.
The bootstrap fixes one cause: the sanity check's "Cargo project
loading" error is gone. It leaves the 47 false type errors in xtask
unchanged.
The report preview explains those 47. projectStructure/SDKs.json is
{"roots": []}: the IDE attached no Rust standard library, so u64 and
usize have no traits. Adding rust-src did not change that.
The comments in qodana.yaml and rust-toolchain.toml, and doc 14 §6 and
doc 17's S10 notes, no longer claim more than the runs showed:
- fixed: the linker;
- open: attaching std (next idea: `rustup toolchain install` in the
bootstrap);
- the Qodana Cloud baseline: it is why the later runs pass, and it gets
reset once std is attached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Result of the Qodana run on d18b35c (C-linker bootstrap): part of it is fixed, part is still open.
Fixed: the linker. The sanity check's "Cargo project loading" error is gone (5 sanity problems → 4), so build scripts now run.
Still open: the 47 false type errors in xtask. They are unchanged. The report preview (artifact qodana-report, file projectStructure/SDKs.json) shows {"sdks": [{"roots": []}]}: the IDE attached no Rust standard library at all. That is why u64 "lacks" PartialEq and Default, and usize "lacks" Display. Adding rust-src did not change it.
4e46328 corrects the comments and docs so they claim only this. The S10 notes in doc 17 now give the next idea: run rustup toolchain install in the bootstrap so the toolchain exists before the IDE opens the project. They also note that Qodana Cloud's baseline is what makes the later runs pass, and that it should be reset once std is attached.
Merging this for the real part of the fix, the linker. Qodana is report-only and not a required check; the std attachment is follow-up work under S10.
**Result of the Qodana run on `d18b35c` (C-linker bootstrap):** part of it is fixed, part is still open.
- **Fixed: the linker.** The sanity check's "Cargo project loading" error is gone (5 sanity problems → 4), so build scripts now run.
- **Still open: the 47 false type errors in xtask.** They are unchanged. The report preview (artifact `qodana-report`, file `projectStructure/SDKs.json`) shows `{"sdks": [{"roots": []}]}`: the IDE attached no Rust standard library at all. That is why `u64` "lacks" `PartialEq` and `Default`, and `usize` "lacks" `Display`. Adding `rust-src` did not change it.
`4e46328` corrects the comments and docs so they claim only this. The S10 notes in doc 17 now give the next idea: run `rustup toolchain install` in the bootstrap so the toolchain exists before the IDE opens the project. They also note that Qodana Cloud's baseline is what makes the later runs pass, and that it should be reset once std is attached.
Merging this for the real part of the fix, the linker. Qodana is report-only and not a required check; the std attachment is follow-up work under S10.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981
scheduled this pull request to auto merge when all checks succeed 2026-12-02 14:36:37 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Qodana's first run on
main(after #1) failed with 47 "Critical" problems, and every one is a false positive. The linter could not see the standard library:coverage.rs;DebugorClone;Cargo.toml.Cause. The
jetbrains/qodana-rust:2026.3-eapimage shipsrust-srconly for its own default toolchain (1.94.0). It installs 1.100.0 fromrust-toolchain.toml, whoseminimalprofile has norust-src. Checked inside the cached image withrustup component list --installed.Change.
rust-toolchain.tomllistsrust-src; rust-analyzer needs it too.rustup toolchain install, which adds missing components (seen locally).Check. Qodana does not run on pull requests, so I'll dispatch it on this branch to confirm the false positives are gone before merging.
🤖 Generated with Claude Code
The previous commit blamed the missing rust-src, and it was wrong about the main cause. A Qodana run dispatched on that commit still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0"). The real cause, reproduced in the cached qodana-rust:2026.3-eap image: `cargo check` fails on every build script (anyhow, serde_core, zmij) with "linker `cc` not found". The image is a Docker Hardened Image with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors. qodana.yaml gets a bootstrap that installs build-essential, with the dhi.io pin that free-steam-games-list needed for the same image. With it, `cargo check --locked` succeeds in the image. rust-src stays in rust-toolchain.toml, since the linter and rust-analyzer resolve std from it; its comment now says only that. doc 14 §6 and doc 17's S10 notes describe the real cause, and the baseline that hid it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fix: give the pinned toolchain rust-src so Qodana can resolve stdto fix: let Qodana build the workspace (C linker bootstrap, rust-src)Correction: the description above has the wrong main cause.
A Qodana run dispatched on
cfb46da(therust-srcchange alone) still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0").Real cause. I reproduced it in the cached
jetbrains/qodana-rust:2026.3-eapimage.cargo checkfails on every build script (anyhow,serde_core,zmij) withlinker `cc` not found. The image is a Docker Hardened Image (Debian) with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors.Fix (
d18b35c).qodana.yamlgets abootstrapthat installsbuild-essential, with thedhi.iopin that free-steam-games-list needed for the same image. With that bootstrap,cargo check --lockedsucceeds in the image.rust-srcstays, because the linter and rust-analyzer resolve std from it; its comment now says only that. Doc 14 §6 and doc 17's S10 notes are corrected. I'll dispatch Qodana on this branch again and check that the problem count drops, not just the "new" count.🤖 Generated with Claude Code
Result of the Qodana run on
d18b35c(C-linker bootstrap): part of it is fixed, part is still open.qodana-report, fileprojectStructure/SDKs.json) shows{"sdks": [{"roots": []}]}: the IDE attached no Rust standard library at all. That is whyu64"lacks"PartialEqandDefault, andusize"lacks"Display. Addingrust-srcdid not change it.4e46328corrects the comments and docs so they claim only this. The S10 notes in doc 17 now give the next idea: runrustup toolchain installin the bootstrap so the toolchain exists before the IDE opens the project. They also note that Qodana Cloud's baseline is what makes the later runs pass, and that it should be reset once std is attached.Merging this for the real part of the fix, the linker. Qodana is report-only and not a required check; the std attachment is follow-up work under S10.
🤖 Generated with Claude Code