Skip to content

[lldb] Only use Swift remark diagnostics for logging #8371

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

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Mar 11, 2024

In handleDiagnostics, early exit from all Swift remarks. Remark diagnostics should not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting EnableModuleLoadingRemarks to true (#7857) there are remarks other than module_loaded that are emitted. These other remarks should be ignored in handleDiagnostics.

rdar://121611925

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test windows

Copy link

@al45tair al45tair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I'm familiar enough to actively approve it, but it looks likely to fix the problem I noticed :-)

@kastiglione kastiglione merged commit b7ab938 into stable/20230725 Mar 11, 2024
@kastiglione kastiglione deleted the dl/lldb-Only-use-Swift-remark-diagnostics-for-logging branch March 11, 2024 19:18
kastiglione added a commit that referenced this pull request Mar 14, 2024
In `handleDiagnostics`, early exit from all Swift remarks. Remark diagnostics should 
not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting `EnableModuleLoadingRemarks` to true 
(#7857) there are remarks other than 
`module_loaded` that are emitted. These other remarks should be ignored in 
`handleDiagnostics`.

rdar://121611925

(cherry-picked from commit b7ab938)
kastiglione added a commit that referenced this pull request Mar 14, 2024
In `handleDiagnostics`, early exit from all Swift remarks. Remark diagnostics should 
not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting `EnableModuleLoadingRemarks` to true 
(#7857) there are remarks other than 
`module_loaded` that are emitted. These other remarks should be ignored in 
`handleDiagnostics`.

rdar://121611925

(cherry-picked from commit b7ab938)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants