Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when importing .d2 files from same folder as the .md #42

Open
Matt-Sim opened this issue Dec 7, 2023 · 0 comments
Open

error when importing .d2 files from same folder as the .md #42

Matt-Sim opened this issue Dec 7, 2023 · 0 comments

Comments

@Matt-Sim
Copy link

Matt-Sim commented Dec 7, 2023

Steps

  1. create x.d2
    x: {
    shape: circle
    }

  2. create x.md
    ```d2
    ...@x
    ```

Expected:

x.md preview renders circle with x
(see behaviour of VS Code plugin, open same files in VS Code and preview x.md)

Actual:

error

D2 Compilation Error:
err: failed to compile -: -:1:1: failed to import "x.d2": open x.d2: no such file or directory

Environment

(btw: i'm also using Unitade plugin to edit .d2 files directly in Obsidian)

Obsidian 1.4.14

  • D2 plugin 1.1.4
  • Unitade 1.0.2

macOS Sonoma 14.1.2

VS Code 1.84

  • D2 plugin 0.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant