{"record":{"id":"bb10c64f94a5d7cd","repo":"zed-industries/zed","slug":"no-settings-file-found-expected-to-find-it-in-one","errorCode":null,"errorMessage":"No settings file found, expected to find it in one of the following paths:\n{}","messagePattern":"No settings file found, expected to find it in one of the following paths:\n(.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/settings/src/vscode_import.rs","lineNumber":58,"sourceCode":"            source,\n            path: Path::new(\"/example-path/Code/User/settings.json\").into(),\n            content: serde_json_lenient::from_str(content)?,\n        })\n    }\n\n    pub async fn load_user_settings(source: VsCodeSettingsSource, fs: Arc<dyn Fs>) -> Result<Self> {\n        let candidate_paths = match source {\n            VsCodeSettingsSource::VsCode => vscode_settings_file_paths(),\n            VsCodeSettingsSource::Cursor => cursor_settings_file_paths(),\n        };\n        let mut path = None;\n        for candidate_path in candidate_paths.iter() {\n            if fs.is_file(candidate_path).await {\n                path = Some(candidate_path.clone());\n            }\n        }\n        let Some(path) = path else {\n            return Err(anyhow!(\n                \"No settings file found, expected to find it in one of the following paths:\\n{}\",\n                candidate_paths\n                    .into_iter()\n                    .map(|path| path.to_string_lossy().into_owned())\n                    .collect::<Vec<_>>()\n                    .join(\"\\n\")\n            ));\n        };\n        let content = fs.load(&path).await.with_context(|| {\n            format!(\n                \"Error loading {} settings file from {}\",\n                source,\n                path.display()\n            )\n        })?;\n        let content = serde_json_lenient::from_str(&content).with_context(|| {\n            format!(\n                \"Error parsing {} settings file from {}\",","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/settings/src/vscode_import.rs#L40-L76","documentation":"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.","triggerScenarios":"Thrown at crates/settings/src/vscode_import.rs:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure VS Code is installed and has user settings","Manually point the import at the settings file"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}