-
Notifications
You must be signed in to change notification settings - Fork 124
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
Fix JSONMessageStreamingParser error message formatting #398
Fix JSONMessageStreamingParser error message formatting #398
Conversation
@swift-ci please smoke test |
1 similar comment
@swift-ci please smoke test |
Ping. Any blockers for merging this? I'm seeing that Linux/macOS tests are not running. |
@swift-ci please test Linux platform |
@swift-ci please smoke test macOS |
Oh I see, since this is TSC, the "smoke test" trigger doesn't do anything |
@swift-ci please test macOS |
@swift-ci please test macOS platform |
The macOS CI appears to be hitting this unrelated failure:
|
@swift-ci please test macOS platform |
@swift-ci smoke test |
@shahmishal this is another CI job that needs upgrading, here this may be a more urgent need since we dont have the secondary job that uses the just-built-compiler |
@swift-ci please test macOS platform |
It should be safe to merge this |
@DougGregor agreed, but that requires mighty powers (perhaps @Azoy can help with that?) |
💪 |
When json parsing fails in
JSONMessageStreamingParser
, the error thrown was meant to include the message that failed to parse, but it referred to a buffer that had already been cleared by thebuffer.removeAll()
line.This is especially useful to debug
swiftc
crashes when invoked throughswift build
, where the call stack should be in the JSON message that is not printed between the two colons: :
: