-
Notifications
You must be signed in to change notification settings - Fork 166
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
Support HTTP proxies #59
Comments
Can you paste the exact command line that you're using to run Tectonic? I believe that you need to add the argument |
I tried |
Ohhhh, sorry, I misinterpreted. You have run into a different area where the command-line program is delivering a confusing user experience. The If you just run |
In China the default URL (i.e., http://purl.org/net/pkgwpub/tectonic-default) is blocked. Can I use HTTP proxy in tectonic? |
Oh! I was wondering why you bothered to use the Tectonic uses the Rust crate I will change this issue to be about adding proper proxy support. In the meantime, you should be able to get things working by creating a configuration file that specifies the specific URL. On Linux, this file is looked for at
In more encouraging news, I downloaded the fonts and I think that the document will compile correctly if you can access the bundle in this way. |
Thanks, it worked. Please document the config file somewhere. |
I cann't find |
@webbery Did you try to create the file? |
@l2dy No, I didn't. Should I copy above content url to |
If you're facing the same problem (purl.org not accessible), yes. |
thanks, it works |
@webbery If you don't mind revealing this information, could you say where you are trying to use Tectonic that makes |
Yes, I'm in China. I found another error if I compiled following tex file:
Here is the error:
But if I use vpn, it works fine and produce test.pdf. |
@l2dy @webbery I would like to see if I can fix this. Do either of you know of the "best" way to have Tectonic detect whether an HTTP proxy should be used for your OS? I can make it a configuration option, but it would be good for the program to automatically follow system settings if they're available. As far as I can tell Rust does not have a crate that provides this functionality (yet). |
Actually, maybe the env_proxy crate is what I need. |
I'd suggest following curl's convention. The env_proxy crate seems to obey it. |
Is this the way to set up a proxy with |
@spl I think not, unfortunately, because Tectonic is on hyper 0.10, while those instructions are for 0.11. It would be good to upgrade Tectonic to a newer version of hyper and the rest, but last time I checked it looked like it would be a nontrivial amount of work. Maybe it would be less work to backport the instructions to 0.10, but it also wouldn't be bad to just bite the bullet and upgrade. |
…ture Update project structure.
reqwest 0.10.9 enables system proxies by default, so all we need is a simple upgrade now. |
I think that this one can be closed since #726 was merged |
I agree! If anyone encounters a proxy-related problem with Tectonic and finds this issue, I'd recommend opening a new one instead of commenting here. |
Environment
Tectonic 0.1.5
macOS 10.12.5
rustc 1.17.0
cargo 0.18.0
The text was updated successfully, but these errors were encountered: