Run 31978 got past the ViewBuilder limit but failed at the next Swift 5.7-only diagnostic:
PrintSessionViewModel.swift:113:26: error: main actor-isolated property 'printTask' can not be mutated from the main actor
PrintSessionViewModel.swift:144:26: same
Swift 5.7 treats defer bodies as a separate nonisolated context, so defer { self.printTask = nil } inside the @MainActor task closures is an error. Fix: clear printTask explicitly at each exit point (error return + normal completion in printAllPages; end of closure in printPage). Audited: these were the only defer { self.* = } mutations in the tree.
Fixes #113.
Run 31978 got past the ViewBuilder limit but failed at the next Swift 5.7-only diagnostic:
```
PrintSessionViewModel.swift:113:26: error: main actor-isolated property 'printTask' can not be mutated from the main actor
PrintSessionViewModel.swift:144:26: same
```
Swift 5.7 treats `defer` bodies as a separate nonisolated context, so `defer { self.printTask = nil }` inside the `@MainActor` task closures is an error. Fix: clear `printTask` explicitly at each exit point (error return + normal completion in `printAllPages`; end of closure in `printPage`). Audited: these were the only `defer { self.* = }` mutations in the tree.
Verified locally: `xcodebuild build -scheme ICCery` succeeds.
Swift 5.7 on the macOS 12 CI runner (Xcode 14.2) rejects mutation of
actor-isolated properties inside defer bodies, failing run 31978 at
PrintSessionViewModel.swift:113 and :144. Clear printTask explicitly at
each exit point of the print task closures.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gronod
merged commit 2295bcdbae into milestone/m9-monterey2026-09-12 09:01:39 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #113.
Run 31978 got past the ViewBuilder limit but failed at the next Swift 5.7-only diagnostic:
Swift 5.7 treats
deferbodies as a separate nonisolated context, sodefer { self.printTask = nil }inside the@MainActortask closures is an error. Fix: clearprintTaskexplicitly at each exit point (error return + normal completion inprintAllPages; end of closure inprintPage). Audited: these were the onlydefer { self.* = }mutations in the tree.Verified locally:
xcodebuild build -scheme ICCerysucceeds.