Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

util: Fix zip extraction (#42714)

Vasyl Protsiv74d61aad7fe7
diff --git a/Cargo.lock b/Cargo.lock
index f076630a2e3..c2062b5faef 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1240,15 +1240,15 @@ dependencies = [
[[package]]
name = "async_zip"
-version = "0.0.17"
+version = "0.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "00b9f7252833d5ed4b00aa9604b563529dd5e11de9c23615de2dcdf91eb87b52"
+checksum = "0d8c50d65ce1b0e0cb65a785ff615f78860d7754290647d3b983208daa4f85e6"
dependencies = [
"async-compression",
"crc32fast",
"futures-lite 2.6.1",
"pin-project",
- "thiserror 1.0.69",
+ "thiserror 2.0.17",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index e74647c6320..75ad1e34e07 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -463,7 +463,7 @@ async-tar = "0.5.1"
async-task = "4.7"
async-trait = "0.1"
async-tungstenite = "0.31.0"
-async_zip = { version = "0.0.17", features = ["deflate", "deflate64"] }
+async_zip = { version = "0.0.18", features = ["deflate", "deflate64"] }
aws-config = { version = "1.6.1", features = ["behavior-version-latest"] }
aws-credential-types = { version = "1.2.2", features = [
"hardcoded-credentials",
diff --git a/crates/dap/src/adapters.rs b/crates/dap/src/adapters.rs
index b303a0c0268..96a35bc8ab6 100644
--- a/crates/dap/src/adapters.rs
+++ b/crates/dap/src/adapters.rs
@@ -324,6 +324,7 @@ pub async fn download_adapter_from_github(
extract_zip(&version_path, file)
.await
// we cannot check the status as some adapter include files with names that trigger `Illegal byte sequence`
+ .inspect_err(|e| log::warn!("ZIP extraction error: {}. Ignoring...", e))
.ok();
util::fs::remove_matching(&adapter_path, |entry| {