nikivdev/code · error

flow.toml not found in repo root.

Error message

flow.toml not found in repo root.

What it means

Error "flow.toml not found in repo root." thrown in nikivdev/code.

Source

Thrown at src/changes.rs:391

                if !key.is_empty() {
                    out.push(key);
                }
            }
            continue;
        }

        out.push(trimmed.to_string());
    }

    out.sort();
    out.dedup();
    Ok(out)
}

fn load_project_name(repo_root: &Path) -> Result<String> {
    let flow_path = repo_root.join("flow.toml");
    if !flow_path.exists() {
        bail!("flow.toml not found in repo root.");
    }
    trace(&format!(
        "reading project name from {}",
        flow_path.display()
    ));
    let cfg = config::load(&flow_path)
        .with_context(|| format!("failed to read {}", flow_path.display()))?;
    let name = cfg
        .project_name
        .ok_or_else(|| anyhow::anyhow!("flow.toml missing 'name'"))?;
    Ok(name)
}

fn ensure_project_match(repo_root: &Path, bundle: &DiffBundle) -> Result<()> {
    let bundle_name = bundle.project_name.as_deref().ok_or_else(|| {
        anyhow::anyhow!("Diff bundle missing project name. Recreate with the latest flow.")
    })?;
    let current_name = load_project_name(repo_root)?;

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/changes.rs:391 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/2e49ed6dc5493de4. Report an issue: GitHub.