# V2 migration: newly created files do not show up in org-roam-node-insert/find

**URL:** <https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777>\
**Category:** Troubleshooting\
**Created:** [July 19, 2021, 3:47pm UTC](https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777 "2021-07-19T15:47:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![japhir](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@japhir](https://org-roam.discourse.group/u/japhir)\
**Post date:** [July 19, 2021, 3:47pm UTC](https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777/1 "2021-07-19T15:47:47Z")

</div>

I’ve just updated, following the nice [Hitchiker’s guide](https://github.com/org-roam/org-roam/wiki/Hitchhiker's-Rough-Guide-to-Org-roam-V2). Almost everything seems to work now except:

1. create a new note with org-roam-node-find newname 
2. finalize capture with C-c C-c
3. go to any other org file and org-roam-node-insert OR org-roam-node-find
4. type the beginning of the newname  
the file doesn’t show.  
Is something wrong on [my config](https://github.com/japhir/ArchConfigs/blob/master/myinit.org#org-roam)?  
I just ran `org-roam-setup` with M-x and this solves it, but it doesn’t say anywhere where to put this in my config. After all the config options have been set, simply add a `(org-roam-setup)`?  
It would be great if some example configs with the newest settings were available for stealing 🙂

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 19, 2021, 4:07pm UTC](https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777/2 "2021-07-19T16:07:41Z")

</div>

Make sure you have saved the file? Not just completing capture. DB update happens as part of buffer save.

---

<div class="post-metadata">

**Author:** ![rberaldo](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/rberaldo/32/819_2.png) [@rberaldo](https://org-roam.discourse.group/u/rberaldo)\
**Post date:** [July 19, 2021, 4:08pm UTC](https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777/3 "2021-07-19T16:08:17Z")

</div>

Hey @japhir, I’ve been using the following custom command (which I got, I think, from the _Hitchhiker’s guide_) to start org-roam v2:

```auto
;; org-roam V2 testing, load manually
(defun my/org-roam-load ()
  (interactive)
  (add-to-list 'load-path "/Users/rberaldo/.emacs.d/org-roam-v2/")
  (load-library "org-roam")
  (setq org-roam-directory (file-truename "/Users/rberaldo/conhecimento/"))
  (setq org-roam-dailies-directory (file-truename "/Users/rberaldo/conhecimento/fleeting-notes/"))
  (setq org-roam-file-extensions '("org"))
  (org-roam-setup)
  (define-key global-map (kbd "C-c r /") #'org-roam-node-find)
  (define-key global-map (kbd "C-c r c") #'org-roam-capture)
  (define-key global-map (kbd "C-c r i") #'org-roam-node-insert)
  (define-key global-map (kbd "C-c r r") #'org-roam-buffer-toggle)
  (define-key global-map (kbd "C-c r j") #'org-roam-dailies-capture-today)
  (define-key global-map (kbd "C-c r t") #'org-roam-dailies-find-today)
  (smartparens-global-mode t)
  (setq company-minimum-prefix-length 1)
  (setq company-idle-delay 0.25)
  (add-to-list 'company-backends 'company-capf)
  (setq org-roam-completion-ignore-case 1))
(put 'dired-find-alternate-file 'disabled nil)
(my/org-roam-load)

```

Notice the `org-roam-setup` call in the middle there. It is in fact necessary to call it, and you can stop org-roam by running `org-roam-teardown`.

Hope I helped!

---

<div class="post-metadata">

**Author:** ![japhir](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@japhir](https://org-roam.discourse.group/u/japhir)\
**Post date:** [July 20, 2021, 11:47am UTC](https://org-roam.discourse.group/t/v2-migration-newly-created-files-do-not-show-up-in-org-roam-node-insert-find/1777/4 "2021-07-20T11:47:09Z")

</div>

Looks like just adding `(org-roam-setup)` to my config solved this, as files are autosaved after capturing/exiting evil normal mode in my config. Cheers for the input.

I guess more examples of new configs with org-roam v2 would still be nice to see! I.e. I couldn’t find @Jethro’s emacs config in his .dots repo anymore, and his old .emacs.d repo hasn’t been updated in a while.

EDIT: I was blind and couldn’t find it because [he has his stuff](https://github.com/jethrokuan/dots/blob/f192b54ac1fc02d4fa0a6744819c6dd44655bef9/.doom.d/config.el#L323) in `.doom.d/` in stead of `.emacs.d/`.
