practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
110 stars 33 forks source link

Managing broken Emacs packages #236

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

Use the Rollback Packages button on the Spacemacs home buffer or run the command configuration-layer/update-packages

SPC q r to restart emacs and install the new packages.

Issues

if packages are no longer working, try reboot emacs one more time and test.

Rollback the packages and reboot to see if the issue remains (it cuould be an update to Spacemacs itself, but packages are more likely)

Selecting Package rollback from the Spacemacs homepage should show you possible rollback candidates. Once a rollback candidate is selected, further rollback command will only use the selected candidate. So it seems you can only rollback once until you successfully update packages (assumption needs testing)

To check what rollback candidates are available, call the function (configuration-layer//ido-candidate-rollback-slot) - this is not an interactive lisp function, so can be called from an elisp buffer Open .emacs.d/core/configuration-layer.el and evaluate the function then write a call to that function (configuration-layer//ido-candidate-rollback-slot)

If a package works after rollback, add it to the frozen packages in .spacemacs

If a package is still broken, or you need a specific version, delete the package from ~/.emacs/elpa/emacs-version/develop/ and create a recipe for a specific version http://jr0cket.co.uk/2017/03/spacemacs-managing-broken-emacs-packages.html

Newer article that includes pinning a package https://practical.li/blog/posts/emacs-cider-removing-old-cider-compat/

Reference https://www.spacemacs.org/doc/DOCUMENTATION.html#update-and-rollback