-
Notifications
You must be signed in to change notification settings - Fork 5.9k
localhost refused to connect when viewing pdf file #1862
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
Comments
From the discussion from Latex-Workshop, the pdf viewer listen only internal address localhost, I see that there is /proxy// sub path for this, but when I use this, still get error connect ECONNREFUSED. Is that possible to solve this? |
We have an issue for this localhost problem (#1510) but it requires changes on the extension's end. I'm not sure whether there's a way for us to fix it on our end or for users to work around it manually. We might be able to automatically replace |
cc @cmoog re the extension not activating. |
From my test, the extension works. Only pdf viewer fails. And the standalone pdf viewer extension vscode-pdf works. But they cannot work together, and latex-workshop develop group insist the localhost way for the security consideration. |
I have the same exact use case and problem. The reference issue at the latex-workshop repo is: James-Yu/LaTeX-Workshop#1265, where it is claimed that
Is there a way to resolve this impasse? |
That error might mean that you aren't using https since browsers only allow service workers in a secure context. The only way I can think of to work around the localhost issue without making the required code changes is to forward localhost ports to the remote host. Otherwise the only solution is to wait until we can implement one of the fixes. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
I use the code-server with latex-workshop for remote latex editing. But there is a problem that when I try to view the pdf file, it always reported "localhost refused to connect". I made it in docker using Ubuntu 20.04 image and work with jupyterhub, and also tried directly in Ubuntu 20.04, both the same error.
Thanks.
code-server --version
: 3.4.1The text was updated successfully, but these errors were encountered: