If I restart my emacs the error isn’t there. Then if, for example, I load an org roam file with org-roam-node-find, and then open the backlinks buffer, org-roam-buffer-toggle, it starts to flash.
From that point on, anytime I will hover over a link it will fire again, and it seems to fire for many actions unrelated to org-roam until I restart again.
If you have recently upgraded your Org (not org-roam) to 9.7, the error you see may be caused by the same problem. A solution suggested in the linked issue is to recompile org-roam. How to do this depends on your package manager (built-in package.el, straight or elpaca and so on — if you are on Doom, it’s probably straight but please check). If you use package.el, (package-recompile-all) should do it. You can also manually recompile your org-roam’s .el files.
I successfully downgraded to v9.63 of org and so far the eldoc error seems to have vanished. Thank you for the help. I guess the longer term solution here is to wait for eldoc to fix this?
Recompile Org-roam after Org upgrade (even if Org-roam code has not changed)
I don’t know how best you do step 2 with straight, but I guess you can simply re-install Org-roam. The key is to do it after Org upgrade. The reason is described in the linked GitHub comment above.
Okay, I tried that. It seems to be good. But I’ll give it some time and then if so mark this as the solution. Thank you @nobiot. I appreciate the help. Saved me much headache.
Can I ask what is eldoc doing in your workflow? It is usually used by programming language modes and not in a text mode such as org, markdown, etc. I have only started using eldoc for my writing and it is useful but it is only custom. What is your use case?
I actually have no idea what is running it @nobiot. I’ve never seen any error related to it previously. I wonder if it could have been triggered by the fact that the buffer had some #+begin_src tags in it?