emacs-compat / compat

COMPATibility Library for Emacs Lisp
https://elpa.gnu.org/packages/compat.html
GNU General Public License v3.0
69 stars 12 forks source link

executable-find #14

Closed DSMasterson closed 1 year ago

DSMasterson commented 1 year ago

Early in trying to figure this out (newbie to debugging), but...

Compat-29 seems to break executable-find for a lot of things. My Emacs (27.1) just now auto-package-update just updated some packages and that brought in some dependencies after which things started breaking with 'executable-find' errors ("Symbol's value as a variable is void: executable-find"). I think the latest magit requires compat-29.1.1.0 and that started the ball rolling.

I've rolled back compat and magit for the time being and stopped auto-package-update.

DSMasterson commented 1 year ago

Nevermind. I found the discussion in magit/magit and package-reinstall of magit and compat seem to have fixed things.

Closing.

aspiers commented 1 year ago

I had this too. Not sure which discussion you are referring to? It would be helpful to include a link to save others from having to hunt for the same info :-)

In any case, I found the following:

What seems to have worked for me is upgrading compat, magit, forge to the latest (EDIT: check you are on main not an old master branch!), making sure they were all recompiled to avoid outdated .elc files, and then restarting emacs.

aspiers commented 1 year ago

Another gotcha I forgot to mention: it seems several repos (including magit and forge) have switched from master to main. My local checkouts of these repos were still on master, so they were not picking up bug-fixes relating to this problem. Until I fixed that, the problems remained.

kngwyu commented 1 year ago

My local checkouts of these repos were still on master, so they were not picking up bug-fixes relating to this problem. Until I fixed that, the problems remained.

I exactly got the same problem 😅
I updated magit by straight-pull-package, but actually, I needed to checkout to main