sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/go: misleading `fatal:` log message when working in a git repo with no commits
Labels: help wanted,NeedsInvestigation,GoCommand

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18 linux/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="/home/mdevan/.cache/go-build"
GOENV="/home/mdevan/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/mdevan/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/mdevan/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/tmp/x/go.mod"
GOWORK=""
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-build1281482272=/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 go.dev/play is best.
-->
```shell
$ cd /tmp                                                                                                                                                                     [19/19]
$ git init x
Initialized empty Git repository in /tmp/x/.git/
$ cd x
$ go mod init x
go: creating new go.mod: module x
$ cat > main.go
// You can edit this code!
// Click here and start typing.
package main

import "fmt"

func main() {
        fmt.Println("Hello, 世界")
}
$ go build -v
# cd /tmp/x; git -c log.showsignature=false show -s --format=%H:%ct
fatal: your current branch 'master' does not have any commits yet
$
```


### What did you expect to see?

A successful build.

### What did you see instead?

~~Build itself failed.~~

Edit: The build does succeed even though the "fatal" message is printed.
Repository: youtube-dl
Issue: authored vs. compiled playlists ...
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [ 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

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->
some people authored their own videos, some other just compile them; both ways have their merits (or not).
Which kinds of heuristics could be used to tell apart both cases?
lbrtchx
Repository: godot
Issue: USER ERROR: Disconnecting nonexistent signal 'changed', callable: MeshInstance3D::_mesh_changed.
Labels: bug,topic:rendering,confirmed,needs testing,topic:3d

___

***Bugsquad note:** This issue has been confirmed several times already. No need to confirm it further.*

___

### Godot version

4.0.alpha6.official

### System information

Garuda Linux, Vulkan, Nvidia GeForce GTX 970

### Issue description

queue_freeing() a MeshInstance3D sometimes causes Godot to spam my logs with megabytes of:
```
USER ERROR: Disconnecting nonexistent signal 'changed', callable: MeshInstance3D::_mesh_changed.
```
I would guess #53285 is a similar issue

### Steps to reproduce

something to do with queue_freeing a MeshInstance3D but it doesn't always work

### Minimal reproduction project

_No response_
Repository: rust
Issue: compiled artifact size increase between 2022-04-05 and 2022-04-06
Labels: I-heavy

Checked on x86_64-pc-windows-msvc 1.62.0-nightly (306ba8357 2022-04-05) to 1.62.0-nightly (8f36334ca 2022-04-06)
https://github.com/rust-lang/rust/compare/306ba8357...8f36334ca
std.dll size increase: 5_957_632 to 6_094_848

Or maybe i too greedy?

@rustbot label +I-heavy
Repository: pytorch
Issue: Add `balance` flag to `random_split`
Labels: triaged,enhancement,module: data

### 🚀 The feature, motivation and pitch

It will be much easier to add a balance flag tp `random_split` for balancing between classes and not needing to go to `Sampler` or `train_test_split` from `sklearn`.

### Alternatives

`Sampler` or `train_test_split` from `sklearn`

### Additional context

Just make it for me, please ^^

cc @VitalyFedyunin @ejguan @NivekT
Repository: react
Issue: Suggestion: Process higher priority renders after each useEffect callback
Labels: Type: Discussion

## React Version: 18
## Steps to Reproduce:
Using the classic useDeferredValue demo which shows how an input can be responsive even when components have a slow render,  place the delay (loop) in a useEffect callback rather than in the render itself.  This can be demonstrated in this [sandbox](https://codesandbox.io/s/quirky-hofstadter-h8yvu1?file=/src/App.js).  When you check the box to make the delay in the useEffect rather than the render function the input is no longer responsive. 
## Current Behavior
The input is not responsive because all useEffect callbacks run to completion before the higher priority render of the input component can occur.
## Expected  Behavior
The input remains responsive as the high priority render occurs after the completion of each useEffect callback.
## Related
 While this example is contrived, a real example, where the problem was uncovered, is a fractal application that by necessity does it's canvas processing in a useEffect callback.
Repository: godot
Issue: Error report: Internal scirpt error! Opcode #13
Labels: bug,topic:gdscript

### Godot version

Godot Engine v3.4.2.stable.official.45eaa2daf

### System information

Linux, Pop!_OS 21.10, Intel® Core™ i7-9700 CPU @ 3.00GHz × 8, NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (PH-GTX1050TI-4G)

### Issue description

Hello, (this is my first bug report)
In gd-script I get an internal error message when executing a specific scene: Opcode 13.
I solved it, so I am happy, but thought this might help (I don´t know).
The error occurred when making a variable of type JSON in my custom CLASS which extends NODE.
(I made a short look through the issues and found no match (meaning i don´t know if its the same as #52893) if it is I´m sorry)

### Steps to reproduce

(I have the code but it is so easy don´t know if needed)
1. Create script with following code:
```python
extends Node

var bugVar : JSON
```
3. Create a scene and attach the script (or load it as node with `class_name MyClass` in script and than search the node, both produce the error).
4. Execute the scene and the error should come up.
5. SOLUTION: change the type to Dictionary like `var works : Dictionary`

### Minimal reproduction project

_No response_
Repository: three.js
Issue: Add `changeEnd` for controls
Labels: Addons

<!-- Ignoring this template may result in your feature request getting deleted -->

**Is your feature request related to a problem? Please describe.**
In R3F, the `<AdaptiveDpr />` has a problem, at the end of rotation, it will flick at the end of rotation, I have found out R3F use [debounce](https://github.com/pmndrs/react-three-fiber/blob/master/packages/fiber/src/core/store.ts#L201) to detect the end of [`change`](https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/OrbitControls.js#L275) event, but the debounce is 200ms, it not enough also it's not reliable, cause different `dampingFactor` have differnet debounce time.  
![Kapture_2022-04-09_at_23 37 36](https://user-images.githubusercontent.com/20318608/162626895-bf543aaf-cf3e-4b80-b91b-5cabe851a44a.gif)

 So I wonder, a `changeEnd` event would be the best solution for this, also this event would bring benifit for something needs to be done after `controls` if fully stop.



A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**

A `changeEnd` event

A clear and concise description of what you want to happen.

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**

Add any other context or screenshots about the feature request here.
Repository: opencv
Issue: GStreamer pipeline + OpenCV: VideoCapture.read() returns None on OSX
Labels: category: build/install,incomplete

<!--
If you have a question rather than reporting a bug please go to https://forum.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)

- OpenCV => 4.5.5
- Operating System / Platform => OSX 11.6.1
- Compiler => cmake

##### Detailed description

GStreamer pipeline + OpenCV: VideoCapture.read() returns None in Python 3.9.12

##### Steps to reproduce

    import cv2
    URL = '' # your RTSP address
    vcap = cv2.VideoCapture("""rtspsrc location={} latency=0 ! queue ! rtph264depay
        ! h264parse ! avdec_h264 ! videoconvert ! appsink""".format(URL), cv2.CAP_GSTREAMER)        

    ret, frame = vcap.read()
    print(frame) # Output: None

It works fine on Ubuntu but the frame is None on OSX. Perhaps an issue with the binding?
Repository: PowerToys
Issue: PowerToy Run is not working when PowerToys is installed in a path containing #
Labels: Issue-Bug,Product-PowerToys Run,External Dependency,Priority-2,Status-Blocked,Status-Reproducible

### Microsoft PowerToys version

"0.57.2"

### Running as admin

- [X] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

no

### ✔️ Expected Behavior

Useable powertoy run

### ❌ Actual Behavior

error is appearing 

### Other Software

[2022-04-10.txt](https://github.com/microsoft/PowerToys/files/8459509/2022-04-10.txt)
Repository: godot
Issue: Vulkan: Moving editor's windows is very laggy on linux
Labels: bug,platform:linuxbsd,topic:rendering,confirmed,topic:thirdparty,regression

### Godot version

4.0 alpha 6

### System information

Arch Linux, NVIDIA GTX750Ti, driver 510.60.02, Xorg

### Issue description

Very laggy windows with Godot 4. No such problem with version 3.4.4. Could be a problem with Vulkan render. No window lags on wayland, but there is a input delay about half a second, probably because of NVIDIA poor wayland support.
Here is video:
https://youtu.be/2nGjznv3seU

### Steps to reproduce

Just open Godot 4 on linux.

### Minimal reproduction project

_No response_
Repository: next.js
Issue: Using rewrites with domain-specific i18n causes redirect to defaulLocale
Labels: bug,Internationalization (i18n),linear: next

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

```
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT Wed Dec 29 18:09:17 UTC 2021
Binaries:
  Node: 16.14.2
  npm: 8.5.0
  Yarn: 1.22.10
  pnpm: N/A
Relevant packages:
  next: 12.1.5-canary.4
  react: 17.0.2
  react-dom: 17.0.2
```

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

When having configured i18n with domain-specific localization for two domains and rewrites configuration, app always redirects to defaultLocale localization

### Expected Behavior

Rewrites should work as described in documentation and shouldn't redirect to different locale.

### To Reproduce

Clear installation with domain-specific i18n and rewrites setup like below.

next.config.js
```
  i18n: {
    locales: ['en', 'cs'],
    defaultLocale: 'en',
    localeDetection: false,
    domains: [
      {
        domain: 'example.com',
        defaultLocale: 'en',
      },
      {
        domain: 'example.cz',
        defaultLocale: 'cs',
      },
    ],
  },
  async rewrites() {
    return {
      beforeFiles: [
        {
          source: '/test',
          destination: '/existingRoute',
        },
      ],
    }
  },
```

Visit example.cz domain and it immediately redirects you to example.com
Repository: rust
Issue: Should libstd handle cross-filesystem renames?
Labels: T-libs-api,A-io

I found in https://github.com/rust-lang/rust/pull/95170 that python is smarter than rust about this:
> If the destination is on the current filesystem, then [os.rename()](https://docs.python.org/3/library/os.html#os.rename) is used. Otherwise, src is copied to dst using copy_function and then removed. In case of symlinks, a new symlink pointing to the target of src will be created in or as dst and src will be removed.

https://docs.python.org/3/library/shutil.html

It might be nice to do the same in libstd, instead of giving a hard error when the source and destination are on different file systems.

_Originally posted by @jyn514 in https://github.com/rust-lang/rust/pull/95170#discussion_r832226965_
Repository: youtube-dl
Issue: Support for YouTube clips
Labels: 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.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

Add support for YouTube clips.  

Example: I'm trying to download [this clip (Ludwig on Going Live | Colin and Samir)](https://www.youtube.com/clip/Ugkxp20Fu4TVKSZyQn1u3_fi8HNeQTrgfwrO)
Steps to reproduce:
1. `youtube-dl "https://www.youtube.com/clip/Ugkxp20Fu4TVKSZyQn1u3_fi8HNeQTrgfwrO"`
2. It looks to be downloading the video for the original clip.  Here is the output for the command above (I interrupted it because that file is way to big to be the clip alone)
```
me@My-MacBook-Pro Desktop % youtube-dl "https://www.youtube.com/clip/Ugkxp20Fu4TVKSZyQn1u3_fi8HNeQTrgfwrO"
[youtube:tab] clip: Downloading webpage
[youtube] z_czmz_bJqk: Downloading webpage
[download] Destination: How Ludwig Became The Biggest Twitch Streamer…Then Left For Youtube-z_czmz_bJqk.mp4
[download]   0.1% of 181.40MiB at 52.76KiB/s ETA 58:36^C
ERROR: Interrupted by user
```
Repository: rust
Issue: const bindings don't appear in debug info
Labels: A-debuginfo,T-compiler,C-bug

Consider the following

```rust
use std::env;
use std::process::exit;

const C: usize = 2;
static S: usize = 2;

fn main() {
    exit((env::args().count() * C + S) as _);
}
```

The DWARF produced for this looks like

```
< 1><0x0000002a GOFF=0x000057e4>    DW_TAG_namespace
                                      DW_AT_name                  rust_scratch
< 2><0x0000002f GOFF=0x000057e9>      DW_TAG_variable
                                        DW_AT_name                  S
                                        DW_AT_type                  <0x00000063 GOFF=0x0000581d>
                                        DW_AT_decl_file             0x00000001 /home/khuey/dev/scratch/rust-scratch/src/main.rs
                                        DW_AT_decl_line             0x00000005
                                        DW_AT_alignment             0x00000001
                                        DW_AT_location              len 0x0009: 030000000000000000: DW_OP_addr 0x00000000
                                        DW_AT_linkage_name          _ZN12rust_scratch1S17h3d6a939dfb401814E
< 2><0x00000049 GOFF=0x00005803>      DW_TAG_subprogram
                                        DW_AT_low_pc                0x00009020
                                        DW_AT_high_pc               <offset-from-lowpc>154
                                        DW_AT_frame_base            len 0x0001: 57: DW_OP_reg7
                                        DW_AT_linkage_name          _ZN12rust_scratch4main17hf06deefdac6d13dcE
                                        DW_AT_name                  main
                                        DW_AT_decl_file             0x00000001 /home/khuey/dev/scratch/rust-scratch/src/main.rs
                                        DW_AT_decl_line             0x00000007
                                        DW_AT_main_subprogram       yes(1)
< 1><0x00000063 GOFF=0x0000581d>    DW_TAG_base_type
                                      DW_AT_name                  usize
                                      DW_AT_encoding              DW_ATE_unsigned
                                      DW_AT_byte_size             0x00000008
```

The output for the static binding comes from `codegen_static` on `CodegenCx`. consts, however, get tossed much earlier and don't appear as `MonoItem`s so they can't be output at this stage. One possible solution here is to create a `MonoItem` for consts that's used solely to output debug info.
Repository: go
Issue: x/tools/go/gcexportdata: can't import package from pkg/mod
Labels: NeedsInvestigation,Tools

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18 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/xushiwei/Library/Caches/go-build"
GOENV="/Users/xushiwei/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/xushiwei/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/xushiwei/go"
GOPRIVATE=""
GOPROXY=""
GOROOT="/Users/xushiwei/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/xushiwei/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/xushiwei/work/gox/go.mod"
GOWORK=""
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/yb/cjx6c2ks4tn7pdmj9s5zz3ph0000gn/T/go-build3409594572=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

https://go.dev/play/p/1Us1Xqxqori

```
package main

import (
	"fmt"
	"go/token"
	"go/types"
	"os"
	"path/filepath"
	"runtime"

	"golang.org/x/tools/go/gcexportdata"
)

func main() {
	val := filepath.Join(runtime.GOROOT(), "pkg/mod")
	os.Setenv("GOMODCACHE", val)
	fmt.Println("GOMODCACHE:", val)

	fset := token.NewFileSet()
	packages := make(map[string]*types.Package)
	imp := gcexportdata.NewImporter(fset, packages)

	_, err := imp.Import("go/types")
	fmt.Println("Import result:", err)

	_, err = imp.Import("golang.org/x/tools/go/gcexportdata")
	fmt.Println("Import result:", err)
}
```

### What did you expect to see?

```
GOMODCACHE: /Users/xushiwei/go/pkg/mod
Import result: <nil>
Import result: <nil>
```

### What did you see instead?

Local output:

```
GOMODCACHE: /Users/xushiwei/go/pkg/mod
Import result: <nil>
Import result: can't find import: golang.org/x/tools/go/gcexportdata
```

Output of go.dev/play:

```
GOMODCACHE: /usr/local/go-faketime/pkg/mod
Import result: can't find import: go/types
Import result: can't find import: golang.org/x/tools/go/gcexportdata
```
Repository: pytorch
Issue: Add ZeroTensor support for `mm`
Labels: module: performance,module: autograd,triaged,actionable,ZeroTensor

As per the title.

example PR: https://github.com/pytorch/pytorch/pull/71129

cc @VitalyFedyunin @ngimel @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: vscode
Issue: [Accessibility] Audio Cues doesn't work in web editor
Labels: bug,upstream,accessibility,web

CC @isidorn:


Version: 1.66.0-insider
Commit: 521a3d858570ebc9ce9d5602802f4525a02e045c
Date: 2022-03-29T07:32:43.053Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36

## Reproducible steps

1. Run `Help: List Audio Cues` and see if you hear any audio cues.
2. It does not work.