Describe the bug
On Emacs 28.1 with native compilation, while installing org-roam-ui via straight-use-package, the org as well as the org-roam packages get cloned from their git repos even though I explicitly try to install them via melpa. This causes some issue with random functions from org mode becoming unavailable and therefore void. Only when I use (use-package org-roam-ui :ensure t) does it work normally.
To Reproduce
Try this with a native compiled Emacs 28.1 installation with the following minimal config:
(use-package org-roam-ui
:straight
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
:after org-roam
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
;; a hookable mode anymore, you're advised to pick something yourself
;; if you don't care about startup time, use
;; :hook (after-init . org-roam-ui-mode)
:config
(setq org-roam-ui-sync-theme t
org-roam-ui-follow t
org-roam-ui-update-on-save t
org-roam-ui-open-on-start t))
2. Now try to open org some org file, you might encounter some error. For example, I encountered:
_File mode specification error: (void-function org-element-at-point)_
OR You could try launching `org-agenda` and selecting an agenda keybinding like displaying TODO items. That might throw errors.
OR You could run `org-cycle` command and see if cycling through headers throws some void function errors.
Describe the bug On Emacs 28.1 with native compilation, while installing
org-roam-ui
via straight-use-package, theorg
as well as theorg-roam
packages get cloned from their git repos even though I explicitly try to install them via melpa. This causes some issue with random functions from org mode becoming unavailable and therefore void. Only when I use(use-package org-roam-ui :ensure t)
does it work normally.To Reproduce
(require 'use-package)
(setq use-package-always-ensure t) ;;Straight.el (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 'nomessage)) (setq package-enable-at-startup nil)
(use-package org :ensure t)
(use-package org-roam-ui :straight (:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out")) :after org-roam ;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have ;; a hookable mode anymore, you're advised to pick something yourself ;; if you don't care about startup time, use ;; :hook (after-init . org-roam-ui-mode) :config (setq org-roam-ui-sync-theme t org-roam-ui-follow t org-roam-ui-update-on-save t org-roam-ui-open-on-start t))