renzmann / treesit-auto

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

Can't install using melpa: "No such file or directory, cus-edit" #45

Closed solace-rcampbell closed 9 months ago

solace-rcampbell commented 1 year ago

I'm trying to install treesit-auto using a snap version of emacs "GNU Emacs 29.0.90".

When I run the melpa instructions I get this error: package--save-selected-packages: Cannot open load file: No such file or directory, cus-edit

solace-rcampbell commented 1 year ago

Is this a problem with treesit-auto, or is this a problem with the emacs snap?

renzmann commented 1 year ago

Sorry, I don't really know anything about Snaps or how they might affect the Emacs installation. I can noodle around and see if this error ever comes up for me too, but I can't say I'm able to reproduce it right now

jcs090218 commented 1 year ago

It seems like cus-edit is built-in to Emacs. See https://github.com/emacs-mirror/emacs/blob/master/lisp/cus-edit.el.

Try upgrade the Emacs snapshot. The latest version is 29.0.92.

solace-rcampbell commented 1 year ago

OK. I tried upgrading to a newer snap, and that problem went away (I was able to install treesit-auto), but none of the M-x functions seem available.

For example, after a successful install, M-x treesit-auto-install-all gives [no match].

solace-rcampbell commented 1 year ago

And if I type M-x treesit- and hit tab, auto is not in the list of completion options.

renzmann commented 9 months ago

I haven't seen any other reports of this, and can't reproduce, so I'm going to close this for now.