crmsnbleyd / uiua-ts-mode

Emacs major mode for Uiua, a stack-based array language, powered by tree-sitter
GNU General Public License v3.0
5 stars 1 forks source link

[Bug] Cannot activate tree-sitter, because language grammar for uiua is unavailable #4

Closed skykanin closed 10 months ago

skykanin commented 11 months ago

When I try to load uiua-ts-mode I get this error:

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

I'm using Uiua version 0.4.1

Emacs info:

GNU Emacs     v29.1            nil
Doom core     v3.0.0-pre       HEAD -> master, origin/master 63586423d 2023-03-11 20:25:45 -0500
Doom modules  v23.03.0-pre     HEAD -> master, origin/master 63586423d 2023-03-11 20:25:45 -0500

Doom emacs config:

;; config.el
(use-package! uiua-ts-mode
  :mode "\\.ua\\'")

;; packages.el
(package! uiua-ts-mode
  :recipe (:host github
           :repo "crmsnbleyd/uiua-ts-mode"
           :branch "main"))
crmsnbleyd commented 11 months ago

The readme addresses this, try following the step given there. Let us know if that doesn't work.

On Fri, 1 Dec 2023, 23:55 Nicholas, @.***> wrote:

When I try to load uiua-ts-mode I get this error:

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

Emacs info:

GNU Emacs v29.1 nil Doom core v3.0.0-pre HEAD -> master, origin/master 63586423d 2023-03-11 20:25:45 -0500 Doom modules v23.03.0-pre HEAD -> master, origin/master 63586423d 2023-03-11 20:25:45 -0500

Doom emacs config:

;; config.el (use-package! uiua-ts-mode :mode "\.ua\'") ;; packages.el (package! uiua-ts-mode :recipe (:host github :repo "crmsnbleyd/uiua-ts-mode" :branch "main"))

— Reply to this email directly, view it on GitHub https://github.com/crmsnbleyd/uiua-ts-mode/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKUHJBMT4ZAEJIRP4J4JA3YHIOKTAVCNFSM6AAAAABADHJWOWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDCMZYGIYTGOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

skykanin commented 11 months ago

When I run treesit-install-language-grammar command for uiua I get another error:

Warning (treesit): Error encountered when installing language grammar: (file-missing Searching for program No such file or directory cc)

Even though gcc is available and (call-process "cc" nil t nil "--version") works just fine from emacs.

skykanin commented 10 months ago

This last error seemed to be an issue with my emacs setup