-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the supervisor can start even when
http_proxy
is set (#5825)
We have had several user reports of the kernel supervisor failing to start because of HTTP proxy settings (specifically via the `http_proxy` environment variable). This happens because the Node request library we use reads the `http_proxy` environment variable and always attempts to use the proxy (even, surprisingly enough, for local connections). The fix here is -- when `http_proxy` is set -- to amend the `no_proxy` environment variable so that the proxy is not used when connecting to the supervisor. Partially addresses #5481. ### QA Notes It can be a little tricky to set environment variables for Positron. The easiest way is probably to set them in a terminal and then launch Positron from that terminal.
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Launch tests by running this from the repository root: | ||
|
||
```sh | ||
yarn test-extension -l positron-supervisor | ||
npm run test-extension -l positron-supervisor | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters