Closed matogoro closed 1 year ago
Thanks for taking the time to fill out a bug report.
Manually symlink the /kotl, /man, and /test folders from the /elpaca/repos/hyperbole directory to the /elpaca/builds/hyperbole directory (this fixed a bunch of other errors)
I've updated the default :files
value for GNU/NonGNU ELPA recipes.
You'll want to:
M-x elpaca-update
elpaca
M-x elpaca-delete
hyperbole
(if installed).emacs.d/elpaca/cache/
directory.This should get you the latest version of Elpaca and re-cache the updated recipes. That takes care of the "kotl" and "test" directories being linked. You don't want the "man" directory linked over. Rather, you want all of its files linked to the top-level of the build directory. So, despite the new menu recipes, you'll want a recipe similar to the one in the following test:
elpaca | 9af18ac HEAD -> master, origin/master, origin/HEAD |
isntaller | 0.5 |
emacs | GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-07 |
git | git version 2.41.0 |
That should install the Info manual correctly. I'm able to load hyperbole mode without errors on my end, too.
Looks like the above still misses some files for hyperbole's demos, etc. The recipe in the following test case should be better:
elpaca | 9af18ac HEAD -> master, origin/master, origin/HEAD |
isntaller | 0.5 |
emacs | GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-07 |
git | git version 2.41.0 |
Or with elpaca-use-package-mode enabled:
(use-package hyperbole :elpaca (:files ("*" "man/*" (:exclude "man"))))
I'll consider this issue closed for now. If you have any issues when using that last recipe, let me know and we can reopen. Thanks.
Hi, sorry---I didn't have time to test this out until now. Updating elpaca
, deleting the old hyperbole
package, and trying to reinstall using the use-package
declaration you provide gives me the following error in the elpaca-log
buffer:
Info: fatal: dumb http transport does not support shallow capabilities
Is there some other setting I need to tweak? Or something on the hyperbole Git server end? Or maybe I just need to be more patient? Thanks!
Hi, sorry---I didn't have time to test this out until now.
Not a problem.
Updating elpaca, deleting the old hyperbole package, and trying to reinstall using the use-package declaration you provide gives me the following error in the elpaca-log buffer:
Can you please share:
M-x elpaca-version
Info: fatal: dumb http transport does not support shallow capabilities
Is there some other setting I need to tweak? Or something on the hyperbole Git server end? Or maybe I just need to be more patient? Thanks!
The repo should've automatically attempted to reclone in that case. I'll look into it once I have the above info.
Actually, I see what the issue was. I've fixed it. Try updating again. Should work fine now.
I'm unfortunately still getting the same error. I've verified that I'm on 01f7556
(via elpaca-version
).
What I've tried:
elpaca
(elpaca-update
elpaca
)01f7556
)elpaca
cache directory (and any hyperbole directories in /elpaca/builds
and /elpaca/repos
use-package
declaration for hyperbole
as aboveChecking the elpaca
logs, I get (relevant to hyperbole
):
hyperbole cloning Cloning 00.571996
[...]
hyperbole cloning Cloning into '/home/user/path/to/elpaca/folder'... 00.680220
hyperbole cloning fatal: dumb http transport does not support shallow capabilities 00.900514
I figure that there was a built-in fallback in elpaca
to a full clone, but it doesn't seem to be kicking in for some reason. Please let me know if you need more info from my end!
Could you try evaluating the following test case in your *scratch* buffer? It will install Elpaca in a temp test environment and attempt to install hyperbole. When it finishes running, a buffer should pop up showing the results, which can be copied here.
(elpaca-test
:early-init
(setq elpaca-menu-functions '(elpaca-menu-gnu-devel-elpa))
:init
(setq debug-on-error nil)
(defun +report ()
(with-current-buffer (elpaca-log ".*")
(print (buffer-substring-no-properties (point-min) (point-max)))))
(elpaca (hyperbole :files ("*" "man/*" (:exclude "man"))))
(with-timeout (30 (+report)) (elpaca-wait))
(+report))
Sure! Here it is:
elpaca | 01f7556 HEAD -> master, origin/master, origin/HEAD |
isntaller | 0.5 |
emacs | GNU Emacs 28.2 (build 2, x86_64-unknown-linux-gnu, X toolkit, cairo version 1.16.0) of 2023-04-18 |
git | git version 2.41.0 |
Thank you! I've pushed a fix which should do the trick. I force pushed, so you'll just want to:
M-x elpaca-delete
elpaca-use-package
then elpaca
then hyperbole
Let me know if that works for you.
Brilliant---it works! Thank you so much for the fast and awesome support. I really appreciate it!
Glad to hear it works now. Sorry about the hiccups and thanks again for testing.
Elpaca Version
Elpaca 0afd824 HEAD -> master, origin/master, origin/HEAD installer: 0.5 emacs-version: GNU Emacs 28.2 (build 2, x86_64_unknown-linux-gnu, X toolkit, cairo version 1.16.0 of 2023-04-18 git --version: git version 2.41.0
Operating System
Void Linux (64-bit), daemonized Emacs (emacsclient)
Description
I've recently migrated from
straight.el
toelpaca
, and unfortunately this broke myhyperbole
installation. I originally hadhyperbole
installed using the guide provided by the manual here---I've largely tried to reproduce this inelpaca
but I keep getting the following error when my config tries to load the package (specifically on loadinghypb-ert.el
):Eager macro-expansion failure: (void-variable hyperbole-run-test)
The same error occurs if I proceed to open Emacs and try to run
hyperbole-mode
. What I've done so far:Have elpaca clone hyperbole from the source repo ("https://git.savannah.gnu.org/git/hyperbole.git")
Manually symlink the
/kotl
,/man
, and/test
folders from the/elpaca/repos/hyperbole
directory to the/elpaca/builds/hyperbole directory
(this fixed a bunch of other errors)For reference, I call hyperbole via a use-package declaration in my init file as follows:
Has anyone here gotten this working? I've dug around in the source code and
hyperbole-run-test
doesn't seem to be mentioned much outside of adefal
clause inhypb-ert.el
itself. I'd greatly appreciate if anyone here has any insight!