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

Remarks emitted by command plugins are dropped #8067

Open
1 task done
owenv opened this issue Oct 23, 2024 · 0 comments
Open
1 task done

Remarks emitted by command plugins are dropped #8067

owenv opened this issue Oct 23, 2024 · 0 comments
Labels

Comments

@owenv
Copy link
Contributor

owenv commented Oct 23, 2024

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

Remarks emitted by command plugins using Diagnostics.emit(.remark, "This is a remark") are dropped, whereas the error and note behaviors print to the console

Expected behavior

Remarks should be printed to the console in addition to the other diagnostic types

Actual behavior

No response

Steps to reproduce

  • Create a command plugin from the builtin template
  • add Diagnostics.emit(.remark, "This is a remark") to performCommand
  • try applying the plugin to another package - remarks will not be printed
  • Diagnostics.emit(.warning, "This is a warning") to performCommand
  • The resulting warning is printed

Swift Package Manager version/commit hash

6.0

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

Apple Swift 6.0

@owenv owenv added the bug label Oct 23, 2024
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