Skip to content

docs: clarify Mermaid layout failure workarounds - #102

Merged
iurysza merged 2 commits into
mainfrom
docs/oss-pass-mermaid-workaround
Nov 5, 2026
Merged

iurysza merged 2 commits into
mainfrom
docs/oss-pass-mermaid-workaround

Conversation

@iurysza

@iurysza iurysza commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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 showFullPath option and its removal of subgraphs. Document Mermaid 12’s layout: elk directive, 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-daemon with 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 order error and upstream Mermaid #1753). It documents two verified workarounds only—no plugin API or default changes.

Users can set showFullPath.set(true) and rerun createModuleGraph to drop subgraphs and render with Dagre, or (when the viewer supports Mermaid 12 init) add 'layout': 'elk' to the generated init block 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.md records browser render matrix results (ELK vs Dagre, full-path output, legacy vs modern directives), reproduction method, and that ./gradlew preMerge passed—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.

@iurysza
iurysza merged commit 7ed9651 into main Nov 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant