Closed dotemacs closed 2 years ago
Putting this in instead:
(use-package undo-treе-mode
:straight (undo-tree :type git
:host gitlab
:repo "tsc25/undo-tree"))
Still produces the error, but at least undo-tree mode works.
I'm unable to reproduce with the following:
Yodel Report (2021-11-15 10:59:07):
(yodel
:formatter yodel-format-as-github-markdown
:packages*
use-package
:post*
(setq straight-use-package-by-default t)
(use-package undo-tree
:straight
(undo-tree
:host gitlab
:repo "tsc25/undo-tree")
:config
(global-undo-tree-mode)))
Are you able to reproduce the error via straight-bug-report
? e.g.
2021-11-15 11:07:05
gnu/linux
prerelease (HEAD -> develop, origin/develop) 7262ebc 2021-11-05
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.4, Xaw3d scroll bars) of 2021-11-03
I would also recommend moving (setq package-enable-at-startup nil)
to the early-init file:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Early-Init-File.html
I would also recommend moving
(setq package-enable-at-startup nil)
to the early-init file:
Did that, with the config as per my original comment above, no change.
I'll try the other approaches you've outlined above. Thanks
My full config for undo-tree
is this:
(use-package undo-treе-mode
:straight (undo-tree :type git
:host gitlab
:repo "tsc25/undo-tree")
:init
(global-undo-tree-mode t)
(setq undo-tree-visualizer-timestamps t)
(setq undo-tree-enable-undo-in-region t))
The thing that fixes this issue is that the first argument to use-package
is undo-tree-mode
and the package is fetched with the name undo-tree
(note the omitted -mode
).
I still get the warning but the package does initialise and works, which is something I can live with, since I seldom restart Emacs.
I'll close the issue, thanks
I still get the warning but the package does initialise and works, which is something I can live with, since I seldom restart Emacs.
Why not just change the first argument from undo-tree-mode
to undo-tree
? That should prevent the warning.
I still get the warning but the package does initialise and works, which is something I can live with, since I seldom restart Emacs.
Why not just change the first argument from
undo-tree-mode
toundo-tree
? That should prevent the warning.
That seems like a great suggestion, just tried it and with this:
(use-package undo-treе
:straight (undo-tree :type git
:host gitlab
:repo "tsc25/undo-tree")
:init
(global-undo-tree-mode t)
(setq undo-tree-visualizer-timestamps t)
(setq undo-tree-enable-undo-in-region t))
I still get the warning:
Error (use-package): Cannot load undo-treе
Hello
I'm trying to install
undo-tree
package from source, but when I do specify it, it errors with:My whole .init.el:
straight-process buffer:
Now if I remove from the above init.el
and put this line outside of the
use-package
declaration:I still get the above error, but this time I can use undo-tree and ignore the error.
What do I need to do in order to suppress this error and have the package loaded as expected?
Thanks