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

Closed
ddunbar opened this issue Sep 9, 2018 · 6 comments
Closed

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

ddunbar opened this issue Sep 9, 2018 · 6 comments
Labels
bug good first issue Good for newcomers Edit

Comments

@ddunbar
Copy link
Member

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.

@aciidgh
Copy link
Member

aciidgh commented Sep 9, 2018

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

@ddunbar
Copy link
Member Author

ddunbar commented Sep 9, 2018

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

@aciidgh
Copy link
Member

aciidgh 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)

@aciidgh
Copy link
Member

aciidgh commented Sep 10, 2018

@swift-ci create

@belkadan
Copy link

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 Good for newcomers Edit and removed Package Manager labels May 14, 2022
@MaxDesiatov
Copy link
Member

Closing as resolved by #5988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good for newcomers Edit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants