-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstream changes in magit-section require reinstallation of related packages #179
Comments
This is due to changes in upstream libraries. Reinstall them and this package, please. |
I am not quite sure which libraries that are. Can you be more specific? |
:value
Thank you! What a complex issue! |
Indeed. Painful, but hopefully worth it in the end. |
Just to add some info here for people finding this in the future: If you have installed Emacs and Magit through GNU Guix, here is how to do this, assuming you use some combination of
Now the error should be gone. |
@ZelphirKaltstahl I'm far from a Guix expert, but I do use it some, and I'd be surprised if it were necessary to mess with channel and manifest files to fix this. Simply removing the Magit-related packages through Guix, and then doing the other Emacs-specific steps listed here, will probably be enough. Are you sure it's necessary to do those things? |
@alphapapa Ah, I am also far from an expert. I only wanted to be sure, that all magit related things are gone, so I commented out the magit packages in my I still have not gotten around to really getting guix profiles to work in the way I want, so currently I am using #!/usr/bin/env bash
set -Eeuxo pipefail
if [ -z "${1:-}" ] ; then
ADDITIONAL_EMACS_ARGS=""
else
ADDITIONAL_EMACS_ARGS="${1:-}"
fi
EMACS_ARGS="--maximized --debug-init"
GUIX_ENV_DIR="${GUIX_EXTRA_PROFILES}/emacs-env"
guix time-machine \
--channels="${GUIX_ENV_DIR}/channels.scm" -- \
shell \
--manifest="${GUIX_ENV_DIR}/manifest.scm" \
--cores=8 -- \
emacs ${EMACS_ARGS} ${ADDITIONAL_EMACS_ARGS} Emacs is not in my main profile. It is all separated into this temporary shell thing. This might not be ideal, as it needs to be rebuilt, when I garbage collect Offtopic, but how do you use guix to run Emacs? Do you? |
I don't know why you'd need to use I run Guix on top of Debian as a foreign distro. I |
Ah, I do that with I also want to have a separate thing in Guix package manager for Emacs, so that I can update it independently from any other packages I install with Guix. This might be a good use-case for profiles, but I have not gotten into that yet. Previous attempts with Guix profiles I failed to do what I wanted to do. I should look into profiles at some point again. At least I think, that that could do what I need (reproducible, portable setup, that only updates when I want to update Emacs or its packages). I often update my |
I see. Yes, this is one of the less convenient parts of Guix, and some of these newer features seem to be not quite mature yet. I look forward to their continued progress on it. I'd like to be able to do things similar to what you describe without having to write channels and manifests and packages in Scheme files. |
I am using the following versions:
GNU Emacs 29.3
(using guix to install it)20240510.1701
1.7.2
I am loading magit and magit-todos as follows:
When I press
C-x g
to callmagit-status
, I get an error:I already tried to recompile packages using:
and then restart Emacs, but that did not change anything.
The text was updated successfully, but these errors were encountered: