-
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
Error: org-node worker failed to scan files #11
Comments
Any output in the |
I actually forgot to mention. I did look it's empty with only this message: |
Hm, that means that none of the processes returned successfully, but they also didn't signal an error. Odd. I've been meaning to write a test suite, but I won't have a lot of time this month. :/ Are you only seeing this after you create a new node? Or every time you do |
I didn't invoke reset yet. Should I? I'm seeing this message quite a lot. |
Do you mean it works, i.e. you can find nodes anyway? Hmm that is your risk to take then :) You can always fall back on org-roam or quickroam commands! |
It works, sort of... Seeing a lot of these, and it often hangs while producing the errors:
|
Still happens? |
Hi there. Disabled for a while since it was very noisy, sorry. Will check again shortly and report back. |
yes, still happens and org-node-find cant' see most files in |
I'm sorry to hear that! At this point, I think I'll just expand the test suites until something gives. My best hypothesis is that org-node does not handle malformed Org syntax very well, and you have some (it's quite common, I suspect) malformed syntax in some files such as these examples: #8 (comment) |
Wow, looking at list of possible problems, I pretty sure there are plenty... :( also possibly left over from partial migration from v1 etc. Is there a way to force the parser to ignore them and made more robust? It's not org-node's problem to solve this, I'm sure...
|
I think you might need to look elsewhere... I created a new empty roam directory and db, and org-node is still having similar isses:
|
Yea, the best solution is to lint en masse. There is a builtin org-lint, but I haven't yet figured out how to run it for many files at once. I'm currently relying on some old linting code I wrote for publishing my blog, which works well enough for me so it hasn't been a priority. It's true that I could look for ways to make org-node fail more gracefully.
Good test, thanks! But hey, org-node may still be trying to scan the same files as before, since it consults org-id, not directly org-roam-directory. You could verify this by checking if Maybe you'd like to try again, but fully wiping org-id: (progn
(org-id-locations-save)
(copy-file org-id-locations-file "~/.org-id-locations.bak") ;; backup
(delete-file org-id-locations-file)
(setq org-id-locations nil)
(setq org-id--locations-checksum nil)
(setq org-agenda-text-search-extra-files nil)
(setq org-id-files nil)
(setq org-id-extra-files nil)) Don't forget to change Afterwards, you could restore your org-id database with (progn
(delete-file org-id-locations-file)
(copy-file "~/.org-id-locations.bak" org-id-locations-file)
(org-id-locations-load)) |
The latest commit should now fail a bit more gracefully, and show you which files that failed. |
Now I added a command |
I'm seeing lots of messages like "An org-node worker failed to scan files, not producing /tmp/org-node/demands-xxxxx.eld", for example after creating a new node (with vanilla org-roam-find).
The text was updated successfully, but these errors were encountered: