Straight.el: Can't install marginalia

Created on 14 Dec 2020  Â·  5Comments  Â·  Source: raxod502/straight.el

Here's the code I used

(use-package marginalia
  :straight t
  :config
  (marginalia-mode)
  (setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light)))

Here's the error:

Warning (initialization): An error occurred while loading ‘/home/veronika/.config/emacs/init.el’:

error: Could not find package marginalia in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)

If I replace straight with ensure it magically works.
I read #645. Lexical binding is enabled.
Tried making a bug report with this code (read from #645):

(straight-bug-report
  :user-dir "straight-marginalia-649"
  :pre-bootstrap 
  (setq straight-repository-branch "develop")
  :post-bootstrap 
  (straight-use-package 'use-package)
  (use-package marginalia
    :straight t
    :config
    (marginalia-mode)
    (setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light)))
  (with-current-buffer straight-process-buffer
    (message "%s"
             (buffer-string))))

(setq straight-repository-branch "develop")
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nmoessage))

(straight-use-package 'use-package)

Got this error:

Error (use-package): Failed to parse package marginalia: use-package: Unrecognized keyword: :straight Disable showing Disable logging
Error (use-package): Failed to parse package orderless: use-package: Unrecognized keyword: :straight Disable showing Disable logging
Warning (initialization): An error occurred while loading ‘/home/veronika/.config/emacs/init.el’:

Symbol's function definition is void: straight-bug-report

Perhaps I'm too dumb for Emacs

branch melpa straight-use-package support

All 5 comments

I had "orderless" in the title before but turns out straight can install it now.

647

@progfolio Might make sense to backport straight-bug-report to master; I've seen a few people run into issues using it because it's only on develop.

Perhaps I'm too dumb for Emacs

Nonsense! The more things that break inexplicably when you use software, the more advanced you are! :D
(Speaking from experience)

@progfolio Might make sense to backport straight-bug-report to master; I've seen a few people run into issues using it because it's only on develop.

See #653

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raxod502 picture raxod502  Â·  4Comments

aspiers picture aspiers  Â·  4Comments

raxod502 picture raxod502  Â·  3Comments

parsoj picture parsoj  Â·  4Comments

enko picture enko  Â·  4Comments