alexmurray / emacs-snap

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

Cannot open load file: No such file or directory, warnings #11

Closed Sleepful closed 4 years ago

Sleepful commented 4 years ago

Cannot open load file: No such file or directory, warnings

I am using the snap with emacs 27 (beta branch). I get this error on emacs if I do not have emacs26 installed in my ubuntu LTS 18.04.1:

Autoload file error: autoloads.pkg.el -> (file-missing Cannot open load file No such file or directory cl)
startup--load-user-init-file: Cannot open load file: No such file or directory, warnings

However if I run: sudo apt-get install emacs26 (from the PPA, doesn't work with emacs25) and then I run: /snap/bin/emacs I do not get any issue. I have no idea what's going on. If I do: sudo apt-get remove emacs26 then the snap keeps working, but as soon as I do: sudo apt-get autoremove the snap stops working again. I can only guess it's missing one of the following packages that autoremove gets rid of: emacs26-common libm17n-0 libotf0 m17n-db

alexmurray commented 4 years ago

I am unable to reproduce this on a clean Ubuntu 18.04 LTS install - see https://asciinema.org/a/Esqu4vXfiZywsZ6VBtjrnQUsw for my test at reproducing it

alexmurray commented 4 years ago

I wonder if there is something specific about your user's emacs configuration which might be causing this? Are you referring to some files which get provided by emacs26-common perhaps?

seblemaguer commented 4 years ago

Hello,

the package cl has been deprecated in emacs 27. I think you should see where is the autoloads.pkg.el which is used. Generally, I think it is a good idea to clean the configuration (by removing any downloaded packages and reinstalling it) when changing the emacs to a new major version.

Sleepful commented 4 years ago

I am using the doom-emacs configuration but I imagine it would not be an issue, they recommend using emacs27. I will follow @seblemaguer's suggestion and clean my current ~/emacs.d configuration, I will report back with results.

Sleepful commented 4 years ago

Cleaning the configuration did the trick, for doom-emacs in particular I had to delete ~/.emacs.d/.local then run doom sync to reinstall them

Thank you

hlissner commented 4 years ago

For posterity, in case folks stumble on this issue with Doom Emacs, here are some rules of thumb I hope will spare you the trouble of reinstalling everything from scratch:

Hope that helps!