-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular Reference Compilation Error when Compiling with Xcode 6.0 Beta Tools #323
Comments
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.
The text was updated successfully, but these errors were encountered: