Swift Playground does not detect errors in some conditions

Thanks for the upgrade, the new project selection screen is nice and I’m happy that the SDK has been updated. But I notices some issues

Since update to 4.6 In an app project, if one of the file contains an error and I select another file. The error is not reported and the upper icon shows a checked mark as if the project contains no compilation errors. Also, if I’m on the file that contains the error the upper icon turn in red (that is ok) but if I press the icon then the error message, the editor does not jump to the error

It was working fine on the previous version (I use it on a iPad pro (A12Z) with the latest iPad OS version)

Answered by Developer Tools Engineer in 823648022

That definitely sounds like a bug to me! When you're in an error state, it would be very helpful if you could use the "Submit Feedback" menu item from the "•••" menu in Swift Playground to capture diagnostics and share them with Apple. If possible, including your app playground would help a lot!

Accepted Answer

That definitely sounds like a bug to me! When you're in an error state, it would be very helpful if you could use the "Submit Feedback" menu item from the "•••" menu in Swift Playground to capture diagnostics and share them with Apple. If possible, including your app playground would help a lot!

Looks like the last version (4.6.2) fixed the issue

Swift Playground does not detect errors in some conditions
 
 
Q