dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Dendron preview won't update when using selection extract to create a note

Open HenryC-3 opened this issue 2 years ago • 8 comments

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
  • [x] 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

Dendron preview won't update when using selection extract to create a note.

To Reproduce

Steps to reproduce the behavior:

  1. create a note A with content
  2. open preview
  3. select and extract note A content to note B
  4. preview not update

Expected behavior

Preview updates when a new created

Screenshots

If applicable, add screenshots to help explain your problem.

dendron-wont-update-preview-when-use-select-create-note

Desktop (please complete the following information)

  • OS: [e.g. iOS]
  • Browser (if with published websites; include version): [e.g. chrome, safari]
  • Versions (all that apply to bug):
    • Dendron Extension: 0.107.2
    • VS Code version: 1.70.1

Additional context

Add any other context about the problem here.

Dendron Log file

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

dendron.log

HenryC-3 avatar Aug 14 '22 04:08 HenryC-3

Thank you for the report. I can't reproduce this on my end, but we'll investigate what's happening and let you know when it gets resolved.

@namjul could this be related to the preview lock feature?

hikchoi avatar Aug 16 '22 03:08 hikchoi

Sorry for my oversight, I didn't reproduce it with only dendron enabled.

I tried it again and successfully reproduced it with dendron and Prettier enabled.

Any further information should I provide to resolve this problem?

HenryC-3 avatar Aug 16 '22 16:08 HenryC-3

@HenryC-3 that's good. I will look into it.

namjul avatar Aug 16 '22 16:08 namjul

@HenryC-3 we could replicate the issue when we changed set the vscode Setting "Auto Save" to onFocusChange. It makes sense because when the selected text gets extracted from the note and vscode saves it more or less at the same time then the Preview will get notified of that change.

Can you confirm on your end by turning "Auto Save" off, to make sure that this is also the cause on your end.

namjul avatar Aug 17 '22 08:08 namjul

@namjul Thanks for your effort.

This issue persists on my end. I tried it by turning autosave off, the preview won't update until I click the preview and then click in editor.

dendron-wont-update-preview-when-use-select-create-note-2

Here's the log file

dendron.log

HenryC-3 avatar Aug 17 '22 13:08 HenryC-3

Can you try to reload vscode after you turned of autosafe and then check again. It was necessary on my end.

namjul avatar Aug 17 '22 16:08 namjul

@namjul Hi checked again and can't reproduce this time. But I did reload and then reproduced yesterday like commented above.

Maybe we should put this issue on hold for a while and see if others will encounter this problem as well.

Thank you for taking the time to investigate this issue.

HenryC-3 avatar Aug 18 '22 02:08 HenryC-3

I am also facing the same issue. Anyone has any solution.

himnsuk avatar Feb 15 '24 04:02 himnsuk