I have just tried to setup
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.
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 the responses are passed onto users with the same issue.
find-file-visit-truenameset? If yes, try setting it to
nil. You can check a related question. emacs.stackexchange.com/questions/69066/…
straight.el. Is that how you did it?. Here is my init file in case that helps
chemacs2a try and perhaps you'll no longer need your .emacs.d symlink and then your problem might just go away.
straight.elsetup as per the repo above. It did not resolve this issue either. Any ideas?