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

Image changes don't update in Marker #369

Open
kq1231 opened this issue Jan 1, 2022 · 6 comments
Open

Image changes don't update in Marker #369

kq1231 opened this issue Jan 1, 2022 · 6 comments

Comments

@kq1231
Copy link

kq1231 commented Jan 1, 2022

I use Marker to make notes for math. For making diagrams and plots, I prefer using matplotlib as it's extremely amazing and packed with too many features.
In Marker, I am able to import and view an image. However, when I update the image by modifying my plot, I can see the image getting updated:

  1. When I'm viewing my markdown file in chrome (using the extension: markdown preview plus).
  2. In my OS file manager.

However, Marker is not able to update the image. What's even funnier is that even if I delete the image from my system, it still shows the same image!
Thank you!

@kq1231
Copy link
Author

kq1231 commented Jan 1, 2022

Is that because I'm importing the image using HTML?

@violetmage
Copy link

greetings

thank you for your well written issue report

are you using the flatpak?

this behavior sounds like something ostree might do

@kq1231
Copy link
Author

kq1231 commented Apr 16, 2022

Hello!
Yes, I'm using flatpak.

@violetmage
Copy link

sorry for the delayed response, though i suppose there is no excuse for laziness...

anyway, i was able to reproduce your issue after i figured out how pictures work in markdown, and it appears my hunch is correct, that when "importing" something to marker, ostree makes it's usual sandboxed copy, and so the file must be "reimported" to see changes to the original copy

as you can probably tell, i mostly use marker for simple edits, and not all that often.

how exactly are you "importing" your pictures in marker?

@kq1231
Copy link
Author

kq1231 commented Apr 24, 2022 via email

@violetmage
Copy link

violetmage commented Apr 27, 2022

again, sorry for my lack of attentiveness

yes, have experimented some more, it seems it doesn't matter how marker reads the image file, there is a cache somewhere that holds the contents of files referenced from documents in marker, once marker reads them once, they are never reread / reloaded until the cache is cleared (?), the marker document is reopened, or marker is reopened.

furthermore, my original guess seems wrong, as the behavior is identical with files that i have given my marker flatpak unsandboxed access to.

this is probably an unintended side effect of reducing complexity by reading each file once, and keeping them in memory until the document is closed

my intuition leads me to believe, in that case, that this has become a feature request for "reload document"

@fabiocolacio thoughts?

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

2 participants