Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(gradle): launch linked builds with the platform's path separators

l0ng-ai1aec21b43ff3
diff --git a/crates/ide-build/src/gradle.rs b/crates/ide-build/src/gradle.rs
index 2cd996b1a..b4bc88396 100644
--- a/crates/ide-build/src/gradle.rs
+++ b/crates/ide-build/src/gradle.rs
@@ -440,7 +440,9 @@ pub fn load(root: &Path) -> Option<GradleModel> {
/// Loads exactly this build, without searching its child folders.
pub fn load_build(root: &Path, dir: &Path) -> Option<GradleModel> {
- let dir = root.join(dir);
+ // Linked builds are saved with forward slashes; rebuild the path so the launcher
+ // and module folders use the platform's separators.
+ let dir: PathBuf = root.join(dir).components().collect();
if !SETTINGS_FILES.iter().chain(BUILD_FILES).any(|name| dir.join(name).is_file()) {
return None;
}