-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Org-node only seems to index/find a fraction of org-roam entities #8
Comments
Thanks for reporting! What about if you do |
Running I actually set My saying "fraction" was inaccurate. Org-node seems to know about 10,000 some of roughly 14,000 org-roam entities. I have some vague notion that the missing entries are ones that include |
The plot thickens. A puzzle for me! I'll probably get back to you tomorrow or so. |
I've made some small bug fixes, I don't know if they'll have helped. If it still doesn't work, can you tell me more about your setup? What's your OS? Do you use any right-to-left text? Access any files over TRAMP? Symlinks? |
Thanks! It seems to mainly work now. For some reason there's still a slight discrepancy between org-node and org-roam (15963 vs 16042 nodes, respectively) on my laptop (but the other way on my phone, 16252 vs 16039, respectively), but org-node still at least seems to find most things. I'm not sure what nodes are missing (or how to figure that out). (I'm running on various Linuxen on laptop/desktop (Guix, Arch) and also on Android via Termux. I surely do have a little bit of right-to-left text, but probably not in node names (but in body text). Haven't tried over TRAMP. I use a symlinked Org directory on my phone, but that seems to work fine with org-node as far as I can tell.) |
Interesting numbers! Maybe you'll notice one day that you can't find a node, and then you can report it here :) Symlinks were my guess because the I'm wondering how to write a safety wrapper to use FOLLOW-SYMLINKS... the docstring warns about infinite recursion. Another thing that can affect discovery is a non-nil value of Btw just checking, I assume you can find the nodes that have RTL text? |
I'm thinking that the discrepancy is perhaps a bit greater than it seems since org-node generally seems to find some things that regular org-roam doesn't index. But, again, I'm not sure what's missing. I checked a node that contains right-to-left text and org-node indexes that one without problem. |
Thanks! It's also true that org-node looks up /all/ your |
To count the files known to org-id:
To count the files known to org-node:
To count the files known to org-roam:
|
In fact, we can find out which files they're missing:
|
Thanks for the seq-difference functions! It is curious, the results. So, running the "(diff org-roam org-node)" one revealed about 30 files that org-roam "knew about" (in some sense) that org-node didn't. They all had one or more of the following characteristics:
Fixing these things, org-node was able to index them (though it seemed to require a restart of emacs to do so). However, there still seem to be about 70 nodes that org-roam knows about that org-node doesn't. (report: org-node: 15985 / org-roam: 16055). Further, the "(diff org-node org-roam)" function returned (Strangely, as far as I can tell, on my janky Termux emacs setup on Android, everything works perfectly, with org-node finding more nodes than org-roam, while on two different Linux machines, I have the above issue. I'm intrigued about why this would be the case still.) |
Hm. Actually. I did a minor oversight. The cl-loop expression was only catching files with file-level noes -- as you said, with a top-level :PROPERTIES:.. Fixed. Maybe now org-node finds more files?
|
But yea, the stuff about malformed property drawers is a big problem. I've had a few of those too :) I've been thinking of doing some sort of autoformatter that could check all Org files. Recently found out about the builtin org-lint, which you can apparently run on save, haven't learned to use that yet. |
The new seq-difference function for "what org-roam knows about that org-node doesn't" produces the same output as the previous one, so it's not revealing any further nodes. The "what org-node knows about that org-mode doesn't" function now spits out links to various agenda/calendar org files, which is probably reasonable. Some sort of linter/autoformatter could indeed be useful at some point, indeed. (I'm still curious where the discrepancy lies for my Linux boxes, since the same Org files are shared with the Android device, where org-node does seem to find everything.) |
Hmm. Termux, with Emacs 28? 29? in console mode, I guess? |
@emacsomancer I added a command you might enjoy, |
I started using quickroam the other day, and decided to try out org-node, but setting it up as:
When I call
org-node-find
ororg-node-insert
, there are many org-roam entries that are missing (thatorg-roam-node-find
andquickroam-find
&c. find successfully). I've triedorg-node-reset
a few times, but it makes no difference.(I think I have around 14,000 org-roam nodes.)
The text was updated successfully, but these errors were encountered: