dendron: `Dendron: Migrate to self contained vault` does not migrate the vault correctly

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you’re not sure.)

  • Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • Lookup. Dendron’s Lookup Command
  • Views. Dendron Preview, Tree View, Side Panels in the UI
  • Schema. Dendron Schemas
  • Pod. Data import from / export to Dendron
  • Publish. External Site Publish
  • Markdown. Markdown features, such as syntax support and features

Describe the bug

Whenever I add a remote, self-contained vault to my workspace I get an error such as the one below + the vault is not recognized by dentron (Lookup won’t work + not displayed in dendron’s tab).

{"fsPath":"cim-shared-vault","remote":{"type":"git","url":"git@<actual_git_repo>.git"},"name":"CIM Shared vault","selfContained":true}

The graph panel would show this:

{"name":"DendronError","status":"unknown","payload":"No Engine: <path>/Dendron/cim-dendron"}

To Reproduce

Steps to reproduce the behavior:

  1. Add a remote vault from existing dendron workspace
  2. Convert the vault to self-contained

Expected behavior

I would expect dendron to work with that vault, like it does with the other not-self contained.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: macOS 12.5
  • Browser (if with published websites; include version): [e.g. chrome, safari]
  • Versions (all that apply to bug):
    • Dendron Extension: v0.109.1
    • VS Code version: 1.70.2
    • Dendron CLI:

Additional context

Add any other context about the problem here.

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I can confirm that this works as expected in Dendron v.0.112.0. Thank you so much!

Hey @ccamara this PR is merged and will release in the upcoming release i.e. V0.112

No, I’m afraid the problem persists 😦

I can confirm that if I migrate an existing vault into a self-contained vault, dendron breaks.

Steps:

  1. Open a workspace with several vaults
  2. Migrate local vault to self-contained (Dendron: Migrate to self contained vault)

Multiple errors: On Dendron’s tab:

  • On graph note, I get the following error: {“name”:“DendronError”,“status”:“unknown”,“payload”:“No Engine: /Users/carloscamara/Documents/Dendron/cim-dendron”}
  • Tree view is empty
  • Lookup won’t find anything on the new vault

Ok, tested:

  1. In dendron.yml, added
dev:
    enableSelfContainedVaults: true
  1. Created a local vault from scratch
  2. folder is created under <workspace>/dependencies/localhost/<my-new-vault>
  3. The local vault is a self-contained vault (no migration)
  4. The local vault just works

I assume that was all and everything is working as expected?

got it. This should be the error with Dendron: Migrate to self contained vault command. Let me update the bug title.

Sure!

I tested something simpler:

  1. Open my dendron workspace
  2. Create a new local vault: Dendron: Vault Add\Local
  3. Generate a new vault
  4. Create a new note
  5. The vault is added properly and works well
  6. Migrate the vault created in 2: Dendron: Migrate to self contained vault

Multiple errors: On Dendron’s tab:

  1. On graph note, I get the following error: {"name":"DendronError","status":"unknown","payload":"No Engine: /Users/carloscamara/Documents/Dendron/cim-dendron"}
  2. Tree view is empty
  3. Lookup won’t find anything on the new vault