sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/link: panic with cgo export and //go:linkname when main.main not declared 
Labels: 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 darwin/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>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/zhuah/Library/Caches/go-build"
GOENV="/Users/zhuah/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/zhuah/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/zhuah/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/Cellar/gotip/stable"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/gotip/stable/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8n/mb3y_4bj1xv4q9sdmgjqdx_c0000gn/T/go-build4125710039=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?
the sample code is there:
```Go
package main

import (
	"C"
	_ "unsafe"
)

//go:linkname mainMain main.main
func mainMain()

//export runGoMain
func runGoMain() {
	mainMain()
}

```
and i forgot to declare a main function, then build it with `go build -buildmode=c-archive`

### What did you expect to see?



### What did you see instead?
go linker panic:
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x2 pc=0x121778b]

goroutine 177 [running]:
cmd/link/internal/amd64.machoreloc1(0x14814e0, 0xc00014cd90, 0xc0004fe000, 0x8776, 0x985c, 0x0, 0xc000080001, 0x166d0, 0x0)
        /usr/local/Cellar/gotip/stable/src/cmd/link/internal/amd64/asm.go:460 +0x4ab
cmd/link/internal/ld.machorelocsect(0xc00014e000, 0xc00014cd90, 0xc00014c4d0, 0xc001078538, 0x92e, 0x11d5)
        /usr/local/Cellar/gotip/stable/src/cmd/link/internal/ld/macho.go:1196 +0x3f4
cmd/link/internal/ld.relocSectFn.func1.1(0x12f18e0, 0xc00014e000, 0xc00014cd90, 0xc00014c4d0, 0xc001074000, 0x11d5, 0x11d5, 0xc001067210, 0xc00013a1c0)
        /usr/local/Cellar/gotip/stable/src/cmd/link/internal/ld/asmb.go:202 +0x66
created by cmd/link/internal/ld.relocSectFn.func1
        /usr/local/Cellar/gotip/stable/src/cmd/link/internal/ld/asmb.go:201 +0x1bd
```
Repository: pytorch
Issue: Migrate wheels to manylinux2010
Labels: oncall: releng,triaged

PyTorch x86_64 wheels are still build without _GLIBCXX_USE_CXX11_ABI flag, which introduces additional level of complexity when writing an extension or integrating PyTorch binaries with modern compiler
If PyTorch build system are to be migrated on manylinux2010 (or manylinux2014) compatible compiler?
Repository: terminal
Issue: Scrambled prompt/input area
Labels: Area-Output,Issue-Bug,Product-Terminal,Priority-2

### Windows Terminal version (or Windows build number)

1.7.1033.0

### Other Software

_No response_

### Steps to reproduce

(Don't know how to reproduce, could be random)

### Expected Behavior

Prompt works normally

### Actual Behavior

Prompt/text is scrambled or in the wrong area/position. Top arrow shows where the actual cursor is (still responsive - commands run). Other arrows show the prompt/previous commands that are randomly shown on the screen:

![image](https://user-images.githubusercontent.com/38451588/118762174-16729280-b8b9-11eb-9e69-44928c94abe9.png)
Repository: rust
Issue: Rust-src not included in the standalone installer
Labels: T-release

<!-- Thanks for filing an 🙋 enhancement request 😄! -->

**Describe the problem you are trying to solve**
<!-- A clear and concise description of the problem this enhancement request is trying to solve. -->
I am trying to configure a rust development environment on an offline machine. 

**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen. -->
The auto-completion of editors and ides require the rust-src to work properly. Please include it in the standalone offline installer. 

**Notes**
<!-- Any additional context or information you feel may be relevant to the issue. -->
Repository: TypeScript
Issue: Provide refactor to convert `[].forEach` to `for`/`for of` (And convert back)
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms
refactor, iterator, for
<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Provide refactor to convert `[].forEach` to `for`/`for of` (And convert back)

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example

```ts
[].forEach((value, index) => {
  console.log(value, index)
})

// to

var arr = []
for (let index = 0; index < arr.length, index++) {
  let value = arr[index]

  console.log(value, index)
}


// or

for (let index of []) {
 console.log(value) // disallow index here
}

```

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: vscode
Issue: Workspace Trust - restricted mode banner accessibility improvements
Labels: bug,accessibility,workspace-trust

- [ ] Once the focus is on the "buttons" inside the banner, pressing shift+TAB has no effect. Ideally it should focus the full banner
- [ ] Once the focus is on the "buttons" pressing esc has no effect. Same like above, it should focus the full banner
- [x] At the end of the banner aria label add: 'use left right navigation to Manage and Learn More'
- [ ] While the focus is on the banner. Pressing esc should close it

//cc @isidorn
Repository: pytorch
Issue: Pixel shuffle support for PyTorch Mobile NN-API
Labels: triaged,enhancement,module: android,oncall: mobile

## 🚀 Feature

This is a request to add pixel shuffle support in PyTorch Mobile NN-API, and also prioritize its implementation because of its importance for many computationally constrained mobile models that require image upsampling.

## Motivation

Pixel shuffle is a computationally efficient up-sampling approach that provides comparatively better results compared to interpolation based up-sampling approaches that are currently supported within PyTorch mobile. It is a natural choice for mobile models that require upsampling layers to resort to pixel shuffle. It is a massive block for image based models that require upsampling operations that pixel shuffle has not been implemented yet.

Within the NN API `serializer.py` I can see that the ops codes for `DEPTH_TO_SPACE` and `SPACE_TO_DEPTH` are already added: https://github.com/pytorch/pytorch/blob/cf7d56d8f223d4b10a624a5f7af886a2b67f0955/torch/backends/_nnapi/serializer.py#L44

## Alternatives

Are there any alternatives that could be implemented within the limits of the operational support of the PyTorch Mobile NN-API at this moment, that achieves the same effect as pixel shuffle would; or any other suggested alternatives?
Repository: go
Issue: x/net/html: Unable to parse conditional comments
Labels: NeedsInvestigation

<!--
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>
1.16.4

</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>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/_/.cache/go-build"
GOENV="/home/_/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/_/go/pkg/mod"
GONOPROXY="bitbucket.org/_"
GONOSUMDB="bitbucket.org/_"
GOOS="linux"
GOPATH="/home/_/go"
GOPRIVATE="bitbucket.org/_"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.16"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.16/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1444542212=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

I tried to parse a conditional comment tag
`<!--[if mso]>` . See https://en.wikipedia.org/wiki/Conditional_comment for more details.
https://play.golang.org/p/TSUYq9g4i4r
```golang
package main

import (
	"bytes"
	"fmt"
	"io"
	"golang.org/x/net/html"
)

func main() {
	Render([]byte("<!--[if mso]> HTML <![endif]-->"))
	fmt.Println()
	Render([]byte("<![if mso]> HTML <![endif]>"))
}

func Render(b []byte) {
	tokenizer := html.NewTokenizer(bytes.NewReader(b))
	for {
		if tokenizer.Next() == html.ErrorToken {
			err := tokenizer.Err()
			if err == io.EOF {
				// End of input means end of processing
				return
			}
		}
	
		token := tokenizer.Token()
		fmt.Print(token)
		fmt.Println(token.Type)
	}
}
```


### What did you expect to see?
I expect the parser recognize not only standard comments(`<!-- Comment content  -->`), but also downlevel-hidden(`<!--[if expression]> HTML <![endif]-->`) and downlevel-revealed(`<![if expression]> HTML <![endif]>`) comments.

```
<!--[if mso]>Comment 
 HTML Text
<![endif]-->Comment

<![if mso]>Comment 
 HTML Text
<![endif]>Comment
```



### What did you see instead?
```
<!--[if mso]> HTML <![endif]-->Comment

<!--[if mso]-->Comment
 HTML Text
<!--[endif]-->Comment
```

Note how '<!--[if mso]>' is not even recognized as a tag and how all comments are forced into the dash format, regardles if they had dashes or not.
Repository: PowerToys
Issue: [runner] add trace logging to WinMain
Labels: Area-Runner,Area-Quality,Issue-Task

### Provide a description of the new feature / enhancement

The runner WinMain has no trace loggin.
Repository: TypeScript
Issue: Confusing error when destructuring and overwriting with a wrong type
Labels: Bug,Help Wanted

# Bug Report

I noticed it because I put the spread at the bottom instead of top, but I had a hard time finding my mistake because of this. It's easy to spot if the object is small like in this example, but in my case the error and the spread was separated by multiple lines. Any other suggested error would be much clearer, but this confused me very much.

### 🔎 Search Terms

destructuring, spread, error reporting 

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about destructuring, spread, error reporting

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.3#code/JYOwLgpgTgZghgYwgAgCoQM5mQbwFDLIwD2xAXMgEakA2EcIA3HgL556iSyIoAymGaOiy4CRUgH4K1YnQbIAPshABXGjWZs8CYiBGU4UCvwyCow7AF5RhEuWVqardjr3YDUAOpRdAcwoWyNb4tqQUYFAqEAA0YgB0CR7O2rr6hgBKwL4AFmABmFY2yAlxSWxAA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
interface Test {
  foo: boolean;
}

interface LesserTest {
  foo?: boolean | null;
}

const bar: LesserTest = {
  foo: null
}

const barWrong: Test = {
  foo: true, // Type 'boolean | null' is not assignable to type 'boolean'.
  ...bar
}

// Type '{ foo?: boolean | null | undefined; }' is not assignable to type 'Test'. - such error would be much better
const barRight: Test = {
  ...bar
}
```

### 🙁 Actual behavior

The same property will be overwritten with a wrong type, but the error is reported in a wrong place, where the type is correct.

### 🙂 Expected behavior

The error should be reported on the destructured variable where the type is wrong or in the main variable `barWrong`. 

I also noticed that if those types would match we get an error `'foo' is specified more than once, so this usage will be overwritten.` which is also much better.
Repository: create-react-app
Issue: Option to disable ErrorOverlay
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

Since I wrote my error boundaries handling errors properly, it's now painfull to see this overlay poping since I want to my own rendering. However I think this functionnality is great and should be kept as default.

Note, I'll be happy to submit a PR. As seen in CONTRIBUTING guide I prefer to ask first with this issue.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Add an environment variable to disable the whole ErrorOverlay it in [`webpackHotDevClient.js`](https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-dev-utils/webpackHotDevClient.js).

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

Nothing without eject so no real alternatives.

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

There is another issue closed because inactivity 2 years ago https://github.com/facebook/create-react-app/issues/4685

And a stackoverflow answer here https://stackoverflow.com/a/47400249/5470616
Repository: flutter
Issue: Re-implement stretch overscroll behavior as a custom shader
Labels: c: new feature,platform-android,framework,engine,f: material design,a: fidelity,f: scrolling,f: gestures,customer: crowd,c: proposal,e: OS-version specific,P2,team-android,triaged-android

Update August 2023:

- The current implementation of StretchingOverscrollIndicator uses a transform animation. This is not precisely accurate to the native implementation, which uses a shader:
  - https://cs.android.com/android/platform/superproject/main/+/main:frameworks/native/libs/renderengine/skia/filters/StretchShaderFactory.cpp?q=overscroll%20stretch&ss=android&start=1
  - Implementing this shader in Flutter for better fidelity is currently blocked on https://github.com/flutter/flutter/issues/132099
- Since useMaterial3 is now true by default, the StretchingOverscrollIndicator is now enabled on Android by default

---

Internal: b/195519748

## Use case

Staring from Android 12 the default visual overscroll behavior will be Stretch instead of the glow effect.
More about this change: https://developer.android.com/about/versions/12/overscroll

![image](https://developer.android.com/about/versions/12/images/pull-stretch-overscroll.gif)


## Proposal

The default `GlowingOverscrollIndicator` shouldn't be applied when targeting Android 12
A new `StretchOverscrollIndicator` should be created and used when targeeting Android 12 + (some additional data about the dragging and flinging values should be provided to the `ScrollView`  builder, see the [EdgeEffect](https://developer.android.com/reference/android/widget/EdgeEffect) Api)
Repository: opencv
Issue: ios MatToUIImage
Labels: platform: ios/osx

https://github.com/opencv/opencv/blob/527d86a93d4183869ec34e1e9f195e3d91c3eb7e/modules/imgcodecs/include/opencv2/imgcodecs/ios.h#L55

hello, it looks like created `UIImage` is incorrect if Mat is `CV_8UC4`
Repository: youtube-dl
Issue: how to not download "foreign" videos from a channel
Labels: question

## Checklist

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

I download some channels like this:
```
youtube-dl --no-overwrites --write-description --write-info-json --write-annotations --write-all-thumbnails --all-subs --download-archive archive.txt https://www.youtube.com/channel/UCvBqzzvUBLCs8Y7Axb-jZew
```

Now my problem is, that it the also downloads videos that seem to be somehow linked into that channel, but belong actually to one of the owners other channels.
E.g. the [Sixty Symbols](https://www.youtube.com/channel/UCvBqzzvUBLCs8Y7Axb-jZew) channel has "Saved Playlists" for videos from [DeepSkyVideos](https://www.youtube.com/channel/UCo-3ThNQmPmQSQL_L6Lx1_w) and [Numberphile](https://www.youtube.com/channel/UCoxcjq-8xIDTYp3uz647V5A), which I also download (in another directory) with a command like the above.

Obviously I don't want to have double downloads.

Now I don't think using simply one `archive.txt` for all channels is a proper solution here, because that could still lead to a video being first downloaded from the "non-original" channel and ending up in the wrong folder.


Is there some way to download only videos that "originally" belong to some channel?


Thanks :-)
Chris.
Repository: godot
Issue: Possible bug in the animation importer, from Blender . .
Labels: bug,topic:import,topic:3d

**Godot version:**
Godot 4 build, from today . .

**OS/device including version:**
Windows 10, nVidia graphics . .

**Issue description:**
It looks like animations are imported incorrectly . . The base animation, in Blender, had 5 steps, here . .

![Skærmbillede (1793)](https://user-images.githubusercontent.com/83387915/118822614-98ae8700-b8b8-11eb-8dc4-d8988bae6e6d.png)

However, in Godot, it looks like there are keyframes, that weren't made, in Blender . . .
![Skærmbillede (1792)](https://user-images.githubusercontent.com/83387915/118822704-abc15700-b8b8-11eb-9240-58ad65e5306d.png)

Not sure, if there's an error, in the importer, or so . .

**Steps to reproduce:**

Just imported a .glTF, and it looks like it ' scrambled ', or added to the animations . . It's not important, the animation LOOKS fine, but I like a 1-to-1 import, if possible . . Also, well, it might be a bug, can't say . . .

**Minimal reproduction project:**
Uhh, just make a simple keyframe animation, say for characters, and move it into Godot, after importing, the keyframes don't match, what was in the 3D DCC, Blender . . Thx . . .
Repository: excalidraw
Issue: Set roundness (border radius) of a rectangle?
Labels: enhancement,discussion

I sometimes use rectangles to indicate groups of objects, like [this](https://excalidraw.com/#json=4561586521899008,W2tgbjD760bLcR9ZbI1__Q):

<img width="1047" alt="Screen Shot 2021-05-19 at 15 38 07" src="https://user-images.githubusercontent.com/101152/118822309-55541880-b8b8-11eb-9599-929414968936.png">

I wish the rounded corners could be more subtle for these rectangles – like setting border-radius in CSS or doing this in Google Docs:

https://user-images.githubusercontent.com/101152/118822965-e6c38a80-b8b8-11eb-8d97-5b8c5a912344.mov

_I'm not sure if I missed some previous feature requests / discussions around this but I tried searching for "rounded corners", "roundness", "border radius" etc._
Repository: vscode
Issue: Workspace Trust - Extension Development Host 
Labels: bug,workspace-trust

Issue copied from https://github.com/microsoft/vscode/issues/120251#issuecomment-842797717

Maybe I'm missing/mixing something, but it seems the debugging process of an extension, while opening trusted/untrusted workspaces as the `Extension Development Host`, does not respect if the extension supports untrusted workspace or not, at least in some scenarios.

My extension does not have the `untrustedWorkspaces` capability entry yet, then I do a simple debug:

1.  Start debugging
2. Open some random folder as `Extension Development Host`
3. Choose `Untrusted` 
4. The extension is active, which is weird because I didn't _added support yet_

Then, I close the `Extension Development Host`, add the `untrustedWorkspaces` capability entry and rebuild the extension. But now...

1. Start debugging
2. Open some random folder as `Extension Development Host`
3. Choose `Untrusted`
4. The extension is active, which is correct
5. Then I open another random folder, using `File / Open` command
6. And now I choose `Trusted` to this folder
7. The extension **is not active** 😕 

But, if I close the `Extension Development Host` window and restart the debugging process, the extension now properly activates. In fact, all installed extensions does activate.

I don't thing the error is just the debugging itself, but the _trust engine_ seems to be failing when you switch/activates new folders while debugging. I have noticed a similar extension activation issue while playing with _trusting/untrusting_ workspaces. It seems the extensions are not properly activated/deactivated when you do this.

Is it an issue with the debugging process? I mean, is it expected that I could play with untrusted workspaces while debugging, or is not a supported scenario yet, and I must package my extension and install the `.vsix` file, to test the extension?

Thank you