zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.01k stars 216 forks source link

BUG: Changes to drawing do not reflect immediately in note when re-opening drawing #1279

Open SandWoodJones opened 1 year ago

SandWoodJones commented 1 year ago

Your environment

SYSTEM INFO:
    Obsidian version: v1.3.7
    Installer version: v1.3.4
    Operating system: Windows 10 Education 10.0.19043
    Login status: logged in
    Catalyst license: none
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: Atom v0.0.0
    Snippets enabled: 13
    Restricted mode: off
    Plugins installed: 22
    Plugins enabled: 22
        1: Obsidian Git v2.20.7
        2: Paste URL into selection v1.7.0
        3: LanguageTool Integration v0.3.4
        4: Better Word Count v0.10.0
        5: Quick Latex for Obsidian v2.6.2
        6: Desmos v0.6.6
        7: Better footnote v1.0.1
        8: Footnote Shortcut v0.1.2
        9: Tidy Footnotes v0.1.1
        10: Commander v0.5.0
        11: Excalidraw v1.9.16
        12: Table Extended v1.6.1
        13: TikZJax v0.5.1
        14: Advanced Tables v0.19.1
        15: Better Command Palette v0.15.0
        16: Custom Classes v2.6.1
        17: Dataview v0.5.56
        18: Templater v1.16.0
        19: Icon Folder v2.1.2
        20: Icon Shortcodes v0.9.7
        21: Outliner v4.8.0
        22: Code Styler v1.0.5

RECOMMENDATIONS:
    Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the bug This started happening recently, after adding a drawing to a note, editing it and going back to the note I can see the changes I've made. However, if I change the drawing again and go back to the note these new changes are not instantly reflected. I noticed this only happens after I accidentally click the drawing, opening it, and navigate back to the note. If I close and open obsidian the bug is gone.

To Reproduce Steps to reproduce the behavior:

  1. Create a new note.
  2. Create a new drawing and embed into active document
  3. Make changes to the drawing
  4. Go back to note
  5. See drawing is fine
  6. Make more changes to the drawing
  7. Go back to note and click on drawing, opening it
  8. Navigate back and see the changes are gone

Screenshots DFGj7bjD9S

zsviczian commented 1 year ago

Thank you for raising this. There was an error in my caching logic. I fixed it. Will be fixed with the next release.

axelson commented 1 year ago

Thanks for fixing this! I can no longer reproduce this issue in the latest release 🎉