sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Async callback argument causes nonsensical error message.
Labels: A-diagnostics,T-compiler,WG-diagnostics,A-async-await,AsyncAwait-Triaged,D-confusing,WG-async,fixed-by-async-closures

### Code

```Rust
use std::future::Future;

pub fn run<R: Future<Output = ()>, F: FnMut(&i32) -> R>(mut callback: F) {
    let x = 1;
    callback(&x);
}

async fn foo(_x: &i32) {}

fn main() {
    run(foo);
}
```


### Current output

```Shell
Compiling playground v0.0.1 (/playground)
error[E0308]: mismatched types
  --> src/main.rs:11:5
   |
11 |     run(foo);
   |     ^^^^^^^^ one type is more general than the other
   |
   = note: expected opaque type `impl for<'a> Future<Output = ()>`
              found opaque type `impl Future<Output = ()>`
   = help: consider `await`ing on both `Future`s
   = note: distinct uses of `impl Trait` result in different opaque types
note: the lifetime requirement is introduced here
  --> src/main.rs:3:54
   |
3  | pub fn run<R: Future<Output = ()>, F: FnMut(&i32) -> R>(mut callback: F) {
   |                                                      ^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `playground` (bin "playground") due to 1 previous error
```


### Desired output

_No response_

### Rationale and extra context

The error does not make any sense whatsoever.
* The error talks about two opaque types, although only one opaque type is involved (the returned future of foo).
* The error talks about awaiting on "both Futures" even though there are no futures to await on.
* The error talks about `impl Trait` even though that syntax isn't used.
* The error has `for<'a>` and then doesn't use `'a` anywhere.

I am unable to figure out if this code is supposed to compile or not, but I suspect that expressing the type I want requires HKT, and this code shouldn't compile.

### Other cases

_No response_

### Rust Version

```Shell
Using https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2bd7af033754103ac8bb25c56fba28c2

Rust stable channel, version 1.76.0
```


### Anything else?

_No response_
Repository: terminal
Issue: Rewrite the copy-to-clipboard functionality to use the Win32 functions
Labels: Area-Interaction,Product-Terminal,Issue-Task

### Windows Terminal version

1.18.10301.0

### Windows build number

10.0.19045.3930

### Other Software

_No response_

### Steps to reproduce

1) Select output
2) [CTRL + C] or [right click] or [CTRL + Shift + P (command palette -> "Copy Text" option]
3) Neither [CTRL + V] pastes nor does [Win + V] have the selected and presumably copied text in the clipboard


### Expected Behavior

Expecting copy from terminal into Windows Clipboard and paste into other programs to work as normal.

### Actual Behavior

No text copied to clipboard. I can, at times, get it to continue functionality if I un-snap the Windows Terminal window from fullscreen view but this is only intermittently successful.

This happens whether my shell is ssh'ed to another machine or running locally.

Other programs continue to copy to clipboard and paste to other programs perfectly fine.
Repository: tauri
Issue: [bug] Horizontal scrollbar is not movable
Labels: type: bug,status: needs triage

### Describe the bug

Horizontal scrollbar does not work, it appears but can't be moved with mouse or scroll

### Reproduction

Below I dropped a stripped down project (only with files needed to reproduce the bug, based on the default project)

Used startup command for application: `cargo tauri dev`

Id of element with not working horizontal scrollbar: `graph`

[tauri-bug.zip](https://github.com/tauri-apps/tauri/files/14284002/tauri-bug.zip)


### Expected behavior

a properly working (movable at least with the mouse) scroll bar on the element with id "graph"

(provided html and style in src folder works perfectly fine in firefox)


### Full `tauri info` output

```text
Environment
  › OS: Linux 22.04 X64
  › Node.js: 20.11.0
  › npm: 10.2.4
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.26.0
  › rustc: 1.71.0
  › cargo: 1.71.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
WARNING: no lock files found, defaulting to npm
  › @tauri-apps/cli [NPM]: 1.2.2 (outdated, latest: 1.5.9)
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 1.5.4,
  › tauri-build [RUST]: 1.5.1,
  › tao [RUST]: 0.16.7,
  › wry [RUST]: 0.24.7,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../src
  › devPath: ../src
package.json not found

App directory structure
  ├─ .vscode
  ├─ src
  └─ src-tauri
```


### Stack trace

_No response_

### Additional context

Used Linux Distribution: KDE Neon (based on Ubuntu 22.04)

Graphics Platform: X11
Qt Version: 5.15.12
KDE Frameworks Version: 5.114.0
KDE Plasma Version: 5.27.10
Repository: flutter
Issue: [Impeller] OpenGLES golden tests are slow
Labels: P3,e: impeller,team-engine,triaged-engine

They are taking about 1.5 seconds to execute per test.  Metal tests are like 100ms, vulkan tests are like 500ms.
Repository: flutter
Issue: A "virtual camera test", that tests actual pixels (not with human-verified screenshots)
Labels: c: proposal,P3,team-engine,triaged-engine,e: engine-tests-in-framework-repo

## Problem

There are types of features (or bugs) that cannot have traditional `expect`-style assertions written against them.

For example, the ability to render external textures that come from a native Android or iOS rendering engine (which, happenstance, is how platform views and rendering plugins work, go figure). What we've done historically is taken screenshots, and then use manual human verification combined with Skia gold.

However, the following problems occur:

1. These types of tests are lossy. There are both human and machine deficiencies in mass reviewing screenshots.
1. Writing (and fixing) manual pixel verification tests is painful and as a result, largely not attempted.

The closest example I can think of a rendering test that does not use screenshots is the [`frame_rate_test`](https://github.com/flutter/flutter/blob/master/dev/integration_tests/external_textures/test_driver/frame_rate_main_test.dart), which sends numbers over a platform channel and does lossy checks against them on the Dart side. Unfortunately that test itself is very flaky: https://github.com/flutter/flutter/issues/106806.

## Proposal

As a proof of concept, I'd like to see a "virtual camera" test, or a way to draw and verify simple shapes.

This idea came partially from a conversation with @jonahwilliams when we were running into issues with tiled texture contents. 

Imagine that we had two rectangles, an outer blue (`b`) one and an inner red (`r`) one:

```txt
bbbbbbbbbbb
bbbbbbbbbbb
bbrrrrrrrbb
bbrrrrrrrbb
bbrrrrrrrbb
bbbbbbbbbbb
bbbbbbbbbbb
```

This type of simple image could still be mis-rendered by the Flutter side, but is simple enough where we could write pixel tests:

```dart
// Make believe.
bool verifyRectangles(String art) {
  // Split the art into individual lines
  List<String> lines = art.split("\n"); 

  // Assuming rectangular input - All lines should have equal length
  int rowLength = lines[0].length; 

  // Check top and bottom borders
  for (String line in [lines.first, lines.last]) {  
      if (!line.replaceAll('b', '').isEmpty) { 
        return false; // Border contains characters other than 'b'
      }
  }

  // Check side borders and inner rectangle
  for (int i = 1; i < lines.length - 1; i++) { 
    if (lines[i][0] != 'b' || lines[i][rowLength - 1] != 'b') {
      return false; // Side borders not composed of 'b'
    }

    // Verify inner area contains only 'r'
    if (!lines[i].substring(1, rowLength - 1).replaceAll('r', '').isEmpty) {
      return false; 
    }
  }

  return true; // All conditions passed
}
```

Instead of something like this, we would check actual pixels/colors.

---

If this type of test is successful and not flaky, we could expand it:

- Automatically generate ASCII-art previews for code and test failures (to debug more easily on CI, etc)
- Automatically generate Dart or Java code that draws these types of rectangles
- etc
Repository: flutter
Issue: [Cocoon] Simplify Firestore task status representation
Labels: team-infra,P3,triaged-infra

As suggested by @ricardoamador in https://github.com/flutter/cocoon/pull/3488/files#r1488732312, it would be good to simplify how we interact with Task status.

```
enum TaskStatus {

  statusFailed ('Failed', true, true),
  statusInProgress('In progress', true, false),
  ...
  statusInfraFailure('Infra Failure', true, true);

  const({
    required this.name,
    required this.isLegalStatus,
   required this.isTerminalStatus,
  });

  final String name;
  final bool isLegalStatus;
  final bool isTerminalStatus;
}
```
Repository: flutter
Issue: Tests in the engine repo should output an HTML test report
Labels: engine,P2,c: tech-debt,e: local-engine-development,team-engine,triaged-engine

For accessibility reasons, and honestly, sanity reasons, we need a way to view test failures/success outside of plain text logs.

A starting point might be a small Dart fork of https://github.com/burlachenkok/gtest_report that we emit as an artifact[^1] on LUCI. If we get this workflow working and folks find it useful, we can also experiment with having the `et` tool (https://github.com/flutter/engine/pull/50642) provide a local version.

[^1]: I asked @zanderso how that part might be possible, and he pointed me to `FLUTTER_LOGS_DIR` (see https://github.com/flutter/engine/blob/main/ci/builders/README.md#tests), of which an example of using this log directory is [`binary_size_treemap.sh`](https://github.com/flutter/engine/blob/main/ci/builders/linux_android_aot_engine.json#L121).
Repository: pytorch
Issue: DISABLED test_sdpa_compile_cuda_bfloat16 (__main__.TestNestedTensorSubclassCUDA)
Labels: triaged,skipped

Platforms: rocm, linux, slow



This test was disabled because it is failing on main branch ([recent examples](https://torch-ci.com/failure?failureCaptures=%5B%22test_nestedtensor.py%3A%3ATestNestedTensorSubclassCUDA%3A%3Atest_sdpa_compile_cuda_bfloat16%22%5D)).

Likely failures started due to this PR: https://github.com/pytorch/pytorch/pull/119812.

cc @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang
Repository: material-ui
Issue: [material-ui][dialog] form dialog has invalid aria role in docs
Labels: accessibility,component: dialog,package: material-ui

### Steps to reproduce

[Example from mui documentation:](https://mui.com/material-ui/react-dialog/#form-dialogs)

Steps:
1. open form dialog
2. launch chrome lighthouse tool


### Current behavior

The form dialog example has an invalid aria role.
![image](https://github.com/mui/material-ui/assets/101053/7fe00d2f-ba3b-4b4f-8a50-09744c44da91)

The form element needs to wrap both the DialogContent and DialogActions in order to work correctly, doing this will break the scroll-ability of a dialog with content longer than the window.

### Expected behavior

It should not have an aria role issue, or it should allow DialogContent scroll-ability when there is a form element wrapping DialogTitle, DialogContent and DialogActions.

### Context

_No response_

### Your environment

This is in the mui docs.

**Search keywords**: accessibility dialog form
Repository: stable-diffusion-webui
Issue: [Feature Request]: add generation time cost in X/Y/Z plot script
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

It would be nice if there is a generation time cost shown in XYZ table for each methods.

### Proposed workflow

example:
1. Go to XYZ
2. Press X
3. x: sampler
4. y:  time used
5: done
6: each sampler used how much time, x min,x seconds/per picture

### Additional information

for easier debug. It cost me a lot of time to know what limited my generation time
Repository: frp
Issue: [Feature Request] Customize the tls.Config used in HTTPProxyConf
Labels: proposal

### Describe the feature request

After upgrading to Go 1.22 I can no longer initiate proxy connections to some devices using some of the cipher suites [deprecated in Go 1.22](https://tip.golang.org/doc/go1.22). I was able to resolve this issue in my application by customizing the cipher suites used in the `tls.Config`, however, I don't see any ability to do this within FRP. 

Is there a solution or workaround? I'm using FRP as an embedded library.

### Describe alternatives you've considered

_No response_

### Affected area

- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [X] Security
- [ ] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [X] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others
Repository: flutter
Issue: [gold] New goldens compared to the wrong browser
Labels: dependency: skia,team-infra,P2,triaged-infra

There are several cases of Skia Gold comparing a new golden from browser X to a previous golden of browser Y. Here's one example (Safari vs Chrome): https://flutter-engine-gold.skia.org/detail?grouping=name%3Ddraw_3d_rect_clipped%26source_type%3Dflutter-engine&digest=006f1f8307e05e7ee14d8b08d4ac13cc

**_Is there a way to disable this?_** We would like for Safari goldens to only be compared with the previous Safari goldens, not the Chrome ones.

As part of the investigation, we tried to see what happens if Skia Gold was forced to compare that Safari golden with the previous Safari one: https://flutter-engine-gold.skia.org/diff?grouping=name%3Ddraw_3d_rect_clipped%26source_type%3Dflutter-engine&left=006f1f8307e05e7ee14d8b08d4ac13cc&right=40433d185cd2f5d3c5838e7ffffffdc6

**_Why does Gold think there's a 97.51% diff?_** Manually inspecting the pixels (by clicking the "zoom" button), we found that the majority of the image is made up of a gray background. Those gray pixels are identical in both images (pixel diff is `rgba(0, 0, 0, 0)`).
![image](https://github.com/flutter/flutter/assets/1278212/09e2b9ed-6ddc-48dc-94b2-ea17863d2fe7)
Repository: PowerToys
Issue: Mouse Without Borders - needs some screen enhancements
Labels: Needs-Triage,Product-Mouse Without Borders

### Description of the new feature / enhancement

I used InputDirector for years, and I'd love to see MwoB follow suit with features to better configure monitors and automatically indicate where the mouse is when it jumps screens.  MwoB would be VASTLY improved if it enhances the screen configurations to more flexibly adopt a user's customized monitor configuration, and also highlights the mouse when the arrow jumps to a new scrren.

### Scenario when this would be used?

With the mouse arrow - if moving between screens, it remains in view and then is hard to find on the other monitor.  As a result, I need to use Find my Mouse instead of just knowing where it went.  This is caused because I can't align my screens as they physically appear in front of me, as noted in part 2, where the MwoB only gives us the option to have the screens in a perfect line or a perfect quad, with no application for wide monitors of different size.  Look at how InputDirector fixes this, and is superior in application.  The problem with InputDirector is that it is more affected by latency than MwoB.

### Supporting information

_No response_
Repository: ant-design
Issue: Tests performance after migration to ant 5
Labels: help wanted,Inactive,⚡️ Performance,improvement

### Reproduction link

[https://stackblitz.com/edit/stackblitz-starters-kmy51h](https://stackblitz.com/edit/stackblitz-starters-kmy51h)

### Steps to reproduce

Write a component that contains 3 simple DatePicker components and add a test for this component by changing the value of each picker using jest screen.getByRole to identify elements and userEvent API

### What is expected?

Performance of the tests to be similar to the one of ant4 components for a smooth migration of projects from antd 4 to 5 version

### What is actually happening?

Performace of tests is ~3-4 times slower
![image](https://github.com/ant-design/ant-design/assets/153279089/53487c1d-a9f1-4b9a-8040-54de6e228245)


| Environment | Info |
| --- | --- |
| antd | 5.14.0 |
| React | 18.2.0 |
| System | Windows/Linux |
| Browser | Jest |

---
In the sandbox attached to this issue, 2 versions of the tests were added with exactly the same steps, the difference between the 2 is that in one of them a mock was added for cssinjs.
````
jest.mock('@ant-design/cssinjs', () => ({
  __esModule: true,
  default: jest.fn().mockImplementation((component) => component),
  useStyleRegister: jest.fn().mockImplementation(() => ({})),
  createTheme: jest.fn().mockImplementation(() => ({})),
  Keyframes: jest.fn().mockImplementation(() => ({
    toString: jest.fn().mockReturnValue('keyframeMock'),
  })),
  useCacheToken: jest.fn().mockImplementation(() => []),
}));
````
The test without a mock runs ~3-4 times slower than the one with the cssinjs mock. And the sandbox component is a simple one, that renders only 3 DatePicker components, we have in our application very complex forms, for which the decrease in performance for tests is drastic.

Initially I though that mocking cssinjs could make the performance issue in tests disappear, but this doesn't seem to be enough for all the ant components, for example for Dropdown component, it also needs a mocked value for the token, and I can solve this issue using:
````
jest.mock('antd/lib/theme/useToken', () => ({
    __esModule: true,
    default: jest.fn().mockImplementation(() => [{}, mockAntdToken]),
}));
````
but each individual ant component seems to require something else (for example the grid Row crashes with TypeError: wrapSSR is not a function) and I feel that mocking things for each internal API, without having a single entry point will make the migration impossible 

Is there a way to "skip/deactivate/mock" in tests the cssinjs logic and still have functional ant component? This performance issue in tests makes the migration to ant 5 a real pain, without mocking I noticed integration tests increasing the execution time from 5-10s to more than 50s after migration from antd 4 to 5
Can you suggest any other approach?

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: SSH Remote Deploy with "verbose" flag not parsing "temp_dir" variable correctly
Labels: bug,platform:linuxbsd,topic:editor,topic:export

### Tested versions

- Reproducible in: v4.2.1.stable.arch_linux

### System information

Godot v4.2.1.stable unknown - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Fri Jan  5 17:38:36 UTC 2024 - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 Series (RADV POLARIS10) () - Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz (4 Threads)

### Issue description

### Observed behavior

I was trying to run a game on Steam Deck via SSH Remote Deploy, but I couldn't get it to work. I tried to **pass ssh the `-v` flag to debug it**, but this caused another error instead:

```
debug1: Sending command: chmod +x OpenSSH_9.6p1, OpenSSL 3.2.0 23 Nov 2023/tmp_linuxbsd_export_start.sh
chmod: cannot access 'OpenSSH_9.6p1,': No such file or directory
chmod: cannot access 'OpenSSL': No such file or directory
chmod: cannot access '3.2.0': No such file or directory
chmod: cannot access '23': No such file or directory
chmod: cannot access 'Nov': No such file or directory
chmod: cannot access '2023/tmp_linuxbsd_export_start.sh'debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
```

Checking the code in this PR #63312 it seems `mktemp -d` is executed over ssh and the result is stored as the variable `temp_dir`. But due to the `-v` flag, it is **parsing the verbose output instead**. I can confirm I get the same line when running ssh from the terminal with the `-v` flag:

```
$ ssh -v "mktemp -d"
OpenSSH_9.6p1, OpenSSL 3.2.0 23 Nov 2023
(...)
``` 

### Expected behavior

Godot runs some commands (like `mktemp -d`) Godot that **the user cannot control**. Those should be parsed correctly regardless of the flags the user sets. I'm unsure if this can be done with C++, but from the terminal it seems all the verbose log is going to stderr. Maybe you can **redirect stderr to the output console** and stdin to the variable?

```
$ ssh -v "mktemp -d" 2>/dev/null
/tmp/tmp.66p1iiv5qA
```

Alternatively, there should be another way to easily debug ssh connection issues. Perhaps a flag/checkbox in the export preset menu.

### Steps to reproduce

1. Create an export preset for Linux
2. Make it runnable
3. Enable SSH Remote Deploy and configure the host as a valid machine
4.  Add the `-v` flag to the `Extra Args SSH` field
5. Close the export preset window and run it with the remote debug option

### Minimal reproduction project (MRP)

I'm not sure if this is necessary since it happens with any project. I just created a simple hello world.

[hello-world.zip](https://github.com/godotengine/godot/files/14285605/hello-world.zip)
Repository: stable-diffusion-webui
Issue: [Feature Request]: SD Ultimate Upscaler and Inpaint + Mask
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

It can upscale only the parts over the mask.
Would avoid changing blurry backgrounds and keep them blurry.

### Proposed workflow

1. Go to .... 
2. Press ....
3. pleeeeeeeeeeeease

### Additional information

Please
Repository: flutter
Issue: Add constructor Locale.fromLanguageTag
Labels: c: new feature,framework,a: internationalization,c: proposal,P3,team-engine,triaged-engine

### Use case

I'd like to parse a `Locale` object from a language string e.g. 'nb-NO' or 'en-US' in order to use in my localization package, similar to what i've done here: https://github.com/erf/minimal_localizations/blob/master/lib/src/locale_ext.dart

### Proposal

```Dart
extension LocaleExt on Locale {
  static Locale fromLanguageTag(String tag) {
    final List<String> codes = tag.split('-');
    return Locale(codes[0], codes.length > 1 ? codes[1] : null);
  }
}
```

Or a similar `factory` method in `Locale`.

Some tests:

```Dart
    test('LocaleExt from/to language tag', () {
      final locale = LocaleExt.fromLanguageTag('en-US');
      expect(locale.languageCode, 'en');
      expect(locale.countryCode, 'US');
      final String languageTag = locale.toLanguageTag();
      expect(languageTag, 'en-US');
    });
```
Repository: excalidraw
Issue: deduplicate `<g>` when grouping frame children in SVG
Labels: export

Frame children are unnecessarily individually wrapped into `<g>` elements:

![image](https://github.com/excalidraw/excalidraw/assets/5153846/cc40fd28-ee3d-4edf-9a5d-03186c399f8d)