Hi there! I'm sure that I've done something incorrectly.
I followed the instructions in the README.md for adding grammars, and I also noticed these issues: 1, 2
Unfortunately, I seem to be having an issue installing tree sitter grammars. I have installed v0.6.0, and I have this fragment in my _config.yaml:
plugins:
- kramdown/syntax_tree_sitter
kramdown:
syntax_highlighter: tree-sitter
I've cloned some of the tree-sitter-grammars I'm interested in into ~/tree_sitter_parsers:
$ find ~/tree_sitter_parsers/ -name grammar.json
~/tree_sitter_parsers/tree-sitter-bash/src/grammar.json
~/tree_sitter_parsers/tree-sitter-rust/src/grammar.json
~/tree_sitter_parsers/tree-sitter-diff/src/grammar.json
Unfortunately, for all three of these grammars, I get a Language not found exception in the output:
Conversion error: Jekyll::Converters::Markdown encountered an error while converting
'_posts/<post-name>.md':
Error retrieving language configuration for scope 'source.rust': Language not found
~/.gems/gems/kramdown-syntax_tree_sitter-0.6.0/lib/kramdown/converter/syntax_highlighter/tree_sitter.rb:22:in `highlight': Error retrieving language configuration for scope 'source.rust': Language not found (RuntimeError)
Is there anything else that might cause this error? Are there any other debugging tips I might be able to follow to root cause this? Thank you for your help!
Hi there! I'm sure that I've done something incorrectly.
I followed the instructions in the README.md for adding grammars, and I also noticed these issues: 1, 2
Unfortunately, I seem to be having an issue installing tree sitter grammars. I have installed v0.6.0, and I have this fragment in my
_config.yaml:I've cloned some of the tree-sitter-grammars I'm interested in into
~/tree_sitter_parsers:Unfortunately, for all three of these grammars, I get a
Language not foundexception in the output:Is there anything else that might cause this error? Are there any other debugging tips I might be able to follow to root cause this? Thank you for your help!