Ok, it seems that orb-insert-edit-note was expecting only a string data type and throwing the error when it was fed with a list from Bibtex-completion. Not sure how and when this was introduced and why it escaped my attention, but now it's fixed. Thank you for reporting this bug!
By the way, it is not necessary to set org-ref-notes-functions - ORB does this automatically when org-roam-bibtex-mode is on. If you with tp set it manually, you should use orb-org-ref-edit-note - it also does arrange for a few other things required by Org-ref.
OK. Thanks for the update.
But now there is a strange behaviour. I run orb-insert-link, press enter on one of the entry, it gives me this error:
user-error: Invalid capture template format: (r bibliography reference plain :if-new (file+head ~/org/literature/Bhattiprolu:2021rrj.org #+TITLE: High-quality axions in solutions to the $\mu$ problem
) :unnarrowed t)
key :region cannot be nil
the Bhattiprolu:2021rrj is the citekey, the High-quality axions in solutions to the $\mu$ problem is the title.
Further more, if I use orb-insert-link then C-o, select "insert citation", or directly use org-ref-insert-cite-link, I can get a link. Click on the link and select the open notes, I successfully get the note capture interface with correct template. So I guess this error is from some function of orb-insert-link.
OK. Thanks for the update.
But now there is a strange behaviour. I run
orb-insert-link
, press enter on one of the entry, it gives me this error:the
Bhattiprolu:2021rrj
is the citekey, theHigh-quality axions in solutions to the $\mu$ problem
is the title.My current configuration :
Further more, if I use
orb-insert-link
thenC-o
, select "insert citation", or directly useorg-ref-insert-cite-link
, I can get a link. Click on the link and select theopen notes
, I successfully get the note capture interface with correct template. So I guess this error is from some function oforb-insert-link
.Originally posted by @quarkquartet in https://github.com/org-roam/org-roam-bibtex/issues/195#issuecomment-882956504