izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
106 stars 30 forks source link

Auto-refresh #88

Closed SamuelMarks closed 8 years ago

SamuelMarks commented 8 years ago

At a glance this plugin is great! - Just one feature missing, auto reload/refresh PDF when it changes on disk.

My use-case is generating PDF from LaTeX documents.

Thanks

izuzak commented 8 years ago

Just one feature missing, auto reload/refresh PDF when it changes on disk.

That works fine for me. I opened a PDF, then manually replaced it with a PDF with the same name but different content, and the PDF refreshed in Atom. Can you try doing the same and let me know if that doesn't work?

I'm guessing that you're hitting some case related to your configuration or how PDFs are generated. Would you mind sharing more details about your configuration (OS+version, Atom+version, pdf-view version) and how PDFs are generated?

This package is used in https://github.com/thomasjo/atom-latex, and as far as I know -- it works for users of that package just fine.

SamuelMarks commented 8 years ago

Hmm, that's strange.

Anyway, in my project I've got some code generation going on, all automated with make pdf.

I'm on Ubuntu 15.04 x64 with Atom 1.0.19 and pdf view 0.30.0.

izuzak commented 8 years ago

That works fine for me. I opened a PDF, then manually replaced it with a PDF with the same name but different content, and the PDF refreshed in Atom. Can you try doing the same and let me know if that doesn't work?

Have you tried doing this? Thanks.

SamuelMarks commented 8 years ago

Tried that, same issue (i.e.: new PDF isn't shown in the preview)

izuzak commented 8 years ago

Tried that, same issue (i.e.: new PDF isn't shown in the preview)

I'm unable to reproduce this on Ubuntu 15.04 and Atom 1.0.19. See GIF below -- as soon as I replace the original PDF with a new one, the PDF refreshes in Atom with pdf-view:

linux

Can you share a similar GIF which clearly demonstrates the problem?

SamuelMarks commented 8 years ago

Just tried again, for the first time since upgrading to your latest version, and it's now working

:+1:

izuzak commented 8 years ago

Yay, happy to hear that -- thanks for letting me know!