gleam-lang / gleam-mode

🐙 Gleam support for Emacs
Apache License 2.0
77 stars 20 forks source link

Error with compiling grammar #26

Closed chuckberrypi closed 2 months ago

chuckberrypi commented 2 months ago

I followed the instructions for installing gleam-ts-mode by cloning the repository to ~/.config/emacs/modules/lang/, adding the (use-package 'gleam-ts-mode ...) snippet to my ~/doom.d/packages.el, and reloading that file. When I went to run M-x: gleam-ts-install-grammar, I got the following error:

⛔ Warning (treesit): The installed language grammar for gleam cannot be located or has problems (not-found): (libtree-sitter-gleam.so libtree-sitter-gleam.so.0 libtree-sitter-gleam.so.0.0 libtree-sitter-gleam.dylib libtree-sitter-gleam.dylib.0 libtree-sitter-gleam.dylib.0.0) No such file or directory

Any suggestions?

J3RN commented 2 months ago

This error comes from inside Emacs' treesit library. It seems to indicate that the grammar installation failed. If you look in the *Messages* buffer after running this command, is there anything relevant in there?

chuckberrypi commented 2 months ago

Yeah, it says Library installed to ~/.config/emacs/.local/cache/tree-sitter/libtree-sitter-gleam.dylib, and when I go to that directory the libtree-sitter-gleam.dylib file is indeed there. I double checked, and user-emacs-directory does evalutate to ~/.config/emacs/.local/cache, so I'm really not sure why tree-sitter can't see it.

chuckberrypi commented 2 months ago

closing since it sounds like this isn't an issue with this repo