zed-industries/zed · error · anyhow::Error

No settings file found, expected to find it in one of the fo

Error message

No settings file found, expected to find it in one of the following paths:
{}

What it means

Raised in VsCodeSettings::load_user_settings(): every known per-platform candidate path for the VS Code (or Cursor) settings.json was checked and none exists, so there are no settings to import. The candidate paths are listed in the error.

Source

Thrown at crates/settings/src/vscode_import.rs:58

            source,
            path: Path::new("/example-path/Code/User/settings.json").into(),
            content: serde_json_lenient::from_str(content)?,
        })
    }

    pub async fn load_user_settings(source: VsCodeSettingsSource, fs: Arc<dyn Fs>) -> Result<Self> {
        let candidate_paths = match source {
            VsCodeSettingsSource::VsCode => vscode_settings_file_paths(),
            VsCodeSettingsSource::Cursor => cursor_settings_file_paths(),
        };
        let mut path = None;
        for candidate_path in candidate_paths.iter() {
            if fs.is_file(candidate_path).await {
                path = Some(candidate_path.clone());
            }
        }
        let Some(path) = path else {
            return Err(anyhow!(
                "No settings file found, expected to find it in one of the following paths:\n{}",
                candidate_paths
                    .into_iter()
                    .map(|path| path.to_string_lossy().into_owned())
                    .collect::<Vec<_>>()
                    .join("\n")
            ));
        };
        let content = fs.load(&path).await.with_context(|| {
            format!(
                "Error loading {} settings file from {}",
                source,
                path.display()
            )
        })?;
        let content = serde_json_lenient::from_str(&content).with_context(|| {
            format!(
                "Error parsing {} settings file from {}",

View on GitHub (pinned to 5a9b9558db)

Solutions

  1. Ensure VS Code is installed and has user settings
  2. Manually point the import at the settings file
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/settings/src/vscode_import.rs:58 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@5a9b9558db (2026-08-20). Data as JSON: /api/errors/bb10c64f94a5d7cd. Report an issue: GitHub.