{"record":{"id":"49d5148b14bf5bcd","repo":"lapce/lapce","slug":"can-t-find-proxy-directory","errorCode":null,"errorMessage":"can't find proxy directory","messagePattern":"can't find proxy directory","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lapce-app/src/proxy/remote.rs","lineNumber":337,"sourceCode":"    };\n\n    if !script_install.success() {\n        let cmd = match platform {\n            HostPlatform::Windows => remote\n                .command_builder()\n                .args([\"dir\", remote_proxy_file])\n                .status()?,\n            _ => remote\n                .command_builder()\n                .arg(\"test\")\n                .arg(\"-e\")\n                .arg(remote_proxy_file)\n                .status()?,\n        };\n        if !cmd.success() {\n            let proxy_filename = format!(\"lapce-proxy-{platform}-{architecture}\");\n            let local_proxy_file = Directory::proxy_directory()\n                .ok_or_else(|| anyhow!(\"can't find proxy directory\"))?\n                .join(&proxy_filename);\n            // remove possibly outdated proxy\n            if local_proxy_file.exists() {\n                // TODO: add proper proxy version detection and update proxy\n                // when needed\n                std::fs::remove_file(&local_proxy_file)?;\n            }\n            let proxy_version = match meta::RELEASE {\n                meta::ReleaseType::Stable => meta::VERSION,\n                _ => \"nightly\",\n            };\n            let url = format!(\n                \"https://github.com/lapce/lapce/releases/download/{proxy_version}/{proxy_filename}.gz\"\n            );\n            debug!(\"proxy download URI: {url}\");\n            let mut resp = lapce_proxy::get_url(url, None).expect(\"request failed\");\n            if resp.status().is_success() {\n                let mut out = std::fs::File::create(&local_proxy_file)","sourceCodeStart":319,"sourceCodeEnd":355,"githubUrl":"https://github.com/lapce/lapce/blob/c9e4c33948033f10f003991a037d949a708eedf8/lapce-app/src/proxy/remote.rs#L319-L355","documentation":"Error \"can't find proxy directory\" thrown in lapce/lapce.","triggerScenarios":"Thrown at lapce-app/src/proxy/remote.rs:337 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9e4c33948033f10f003991a037d949a708eedf8","analyzedAt":"2026-08-16T11:46:13.210Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}