Skip to content

Error retrieving language configuration: Language not found #274

Description

@AmateurECE

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions