sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [Select][material-ui] Select allows a second selection while closing
Labels: discussion,component: select

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example:
Example with a slow transition to illustrate the issue: https://codesandbox.io/s/intelligent-ben-wsfz3w?file=/Demo.tsx:823-921

Steps:

1. Open the select
2. Select an option
3. Click another option while the transition is occurring.
4. The second options value will be set


### Current behavior 😯

When selecting a menu item from the Select components dropdown, a second item can accidentally be selected if the user double clicks.

### Expected behavior 🤔

Once a selection is made from the menu, a second selection should not be able to be made.

### Context 🔦

Customers are accidentally selecting the wrong option when double clicking.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: .blend files do not import textures when "Unpack Enabled" is off.
Labels: bug,topic:import

### Godot version

4.1.1

### System information

Windows 11, Blender 3.6.1

### Issue description

When importing a .blend file into godot, unchecking the blender/materials/unpack_enabled option in the import settings, and setting gltf/embedded_image_handling to embed as basis universal, the textures do not import to the model. I would expect you to be able to use the textures embedded inside, similar to what you can do with gltf files, but unless I'm missing something about the import process (entirely possible), I don't see how.

### Steps to reproduce

Create a blender file with a texture material, and save it to your godot project. In the import settings, turn blender/materials/unpack_enabled off. The textures do not import, no matter what the gltf /embedded _image_handling settings are.

### Minimal reproduction project

N/A
Repository: rust
Issue: `'static` lifetime not inferred in `const` context
Labels: A-lifetimes,C-bug

I tried this code:

```rust
struct Foo;

impl Foo {
    const ALL_METHODS: &[(&str, fn(&Self) -> usize)] = &[("foo", Self::foo)];
    
    fn foo(&self) -> usize {
        123
    }
}
```

I expected to see this happen: successful compile

Instead, this happened:
```
error[[E0491]](https://doc.rust-lang.org/stable/error_codes/E0491.html): in type `&[(&str, for<'a> fn(&'a Foo) -> usize)]`, reference has a longer lifetime than the data it references
 --> src/lib.rs:5:5
  |
5 |     const ALL_METHODS: &[(&str, fn(&Self) -> usize)] = &[("foo", Self::foo)];
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
note: the pointer is valid for the anonymous lifetime as defined here
 --> src/lib.rs:5:24
  |
5 |     const ALL_METHODS: &[(&str, fn(&Self) -> usize)] = &[("foo", Self::foo)];
  |                        ^
note: but the referenced data is only valid for the anonymous lifetime as defined here
 --> src/lib.rs:5:24
  |
5 |     const ALL_METHODS: &[(&str, fn(&Self) -> usize)] = &[("foo", Self::foo)];
  |
```

Adding some `'static`s fixes it, but I think these are supposed to be unnecessary now:

```
const ALL_METHODS: &'static [(&'static str, fn(&Self) -> usize)] = &[("foo", Self::foo)]
```
Repository: next.js
Issue: Error: [...] requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:21:34 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8112
    Binaries:
      Node: 20.5.0
      npm: 9.8.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant Packages:
      next: 13.4.12
      eslint-config-next: 13.4.12
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A
```

### Which area(s) of Next.js are affected? (leave empty if unsure)

App Router

### Describe the Bug

Any DI package depends on [`reflect-metadata`](https://www.npmjs.com/package/reflect-metadata). Previously, before App Router, you could import this in `_app.tsx` and all was well. This doesn't exist or work anymore with App Router and I have no clue where or how I could make it work. I tried importing it in the root layout, as well as pre-loading it using the package.json scripts but none of that works.

What is the best way to get `reflect-metadata` working with Next.js >= 13.4?

### Expected Behavior

Being able to load `reflect-metadata` in a decent way without hacking.

### Relevant links

- https://nextjs.org/docs/architecture/supported-browsers#custom-polyfills
- https://github.com/vercel/next.js/discussions/46805
- https://github.com/vercel/next.js/issues/49850
Repository: flutter
Issue: On desktop you can see more than one tooltip at a time
Labels: framework,f: material design,a: desktop,has reproducible steps,P2,workaround available,found in release: 3.10,team-design,triaged-design,found in release: 3.14

### Steps to reproduce

1. Create a table where each row has a tooltip.

```
  @override
  Widget build(BuildContext context) {
    return Table(
      children: _fields.map((field) {
        return TableRow(
          children: [
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: Tooltip(
                  message: field.help,
                  child: Text(
                    field.name,
                  )),
            ),
...
```

2. Move your mouse over them quickly. 

### Expected results

It should only show one tooltip at a time.

### Actual results

Because of the fade-out animation it actually leaves a weird trail of tooltips.

Really minor, but it looks weird. I think as soon as a new tooltip is shown all other tooltips should be instantly hidden.




### Code sample

<details><summary>Code sample</summary>

```dart
See above. Very easy to reproduce.
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/376842/094a1f7d-d90e-4603-b82f-24ae16ae83a9

</details>


### Logs

<details><summary>Logs</summary>

```console
NA. This issue form is terrible btw. The controls keep changing size, and if you forget to fill in any section you have to start from scratch.
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208],
    locale en-GB)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)       
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.81.0)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: react
Issue: [DevTools Bug]: react-hooks/rules-of-hooks does not report error for function starting with _
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://codesandbox.io/p/sandbox/quizzical-shirley-9y2txs

### Repro steps

Using ESLint rule `react-hooks/rules-of-hooks` with the following code, I would expect it to report errors for invalid usage of hooks. It does not report anything though unless I change `_isEnabled` to `isEnabled`.

```js
const useFeatureEnabled = () => {
  const enabled = useEnabled();
  const isEnabled = enabled && _isEnabled();
  return { featureEnabled: isEnabled };
};

const _isEnabled = () => {
  const { settingEnabled } = useSettings();
  return settingEnabled;
};


// From https://github.com/facebook/react/blob/a20eea25197df0da80104917df414747eeab1ac9/packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js#L716
// These are neither functions nor hooks.
function _normalFunctionWithHook() {
  useHookInsideNormalFunction();
}
function _useNotAHook() {
  useHookInsideNormalFunction();
}
```

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: pytorch
Issue: Add cutlass as an alternative backend of PT2 Inductor
Labels: feature,triaged,oncall: pt2,module: inductor

### 🚀 The feature, motivation and pitch

### Motivation
[Cutlass](https://github.com/NVIDIA/cutlass) is an efficient template library for compute-heavy GPU operations like Gemm, Conv and others. It has decent support for H100. Some important kernels (e.g. Flash attention v2, XFormer attention) are implemented based on Cutlass, too. It would be a good complement to Triton to generate Inductor fused kernels for some compute heavy operations.

### Proposal
The proposal is to add Cutlass as an alternative backend of Inductor, as demonstrated in the prototype PR (https://github.com/pytorch/pytorch/pull/106607). As shown in the PR:

1) In torch/_inductor/config.py, "Cutlass" could be configured as one of the Inductor max-autotune backend through `max_autotune_gemm_backends`. (In the future, we may want to extend it to cover other cases beyond gemm.) This option can be set via options in `torch.compile()` (https://pytorch.org/docs/stable/generated/torch.compile.html#torch-compile).

2) Once "Cutlass" is added as a candidate, max-autotune will also tune and select cutlass kernels, together with Aten and Triton kernels.

3) We'll also utilize Cutlass epilogue visitor to support flexible gemm and epilogue fusions in later PRs. More features will come in the future.

### Release / Dependency
1) Pytorch release: to properly release cutlass together with Pytorch, we need to find a way to pack cutlass into Pytorch package distribution. This includes both C++ header files (third_party/cutlass/include) as well as Python scripts and modules (third_party/cutlass/tools/library/scripts).

2) NVCC dependency: The prototype implementation relies on NVCC. We need to figure out ways to switch to NVRTC. Cutlass team has a proposal to use NVCC to do pre-processing at Pytorch packaging stage, and make end-users only rely on NVRTC. This needs to be discussed in details.

3) Meta internal deployment: We need to figure out a way to properly deploy cutlass dependency in Meta internal env.

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @amjames @desertfire @wconstab @Xia-Weiwen @ngimel @atalman @malfet @alband @ptrblck @seemethere @jansel @gottbrath
cc @jackkosaian @mnicely @hwu36 



### Alternatives

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: Mouse Highlighter Conflicts with Color Picker
Labels: Issue-Bug,Product-Color Picker,Needs-Team-Response,Product-Mouse Utilities,Status-Reproducible

### Microsoft PowerToys version

0.72.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

ColorPicker, Mouse Utilities

### Steps to reproduce

1. Enable Color Picker and Mouse Highlighter in Power toy settings
2. Go to Enable Mouse Highlighter -> Appearance and behavior -> Always Highlight color. Change the color and opacity to have it visible. Mine is set to #80FFFF00
3. Press the Activation shortcut for the Mouse Highlighter and have the Highlighter show up.
4. Press the Activation shortcut for the Color Picker.

### ✔️ Expected Behavior

To get the Color code of the screen without an extra tint from the highlighter.

### ❌ Actual Behavior

I get the color code but it is tinted with my Highlight color.
Eg. HEX : 0d1117 gets tinted with yellow from the Highlighter to become HEX : 86880b

### Other Software

_No response_
Repository: godot
Issue: Project setting for default font does not support Monospace Image Fonts
Labels: bug,topic:gui

### Godot version

4.1

### Issue description

Godot does supports importing [Monospace Image Fonts (https://docs.godotengine.org/en/stable/tutorials/ui/gui_using_fonts.html#bitmap-fonts). Those can be configured using import options on e.g. a `PNG`.

However, the Project Setting for the default theme font does not allow or support selecting such a font after configuring it.

### Steps to reproduce

1. Setup Monospace Image font
2. Try to select the imported file as default theme font
3. It does not work (not included in the default file filter, and even after switching the filter to "All Files" and selecting it manually and reloading Godot, it does not work)
Repository: next.js
Issue: Internal Server Error on Non-POST w/ Body
Labels: bug,Runtime

### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 11 Home
    Binaries:
      Node: 20.5.1
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant Packages:
      next: 13.4.14-canary.1
      eslint-config-next: 13.4.13
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Middleware / Edge (API routes, runtime)

### Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/agitated-yonath-cy9nps

### To Reproduce

1. Start the server provided in the codesandbox demo
2. Open a new terminal and run any of the following:
  - `curl localhost:3000/example -X GET -H "Content-Type: text/plain" -d "Test"`
  - `curl localhost:3000/example -X GET -H "Content-Type: text/plain" -d ""`
  - `curl localhost:3000/example -X DELETE -H "Content-Type: text/plain" -d ""`
4. Observe curl output as: Internal Server Error. Observe exception in server.

### Describe the Bug

Sending a request to an API route with a body and without the POST method causes an internal server error.

Exception:
```js
TypeError: fetch failed
    at Object.fetch (/project/sandbox/node_modules/next/dist/compiled/undici/index.js:1:26669)
    at async invokeRequest (/project/sandbox/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:21:12)
    at async invokeRender (/project/sandbox/node_modules/next/dist/server/lib/router-server.js:252:29)
    at async handleRequest (/project/sandbox/node_modules/next/dist/server/lib/router-server.js:445:24)
    at async requestHandler (/project/sandbox/node_modules/next/dist/server/lib/router-server.js:462:13)
    at async Server.<anonymous> (/project/sandbox/node_modules/next/dist/server/lib/start-server.js:116:13) {
  cause: RequestContentLengthMismatchError: Request body length does not match content-length header
      at write (/project/sandbox/node_modules/next/dist/compiled/undici/index.js:1:67105)
      at _resume (/project/sandbox/node_modules/next/dist/compiled/undici/index.js:1:66726)
      at resume (/project/sandbox/node_modules/next/dist/compiled/undici/index.js:1:65413)
      at connect (/project/sandbox/node_modules/next/dist/compiled/undici/index.js:1:65301) {
    code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
  }
}
```

### Expected Behavior

Sending a GET or similar request with a body may or may not be correct behavior, however it should not be an error for the server. The server should either ignore the body, or return a 400 (or whatever is deemed appropriate). 

Probably related: #deleteerro

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

_No response_

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

Occurs in dev and production builds
Repository: godot
Issue: Font outline is not included in text width (and gets cut off)
Labels: bug,topic:gui

### Godot version

4.1

### Issue description

The font outline and shadow does not get included in whatever is used for the internal width calculation of fonts/texts for RichTextLabel and Label. If `clip_content` is enabled, the outline gets cut off at the left edge of all text, which results in very ugly text.

![issue](https://github.com/godotengine/godot/assets/1654763/61689e2b-dc16-4e29-a87a-7ffb91f8ac8c)

Notice how in both cases the left edge is a pretty clear cutoff. Of course, shadow/outline settings are a bit exaggerated here to more easily show the issue, but it occurs at lower sizes too and is also visible and jarring.

### Reproduction steps

1. Add a RichTextLabel. May work with other nodes like Label.
2. Under Theme Overrides for the created node, set the Font Outline Color to something easy to discern, like black.
3. Under Theme Overrides for the created node, set the Font Outline Size to something high-ish to make it easy to see the issue, like 12.
4. Add some text, needs to be longer so the label starts to clip its content and show the scrollbar. Notice how there is a visible cutoff at the left of the text as shown in the screenshots above.

### MVP

The below Godot 4.1 project shows the issue in a sample scene for both shadow and outline in a RichTextLabel.

[outlinemvp.zip](https://github.com/godotengine/godot/files/12321630/outlinemvp.zip)
Repository: godot
Issue: tr will ignore "string" prefixes if it finds a match inside a str().
Labels: discussion,topic:gdscript,topic:editor,needs testing

### Godot version

v4.1.stable.official [970459615]

### System information

Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3179) - 12th Gen Intel(R) Core(TM) i9-12900KF (24 Threads)

### Issue description

I'm using Resources, and inside these Resources are 3 tags. Within my localization .CSV, all items which could be used as a tag are prefixed with "tag_", so, for example... "tag_area" is a key which translates into "AREA".

So, if I put the tag holding "area" into a variable, such as "tag3":

tr("tag_" + str(tag3))

What will happen is that it will decide to not grab "tag_area", but instead just grab "area".

All of my other tags work fine with this system, stuff like "tag_fire" or "tag_directional", but that's because there isn't a non-tag version. There is only "tag_fire" and "fire" does not exist. But I DO have "tag_area" and "area". It's pulling the wrong one.

### Steps to reproduce

Create resource that has a variable holding a string.

Create a .CSV Localization file with a key that includes text from within that string.

Print it in code doing something like tr("key_first_half_" + str(key_second_half))" and it will print the result of key_second_half if that also exists as a key, ignoring the key_first_half_ prefix.

i.e; if you have 2 keys, and one is called "key_first_half_test" and the key_second_half variable is holding a string called "test", if your other key is just called "test" it'll mistakenly grab that and pretend the "key_first_half_" part doesn't exist.

### Minimal reproduction project

N/A
Repository: yt-dlp
Issue: Support using cookies from Arc browser
Labels: bug,help-wanted,core:cookies

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.07.06** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Arc is a (relatively) new browser based on Chromium. Please add support for using cookies via `--cookies-from-browser` for Arc web browser.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['--cookies-from-browser', 'arc', '-vU', 'https://weverse.io/wooah/live/3-126751905']

Usage: yt-dlp [OPTIONS] URL [URL...]

yt-dlp: error: unsupported browser specified for cookies: "arc". Supported browsers are: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi
```
Repository: pytorch
Issue: Dynamic shapes support for inductor foreach codegen
Labels: good first issue,triaged,enhancement,oncall: pt2,module: dynamic shapes,module: inductor

### 🚀 The feature, motivation and pitch

Currently foreach op compilation doesn't support dynamic shapes. 

See the restriction here: https://github.com/pytorch/pytorch/blob/4df84c3b4d93ea53c9ca169f32a0dc4619bee797/torch/_inductor/lowering.py#L419

Since this feature was originally intended for optimizers, dynamic shapes aren't strictly necessary, but in order for this codegen to be used elsewhere in the stack (think input concatenation, more generalized horizontal fusion) dynamic shapes support is necessary. 

### Alternatives

_No response_

### Additional context

A good place to get started is here: https://github.com/pytorch/pytorch/blob/4df84c3b4d93ea53c9ca169f32a0dc4619bee797/torch/_inductor/codegen/triton_foreach.py#L142

This file is what handles codegen for the foreach operators. At a high level additional runtime args and a more sophisticated kernel launch grid calculation will be needed to take into account runtime sizes vs static sizes. Contact @mlazos for more details

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @amjames @desertfire @wconstab @Xia-Weiwen @ngimel
Repository: PowerToys
Issue: Mouse Without Borders KeysNotMatched Error
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.72.0.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

I have two machines that were connected. They have stopped working. Upon investigation I have found that they have spontaneously started failing to match the keys. Naturally, I have tried resetting everything and the error has persisted.
Win 11 pro on one machine.
Win 10 Home on the other. Again this hasn't been an issue in the past.

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_