Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing built grammars #163

Closed
margaretjoanmiller opened this issue Jan 20, 2023 · 6 comments
Closed

Installing built grammars #163

margaretjoanmiller opened this issue Jan 20, 2023 · 6 comments

Comments

@margaretjoanmiller
Copy link

Hi. I'm a little unclear on what to do with the grammars after they're built? Unless I'm reading them wrong the documentation doesn't say how to install them so that tree-sitter CLI and emacs understand it, just how to build them.

@meain
Copy link
Member

meain commented Jan 20, 2023

You don't have to build the grammars yourself, you just have to require this package. If you are using use-package, you should just be able to do

(use-package tree-sitter-langs
  :ensure t
  :after tree-sitter)

@margaretjoanmiller
Copy link
Author

Still getting the error

Warning (treesit): Cannot activate tree-sitter, because language grammar for bash is unavailable (not-found): (libtree-sitter-bash libtree-sitter-bash.so) No such file or directory

I am using emacs-29 branch though.

@meain
Copy link
Member

meain commented Jan 21, 2023

We don't have compatibility with builtin treesit package which is what it looks like you are trying to use. This repo only works with https://github.com/emacs-tree-sitter/elisp-tree-sitter as of now. There is some discussion about supporting builtin treesit which you can follow at #157

@meain
Copy link
Member

meain commented Jan 21, 2023

@margaretjoanmiller
Copy link
Author

Ohhhh I see! I didn't realize they were separate packages. Thank you for clarifying.

@meain meain closed this as completed Jan 22, 2023
@meain
Copy link
Member

meain commented Jan 22, 2023

You can follow it at #144

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

No branches or pull requests

2 participants