New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUN: Support build tool window #3926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have three copy of quite big CargoBuildOutputParser
class
Maybe move common code into base class to reduce code duplication?
clion/src/main/kotlin/org/rust/clion/profiler/RsProfilerRunner.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildContext.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildContext.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildContext.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildManager.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildListener.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildManagerTest.kt
Outdated
Show resolved
Hide resolved
clion/src/main/kotlin/org/rust/clion/profiler/legacy/RsProfilerRunnerLegacy.kt
Show resolved
Hide resolved
@lancelote Thanks! Should be fixed now. |
src/test/kotlin/org/rustSlowTests/cargo/runconfig/buildtool/CargoBuildManagerTest.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildListener.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildListener.kt
Show resolved
Hide resolved
src/main/kotlin/org/rust/cargo/runconfig/buildtool/CargoBuildListener.kt
Outdated
Show resolved
Hide resolved
bors try |
tryBuild failed |
bors r+ |
3926: RUN: Support build tool window r=ortem a=mchernyavsky Closes #2638. Fixes #3777. Fixes #3843. ![toolwindow](https://user-images.githubusercontent.com/6079006/60440179-efefd380-9c1c-11e9-9ea3-4c319552694c.gif) Overview: - TODO rust-lang/cargo#6994 Co-authored-by: mchernyavsky <mikhail.chernyavsky@jetbrains.com> Co-authored-by: Mikhail Chernyavsky <mikhail.chernyavsky@jetbrains.com>
Why? |
@Undin With |
@mchernyavsky After disabling |
4257: RUN: Fix Build action when build toolwindow is disabled r=mchernyavsky a=mchernyavsky Fixes #3926 (comment). bors r+ Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
4257: RUN: Fix Build action when build toolwindow is disabled r=mchernyavsky a=mchernyavsky Fixes #3926 (comment). bors r+ Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
4217: TYPE: New interactive inlay type hints support r=vlad20012 a=ortem ![type_hints](https://user-images.githubusercontent.com/4854600/62386077-7458ad80-b55f-11e9-8956-375670ffd342.gif) 4245: RUN: Add "Restart" and "Stop" buttons to Cargo build tool window r=ortem a=mchernyavsky Relates to #3926. <img width="315" alt="restart-stop" src="https://user-images.githubusercontent.com/6079006/62889650-77ffe780-bd4a-11e9-9b30-8e3ca5869f2c.png"> 4323: INT: Handle trailing comma in ChopListIntention r=mchernyavsky a=ortem Co-authored-by: ortem <ortem00@gmail.com> Co-authored-by: Mikhail Chernyavsky <mikhail.chernyavsky@jetbrains.com>
4245: RUN: Add "Restart" and "Stop" buttons to Cargo build tool window r=ortem a=mchernyavsky Relates to #3926. <img width="315" alt="restart-stop" src="https://user-images.githubusercontent.com/6079006/62889650-77ffe780-bd4a-11e9-9b30-8e3ca5869f2c.png"> 4323: INT: Handle trailing comma in ChopListIntention r=mchernyavsky a=ortem 4346: Fix switch to AST when resolving nested macro with the new engine r=vlad20012 a=vlad20012 The bug was introduced in #3750 (not released yet) Co-authored-by: Mikhail Chernyavsky <mikhail.chernyavsky@jetbrains.com> Co-authored-by: ortem <ortem00@gmail.com> Co-authored-by: vlad20012 <beskvlad@gmail.com>
4217: TYPE: New interactive inlay type hints support r=vlad20012 a=ortem ![type_hints](https://user-images.githubusercontent.com/4854600/62386077-7458ad80-b55f-11e9-8956-375670ffd342.gif) 4245: RUN: Add "Restart" and "Stop" buttons to Cargo build tool window r=ortem a=mchernyavsky Relates to #3926. <img width="315" alt="restart-stop" src="https://user-images.githubusercontent.com/6079006/62889650-77ffe780-bd4a-11e9-9b30-8e3ca5869f2c.png"> Co-authored-by: ortem <ortem00@gmail.com> Co-authored-by: Mikhail Chernyavsky <mikhail.chernyavsky@jetbrains.com>
4397: RUN: Build Action builds only selected configuration if possible r=Undin a=mchernyavsky Currently, Build Action <img width="343" alt="изображение" src="https://user-images.githubusercontent.com/6079006/64972715-70d07a00-d8b2-11e9-8e12-4faf1cb44f2a.png"> runs ``` cargo build --all --all-targets ``` even if we have selected configuration. With this PR Build Action builds only the selected configuration. E.g. for ``` cargo run --package main --bin main ``` it will run ``` cargo build --package main --bin main ``` NB: It works only if the [experimental build tool window](#3926) is enabled. NB2: CLion has its own implementation of Build Action and already knows how to build only the selected configuration. Fixes #3530, fixes #4511. Co-authored-by: Mikhail Chernyavsky <mikhail.chernyavsky@jetbrains.com>
4254: RUN: Support for ANSI colors in build tool window r=Undin a=mchernyavsky Relates to #3926. Fixes #4288. Fixes #4898. Note: `CARGO_TERM_PROGRESS_WHEN` and `CARGO_TERM_PROGRESS_WIDTH` variables were stabilized in the 1.48.0 release. ![image](https://user-images.githubusercontent.com/6079006/65837422-ebac8280-e2ff-11e9-8ef2-5f263f933888.png) Co-authored-by: mchernyavsky <chernyavsky.mikhail@gmail.com> Co-authored-by: Arseniy Pendryak <a.pendryak@yandex.ru>
Closes #2638. Fixes #3777. Fixes #3843. Fixes #3530.
Overview:
build
,run
andtest
commands (except fortest --doc
).run
andtest
without--doc
)⌘+F9
) is available only for configurations that can be built:build
,run
andtest
without--doc
)In other IDEs (e.g. IDEA, PyCharm), this button builds all projects, so is always available.
org.rust.cargo.build.tool.window
variable tofalse
(seeActions > Registry...
).-vv
option (very verbose output). For example, we can understand "Fresh" compilation status:--quite
option. It should also ignore-q
option (RUN: Ignore-q
option if using new build toolwindow #4253).--message-format=json
option. Currently JSON messages from compiler don't contain color information. See corresponding issue in Cargo issue tracker - Don't remove color information from rendered string in--message-format=json
output rust-lang/cargo#6994. A partial fix - RUN: Support for ANSI colors in build tool window #4254.