emacs-tree-sitter/tree-sitter-langs

[Question] Add tree-sitter-scheme

FernandoBasso opened this issue · 1 comments

I cloned tree-sitter-langs and added tree-sitter-scheme git submodule.

I then run scripts/compile scheme, and get what seems successful result. Still, I don't see the scheme grammar inside bin/ or inside the .tar.tz archive that gets created.

I have this in init.el:

(use-package tree-sitter
  :ensure t)

(add-to-list 'load-path "~/work/src/projects/others/tree-sitter-langs")

(require 'tree-sitter-langs)

(tree-sitter-require 'scheme)

(add-to-list 'tree-sitter-major-mode-language-alist '(scheme-mode . scheme))

Emacs errors out with:

error: Cannot find shared library for language: scheme

What could I be missing?

meain commented

As of now, the project depends on an older version of tree-sitter (0.19.3). You will need that specific (probably a few earlier ones might also work) version to have it work properly unfortunately.