Hi Cayetano, Cayetano Santos <csant...@inventati.org> writes:
>>sam. 19 avril 2025 at 02:08, Fredrik Salomonsson <platt...@posteo.net> wrote: > >> Has anyone else encountered this issue? > > I have the same. This is most probably related to [0]. > > I found a weird fix: open org-roam-db.el and move the point to > "org-roam-db-insert-link", then M-x eval-defun. Same with > "org-roam-db-insert-link". At this point, M-x org-roam-db-sync performs > as expected. That worked for me as well. Which kind of looks like the native compile file is out of date or something. I nuked my `eln-cache` and `elpa` in my `~/.config/emacs` directory just to be sure nothing old was lying around. But that didn't do anything. And inspecting the search path it looks like it's using the correct path: Doing `M-x eval-expression` with the following expression: ``` (seq-each #'insert (seq-map (lambda (p) (format "%s\n" p)) (seq-filter (lambda (p) (string-match-p "emacs-org-roam" p)) native-comp-eln-load-path))) ``` Gives me: ``` /gnu/store/8d3min7jf97nn89far84wn0vxwksa233-emacs-org-roam-2.2.2-2.046822b/lib/emacs/native-site-lisp /gnu/store/2i1q7fd5v2kki0d4nfn8fra5pmw2rar1-emacs-org-roam-ui-0-0.c75fc75/lib/emacs/native-site-lisp /gnu/store/8d3min7jf97nn89far84wn0vxwksa233-emacs-org-roam-2.2.2-2.046822b/lib/emacs/native-site-lisp /gnu/store/2i1q7fd5v2kki0d4nfn8fra5pmw2rar1-emacs-org-roam-ui-0-0.c75fc75/lib/emacs/native-site-lisp /gnu/store/8d3min7jf97nn89far84wn0vxwksa233-emacs-org-roam-2.2.2-2.046822b/lib/emacs/native-site-lisp /gnu/store/2i1q7fd5v2kki0d4nfn8fra5pmw2rar1-emacs-org-roam-ui-0-0.c75fc75/lib/emacs/native-site-lisp /gnu/store/8d3min7jf97nn89far84wn0vxwksa233-emacs-org-roam-2.2.2-2.046822b/lib/emacs/native-site-lisp /gnu/store/2i1q7fd5v2kki0d4nfn8fra5pmw2rar1-emacs-org-roam-ui-0-0.c75fc75/lib/emacs/native-site-lisp ``` (no idea why there are 4 copies of each) Doing `M-x describe-package` -> `org-roam` gives me the same path. Checking if there's anything else in my home profile: ``` find .guix-home/profile/lib/emacs/native-site-lisp/ -name "org-roam-db.eln" .guix-home/profile/lib/emacs/native-site-lisp/29.4-12b90500/org-roam-db.eln ``` Asking guix which packages has a `org-roam-db.eln`: ``` guix locate org-roam-db.eln emacs-org-roam@2.2.2-2.046822b /gnu/store/kcb9hdxgxkw0dfqxa6nalkpzd1bsp5hm-emacs-org-roam-2.2.2-2.046822b/lib/emacs/native-site-lisp/29.4-efe53e11/org-roam-db.eln emacs-org-roam@2.2.2-1.0b9fcbc /gnu/store/9v4j4sjc4an6shsfdrl60kj8hrfkvkr9-emacs-org-roam-2.2.2-1.0b9fcbc/lib/emacs/native-site-lisp/29.4-e22c1753/org-roam-db.eln ``` The older one is the one that was working for me when I rolled back. Strangely enough it didn't when I rolled back to it a second time. I wonder if there's some other stale cache somewhere? > > There is a second one, where I’m unable to save org-mode buffers. > > (wrong-type-argument integer-or-marker-p nil) > > M-x org-mode fixes it. Saving org-mode buffers seems fine for me. I did `eval-defun` for `org-roam-db-insert-refs`, `org-roam-db-insert-link` and `org-roam-db-insert-tags` so maybe that fixed this as well? 🤷 > > Annoying, anyway. > [0] https://github.com/org-roam/org-roam/issues/2516 Indeed annoying. But at least now I have a workaround. -- s/Fred[re]+i[ck]+/Fredrik/g