tomoki1207 / vscode-pdfviewer

Show PDF preview in VSCode.
https://marketplace.visualstudio.com/items/tomoki1207.pdf
Other
295 stars 70 forks source link

v1.2.0 displays no pages #127

Open Hu1buerger opened 2 years ago

Hu1buerger commented 2 years ago

How to reproduce

Run vscode on macOS, and install pdfviewer with v1.2.0. Open a folder. Put the pdf from doi.org/10.1145/2503792.2503808 inside. (might or might not be from scihub)

Open the pdf by double clicking on it.

What happens

pdfviewer shows that it has 0 pages, and displays a grey background

What should happen

The ~5 pages should be shown.

How I fixed it:

I didn't. Rolling back to v1.1.0 works. The pdf is displayed

bob-nomann commented 2 years ago

Same issue (vscode v1.56.2 Universal, macOS Big Sur v11.4), but I found that by interacting with the PDF vscode would subsequently refresh and render the appropriate pages.

Such as simply opening or editing the file with the built-in macOS Preview app, while the PDF file is also open in vscode.

Further discovered that when live reloading PDFs, the left sidebar would reopen on each change even though the 'Show the sidebar on load' setting is disabled.

Rolling back to v1.1.0 did not resolve either issue for me.

samuela commented 2 years ago

Same issue here. PDF file is attached. Oddly enough, I've found that it does actually show the PDF correctly around 1/10 times. FWIW I'm accessing the PDF over SSH with VSCode Remote.

Screen Shot 2022-02-09 at 2 29 36 PM

mnist_mlp_interp_accuracy.pdf

jano23 commented 2 years ago

I am on Windows and I see the same issue. I found a work around and that is to close the grey screen and open the pdf again. The second time it works, but it gets old having to open each pdf twice!!

bulak commented 2 years ago

Same issue here (vscode-pdf v1.2.0) with these combination:

Version: 1.66.2
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:24.808Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Linux x64 5.13.0-40-generic

Perhaps upgrading to the latest pdf.js might solve the issue. But manual overwriting gets more cumbersome when multiple remote connections (ssh, kubernetes etc) are involved. Some other PDF viewers have this fixed...

bunkerj commented 2 years ago

I am on Windows and I see the same issue. I found a work around and that is to close the grey screen and open the pdf again. The second time it works, but it gets old having to open each pdf twice!!

Exact same situation for me also on Windows!

dfee commented 2 years ago

Of course, same situation over here. Figured I'd follow through and ensure this is an issue.

But, that it's an issue for over 6mo, I'll probably move along to something that's maintained.

Ivluengo commented 1 year ago

Same here and it is 9 months now...hope it will be fixed soon as it is pretty anoying... If not I will have to do as @dfee said and move to something else...