nikivdev/code · error

Could not find fish-shell source. Please specify --source or

Error message

Could not find fish-shell source. Please specify --source or set FISH_SOURCE_PATH.
Clone from: https://github.com/fish-shell/fish-shell

What it means

Error "Could not find fish-shell source. Please specify --source or set FISH_SOURCE_PATH. Clone from: https://github.com/fish-shell/fish-shell" thrown in nikivdev/code.

Source

Thrown at src/fish_install.rs:41

        if !opts.yes && !confirm_overwrite(&fish_bin)? {
            bail!("Aborted.");
        }
    }

    // Find fish source
    let source = match opts.source {
        Some(path) => {
            if !path.join("Cargo.toml").exists() {
                bail!(
                    "No Cargo.toml found at {}. Is this the fish-shell repo?",
                    path.display()
                );
            }
            path
        }
        None => {
            let Some(path) = fish_trace::fish_source_path() else {
                bail!(
                    "Could not find fish-shell source. Please specify --source or set FISH_SOURCE_PATH.\n\
                     Clone from: https://github.com/fish-shell/fish-shell"
                );
            };
            path
        }
    };

    println!("Building traced fish from {}", source.display());

    // Confirm before building
    if !opts.yes && io::stdin().is_terminal() {
        println!();
        println!("This will:");
        println!("  1. Build fish shell with release optimizations");
        println!("  2. Install to {}", fish_bin.display());
        println!("  3. Enable always-on I/O tracing (near-zero overhead)");
        println!();

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/fish_install.rs:41 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/193895bc64a4f085. Report an issue: GitHub.