The problem
I keep running into problems when I try to add aliases to an internal node. Does this happen to anyone else?
An example
Suppose I have a file like this:
...
#+title: everything
* values
:PROPERTIES:
:ID: 88eb4ff5-44c3-445e-a7e8-144ee1002203
:END:
** detachment
** discipline
** gratitude
** humor
** love
** ...
If I try to add the following right after the line:
:ROAM_ALIASES: "some values"
I get an error like this:
Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
org-element-paragraph-parser(8498 (8498))
#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38>(8498 element nil nil)
org-element--parse-to(8504)
org-element-at-point()
org-element-context()
org-roam-link-replace-at-point()
org-roam-link-replace-all()
run-hooks(before-save-hook)
basic-save-buffer(t)
save-buffer(1)
funcall-interactively(save-buffer 1)
command-execute(save-buffer)
and am unable to save the file. If I exit org-mode for, say, text-mode, I can save. But then when I reenable org-mode I keep getting the same error.
A half-solution
Every now and then I’m somehow able to make it work, but I don’t know how. Usually I give up and just make a separate file out of the node. (Adding aliases to file-level nodes, rather than internal nodes, has never given me problems.)
My system
I run Emacs on NixOS using Plasma (KDE). Some relevant version numbers:
GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars)
Org mode version 9.7.27 (9.7.27-74dde3 @ /nix/store/xdqbn7fmhk1j9w7pgk0rvp6yganqa9wz-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.27/)
When I call org-roam-version I get another error:
Debugger entered--Lisp error: (search-failed "\\(?:;; Version: \\([^z-a]*?$\\)\\)")
org-roam-version()
funcall-interactively(org-roam-version)
command-execute(org-roam-version record)
execute-extended-command(nil "org-roam-version" "org-roam-ver")
funcall-interactively(execute-extended-command nil "org-roam-version" "org-roam-ver")
command-execute(execute-extended-command)
but I think it’s the version from 2025 March 24, because when I search my /nix/store
folder for org-roam
I get a lot of hits like this:
./q2hfbdcccagpw68y90d6p0mg0byfbjs7-emacs-org-roam-20250324.2140.drv
Apologies
I realize those aren’t the super-latest versions but they’re the latest that are packaged for the stable NixOS channel. I would love to know if anyone on a more recent version of anything sees similar problems when adding aliases to an internal node.