Repository navigation
docs: clarify Mermaid layout failure workarounds - #102
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The graph in #38 still parses successfully but fails during Dagre layout on Mermaid 12.3.0. Current main emits the same graph. This documents verified workarounds; it does not fix or close the upstream renderer bug.
Explain the existing
showFullPathoption and its removal of subgraphs. Document Mermaid 12’slayout: elkdirective, its viewer requirements, and why manual generated-graph edits do not persist.Verification
Rendered the exact issue graph and current generator output in a browser. ELK and the full-path workaround succeed; explicit Dagre still fails. Ran
./gradlew preMerge --continue --no-daemonwith task-local JDK toolchains.No plugin behavior or defaults change.
Note
Low Risk
Documentation and an internal reproduction note only; no runtime or Gradle plugin behavior changes.
Overview
Adds a Troubleshooting section to the README for graphs that parse in Mermaid but fail during layout (notably issue #38 with Dagre’s
ordererror and upstream Mermaid #1753). It documents two verified workarounds only—no plugin API or default changes.Users can set
showFullPath.set(true)and reruncreateModuleGraphto drop subgraphs and render with Dagre, or (when the viewer supports Mermaid 12 init) add'layout': 'elk'to the generatedinitblock while keeping subgraphs. The section also notes that manual edits inside the generated graph are overwritten on regeneration and points to a new reproduction write-up.ai-artifacts/oss-pass/module-graph-38.mdrecords browser render matrix results (ELK vs Dagre, full-path output, legacy vs modern directives), reproduction method, and that./gradlew preMergepassed—establishing that current generator output matches the issue graph and that failures are viewer/layout-side.Reviewed by Cursor Bugbot for commit 2f5e6c6. Configure here.