From f42d10d86cee6747e5fe80a0d8664c18949389b6 Mon Sep 17 00:00:00 2001 From: Shohruh Ismoilov Date: Sun, 8 Nov 2026 15:08:14 +0500 Subject: [PATCH] fix(run): canonicalize complete Windows Tomcat roots (#2096) --- crates/ide-run/src/tomcat.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ide-run/src/tomcat.rs b/crates/ide-run/src/tomcat.rs index 1352976f6..ac0a55b03 100644 --- a/crates/ide-run/src/tomcat.rs +++ b/crates/ide-run/src/tomcat.rs @@ -395,6 +395,10 @@ fn canonical_path(path: &Path) -> IdeResult { let mut resolved = PathBuf::new(); for component in std::path::absolute(path)?.components() { match component { + std::path::Component::Prefix(_) => { + resolved.push(component); + continue; + } std::path::Component::ParentDir => { resolved.pop(); }