Skip to content

Syntaxes from tree_sitter_languages seem to be ignored #9

@deathaxe

Description

@deathaxe

It appears languages from tree_sitter_languages are not taken into account, when using functions from this plugin.

While everything works as expected for python it does not on other languages such as markdown.

Steps to reproduce

  1. Install TreeSitter
  2. Restart SublimeText
  3. Open a markdown file
  4. open console
  5. run from sublime_tree_sitter import get_tree_dict
  6. run get_tree_dict(view.buffer_id())

Expected behavior

A json string representing markdown content being printed to console.

Actual behavior

Nothing is printed to console.

Additional Info

Adding "markdown" to the list of "installed_languages" fixes this issue and e.g. get_tree_dict(view.buffer_id()) returns content as expected.

Maybe "installed_languages": [] should only contain languages, manually installed, while those from tree_sitter_languages package should be always available without being listed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions