Skip to content

(fix)org-id: gracefully handle absence of org-id-locations-file#1769

Merged
jethrokuan merged 5 commits intomasterfrom
fix/org-id-locations-file
Aug 16, 2021
Merged

(fix)org-id: gracefully handle absence of org-id-locations-file#1769
jethrokuan merged 5 commits intomasterfrom
fix/org-id-locations-file

Conversation

@Wetlize
Copy link
Copy Markdown
Contributor

@Wetlize Wetlize commented Aug 13, 2021

This is the source of the errors reported in #1734, #1700, #1688. Ideally this problem should be handled by org-id itself, but for now this will be only patched in Org-roam.

Merging this fixes #1700 and fixes #1638.

This should be more useful than telling the user to run something
like (org-id-update-id-locations (directory-files-recursively ..))
@Wetlize Wetlize force-pushed the fix/org-id-locations-file branch 2 times, most recently from 4334f65 to da6fecd Compare August 13, 2021 16:27
org-id normally stores the org-id-locations-file in
user-emacs-directory, which should always exist if Emacs is installed.
If the path to the location exists, org-id will be able to create the
file on its own, however, configurations often change the location of
this file to a different one, in which case its path might not be
constructed of existing directories (on the file system) and org-id
won't be able to laydown this path for the user.

This causes org-id to throw unhelpful errors (like in #1734, #1700,
\#1688) that don't allow Org-roam to complete capture process or
properly finish migration, and possibly add malfunctions at other
layers.

Ideally this problem should be handled by org-id itself, but for now
this will be only patched in Org-roam.

Fixes #1700 and fixes #1638.
@Wetlize Wetlize force-pushed the fix/org-id-locations-file branch from da6fecd to ae25ef0 Compare August 13, 2021 16:31
@Wetlize Wetlize requested a review from jethrokuan August 13, 2021 16:37
Comment thread org-roam-compat.el Outdated
jethrokuan and others added 3 commits August 16, 2021 21:23
Co-authored-by: David Wilson <david@daviwil.com>
@jethrokuan jethrokuan merged commit 8d4de78 into master Aug 16, 2021
@jethrokuan jethrokuan deleted the fix/org-id-locations-file branch August 16, 2021 13:38
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

org-roam capture template doesn't work correctly, capture buffer isn't being shown Recursively cache all org files in org-roam directory

3 participants