I can’t reproduce the issue on my very vanilla Emacs 27.2.
I don’t seem to have org-roam-buffer--redisplay-h in my system; I have org-roam-buffer--redisplay instead. You might like to upgrade Org-roam to the latest and see if the problem persists?
I initially suspected that the colon “:” character was the cause; this does not seem to be the case.
If upgrading does not fix the problem, you might like to get the error stack by doing toggle-error-on-error.
updated to today’s version, tried turning off some things like org-appear in case they were interfering, but I’m still running into the same issues.
Here’s the error stack with toggle-debug-on-errorwhen I call org-roam-buffer-toggle:
the file associated with ID 257a4042-830b-4397-9a7a-d245eaea3c52 is 2021012184440-linux.org and it contains regular org-roam stuff in it (#+title etc. body text). That’s actually the file I was calling org-roam-buffer-toggle on (in other words, I was trying to get its backlinks).
My guess is that it’s essentially a data issue in one of the files.
The stack trace seems to me that Org-roam tries to insert the backlink section for a file. For some reason, it finds an empty string as indicated here: org-roam-fontify-like-in-org-mode((1 210 “”)).
If all the backlink files look fine, I would put a debugging point in this function (and the one before, org-roam-node-insert-section) and go through edebugging sessions.
If data issue, it could point to a defect in the migration script if you used it.
edit: I don’t have the same problem. It would be very difficult for others to reproduce it. For that, you would need to identify and share the file(s) that cause the problem…
I don’t think it’s a data error. The other ID is a dailies file which is full of content. And I get this with most files, not just this one.
The org-roam-fontify-like-in-org-mode((1 210 “”)) pattern is consistent too - the second number is the “character number” of the first character in the backlink from that file to the file I started from.
Here’s the error I get from first file I mentioned (in the first post):
Again here the (wrong-type-argument char-or-string-p (1 193 #("- ... - 193 is the character number in the file of the first character in the backlink in the file.
I’ll try debugging the functions when I have a chance, since it doesn’t look like data errors to me. (I tried deleting the .db file and forcing org-roam to rebuild it - which didn’t help either.)
About backlinks sections and org-roam-buffer-toggle, I have got a related error in the newest commit: Error in post-command-hook (org-roam-buffer--redisplay-h): (wrong-type-argument arrayp nil).
@eli refer to my comment earlier. I don’t have this function in my system. I believe you would need to update Org-roam first and see if the problem persists.
I don’t see the relation between your issue you raised in GitHub, and the one we are trying to deal with here. Yours seems to be related to the unlinked-references.