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

Preview not refreshing #58

Open
hpr1999 opened this issue May 29, 2024 · 0 comments
Open

Preview not refreshing #58

hpr1999 opened this issue May 29, 2024 · 0 comments

Comments

@hpr1999
Copy link

hpr1999 commented May 29, 2024

Hi there!

Trying out the plugin, it seems nice to write the d2 source in, but the preview doesn't seem to work properly for me.

When opening a file, it compiles and previews fine, but changes are not detected and logged in the d2 compilation output.

Note: it's not just the internal browser updating, connecting to the internal watch process via a normal browser also does not show the updates.

What's strange: if I use the d2-cli's watch mode manually on an external terminal and then edit the file in the same way in IntelliJ, changes get detected and recompilation is triggered. Now obviously this way I can't use the auto-preview in IntelliJ, which is sad.

I can force an update by first using Ctrl+S to save the file in IntelliJ and then changing some settings of the compilation, e.g. the layout engine.

I'm using IntelliJ 2024.1.2 Ultimate on Windows 10.

Thanks for your efforts.

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