Thomvis / Construct

Dungeons & Dragons DM companion app in SwiftUI
https://www.construct5e.app
MIT License
120 stars 5 forks source link

"Cannot be type checked in reasonable time" compiler error while building for preview. #3

Closed SpacyRicochet closed 3 years ago

SpacyRicochet commented 3 years ago

The following doesn't happen during regular building, but only when trying to preview a SwiftUI build in the Canvas.

Mostly this is just annoying, but it probably can be broken up into tinier pieces to alleviate this.

Xcode 12.2 beta 2

/Users/brunoscheele/Projects/forks/Construct/Construct/Compendium/View/CompendiumItemDetailView.swift:29:16: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
Screen Shot 2020-10-10 at 20 19 30
Thomvis commented 3 years ago

Previews broke very early on in Construct's development, or at least they became very unreliable so I gave up on them. I've heard similar stories from other developers. I expect many changes to be needed to make previews work and therefore it is not a goal for now.