Open sethidden opened 1 year ago
Thanks for the report and reproduction case. Unfortunately, I'm unable to reproduce this with Emacs 30 on my end. Could you try evaluating the following test case in your *scratch* buffer? It will install everything in a temporary, clean test environment and automates the steps you've listed above. When it finishes, the *straight-bug-report-process* should pop up. Please share the entire buffer contents here.
2023-04-23 09:10:52
gnu/linux
prerelease (HEAD -> master, origin/master, origin/develop, origin/HEAD, develop) 039e5c9 2023-03-12
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-04-14
I see, thanks for the handy script :)
Here are my results:
2023-04-23 15:12:56
gnu/linux
prerelease (HEAD -> master, origin/master, origin/develop, origin/HEAD) 039e5c9 2023-03-12
GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-03
Thanks for running the test. It does confirm that the output of the two elc
files are different on your version of Emacs. Can you try running the following test case to see if your original error is still reproducible? This one will launch an interactive Emacs session, install everything, and call magit-remote in magit's repo. Then you can try your modifying the URL to see if the error is thrown.
(straight-bug-report
:user-dir "straight.magit-byte-comp.interactive"
:interactive t
:preserve t
:post-bootstrap
(straight-use-package 'magit)
(let ((default-directory (straight--repos-dir "magit")))
(call-interactively #'magit-remote)))
Unfortunately the error is still reproducible. I ran the script, and when the transient opened, I pressed "s" (to edit pushRemote git variable), typed in "foo" and pressed enter, which caused the error.
In the opened emacs session, there's also a perhaps useful error message in the straight-byte-compilation buffer
In end of data:
magit-transient.el:85:6: Warning: the function
βtransient--with-suspended-overrideβ is not known to be defined.
magit-section-pkg.el:1:2: Warning: the function βdefine-packageβ is not known
to be defined.
EDIT: Switching to Emacs 30 (emacs-git in AUR) makes the magit problem disappear
@progfolio If applicable, could you please re-tag this issue as bug instead of support?
Do we know what range of Emacs versions this happens with? Can you post the two versions of the byte-compiled file?
Sorry for disappearing. I can't repro this on Emacs 29 anymore (stable ver at time I'm writing). Should I close it or would you like me to install Emacs 28 and post some more info?
Test case from https://github.com/radian-software/straight.el/issues/1081#issuecomment-1519064784 ran on Emacs 29 (stable):
2023-11-10 19:33:02
darwin
prerelease (HEAD -> master, origin/master, origin/HEAD) 9b11112 2023-08-08
GNU Emacs 29.1 (build 2, aarch64-apple-darwin22.6.0, NS appkit-2299.70 Version 13.5.2 (Build 22G91)) of 2023-09-25
EDIT 12 Nov 2023: Can't repro this on Emacs 28.2 as I used to. Maybe because I'm on Mac. I'll test at the original machine when I can access it in a week
Up to you - it is okay to leave it open in case someone else comes along who can help, we will probably close eventually if that never happens.
Hello.
This is an issue related to the findings found in this comment: https://github.com/magit/magit/issues/4676#issuecomment-1115014450
In the linked issue, the straight-generated .elc files make the issue appear, but manually running (byte-compile-file) to replace the straight .elc file resolves the issue.
This brings me here, thinking
straight
may be causing this.Repro steps:
magit
:; in my case this is in literate org config, but I don't think that affects this issue (use-package magit :straight t)