pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.78k stars 580 forks source link

1.17.0 doesn't compile on Xcode 16 Beta 3 #868

Closed cameroncooke closed 3 months ago

cameroncooke commented 3 months ago

Describe the bug The library doesn't compile on Xcode 16 Beta 3 due to a change in the swift-testing Issue.record() function arguments. Specially the error is: Extra arguments at positions #2, #3 in call

The Issue.record() function uses sourceLocation instead of filePath and line. It looks like we have to construct an instance of SourceLocation and provide in addition to filePath and line also column and fileID the latter can be created using [fileID()](https://developer.apple.com/documentation/swift/fileID()) function so it looks like the recordIssue() function of swift-testing will need some changes to pass in an existing SourceLocation or fileID

To Reproduce Open project in Xcode 16 beta 3 and compile.

Expected behavior Compiles ;-)

Screenshots

Screenshot 2024-07-09 at 13 24 24

Environment

cameroncooke commented 3 months ago

🎉