renzmann / treesit-auto

Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
GNU General Public License v3.0
353 stars 27 forks source link

treesit-auto--get-buffer-recipe yields "wrong-type-argument stringp nil" #97

Closed zhenhua-wang closed 3 months ago

zhenhua-wang commented 3 months ago

Hi, I observe that in the latest version (treesit-auto--get-buffer-recipe) yields wrong-type-argument stringp nil for any buffers. Any idea to fix this? Thanks!

zhenhua-wang commented 3 months ago

I found that commit 2bc6899 add the glsl and surface recipes which do not have a ext component. As a result, the string comparing in treesit-auto--get-buffer-recipe yields the above error