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.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
test: Fix Unix-only assumptions in ide-build tests; run all tests in CI
l0ng-aifecdb974ff0a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 60ad34fa8..c48701c76 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -42,7 +42,7 @@ jobs:- if: runner.os == 'Linux'run: cargo fmt --all --check- run: cargo clippy --workspace --all-targets -- -D warnings- - run: cargo nextest run --workspace+ - run: cargo nextest run --workspace --no-fail-fast- name: Bindings are up to dateif: runner.os == 'Linux'run: pnpm gen:bindings && git diff --exit-code src/bindings.tsdiff --git a/crates/ide-build/src/compile/mod.rs b/crates/ide-build/src/compile/mod.rsindex a79466d44..20f12d627 100644--- a/crates/ide-build/src/compile/mod.rs+++ b/crates/ide-build/src/compile/mod.rs@@ -735,6 +735,8 @@ mod tests {assert_eq!(identifier_len("x é_1 c", 2), 3);}+ // Uses Unix absolute paths for the canonical root.+ #[cfg(unix)]#[test]fn resolves_paths_against_cwd_and_canonical_root() {let tmp = tempfile::tempdir().unwrap();diff --git a/crates/ide-build/src/gradle.rs b/crates/ide-build/src/gradle.rsindex be4d8eb53..a0e8661ae 100644--- a/crates/ide-build/src/gradle.rs+++ b/crates/ide-build/src/gradle.rs@@ -406,7 +406,8 @@ Pattern: clean<TaskName>: Cleans the output files of a task.std::fs::write(root.join("settings.gradle.kts"), "rootProject.name = \"demo\"\ninclude(\"app\")").unwrap();std::fs::create_dir_all(root.join("app")).unwrap();std::fs::write(root.join("app/build.gradle.kts"), "plugins { application }").unwrap();- std::fs::write(root.join("gradlew"), "#!/bin/sh").unwrap();+ let wrapper = if cfg!(windows) { "gradlew.bat" } else { "gradlew" };+ std::fs::write(root.join(wrapper), "#!/bin/sh").unwrap();let m = load(root).unwrap();assert_eq!(m.dir, "");let ps: Vec<(&str, &str, &str, Option<&str>)> = m@@ -418,7 +419,7 @@ Pattern: clean<TaskName>: Cleans the output files of a task.assert!(m.projects[0].tasks.iter().any(|t| t.name == "wrapper"));assert!(!m.projects[0].tasks.iter().any(|t| t.name == "build"));assert!(m.projects[1].tasks.iter().any(|t| t.name == "run" && t.group == "application"));- assert!(m.command.ends_with("gradlew"));+ assert!(m.command.ends_with(wrapper));assert_eq!(build_files(root, &m).len(), 2);assert_eq!(m.java_version, None);assert_eq!(diff --git a/crates/ide-build/src/maven.rs b/crates/ide-build/src/maven.rsindex 88eed0e13..2ea123b32 100644--- a/crates/ide-build/src/maven.rs+++ b/crates/ide-build/src/maven.rs@@ -1163,7 +1163,7 @@ mod tests {let profiles: Vec<(&str, bool)> = model.profiles.iter().map(|p| (p.id.as_str(), p.active_by_default)).collect();assert_eq!(profiles, [("dev", true), ("extra", false)]);assert_eq!(parent.profiles, ["dev", "extra"]);- assert!(model.projects.iter().all(|p| p.command == "mvn"));+ assert!(model.projects.iter().all(|p| p.command == if cfg!(windows) { "mvn.cmd" } else { "mvn" }));}#[test]