sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Closure lifetime error doesn't reference variable when `move` is used
Labels: A-diagnostics,T-compiler,D-confusing,D-terse

### Code

```Rust
fn foo<'a>(bar: &'a u8) {
    let _bad_closure: Box<dyn FnOnce() + 'static> = Box::new(move || {
        println!("Var: {bar}");
    });
}
```


### Current output

```Shell
error: lifetime may not live long enough
 --> src/lib.rs:2:23
  |
1 | fn foo<'a>(bar: &'a u8) {
  |        -- lifetime `'a` defined here
2 |     let _bad_closure: Box<dyn FnOnce() + 'static> = Box::new(move || {
  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`

error: could not compile `playground` (lib) due to 1 previous error
```


### Desired output

The usage of 'bar' should be mentioned.


### Rationale and extra context

_No response_

### Other cases

Removing the 'move' keyowrd produces a much better error message:

```rust
fn foo<'a>(bar: &'a u8) {
    let _bad_closure: Box<dyn FnOnce() + 'static> = Box::new(|| {
        println!("Var: {bar}");
    });
}
```


produces:

```
   Compiling playground v0.0.1 (/playground)
error: lifetime may not live long enough
 --> src/lib.rs:2:23
  |
1 | fn foo<'a>(bar: &'a u8) {
  |        -- lifetime `'a` defined here
2 |     let _bad_closure: Box<dyn FnOnce() + 'static> = Box::new(|| {
  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`

error[E0597]: `bar` does not live long enough
 --> src/lib.rs:3:25
  |
2 |     let _bad_closure: Box<dyn FnOnce() + 'static> = Box::new(|| {
  |                       ---------------------------            -- value captured here
  |                       |
  |                       type annotation requires that `bar` is borrowed for `'static`
3 |         println!("Var: {bar}");
  |                         ^^^ borrowed value does not live long enough
4 |     });
5 | }
  |  - `bar` dropped here while still borrowed

For more information about this error, try `rustc --explain E0597`.
error: could not compile `playground` (lib) due to 2 previous errors
```


### Rust Version

```Shell
rustc 1.77.0-nightly (ca663b06c 2024-01-08)
binary: rustc
commit-hash: ca663b06c5492ac2dde5e53cd11579fa8e4d68bd
commit-date: 2024-01-08
host: x86_64-unknown-linux-gnu
release: 1.77.0-nightly
LLVM version: 17.0.6
```


### Anything else?

_No response_
Repository: flutter
Issue: http_disallow_http_connections_test.dart flakes on mac in engine CI
Labels: P2,c: disabled test,c: flake,team-engine,triaged-engine

From https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20Production%20Engine%20Drone/239932/overview

```
[ERROR:flutter/shell/testing/tester_main.cc(666)] Unhandled exception
Exception: SocketException: Failed to create server socket (OS Error: Can't assign requested address, errno = 49), address = build846-m9.golo.chromium.org, port = 0
Stack trace: #0      _NativeSocket.bind (dart:io-patch/socket_patch.dart:1032:7)
<asynchronous suspension>
#1      _RawServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:1812:15)
<asynchronous suspension>
#2      _ServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:2097:15)
<asynchronous suspension>
#3      _HttpServer.bind.<anonymous closure> (dart:_http/http_impl.dart:3186:27)
<asynchronous suspension>
#4      bindServerAndTest (file:///Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/dart/http_disallow_http_connections_test.dart:35:29)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/dart/http_disallow_http_connections_test.dart:73:5)
<asynchronous suspension>
#6      Test.run.<anonymous closure>.<anonymous closure> (package:litetest/src/test.dart:69:11)
<asynchronous suspension>
#7      Test.run.<anonymous closure> (package:litetest/src/test.dart:65:7)
<asynchronous suspension>
#8      test.<anonymous closure> (package:async_helper/async_minitest.dart:52:17)
<asynchronous suspension>
```
Repository: pytorch
Issue: There is a performance drop because we have not yet implemented the batching rule for aten::_scaled_dot_product_efficient_attention_backward
Labels: triaged,actionable,module: vmap,module: sdpa

### 🚀 The feature, motivation and pitch

I'm working on ensembling multiple UNet with the method mentioned in [MODEL ENSEMBLING
](https://pytorch.org/tutorials/intermediate/ensembling.html). This method works well on accelerating the inference of the models, but I encountered the following warnings:

> UserWarning: There is a performance drop because we have not yet implemented the batching rule for aten::_scaled_dot_product_efficient_attention. Please file us an issue on GitHub so that we can prioritize its implementation. (Triggered internally at ../aten/src/ATen/functorch/BatchedFallback.cpp:82.)
  hidden_states = F.scaled_dot_product_attention(

> UserWarning: There is a performance drop because we have not yet implemented the batching rule for aten::_scaled_dot_product_efficient_attention_backward. Please file us an issue on GitHub so that we can prioritize its implementation. (Triggered internally at ../aten/src/ATen/functorch/BatchedFallback.cpp:82.)

The inference speed of my script maybe further improved if the mentioned batching rules are implemented. 

### Alternatives

_No response_

### Additional context

_No response_

cc @zou3519 @jbschlosser @bhosmer @cpuhrsch @erichan1 @drisspg @mikaylagawarecki
Repository: ant-design
Issue: Carousel dot show duration
Labels: help wanted,💡 Feature Request,Inactive,6.x

![Jan-09-2024 13-37-24](https://github.com/ant-design/ant-design/assets/507615/a4c00b04-5378-409a-b725-2e06c625eae5)
Repository: yt-dlp
Issue: [Doc] Better explain filename sanitization related options
Labels: docs/meta/cleanup,triage

### 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 have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [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

While looking for ways around #4547, I found https://github.com/yt-dlp/yt-dlp/issues/5014#issuecomment-1256928588, which mentions the options `--restrict-filenames`, `--compat-option filename-sanitization`, and `--replace-in-metadata`; another related option is `--windows-filenames`.  These are all briefly mentioned in the man page, but are not explained well, and even after reading through relevant parts of the code Iʼm not sure what they all do.

In particular
* The most egregious is `--compat-option filename-sanitization`; I donʼt know where the old `youtube-dl` behavior is documented, so knowing that I can “revert  to  youtube-dl's behavior” with it doesnʼt actually tell me anything useful.
* I would not have guessed that `--replace-in-metadata` did *anything* for the filename, only the metadata recorded within the file.
* Based just on the manpage, I would think that `--no-windows-filenames` would be a full fix for #4547, but in fact I canʼt find it changing the behavior at all (note that I am on Linux writing to a btrfs filesystem).  This makes sense because itʼs listed as the default, but does not make sense because file name sanitization that seems to only be relevant for Windows is still being done.
* The `--restrict-filenames` seems the best explained, although it could be clearer what it does when there would be ampersands or spaces in the file names.

I understand that no combination of these flags actually does what I want (that is, literally, a different issue), but it would be nice if what they actually do were documented better.

### Provide verbose output that clearly demonstrates the problem

- [ ] 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
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
N/A; this is not related to any specific run of yt-dlp
```
Repository: deno
Issue: Invalid URL on IPv6 http.RequestOptions.host without square brackets
Labels: node compat,node API

Version: Deno 1.39.3

Whether IPv6 hostnames should have square brackets when passed to `http.request(options: RequestOptions)` seems to be reversed from Node:

```js
const { request } = await import("node:http")
request({ host: "[::1]" }).end() // Node throws at getaddrinfo
request({ host: "::1" }).end() // Deno uses the URL constructor:
/* Uncaught TypeError: Invalid URL: 'http://::1/'
    at getSerialization (ext:deno_url/00_url.js:90:11)
    at new URL (ext:deno_url/00_url.js:381:27)
    at ClientRequest._createUrlStrFromOptions (node:http:585:17)
    at ClientRequest._writeHeader (node:http:385:22)
    at ClientRequest._send (ext:deno_node/_http_outgoing.ts:405:12)
    at ClientRequest.end (node:http:441:12) */
```
Repository: create-react-app
Issue: featureImage_fOUF Could not be loaded (Image of Easy to get started in seconds is not getting render
Labels: needs triage,issue: bug report

Issue - I was heading to the website and I saw Easy to get started image is not loading instead there text with no image icon is showing.

Environment - Production

Attaching screen shot for reference.

![image](https://github.com/facebook/create-react-app/assets/98868242/5566b7a4-d214-42b0-8055-a7202e24d54e)
Repository: PowerToys
Issue: Auto Rename Using Tokens
Labels: Idea-Enhancement,Product-PowerRename

### Description of the new feature / enhancement

Tokens are placeholders for specific data, such as date, time, camera settings, or metadata.
This Blog Post Talks More About Them: https://imagealchemist.net/advanced-file-naming-in-capture-one-part-1/
This app also supports: https://docs.anchorpoint.app/docs/4-assets-and-tasks/1-Templates/
These 2 solutions are paid and targeted for specific use cases for renaming project folders and photographs. 

### Scenario when this would be used?

Set Up Tokens Once and Automatically Rename Files without doing anything else

### Supporting information

_No response_
Repository: godot
Issue: _get can not return null values
Labels: enhancement,discussion,topic:core,breaks compat

### Tested versions

4.2

### System information

Windows 10

### Issue description

According to the documentation and also my own testing `_get` can not return properties whose value is `null` even if it is included in `_get_property_list`

> Should return the given property's value, or null if the property should be handled normally.

This causes an issue cause if the property does indeed have the value null, accessing it will result in an error:
> Invalid get index 'no_value'

Doing `return null as Variant` or a variable with value `null` also does not work!

### Steps to reproduce

Implement `_get_property_list` and `_get` in a script
Return `null` for some of the properties in the property list
Try to access said properties

### Minimal reproduction project (MRP)

[CustomProperty.zip](https://github.com/godotengine/godot/files/13871316/CustomProperty.zip)
Repository: next.js
Issue: Page.tsx rendered before Layout.tsx
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/snowy-bush-4pqjlv

### To Reproduce

1. Start the application in dev mode;
2. Visit /auth/login link.

### Current vs. Expected behavior

### Current behavior
Logs shows that page component is rendered before the layout file even if there is a redirect() in the layout.

### Expected behavior
I expect layout to be called before the page file because of the file hierarchy and also because layout renders children in which page component is encapsulated.


### 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 23.2.0: Wed Nov 15 21:55:06 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6020
    Binaries:
      Node: 20.9.0
      npm: 10.1.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant Packages:
      next: 13.4.19
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.3.2
    Next.js Config:
      output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local)

### Additional context

_No response_
Repository: transformers
Issue: Add FlashAttention-2 support for Mask2Former model
Labels: Feature request

### Feature request

Is it possible to add FlashAttention-2 support to the Mask2Former model? 

### Motivation

Since it is already availble for ViT, it would be great to have it on Mask2Former too.

Maybe the additional input masks to the decoder layer represent a major challenge?

### Your contribution

I could help by testing the implementations.
Repository: rust
Issue: Add clearer error message when mistakenly using `ok_or` instead of `ok_or_else` and equivalent method
Labels: A-diagnostics,T-compiler

### Code

```Rust
fn main() -> Result<(), bool> {
    None.ok_or(|| true)?
}
```


### Current output

```Shell
error[E0277]: `?` couldn't convert the error to `bool`
 --> src/main.rs:3:24
  |
2 | fn main() -> Result<(), bool> {
  |              ---------------- expected `bool` because of this
3 |     None.ok_or(|| true)?
  |                        ^ the trait `From<{closure@src/main.rs:3:16: 3:18}>` is not implemented for `bool`
  |
  = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
  = help: the following other types implement trait `FromResidual<R>`:
            <Result<T, F> as FromResidual<Yeet<E>>>
            <Result<T, F> as FromResidual<Result<Infallible, E>>>
  = note: required for `Result<(), bool>` to implement `FromResidual<Result<Infallible, {closure@src/main.rs:3:16: 3:18}>>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `playground` (bin "playground") due to previous error
```


### Desired output

```Shell
`?` expected `bool` for `Err` variant but found `{closure@src/main.rs:3:16: 3:18}`.
Did you meant to use `ok_or_else` ?
```


### Rationale and extra context

We could use the fact that the found type is a closure to detect the user probably wanted to use the `*_else` variant of the method.

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.77.0-nightly (ca663b06c 2024-01-08)
binary: rustc
commit-hash: ca663b06c5492ac2dde5e53cd11579fa8e4d68bd
commit-date: 2024-01-08
host: x86_64-pc-windows-msvc
release: 1.77.0-nightly
LLVM version: 17.0.6
```


### Anything else?

_No response_

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"obeis"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: material-ui
Issue: [docs-infra] Translate link text in `@see` properties
Labels: l10n,scope: docs-infra

The link text should be translatable (similarly to CSS class descriptions).
But since this is not critical right now as we don't have translations, you can do it in a separate PR, so this one doesn't get stale and can unblock other work.
Everything else looks fine to me!

_Originally posted by @michaldudak in https://github.com/mui/material-ui/pull/40111#pullrequestreview-1810857095_
            

**Search keywords**:
Repository: vscode
Issue: Multi Diff Editor Tab Height not the same as Editor Tabs
Labels: polish,multi-diff-editor

The multi diff editor tabs are larger then the editor group tabs. I think they should align and they should also adapt to the `window.density.editorTabHeight` setting (default height: 35px, compact height: 22px)
Repository: godot
Issue: Export to Windows: Missing export template for architecture arm64
Labels: enhancement,platform:windows,topic:editor,usability,topic:export

### Tested versions

4.2.1

### System information

Godot v4.2.1.stable - macOS 14.2.1 - GLES3 (Compatibility) - Apple M2 - Apple M2 (8 Threads)

### Issue description

When adding an export to Windows and selecting architecture "arm_64", it says that the export template is missing although I downloaded all export templates via the prompt.

![Screenshot missing export template windows arm64](https://github.com/godotengine/godot/assets/149774350/a27e9c89-19cd-4d15-b497-66ba8ac98131)

What's unclear to me as a user at this point:

- Is Windows Arm (64) supported at all by Godot Engine? If not, the architecture drop-down should not offer this option here.
- If Windows Arm (64) is supported by Godot Engine, where can I get the export template for it from?
- If Windows Arm (64) is supported, but there is no official default export template for that architecture, it would be nice to get a warning at this step in the GUI instead of pointing to the default export template download & install popup.


### Steps to reproduce

See above.

### Minimal reproduction project (MRP)

See screenshot
Repository: pytorch
Issue: losing precision in torch.sum
Labels: needs reproduction,triaged


Hello, I am losing precision when performing torch.sum operation, is it possible to avoid this? 

in case I am missing something, please let me know, thanks!

```

(Pdb) numpy.sum(x_mem_banks_sim.cpu().numpy(), axis=0)
array([0.00019587, 0.00018269, 0.00018708, 0.00052095, 0.00020271,
       0.00019834, 0.00020154, 0.00018121], dtype=float32)
(Pdb) torch.sum(x_mem_banks_sim, dim=0, dtype=torch.float32)
tensor([0.0002, 0.0002, 0.0002, 0.0005, 0.0002, 0.0002, 0.0002, 0.0002],
       device='cuda:0')
(Pdb) torch.sum(x_mem_banks_sim, dim=0, dtype=torch.float64)
tensor([0.0002, 0.0002, 0.0002, 0.0005, 0.0002, 0.0002, 0.0002, 0.0002],
       device='cuda:0', dtype=torch.float64)
(Pdb) torch.sum(x_mem_banks_sim, dim=0, dtype=torch.double)
tensor([0.0002, 0.0002, 0.0002, 0.0005, 0.0002, 0.0002, 0.0002, 0.0002],
       device='cuda:0', dtype=torch.float64)

```
Repository: godot
Issue: ClassDB.instantiate() Cannot instance `@tool` script
Labels: bug,topic:core

### Tested versions

v4.2.1.stable.official [b09f793f5]

### System information

win10 21H2

### Issue description
I tested the version:  v4.2.1, v4.1.1-stable, v4.0-stable, all cannot nstance.
![new](https://github.com/godotengine/godot/assets/104408400/15485b34-9489-4e94-abc0-a921613fe4aa)


### Steps to reproduce

look at MRP

### Minimal reproduction project (MRP)

[gd.zip](https://github.com/godotengine/godot/files/13873382/gd.zip)
Repository: vscode
Issue: VSCode Snap doesn't start when using Wayland mode
Labels: bug,linux,snap,confirmed,wayland

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 
1.86.0-insider
fb769554405bee9be16e21ceb0a496bd29126941
x64

- OS Version: Ubuntu 23.10

Steps to Reproduce:

1. Download the code-insiders snap package
2. Run it like this:  `code-insiders --ozone-platform-hint=auto --verbose`
3. VSCode doesn't start but reports this in the console:

```
 Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver
[340245:0109/202358.589994:WARNING:wayland_object.cc(158)] Binding to gtk_shell1 version 4 but version 5 is available.
[340245:0109/202358.590067:WARNING:wayland_object.cc(158)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[340245:0109/202358.590093:WARNING:wayland_object.cc(158)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
(code-insiders:340245): GLib-GIO-ERROR **: 20:23:58.596: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
```
Repository: material-ui
Issue: [system] Codesandbox example for ts styled-components is broken
Labels: package: system,package: styled-engine-sc

### Search keywords

codesandbox styled-components

### Latest version

- [X] I have tested the latest version

### Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-cra-styled-components-ts

Steps:
1. Open the link


### Current behavior

<img width="1381" alt="Screenshot 2024-01-09 at 14 02 20" src="https://github.com/mui/material-ui/assets/237739/16b060ad-acbb-4892-9fed-1c554eb3c291">


### Expected behavior

The sandbox should work?

### Context

We try to provide an example for another bug we are experiencing in our project and would like to use this codesandbox as a base.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: macOS 12.6.1
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 120.0.6099.199
    Edge: Not Found
    Safari: 15.6.1
  npmPackages:
    @mui/base:  5.0.0-beta.30
    @mui/core-downloads-tracker:  5.15.3
    @mui/lab: 5.0.0-alpha.159 => 5.0.0-alpha.159
    @mui/material: 5.15.3 => 5.15.3
    @mui/private-theming:  5.15.3
    @mui/styled-engine:  5.15.3
    @mui/styled-engine-sc: 6.0.0-alpha.11 => 6.0.0-alpha.11
    @mui/system:  5.15.3
    @mui/types:  7.2.12
    @mui/utils:  5.15.3
    @types/react: 17.0.70 => 17.0.70
    react: 17.0.2 => 17.0.2
    react-dom: 17.0.2 => 17.0.2
    styled-components: 6.1.1 => 6.1.1
    typescript: 5.3.3 => 5.3.3
```
</details>

### Support Key
#80425