This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-11
Channels
- # announcements (2)
- # babashka (31)
- # beginners (31)
- # calva (30)
- # cider (23)
- # clerk (1)
- # clojure (46)
- # clojure-austin (5)
- # clojure-brasil (1)
- # clojure-europe (47)
- # clojure-nl (1)
- # clojure-norway (72)
- # clojure-uk (2)
- # clojurescript (39)
- # conjure (1)
- # cursive (16)
- # data-science (1)
- # datomic (35)
- # dev-tooling (4)
- # events (5)
- # introduce-yourself (2)
- # jobs-discuss (5)
- # missionary (3)
- # polylith (11)
- # releases (4)
- # scittle (4)
- # shadow-cljs (18)
- # spacemacs (16)
- # specter (2)
- # squint (27)
- # xtdb (6)
I just updated to latest develop and also all the packages (via SPC f e U)
and now I have problems with structural editing commands.
It says Symbol's function definition is void
for stuff like sp-forward-slurp-sexp
or sp-splice-sexp-killing-forward
Anybody else experiencing the same problem?
Any ideas how to fix it or at least get more information about the problem?
I recommend restarting Emacs after package updates downloaded. e.g. SPC f e U
to get updated packages, SPC q r
to initiate the package downloads, then SPC q r
after all packages downloaded. This usually resolves warning like definition is void
Removing packages from the Spacemacs elpa directory simply causes Spacemacs to download the package again. This can be useful if a package didnt download or compile correctly.
I also recommend checking the spacemacs template for changes. e.g. .spacemacs
or .spacemacs.d/init.el
configuration.
SPC f e D
will open a diff session to readily check your configuration against the template. Important if your config was created more than a year ago.
Agree. I usually encounter issues with Magit after updates, and restarting Emacs typically resolves them. However, in this particular case, the issue persisted even after restarts, so I had to delete the downloaded packages.
I am also getting the same error after a package update, so it could be a bug with the package.
If there is a bug, thenhttps://practical.li/spacemacs/install-spacemacs/troubleshooting/#emacs-package-recipe-for-specific-versionwould be one way to manage the issue. Or download an older package
Or raise the issue SPC h I
on Spacemacs or with the specific package repository.
Of course, the specific package with the bug needs to be identified first. I'll take a look and see if there is something obvious.
The older package may be in the Spacemacs cache, if so you could copy the packages that seem relevant from there https://practical.li/blog/pin-emacs-packages-to-manage-issues/#copy-package-from-rollback-cache
I copied smartparens-20231024.1804
from the cache to the elpa directory and removed the new pacakge from the elpa directory.
After a restart, the slurp command works without error.
So probably a simple bug in smartparens package.
Raised an issue on smartparens repository (feel free to add anything else you think would be useful) https://github.com/Fuco1/smartparens/issues/1204
Thank you both.
As @U071CG4QY suggested, I deleted .emacs.d/elpa/29.2
and it seems to be working now.
An updated version of SmartParens has been released which resolved the issue. Structured editing commands are working again in package version smartparens-20240416.2253