alexmurray / emacs-snap

GNU Emacs in a snap
https://snapcraft.io/emacs
71 stars 13 forks source link

Can't install treesit-auto: "No such file or directory, cus-edit" #59

Closed solace-rcampbell closed 1 year 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

I opened a bug with treesit-auto (https://github.com/renzmann/treesit-auto/issues/45). They said that "cus-edit" is built-in to Emacs, and that the problem might be with the snap.

alexmurray commented 1 year ago

I am not able to reproduce this error with the current emacs-29 version of the emacs snap:

$ emacs -q --eval "(progn (if (require 'cus-edit nil t) (print \"loaded cus-edit\" #'external-debugging-output) (print \"error loading cus-edit\" #'external-debugging-output)) (kill-emacs))"

"loaded cus-edit"
sudo snap refresh --beta emacs
solace-rcampbell commented 1 year ago

Thanks. I can't reproduce this problem with the newest version.