Closed mikelikespie closed 4 months ago
I've submitted FB13830058 to Apple for this bug.
I've isolated the bug down to the following minimally reproducible sample:
indirect enum BlockNode: Hashable {
case paragraph(content: [InlineNode])
}
indirect enum InlineNode: Hashable {
case emphasis(children: [InlineNode])
}
Oddly, the following snippet builds:
indirect enum BlockNode {
case paragraph(content: InlineNode)
}
indirect enum InlineNode {
case foo
case emphasis(children: [InlineNode])
}
but this one does not:
indirect enum BlockNode {
case paragraph(content: [InlineNode])
}
indirect enum InlineNode {
case foo
case emphasis(children: [InlineNode])
}
More fun: the following builds
indirect enum BlockNode {
case paragraph([InlineNode])
}
indirect enum InlineNode {
case foo
case emphasis(children: [InlineNode])
}
but this does not:
indirect enum BlockNode {
case paragraph(content: [InlineNode])
}
indirect enum InlineNode {
case foo
case emphasis(children: [InlineNode])
}
I've got a buildable patch working locally. Will send up a PR.
How can I reference that PR in Xcode? Or does it need to be approved
Something like this in your Package.swift should work until this PR is merged:
dependencies: [
.package(url: "https://github.com/electricsidecar-dev/swift-markdown-ui.git", .branch("recursive")),
],
@electricsidecar-dev Thank you for investigating this and coming up with a workaround. I hope they fix it in the upcoming Xcode 16 betas. Great work! ❤️
please push update
Fixed by #328
Thank you for contributing to MarkdownUI!
Before you submit an issue, please complete the report with all the relevant details for your bug and go through every item in the checklist.
Describe the bug A clear and concise description of what the bug is.
Checklist
main
branch of this package.Steps to reproduce
swift build
with new CLI tools selectedExpected behavior It to build
Screenshots
Version information
Additional context Add any other context about the problem here.