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

Update reportIssue to call Issue.record #116

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

stephencelis
Copy link
Member

We should be calling to this more stable interface now that the messaging has been updated.

We should be calling to this more stable interface now that the
messaging has been updated.
@stephencelis stephencelis requested a review from mbrandonw August 19, 2024 20:05
@@ -87,7 +67,7 @@ func _recordError(
$s7Testing5IssueV6record__14sourceLocationACs5Error_p_AA7CommentVSgAA06SourceE0VtFZ
""",
in: "Testing",
to: (@convention(thin) (any Error, Any?, SourceLocation) -> Any).self
to: (@convention(thin) (any Error, Any?, SourceLocation) -> Issue).self
Copy link
Member Author

Choose a reason for hiding this comment

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

Returning Any here was causing some Swift crashes related to attempting to destroy an existential box that I suppose doesn't exist. Luckily adding an Issue shim seems to work just fine.

@stephencelis stephencelis merged commit 9829b6a into main Aug 19, 2024
9 checks passed
@stephencelis stephencelis deleted the debug-report-issue-fixes branch August 19, 2024 20:18
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.

2 participants