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
println!("\nBun shim detected for 'coder': {}", bun_coder);
1534
-
println!("Suggestion: remove old Bun global with: bun remove -g @just-every/code");
1535
-
}
1536
-
let bun_code = format!("{}/code", bun_bin);
1537
-
if code_paths.iter().any(|p| p == &bun_code){
1538
-
println!("Bun shim detected for 'code': {}", bun_code);
1539
-
println!("Suggestion: prefer 'coder' or remove Bun shim if it conflicts.");
1540
-
}
1541
-
}
1542
-
1543
-
// Detect Homebrew overshadow of VS Code
1544
-
#[cfg(target_os = "macos")]
1545
-
{
1546
-
let brew_code = code_paths.iter().find(|p| p.contains("/homebrew/bin/code") || p.contains("/Cellar/code/"));
1547
-
let vscode_code = code_paths.iter().find(|p| p.contains("/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"));
1548
-
if brew_code.is_some() && vscode_code.is_some(){
1549
-
println!("\nHomebrew 'code' precedes VS Code CLI in PATH.");
1550
-
println!("Suggestion: uninstall Homebrew formula 'code' (brew uninstall code) or reorder PATH so /usr/local/bin comes before /usr/local/homebrew/bin.");
1551
-
}
1552
-
}
1553
-
1554
-
// npm global hints
1555
-
let npm_root = run_cmd("npm",&["root","-g"]).await;
1556
-
let npm_prefix = run_cmd("npm",&["prefix","-g"]).await;
1557
-
if !npm_root.is_empty(){
1558
-
println!("\nnpm root -g: {}", npm_root);
1559
-
}
1560
-
if !npm_prefix.is_empty(){
1561
-
println!("npm prefix -g: {}", npm_prefix);
1562
-
}
1563
-
1564
-
println!("\nIf versions differ, remove older installs and keep one package manager:");
1565
-
println!(" - Bun: bun remove -g @just-every/code");
0 commit comments