dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.76k stars 259 forks source link

Probable vault name collision breaks V2 preview #1411

Open aleksey-rowan opened 3 years ago

aleksey-rowan commented 3 years ago

Please select the area your Bug applys to. (Multiple selections are Possible)

Describe the bug

It seems there is some name collision that makes V2 preview show the contents of the wrong note when you have two vaults named like this: vault and vault-two. Vaults need to be added in this order to dendron.yml.

To Reproduce

Steps to reproduce the behavior:

  1. Initialize a new Dendron workspace with a default vault
  2. Add another local vault and name it vault-two (folder name should be vault-two; the vault's name value doesn't seem to matter)
  3. In dendron.yml make sure that vault-two comes after vault in the vaults array
  4. Open root.md in vault make some changes to it and preview it
  5. Open root.md in vault-two
  6. Observe that the preview is still from the root.md of the first vault and did not change

Expected behavior

Notes should preview correctly no matter what the vault's (or it's folder's) name is.

Desktop (please complete the following information)

hikchoi commented 3 years ago

Thanks for the report. We will try to diagnose it and come up with a next action :)