Skip to content

Warn about incompatible Markdown grammars#218

Open
dnouri wants to merge 1 commit into
masterfrom
fix/markdown-grammar-compatibility
Open

Warn about incompatible Markdown grammars#218
dnouri wants to merge 1 commit into
masterfrom
fix/markdown-grammar-compatibility

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented May 30, 2026

Summary

Warn when Emacs loads an incompatible Markdown tree-sitter grammar version, instead of reporting that all grammars are installed.

This helps diagnose #216, where an older/system libtree-sitter-markdown can shadow the expected grammar and make md-ts-mode fail during chat rendering.

Checks

  • make check

* pi-coding-agent-grammars.el (pi-coding-agent--markdown-grammar-compatible-p): Add a smoke test for the Markdown grammar nodes required by chat rendering.
(pi-coding-agent--maybe-warn-incompatible-markdown-grammar): Warn once when Emacs loads an incompatible Markdown tree-sitter grammar version.
(pi-coding-agent-install-grammars): Report the incompatible grammar instead of saying that all grammars are installed.
* pi-coding-agent-ui.el (pi-coding-agent--check-dependencies): Run the compatibility warning with the other dependency checks.
* test/pi-coding-agent-ui-test.el: Cover incompatible Markdown grammar detection and the install command warning.
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