sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: net/http: allow customizing proxy CONNECT url
Labels: Proposal,Proposal-Accepted

**Update May 5 2021**: The current proposed API is in https://github.com/golang/go/issues/45460#issuecomment-824249906 - rsc

- - -

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
go version go1.16 windows/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\流星暴雨\AppData\Local\go-build
set GOENV=C:\Users\流星暴雨\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=E:\Eternal\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=E:\Eternal\go;
set GOPRIVATE=
set GOPROXY=https://goproxy.io,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\ 流星暴雨\AppData\Local\Temp\go-build1194816388=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

I want to use a proxy to access HTTPS websites and customize the backend IP address

### What did you expect to see?

Is there some way to customize the URL of the CONNECT request

### What did you see instead?
Both CONNECT request and SSL handshake use `cm.targetAddr`

https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/net/http/transport.go#L1667-L1672
https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/net/http/transport.go#L1725-L1729
https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/net/http/transport.go#L1838-L1846
Repository: TypeScript
Issue: Ability to type check factory constructed source files
Labels: Suggestion,API,Awaiting More Feedback

# Suggestion

It would be nice to have the ability to type check factory constructed source files.

For example, say I create some ASTs like so, where `params.module.body` is some foreign AST that I'm converting to a tsc AST:

```ts
const sourceFile = ts.factory.createSourceFile(
    params.module.body.map(item => convertModuleItem(item)),
    ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), // side note... i'm unsure why this param exists
    ts.NodeFlags.None,
);
sourceFile.fileName = params.fileName;
sourceFile.text = params.fileText;
setRange(sourceFile, params.module); // my own function that sets the range
```

...it would be better to be able to use these source files without having to implement all the necessary hacks. For example, not having to do...

```ts
(sourceFile as any).parseDiagnostics = [];
(sourceFile as any).bindDiagnostics = [];
```

...along with figuring out how to set many more internal properties (ex. `identifiers`, `pragmas`, `imports`, etc... etc...).

## 🔍 Search Terms

type check transformed AST source file

## ✅ Viability Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).

## 💻 Use Cases

- Ability to do AST transformations then feed that back through the type checker without having to print out the AST to a string then reparsing that string to an AST using the TS compiler.
- Ability to take a non-tsc AST representation of an AST and construct it to a tsc AST using the factory methods. This would be useful in Deno as it is already parsing an AST with swc and so it could pass that AST over to the TS compiler for type checking.

## Viability?

I understand this is a huge ask and the main reason I'm opening this is to ask how viable it is?

I believe the type checker would need to be changed to sparingly consult the source file text or node ranges and some of the code in the parser that sets internal properties would need to be extracted out to support it being lazily computed in addition to when it's parsed. Additionally, factory methods would have to clear the appropriate internal properties on nodes when they're transformed so that they will be lazily computed in the future when the type checker goes to retrieve them. Anything else?
Repository: rust
Issue: E0195 on where Self: 'a bounds when they are unconditionally satisfied by Self
Labels: A-lifetimes,A-trait-system,T-compiler,C-bug,D-confusing

```rust
trait Test {
    fn boo<'ctx>() where Self: 'ctx;
}

impl<A, B> Test for (A, B) {
    fn boo<'ctx>() where A: 'ctx, B: 'ctx { }    // ok
}

impl Test for () {
    fn boo<'ctx>() { }   //  [E0195]: lifetime parameters or bounds on method `boo` do not match the trait declaration
}
```

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=9d4125a483581bb47d66f002f1074fda

I expected this to succeed.  And in fact, the first impl (the generic one) succeeds!  (i.e. the compiler is able to successfully determine that `Self: 'ctx` given `A: 'ctx` and `B: 'ctx`)

However, an error is emitted on the impl for `()`:

```
error[E0195]: lifetime parameters or bounds on method `boo` do not match the trait declaration
  --> src/lib.rs:10:11
   |
2  |     fn boo<'ctx>() where Self: 'ctx;
   |           ------ lifetimes in impl do not match this method in trait
...
10 |     fn boo<'ctx>() { }
   |           ^^^^^^ lifetimes do not match method in trait

error: aborting due to previous error
```

In order to make this one compile, we need to add `where (): 'ctx` to the impl, which is, well, a bit silly!

```rust
impl Test for () {
    fn boo<'ctx>() where (): 'ctx { }   //  ok (workaround)
}
```

---

**Addendum:** In fact, **any** mention of the lifetime inside `where` bounds causes compilation to succeed.

```rust
impl Test for () {
    fn boo<'ctx>() where i32: 'ctx { }  // ok
}

impl Test for () {
    fn boo<'ctx>() where &'ctx i32: Clone { }  // also ok
}
```
Repository: youtube-dl
Issue: Looking for support for texasarchive.org .  appears to be mpd style streaming
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.04.07. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.04.07**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

Looking for integrated support for texasarchive.org , a site with a large historical archive.  A list of example links include:

https://texasarchive.org/2006_00093 
https://texasarchive.org/2016_04877
https://texasarchive.org/2016_02400
https://texasarchive.org/2011_03051

I have, in some cases, been able to retrieve the URL for the embedded mpd file and feed to ytdl to pull, but in the case of the top two links the process only downloads the first 8 seconds.  

Love the software!
Repository: flutter
Issue: Remove "--dump-skp-on-shader-compilation" and all related code in engine and tool
Labels: team,tool,engine,P3,team-engine,triaged-engine

We implemented `--dump-skp-on-shader-compilation` for `customer: dream`. Once they stop using it, we should remove it from our codebase, because as implemented it is essentially unusable. There's no documentation, and it is entirely unintuitive how to actually obtain the files to which it refers.

We may in due course want to create other mechanisms e.g. to save the SKPs for expensive frames from the DevTools, or similar, but that is a separate issue.
Repository: vscode
Issue: Code screen will move up after write a unimported package method and undo
Labels: feature-request,undo-redo

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
- VS Code Version: 1.55.1
- OS Version: Win10

Steps to Reproduce:

1. input the go code
2. write a unimported package method
3. ctrl+z
4. repeat step 2 and 3

<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No
> Disable all extension, the problem can not reproduce, maybe can not autoimport.

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

Screenshots or recordings:

GIF:
![output](https://user-images.githubusercontent.com/11224565/114115242-00b29a80-9915-11eb-9e7c-00b79d5734a5.gif)

Relate issues:
- https://github.com/golang/vscode-go/issues/1406
Repository: pytorch
Issue: Performance debugging / warning mode
Labels: module: performance,triaged,enhancement

Previously, we implemented a deterministic mode (https://github.com/pytorch/pytorch/issues/15359) which gives warnings when nondeterministic operations are done. This has widely been acknowledged to be pretty useful for people debugging determinism issues. We should do the same for performance problems.

The basic pitch: when performance debugging mode is enabled, we raise warnings whenever we do operations that are "suspicious for performance"; for example, we take a slow fallback algorithm (e.g., for loops for batched tensors), we run a naive algorithm, we move the data back to CPU to do the computation, we do a sync point. Anyone who then is interested in improving the performance of their model can turn on performance debugging mode and get useful warnings for possible hot spots in their code.

For the most part, I want the implementation to look the same as how we did deterministic mode. However, there are some possible extra bells and whistles: We could use timer/events to measure how long the "slow" section takes, thus working as a miniature "profiler" that only turns on for regions of code that are already known to be slow (so overhead doesn't matter). We can then sort warnings by how much time they took so people can prioritize fixing the worst cases.

cc @VitalyFedyunin @ngimel @kurtamohler @zou3519 @vitaly-fedyunin @swolchok
Repository: youtube-dl
Issue: https://online.olympiafestival.gr/
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.04.07. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x ] I'm reporting a new site support request
- [x ] I've verified that I'm running youtube-dl version **2021.04.07**
- [x ] I've checked that all provided URLs are alive and playable in a browser
- [ x] I've checked that none of provided URLs violate any copyrights
- [ x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://online.olympiafestival.gr/play/#/film/88772?from=https:%2F%2Fonline.olympiafestival.gr%2Ffilm%2Fmplouz-me-sphigmena-dontia%2F&t=150
- Single video: https://online.olympiafestival.gr/play/#/film/88772?from=https:%2F%2Fonline.olympiafestival.gr%2Ffilm%2Fmplouz-me-sphigmena-dontia%2F&t=150
- Playlist: 
- 
## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
I'm getting this when I'm trying to download 
ERROR: Unsupported URL: https://online.olympiafestival.gr/play/#/film/88772?from=https:%2F%2Fonline.olympiafestival.gr%2Ffilm%2Fmplouz-me-sphigmena-dontia%2F
't' is not recognized as an internal or external command,
operable program or batch file.
Repository: pytorch
Issue: RuntimeError: "max_cuda" not implemented for 'ComplexFloat'
Labels: triaged,module: complex,enhancement

#To Reproduce

After do torch.fft.fft
Here is the implementation code:
` m1,_ = torch.max(absFxri,2)`



Error-log:

Traceback (most recent call last):
  File "train_cifar.py", line 1018, in <module>
    main()
  File "train_cifar.py", line 780, in main
    fast_better=args.fast_better, BNeval=args.BNeval)
  File "train_cifar.py", line 252, in attack_pgd
    loss.backward()
  File "/opt/conda/lib/python3.6/site-packages/torch/tensor.py", line 245, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
  File "/opt/conda/lib/python3.6/site-packages/torch/autograd/__init__.py", line 147, in backward
    allow_unreachable=True, accumulate_grad=True)  # allow_unreachable flag
  File "/opt/conda/lib/python3.6/site-packages/torch/autograd/function.py", line 89, in apply
    return self._forward_cls.backward(self, *args)  # type: ignore
  File "train_cifar.py", line 48, in backward
    m1,_ = torch.max(absFxri,2)
RuntimeError: "max_cuda" not implemented for 'ComplexFloat'

Expected behavior

I think PyTorch should support torch.max() on ComplexFloatTensor.

Environment

Collecting environment information...
PyTorch version: 1.8.0a0+17f8c32
Is debug build: True
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.14.0

Python version: 3.6 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 11.1.74
GPU models and configuration: GPU 0: GeForce RTX 3090
Nvidia driver version: 455.38
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.4
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.2
[pip3] pytorch-transformers==1.1.0
[pip3] torch==1.8.0a0+17f8c32
[pip3] torchtext==0.8.0a0
[pip3] torchvision==0.8.0a0
[conda] magma-cuda110 2.5.2 5 local
[conda] mkl 2019.1 144
[conda] mkl-include 2019.1 144
[conda] nomkl 3.0 0
[conda] numpy 1.19.2 py36h6163131_0
[conda] numpy-base 1.19.2 py36h75fe3a5_0
[conda] pytorch-transformers 1.1.0 pypi_0 pypi
[conda] torch 1.8.0a0+17f8c32 pypi_0 pypi
[conda] torchtext 0.8.0a0 pypi_0 pypi
[conda] torchvision 0.8.0a0 pypi_0 pypi

Additional context

If this issue has been resolved, could you give the explicit version of new PyTorch?

Thanks & Regards!
Momo


cc @ezyang @anjali411 @dylanbespalko @mruberry
Repository: pytorch
Issue: torch.nn.functional.log_softmax on Arm CPU gives partly NaN results
Labels: needs reproduction,triaged,module: arm

## 🐛 Bug
torch.nn.functional.log_softmax gives partly nan results on Raspberry Pi 4 with 64bit Arm Cortex-A72 processor. Executing exactly same code on x86 processors (tested both on Ubuntu and Windows on multiple machines) gives correct results. Tried both PyTorch 1.7.1 and 1.9.

Following line causes the problem on Arm CPU:
`input_ = torch.nn.functional.log_softmax(input_, dim=-1)`

Using an alternate softmax implementation solves the issue (possibly getting rid of any optimizations):
```
from scipy.special import log_softmax
input_= input_.cpu().detach().numpy()
input_= log_softmax(input_, axis=-1)
input_= torch.from_numpy(input_)
```

## To Reproduce

Steps to reproduce the behavior:

1. Install PyTorch on Arm based device such as Raspberry Pi
2. Execute torch.nn.functional.log_softmax on CPU with your tensor
3. Output from torch.nn.functional.log_softmax should contain NaN values, not sure if this applies to all tensors. 

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
An output tensor without NaN values should be obtained.
<!-- A clear and concise description of what you expected to happen. -->

## Environment

Collecting environment information...
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (aarch64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.16.3

Python version: 3.8 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.1
[pip3] pytorch-lightning==1.0.8
[pip3] torch==1.7.1
[pip3] torch-stft==0.1.4
[pip3] torchtext==0.6.0
[pip3] torchvision==0.2.2.post3
[conda] Could not collect


## Additional context

None


cc @malfet
Repository: go
Issue: cmd/cgo: code using <iostream> header silently terminates on Windows
Labels: OS-Windows,NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.3 windows/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<pre>
$ go env
set GOARCH=amd64
set GOOS=windows
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
</pre>

### What did you do?

The following simple code silently crashes on Windows.
But executes as intended on Linux.
Strangely, if I use printf instead of cout, it runs well on Windows too.
I can mix general C++ code like std::string with printf.
So it seems the static variable such as cout, cerr inside iostream are causing this.

<pre>
##### FILE: go.mod ##############################

module cgotest

##### FILE: main.go #############################

package main

import "cgotest/cpplib"

func main() {
	cpplib.Print()
}

##### FILE: cpplib/cppcode.cpp #################

#include &lt;iostream&gt;

extern "C" void printFromCPP()
{
	std::cout &lt;&lt; "printFromCPP()\n";
}

##### FILE: cpplib/cpplib.go ###################

package cpplib

// void printFromCPP();
import "C"

func Print() {
	C.printFromCPP()
}
</pre>