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

swift build outputs error messages to stdout #8207

Open
1 task done
puni073 opened this issue Jan 8, 2025 · 0 comments
Open
1 task done

swift build outputs error messages to stdout #8207

puni073 opened this issue Jan 8, 2025 · 0 comments
Labels

Comments

@puni073
Copy link

puni073 commented Jan 8, 2025

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Though swiftc outputs error messages to stderr, swift build outputs them to stdout.

Expected behavior

error messages are output to stderr

Actual behavior

error messages are output to stdout

Steps to reproduce

echo 'noprint("Hello, world!")' > Sources/main.swift
swift build

Swift Package Manager version/commit hash

6.0.3

Swift & OS version (output of swift --version ; uname -a)

swift --version

Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu

cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
@puni073 puni073 added the bug label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant