koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
394 stars 42 forks source link

Subsequent PDF generations showing old version #18

Open Hsn723 opened 7 years ago

Hsn723 commented 7 years ago

I am using the hosted version on madoko.net with OneDrive integration. When generating a PDF document, the first time it successfully generates the PDF file, but any subsequent generations result in a file identical to the initial one. I've checked in my OneDrive folder, and on onedrive.live.com. The logs do say that a PDF file was successfully generated and that the old file was found and overwritten (although the actual files show otherwise).

Currently, the only way to get an updated PDF file is to trigger the compilation of a LaTex bundle, open the resulting zip file and extracting the PDF file. Also worthy of note is that the timestamp of files inside the LaTex bundle are inconsistent with my local timezone, although that is a different issue.

Hsn723 commented 7 years ago

Interestingly, deleting the generated PDF file and triggering a new PDF file generation also results in the first version being generated. It seems to me that whatever external service performing the PDF file generation might be caching either the initial PDF or TEX output and using that instead of the latest version.

ThomasWodzinski commented 7 years ago

I had the same issue. Deleting the pdf in my onedrive folder and generating a new pdf helped. But only if I opened the pdf from the onedrive folder or downloaded it from the link that says 'open' in the message log. The link 'view' directs me to a file on onedrive in the browser that does not exist anymore.

daanx commented 7 years ago

I will take a look at this -- very strange issue and I guess it has to do with Onedrive where perhaps the dates are not parsed correctly.

Hsn723 commented 6 years ago

Any updates on this? It's been more than a year and I still experience the exact same behavior.