From fabe5df5d8f4e8656aea07ce90a8d9ac216c8b2a Mon Sep 17 00:00:00 2001 From: Bruno Medeiros Date: Fri, 16 Dec 2016 17:32:48 +0000 Subject: [PATCH] Changed default for check Build Target --- documentation/ChangeLog.md | 7 +++++-- .../rustdt/ide/core/operations/RustBuildManager.java | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/documentation/ChangeLog.md b/documentation/ChangeLog.md index f6d8e0d8..f500aafe 100644 --- a/documentation/ChangeLog.md +++ b/documentation/ChangeLog.md @@ -3,11 +3,14 @@ ### 0.8.0 * Added support for Cargo's JSON output, with `--message-format json`. (#138) #TODO - * Added syntax coloring support for `?` operator. * Invoking a build operation for a project now immediately cancels the pending build operation for that project, if any. + * Added syntax coloring support for `?` operator. * More lenient with `rustfmt` exit code 3, don't treat those warnings as a failure. (#144) - * Fixed: "Member `def_site_span` is not an Object" error. (#146) * Added: Cargo `clean` Build Target. + * Build target `check` now defaults to `cargo check --message-format=json`. + * Note: `cargo check` only available in nightly ATM. +#TODO recheck on release + * Fixed: "Member `def_site_span` is not an Object" error. (#146) ### 0.7.0 * Added support for Rust 1.12 new error message format. (#130) diff --git a/plugin_ide.core/src/com/github/rustdt/ide/core/operations/RustBuildManager.java b/plugin_ide.core/src/com/github/rustdt/ide/core/operations/RustBuildManager.java index 2bd475b6..45ef0d18 100644 --- a/plugin_ide.core/src/com/github/rustdt/ide/core/operations/RustBuildManager.java +++ b/plugin_ide.core/src/com/github/rustdt/ide/core/operations/RustBuildManager.java @@ -60,7 +60,7 @@ public class RustBuildManager extends BuildManager { public static final RustCrateBuildType BUILD_TYPE_Build = new RustCrateBuildType(BUILD_TYPE_Build_Label, "test --no-run --message-format=json"); public static final RustCrateBuildType BUILD_TYPE_Check = new RustCheckBuildType(BUILD_TYPE_Check_Label, - "rustc --lib -- -Zno-trans --error-format=json"); + "check --message-format=json"); public static final RustCrateBuildType BUILD_TYPE_Clean = new RustCheckBuildType(BUILD_TYPE_Clean_Label, "clean");