tomoki1207 / vscode-pdfviewer

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

File origin doesnot match viewer #73

Open thangisme opened 4 years ago

thangisme commented 4 years ago

This happened when I was trying to open a pdf file. Screenshot-from-2020-08-11-13-55-16.png

tomoki1207 commented 4 years ago

How did you open that file? Because it seems that the file is not in a workspace or opened folder, I guess:

thangisme commented 4 years ago

How did you open that file? Because it seems that the file is not in a workspace or opened folder, I guess:

* File > Open File...
  or

* `code {your-file}.pdf` from CLI.

Yep I opened file by File > Open File. But even when I open it from a workspace or a folder, it'll still the same

tomoki1207 commented 4 years ago

Where is that file location? And please tell me about your env (OS, VSCode version,...)

thangisme commented 4 years ago

Where is that file location? And please tell me about your env (OS, VSCode version,...) File location : /root/Downloads/ OS: Arch Linux VSCode version: lastest

cipri-tom commented 4 years ago

I have this error when I'm using the remote extension: VSCode runs on a server, and displays locally on MacOS. I open a PDF on the server with Cmd+O -> Path to PDF and I get this error.

EDIT: I was using a multi-linugal fork of this extension. The error does not reproduce with the original, I can see the PDF correctly.