Sorixelle / astro-ts-mode

Emacs major mode for Astro templates
GNU General Public License v3.0
13 stars 1 forks source link

`treesit-ready-p` is not available #3

Closed ronniedroid closed 1 year ago

ronniedroid commented 1 year ago

I am on emacs version 29.0.92, compiled form source form the emacs git repo. using the emacs-29 branch.

the (treesit-ready-p 'lang) does not exist. Had to change it to (treesit-language-available-p 'lang) for it to work. On lines: 177, 180, 183 and 218.

Sorixelle commented 1 year ago

I'm not able to reproduce this on this version of Emacs. Can you post the value of both system-configuration-features and system-configuration-options in your build?

ronniedroid commented 1 year ago

features:

"CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB"

and, options:

"--without-compress-install --with-native-compilation --with-json --with-mailutils --with-pgtk --with-tree-sitter --with-rsvg"

please not that the command does work and is available to me in my emacs before I activate astro-ts-mode, after that, the command is no longer available.

Sorixelle commented 1 year ago

Figured out the issue - treesit-ready-p doesn't have an autoload, so the auto-mode-alist assignment I had on load was failing. I've removed those autoloads, so that should fix the issue. You'll need to make sure you (require 'astro-ts-mode) if you were relying on this mode to setup the file association for you.