Open TeamPuzel opened 4 months ago
I tried removing the generics using [any Vertex]
for the mesh and then it compiles, but even ignoring the cost this is a buffer I have to pass to OpenGL so it's not a usable workaround
Ok after trying various things it is probably actually unrelated to the MainActor
annotation (although it seemed to work without it once?), rather a combination of the generic type with a nested error enum used together with typed throws. Removing the typed throw, moving the enum outside or removing generics all avoid this crash.
Description
A completely normal class is crashing with
@MainActor
applied.Reproduction
Don't know what is causing this exactly but this is the
init
mentioned in the crash messageStack dump
Expected behavior
I was writing a class and the lsp stopped working, I tried building from the command line expecting it to work and it crashed.
Environment
Apple Swift version 6.0-dev (LLVM 3417addab6ff197, Swift d677b7c23fd6355) Target: arm64-apple-macosx14.0
Additional information
No response