You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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() 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
Environment
swift-snapshot-testing version 1.17.0
Xcode 16.0 beta 3 (16A5202i)
Swift 6.0
OS: 15.0 Beta (24A5279h)
The text was updated successfully, but these errors were encountered:
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 usessourceLocation
instead offilePath
andline
. It looks like we have to construct an instance ofSourceLocation
and provide in addition tofilePath
andline
alsocolumn
andfileID
the latter can be created using fileID() function so it looks like therecordIssue()
function of swift-testing will need some changes to pass in an existing SourceLocation or fileIDTo Reproduce
Open project in Xcode 16 beta 3 and compile.
Expected behavior
Compiles ;-)
Screenshots
Environment
The text was updated successfully, but these errors were encountered: