I have just tried to setup magit
using straight.el
in my init file as follows:
(use-package magit
:straight t
:bind ("C-x g" . magit-status)
:commands (magit-status magit-get-current-branch))
However upon restarting emacs (v28.1) on my macOS (Montery v12.2.1) I get the following error message:
command-execute: Cannot open load file: No such file or directory, ../../../../../../../.emacs.d/straight/build/magit/magit-status
For some reason straight.el
seems to be searching for the clone in several directories above the current one. It seems to be doing this to many other newly installed packages, e.g. projectile
.
Note that my ~/.emacs.d
is symlinked to my dropbox folder in case that is relevant:
.emacs.d -> ~/DROPBOX/REPOS/dotfiles/.emacs.d
It seems that a similar issue has been flagged here, but I'm not sure what the resolution is. For reference here is my init file.
How can this be rectified?
Update: I've cross-posted this here, since the comments to this post lead back to this thread. I will post any helpful responses on either thread to the other one to ensure that all helpful commentsthe responses are passed onto users with the same issue.