sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: quantization: unexpected casting of tensor min and max to int in histogram observer
Labels: oncall: quantization,triaged

### 🐛 Describe the bug

Originally reported in https://discuss.pytorch.org/t/casting-to-int-of-data-min-and-max-in-histogramobserver/159316

There is code in `HistogramObserver` which casts the tensor min and max to integers before calculating the histogram: https://github.com/pytorch/pytorch/blame/a9ba3fe1dbf2cea45c9a7e723010c27c211f7fe3/torch/ao/quantization/observer.py#L1143.  It's unclear on why this is here since we want the histogram bins be as accurate as possible, we should verify if there is a reason for having this and remove it if there isn't a reason.

### Versions

master

cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @jgong5 @Xia-Weiwen @leslie-fang-intel @vkuzo
Repository: node
Issue: Support for user-land modules in the user-land snapshots
Labels: module,snapshot

This issue is opened to discuss about supporting user-land modules in the user-land snapshots. Currently one has to use a bundler at snapshot building time if they want to include user-modules into the snapshot.
Repository: next.js
Issue: `Invariant: attempted to hard navigate to the same URL` when 404 /_next/data
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```
    Operating System:
      Platform: linux
      Arch: x64
      Version: #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022
    Binaries:
      Node: 18.7.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.5.2
    Relevant packages:
      next: 12.2.6-canary.1
      eslint-config-next: 12.2.5
      react: 18.2.0
      react-dom: 18.2.0
```

### What browser are you using? (if relevant)

Google Chrome Version 106.0.5231.2 (Official Build) dev (64-bit)

### How are you deploying your application? (if relevant)

next start

### Describe the Bug

When `/_next/data/<hash>/<page>.json` returns 404 (typically possible on new built deployment) and target page is same as current page, failed to update page with these errors.

```
GET http://localhost:3000/_next/data/9bj8WBQWW_WhKrNQX0Nn4/index.json 404 (Not Found)

Error: Failed to load static props

Uncaught (in promise) Error: Invariant: attempted to hard navigate to the same URL
```

There is no problem if target page is different from current page.

Nextjs seems to retry hard navigation for 404 /_next/data, but I guess it doesn't take into account the same URL.

### Expected Behavior

Correctly update the page.

### Link to reproduction

n/a

### To Reproduce

1. `npx create-next-app@canary my-next-app`

pages/index.js:

```js
import Link from "next/link";

// SSR to fetch everytime
export async function getServerSideProps() {
  return {
    props: {},
  };
}

export default function Home() {
  return (
    <Link href="/">Go to Home</Link>
  );
}
```

2. `yarn build && yarn start`
3. open `http://localhost:3000/`
4. `yarn build && yarn start` again
5. click the link
Repository: next.js
Issue: Error code: 5 on Chrome for Mac
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

OS: MacOs Catalina
OS version: 10.15.7
Browser: Google Chrome
Browser version: 104.0.5112.101
Next.js version: 12.1.6

### What browser are you using? (if relevant)

Google Chrome

### How are you deploying your application? (if relevant)

Plesk

### Describe the Bug

Error code: 5 shows when I go through the app I'm building. 
This error only shows for google chrome for Mac
![image](https://user-images.githubusercontent.com/97437607/185446295-a394b0cc-ee05-4913-9066-115b950fef1f.png)


### Expected Behavior

I expect that the website works fine for all browsers

### Link to reproduction

https://itd.jetdesigntest.co.uk/

### To Reproduce

Click on nav to open the. mega menu
![image](https://user-images.githubusercontent.com/97437607/185447413-469ff146-44a0-430d-83ed-7bf001f82ad5.png)

and click these links until the page breaks

![image](https://user-images.githubusercontent.com/97437607/185447413-469ff146-44a0-430d-83ed-7bf001f82ad5.png)

![image](https://user-images.githubusercontent.com/97437607/185447482-2338e51d-af72-45fd-bd6e-011197c9b504.png)
Repository: vscode
Issue: Merge editor button missing hover state
Labels: feature-request,editor-contrib

https://user-images.githubusercontent.com/35271042/185453998-9a26ef1c-b1f4-4fb9-9040-e91efa832ce4.mp4

Also: why doesn't this use the button component? Is it because it's part of the editor/monaco, meaning we can't depend on things outside the editor codebase?
Repository: godot
Issue: Microphone doesnt record on MacOS in Godot 3.5
Labels: bug,platform:macos,confirmed,topic:audio

### Godot version

3.5.stable

### System information

MacOS Monterey, MacBook Pro 16inch, 16GB RAM, M1 Pro

### Issue description

This issue is basically to reopen this issue - https://github.com/godotengine/godot/issues/35445
As its still reproducable in MacOS in Godot 3.5

As suggested in the above issue thread. I had to change the input rate in "Audio MIDI Setup" app to 44100Mhz to match with that of Godot in macos for it to work.

<img width="686" alt="image" src="https://user-images.githubusercontent.com/5861833/185453761-e3b348ab-be8e-4fec-9db1-b642b38b57c6.png">

Reason why this workaround is not enough? End users might not know this when the game is shipped.



### Steps to reproduce



Try running the reproducable project below. When your mac os audio input is not matching 41100mhz which by default its not and you will get the "AudioUnitRender error -10863" error

### Minimal reproduction project


Here is a simple barebones reproducable project
https://github.com/vickylance/godot_audio_record_test
Repository: TypeScript
Issue: Silent errors mode
Labels: Suggestion,Awaiting More Feedback

# Suggestion


## 🔍 Search Terms

silent errors, errors without messages, silent failure

## ✅ Viability Checklist

* [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).


## ⭐ Suggestion

When supplied `--silent-errors`, check for all errors and fail in the first error with no error messages other than "Error detected, compilation failed", without proceeding further to produce any error messages.

## 📃 Motivating Example

## 💻 Use Cases

This may be useful in cases the build is linted in a separate development environment and it is enough to fail without seeing the reason of failure.
Repository: go
Issue: runtime/netpoll: randomly hanging Accept on macOS since go1.18
Labels: OS-Darwin,NeedsInvestigation

### Context

We ship golang binaries that run a net/http.Server to a number of users on different platforms.

Recently we've started receiving reports from macOS users, mostly using M1 mac minis, of an issue where the http server stops responding.

The reports started shortly after we shipped an upgrade from go1.17 to go1.18

### Observations

The issue is very intermittent, with some users experiencing it atleast once a week.

At the same time, my own M1 mac mini has never experience this issue.

We have been trying to debug for a couple months, and have been able to gather some information via users:

- does not seem to be ulimit related, as other parts of the binary continue to function properly, creating files and making network requests
- the listening socket is active, because `curl` experiences a timeout instead of connection refused

      curl: (28) Failed to connect to 127.0.0.1 port 8089 after 25926 ms: Operation timed out

- golang stack trace shows the TCPListener.Accept sitting idle in netpoll

  ```
  goroutine 69 [IO wait, 771 minutes]:
  internal/poll.runtime_pollWait(0x12bdee198, 0x72)
	  runtime/netpoll.go:302 +0xa4
  internal/poll.(*pollDesc).wait(0x140000c2780?, 0x4?, 0x0)
	  internal/poll/fd_poll_runtime.go:83 +0x2c
  internal/poll.(*pollDesc).waitRead(...)
	  internal/poll/fd_poll_runtime.go:88
  internal/poll.(*FD).Accept(0x140000c2780)
	  internal/poll/fd_unix.go:614 +0x1d0
  net.(*netFD).accept(0x140000c2780)
	  net/fd_unix.go:172 +0x28
  net.(*TCPListener).accept(0x1400066e0c0)
	  net/tcpsock_posix.go:139 +0x2c
  net.(*TCPListener).Accept(0x1400066e0c0)
	  net/tcpsock.go:288 +0x30
  ```

I'm looking for any suggestions on how to debug this further, or if anyone has seen anything similar.

Currently I am wondering if this issue affects just the single socket, or is something process-wide. To verify, we've spun up another listener on a secondary port, and are waiting to hear if that port keeps working when the primary port stops responding.

As a workaround, we are considering adding an internal health check in the process that tries to connect back to itself over loopback. If the connection times out, we could restart the TCPListener.

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18.5 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?

Have not tried with go 1.19
Repository: three.js
Issue: Docs: French version 
Labels: Documentation

Hey, I’m a student/software developer and a big Three.js enthusiast.
I’d like to contribute by translating the documentation into French.

How should i proceed?
Repository: ant-design
Issue: Screen reader incorrectly reads form labels in browse mode
Labels: help wanted,Inactive,⌨️ Accessibility

### Reproduction link

[https://ant.design/components/form/#components-form-demo-basic](https://ant.design/components/form/#components-form-demo-basic)

### Steps to reproduce

1. Enter something in the "Username" field (eg. "foo").
2. Switch your screen reader to Browse Mode.
3. Use arrow navigation to access the label for the "Username" field.

### What is expected?

The screen reader should read the label and then the value in the field.  Using the example above, it should read "username edit foo".

### What is actually happening?

The screen reader reads the following elements separately:
- "star"
- "username"
- ""
- "edit foo"

| Environment | Info |
| --- | --- |
| antd | 4.22.6 |
| React | 17 |
| System | latest |
| Browser | Chrome |

---
There are multiple causes for this issue.  The main reason has to do with the location in the DOM where the label and input exist.  The input should either be adjacent to the label or _in_ the label.  Instead it is multiple nodes apart.

The other issue in the linked example is that the pseudo elements on the label which add star, colon, are additionally preventing the label and input from being read properly ([pseudo elements are intended for decorative purposes only](https://accessibleweb.com/question-answer/how-is-css-pseudo-content-treated-by-screen-readers/)). **This should be fixed in ant-design, but separately from the label/input DOM order fix.**

Here is some more info on how to implement form labels: https://www.w3.org/WAI/tutorials/forms/labels

Would a PR be accepted to fix this issue by correcting the rendering of the label and form field elements so they are adjacent? This is a non-trivial change.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

Ref: UIEN-1010
Repository: rust
Issue: Borrow checking for static methods became more strict
Labels: P-medium,regression-from-stable-to-stable,C-bug,T-types

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

### Code

I tried this code:

```rust
pub struct Bigger<'a> {
    _marker: &'a (),
}
impl<'a> Bigger<'a> {
    pub fn get_addr(byte_list: &'a mut Vec<u8>) -> &mut u8 {
        byte_list.iter_mut().find_map(|item| {
            Self::other(item);
            Some(())
        });

        byte_list.push(0);
        byte_list.last_mut().unwrap()
    }

    pub fn other<'b: 'a>(_value: &'b mut u8) {
        todo!()
    }
}
```

I expected to see this happen: I don't know what should be the behavior. Looks like it all boils down to what is going to be `'a` within `Bigger::<'a>::other`. In stable version of Rust, the code was accepted.

Instead, this happened: Using nightly version of the compiler a borrow checker error happened.

### Version it worked on

<!--
Provide the most recent version this worked on, for example:

It most recently worked on: Rust 1.47
-->

It most recently worked on: cargo 1.63.0 (fd9c4297c 2022-07-01) / rustc 1.63.0 (4b91a6ea7 2022-08-08)

### Version with regression

<!--
Provide the version you are using that has the regression.
-->

`rustc --version --verbose`:
```
rustc 1.65.0-nightly (9c20b2a8c 2022-08-17)
binary: rustc
commit-hash: 9c20b2a8cc7588decb6de25ac6a7912dcef24d65
commit-date: 2022-08-17
host: x86_64-unknown-linux-gnu
release: 1.65.0-nightly
LLVM version: 15.0.0
```

<!--
Did the compiler crash? If so, please provide a backtrace.
-->

<!--
If you know when this regression occurred, please add a line like below, replacing `{channel}` with one of stable, beta, or nightly.

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
-->
Repository: flutter
Issue: [Impeller] Refactor FilterContents to make it more testable.
Labels: engine,c: proposal,P3,e: impeller,team-engine,triaged-engine

Now that RenderFilter has an interface which exposes a snapshot, some of the trickery in the blur filter and friends can be tested here. These implementation details shouldn't be exposed to the public API, but making some stuff public might make sense just for testability.
Repository: go
Issue: proposal: cmd/go: enable remote import path wildcards
Labels: Proposal

[The go command documentation](https://pkg.go.dev/cmd/go#hdr-Remote_import_paths) says if you want `import "example.com/pkg"` to work for `https://github.com/myuser/pkg`, you have to put `<meta name="go-import" content="example.com/pkg git https://github.com/myuser/pkg">` in the HTML for https://example.com/pkg and https://example.com.

It seems you have to do this for each package, which is painful, especially if example.com serves static content, like a Hugo site on GitHub Pages.

There should be a way to have a single meta tag like `<meta name="go-import" content="example.com/* git https://github.com/myuser/*">` in the site root's HTML that acts as a wildcard for any import path.

I guess you could have things like fallbacks too:

```html
<meta name="go-import" content="example.com/pkg git https://github.com/myuser/pkg">
<meta name="go-import" content="example.com/* git https://github.com/someotheruser/*">
```
Repository: flutter
Issue: [Windows][a11y] Pressing the "down arrow" does not move the focus and read the Text Widget
Labels: a: accessibility,platform-windows,customer: google,a: desktop,P2,team-windows,triaged-windows

Internal: b/241886719

```dart
Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        // We also apply a custom font, ProductSans.
        title: Text(widget.title),
      ),
      body: Column(
        children: [
          Expanded(
            child: ListView(
              children: [
                Text(
                  'This 0',
                ),
                Text(
                  'This 1',
                ),
                Text(
                  'This 2',
                ),
                Text(
                  'This 3',
                ),
              ],
            ),
          ),
        ],
      ),
    );

```

Repro steps:
1. Run NVDA or any other screen reader on the windows machine.
2. Press tab to move the focus.

Actual: Not moving the focus to text and not reading it out.
Expected: Should move the focus to the text and read out loud.
Repository: rust
Issue: Type inference for `todo!()` breaks inside a tuple
Labels: T-compiler,A-inference,C-bug,T-types

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

Type inference for `todo!()` works if it is the sole element returned from a map closure, but breaks as soon as it is placed inside a tuple. playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1cfae6d57f44f603fa2eb258d332c7ab

I tried this code:

```rust
fn foo(_: Vec<(u32, String)>) {}


fn main() {
    foo((0..6).into_iter().map(|i| (i, todo!())).collect())
}
```


I expected to see this happen: compiles

Instead, this happened: compile error
```
error[E0277]: a value of type `Vec<(u32, String)>` cannot be built from an iterator over elements of type `({integer}, !)`
 --> src/main.rs:5:50
  |
5 |     foo((0..6).into_iter().map(|i| (i, todo!())).collect())
  |     ---                                          ^^^^^^^ value of type `Vec<(u32, String)>` cannot be built from `std::iter::Iterator<Item=({integer}, !)>`
  |     |
  |     required by a bound introduced by this call
 ```

### Meta
I checked "nightly" on the playground and the same compile error happens.

</p>
</details>
Repository: vscode
Issue: Welcome views should use primary + secondary button styles
Labels: ux,under-discussion,workbench-views

Today we have 2-3+ primary buttons used in our Explorer. Extensions can also contribute many more. As a general UI principle I think we should only feature one primary action with the rest being styled as secondary. 

## Before
<img width="399" alt="CleanShot 2022-08-18 at 14 15 51@2x" src="https://user-images.githubusercontent.com/25163139/185496787-ffd26f7e-6a50-49ad-9765-c3f0c83e08b5.png">

## After
<img width="424" alt="after" src="https://user-images.githubusercontent.com/25163139/185496857-c167fafe-d891-4705-bfc3-25f1b2844b57.png">

We recently adopted this behavior in notifications where we ensure the first action renders as a primary button. There's no special API other than the order of the array afaik. 

cc @misolori
Repository: rust
Issue: `Box<dyn FnOnce(T)>` doesn't seem to be really contravariant with T
Labels: A-trait-system,T-compiler,C-bug,A-variance,T-types,A-trait-objects

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
type F<'arg> = Box<dyn FnOnce(&'arg ())>;
fn contravar<'small, 'large: 'small>(f: F<'small>) -> F<'large> {
    f
}
```

I expected it to compile but I got the following:

```
error: lifetime may not live long enough
 --> src/lib.rs:3:5
  |
2 | fn contravar<'small, 'large: 'small>(f: F<'small>) -> F<'large> {
  |              ------  ------ lifetime `'large` defined here
  |              |
  |              lifetime `'small` defined here
3 |     f
  |     ^ function was supposed to return data with lifetime `'large` but it is returning data with lifetime `'small`
  |
  = help: consider adding the following bound: `'small: 'large`
```

[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=976d6bff8e3e107fff3b5d093bb4cddb)


```
$ rustc --version --verbose
rustc 1.65.0-nightly (29e4a9ee0 2022-08-10)
binary: rustc
commit-hash: 29e4a9ee0253cd39e552a77f51f11f9a5f1c41e6
commit-date: 2022-08-10
host: x86_64-unknown-linux-gnu
release: 1.65.0-nightly
LLVM version: 14.0.6
`rustc --version --verbose`:
```

I asked this on [stackoverflow too](https://stackoverflow.com/questions/73408274/covariance-of-boxdyn-fnoncet-in-rust) hopefully I am not misinterpreting something about variance.
Repository: go
Issue: cmd/compile: design doc explaining unified IR implementation
Labels: compiler/runtime

The Go 1.18 implementation of generics is documented at https://github.com/golang/proposal/blob/master/design/generics-implementation-dictionaries-go1.18.md. Unified IR implements substantially the same idea, but there are some notable distinctions that would be worth preparing an updated design document to explain the implementation in full.
Repository: pytorch
Issue: Inconsistency between index_select and __get_item__
Labels: triaged,module: advanced indexing

### 🐛 Describe the bug

We should be able to index using `torch.int32` using the bracket notation. It is possible using `index_select`:

```python
>>> idx = torch.tensor([0]).int()
>>> a = torch.rand(3)
>>> a[idx]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: tensors used as indices must be long, byte or bool tensors
>>> a.index_select(0, idx)
tensor([0.6999])
```

When dealing with large sets of indices (e.g. graph edge lists), this means we have to use more memory.

### Versions

master
Repository: kubernetes
Issue: [KMS] Strategy for storage migration
Labels: sig/auth,triage/accepted

Creating this umbrella issue to track how we handle storage migration for kms:
- How to interact with kms v2 design of using `currentKeyID`
- How will it work for `v1beta1`to enable migration from `AES-CBC` to `AES-GCM`
https://github.com/kubernetes/kubernetes/blob/d581cc90adba6c84919738841fe3e07302d53e33/staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go#L490-L492

/sig auth
/cc @enj
/triage accepted
Repository: godot
Issue: [Godot 4.0 Alpha 14] Area3D collision bodies behaves differently between BoxShape3D and Trimesh
Labels: bug,topic:physics,topic:3d

### Godot version

4.0 Alpha 14 Official

### System information

Manjaro Linux, AMD Ryzen 4800H iGPU

### Issue description

Texting an Area3D collision against a StaticBody3D+CollisionShape3D+BoxShape3d and a StaticBody3D+CollisionShape3D+Trimesh (From a Box with the same dimensions) has different collision detection results.
Mainly the Trimesh collision seems "broken". The collision is only detected while >50% of the Area3D is "outside" of the Trimesh. 

Video: https://user-images.githubusercontent.com/11414422/185504961-e183801c-b94e-4be1-90f4-2ece1f696a09.mp4

Controls for the demo:
"ui_left" (Left Arrow): Move box to the left
"ui_right" (Right Arrow): Move box to the right
"ui_select" (Space): Align camera (due to perspective etc)


### Steps to reproduce

Create a Trimesh Collision Sibling from a Mesh (here: from a glb).

### Minimal reproduction project

[collisiontest3d.zip](https://github.com/godotengine/godot/files/9378015/collisiontest3d.zip)
Repository: godot
Issue: Virtual Keyboard Not Emitting text_changed() Signal
Labels: platform:web,topic:porting

### Godot version

3.5.stable

### System information

ios 15.6 safari web browser GLES2

### Issue description

Attempting to update a Label Node from a TextEdit Node Using the text_changed() Signal built into TextEdit Node. 

```
func _on_AddMessage_text_changed():
	$"%AddMessageLabel".text = $"%AddMessage".text
```

The signal works as expected with an actual keyboard on desktop in both the web export and the standard F5 Play the project button, but does not function when on ios Safari. 

Running the same code within the _input(event) function does however work:

```
func _input(event):
	$"%AddMessageLabel".text = $"%AddMessage".text
```

### Steps to reproduce

Create a TextEdit Node with a script add in the text_changed() signal and set a Label Node's text equal to its text:

```
func _on_TextEdit_text_changed():
	$"%Label".text = $"%TextEdit".text
```

Export to HTML5 with Virtual Keyboard enabled.

### Minimal reproduction project

_No response_