Org-roam-find-file does not show a list


I am getting started, trying to follow the tutorials I can find on org-roam, but something seems to be broken: I can edit notes and visit them if I know their name, but I don’t get any form of completion in org-roam-find-file, or any list. The ivy-powered find-file reports 0 candidates.

With emacs -Q, as far as I can tell, it works (with the default minibuffer completion).

org-roam-db-build-cache reports this:

(org-roam) total: Δ4, files-modified: Δ0, ids: Δ0, links: Δ0, tags: Δ0, titles: Δ0, refs: Δ0, deleted: Δ0

4 matches the expected number of notes, but there should for instance be links. I don’t know what the others refer to so I don’t know if it is normal that they are 0.

My org-roam configuration is this:

(use-package org-roam
  :init (org-roam-mode)
  (setq org-roam-directory (file-truename "~/org-roam")
        org-roam-db-location "~/org-roam/org-roam.db"
	    org-roam-completion-system 'ivy))

(The last line doesn’t make any difference.)

I intermittently get errors when evaluating the use-package form, as if the package was trying to expand a directory name of nil, but re-evaluating fixes it. I don’t know if the issues are related.

I am using emacs 27.1 with org-roam commit 43831c58 (dec 16).

Do you have any idea what could be going on?


It was fixed by C-u M-x org-roam-db-build-cache.

1 Like

org-roam-db-sync worked for me