Craft Anything: understand how any software works, and craft your own.
Rust
Count Antigravity's second folder in the Windows search path test (#770)
FuryNocturnTV (Tare Fernandez)0fc381c20676
diff --git a/crates/platform/src/which.rs b/crates/platform/src/which.rsindex b9b13ec2..d5322f46 100644--- a/crates/platform/src/which.rs+++ b/crates/platform/src/which.rs@@ -401,10 +401,12 @@ mod tests {let path = OsString::from(r"C:\Windows;C:\Users\u\.local\bin");let dirs: Vec<PathBuf> = std::env::split_paths(&with_usual_dirs(Some(path), Some(home.clone()), None).unwrap()).collect();assert_eq!(dirs[..3], [PathBuf::from(r"C:\Windows"), home.join(r".local\bin"), home.join(r"AppData\Roaming\npm")]);- // (Plus npm's prefix where the environment sets one.)+ // PATH's two less `.local\bin`, which is a usual one too; Antigravity's two folders (plus+ // npm's prefix where the environment sets one).let npm = usize::from(npm_global_bin(&home).is_some());- assert_eq!(dirs.len(), 2 + USUAL_HOME_DIRS.len() + USUAL_DIRS.len() + npm, "nothing twice");+ assert_eq!(dirs.len(), 1 + USUAL_HOME_DIRS.len() + 2 + USUAL_DIRS.len() + npm, "nothing twice");assert!(dirs.contains(&home.join("AppData").join("Local").join("agy").join("bin")));+ assert!(dirs.contains(&home.join("AppData").join("Local").join("Antigravity")));// Each way Claude Code installs on Windows: native, npm, WinGet (per user and machine-wide).assert!(dirs.contains(&home.join(r"AppData\Local\Microsoft\WinGet\Links")));assert!(dirs.contains(&PathBuf::from(r"C:\Program Files\WinGet\Links")));diff --git a/docs/ROADMAP.md b/docs/ROADMAP.mdindex 2e490c22..648ee02d 100644--- a/docs/ROADMAP.md+++ b/docs/ROADMAP.md@@ -543,6 +543,10 @@ Owner: open · Status: in progress- [ ] macOS: `/Applications/Antigravity.app` ended up as the agent's command (#467); find whatwrites it (no code for it was found; maybe the file picker)- [x] Windows: look in `%LOCALAPPDATA%\agy\bin` too (#62) — claimed: Afloat16, branch bugfix/r2.2-antigravity-search-20261103+- [x] Windows: `usual_windows_dirs_come_after_path` counts Antigravity's second folder (#748+ added it; the test runs only on Windows, which CI doesn't)+- [ ] CI runs the tests on Ubuntu only, so `cfg(windows)` tests (search paths, consoles, Job+ Objects) are checked only on contributors' machines: run them on a Windows runner too- [ ] "Claude Code on <ssh host>" is offered for any SSH host, whether or not it has Claude Code(#62)- [ ] Gemini CLI's sign-in reportedly refuses individuals now (#400): check, and stop recommendingdiff --git a/docs/pitfalls.md b/docs/pitfalls.mdindex b876da21..cd8afa89 100644--- a/docs/pitfalls.md+++ b/docs/pitfalls.md@@ -108,6 +108,12 @@ same temp directory, and game detection walked up and found the game. Give eachFor a refactor that must keep output identical, dump the outputs for every combination before andafter and compare them byte for byte (done for every brief across 162 combinations in R1.1).+**A Windows-only test that no check ran.** #748 added a second Antigravity folder to the search+path; the Windows test that counts those folders wasn't updated, and `main` stayed green because CI+runs on Ubuntu, where `cfg(windows)` tests don't compile. When a change touches a list a+`cfg(windows)` (or macOS) test checks, grep for it and run it on that system, or say in the PR that+you couldn't.+**A step moved to a worker, its test still counting frames.** #720 moved the picture size checkoff the UI thread; a UI test that added pictures, ran three frames and then looked kept passing onfast machines and failed in CI on unrelated PRs. When work moves to a worker, grep the tests that