Skip to content
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

[SR-8720] [SwiftPM] Add --hide-build option to swift run #4758

Open
ddunbar opened this issue Sep 9, 2018 · 5 comments
Open

[SR-8720] [SwiftPM] Add --hide-build option to swift run #4758

ddunbar opened this issue Sep 9, 2018 · 5 comments
Labels
bug good first issue

Comments

@ddunbar
Copy link
Member

@ddunbar ddunbar commented Sep 9, 2018

Previous ID SR-8720
Radar rdar://problem/44307764
Original Reporter @ddunbar
Type Bug
Additional Detail from JIRA
Votes 4
Component/s Package Manager
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: 242446b5c75fedfcae01e6e6a2ccfd96

Issue Description:

It is often useful to use `swift run` as a replacement for building and running.

However, for many tools which when run produce output, it is cumbersome to see the build log output. Perhaps `swift run` should have an option like `--hide-build` which hides all of the build output unless it fails. This makes it very convenient to use `swift run` as a replacement in more situations.

@aciidb0mb3r
Copy link
Member

@aciidb0mb3r aciidb0mb3r commented Sep 9, 2018

A possible workaround for now could be redirecting stderr to /dev/null

@ddunbar
Copy link
Member Author

@ddunbar ddunbar commented Sep 9, 2018

That works sometimes, but any sufficiently complicated UNIX-y tool will also want to use stderr

@aciidb0mb3r
Copy link
Member

@aciidb0mb3r aciidb0mb3r commented Sep 9, 2018

Sure, just suggesting as that is already implemented (i.e. the build output is written to stderr when using swift run)

@aciidb0mb3r
Copy link
Member

@aciidb0mb3r aciidb0mb3r commented Sep 10, 2018

@swift-ci create

@belkadan
Copy link

@belkadan belkadan commented Jul 27, 2019

Resetting assignees for all Starter Bugs that haven't been touched since 2018.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
@tomerd tomerd added good first issue and removed Package Manager labels May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue
Projects
None yet
Development

No branches or pull requests

4 participants