sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Spotty right click handling on web
Labels: engine,platform-mac,f: gestures,platform-web,has reproducible steps,P2,found in release: 3.7,team-web,triaged-web

After right clicking ~~a few times~~ and releasing inside of the context menu in a GestureDetector on web, I consistently get into a state where right clicks are no longer detected.

In the video below, a GestureDetector changes the color of the Container onSecondaryTapDown.  You can see it stops working after the first time the menu shows.

~~https://user-images.githubusercontent.com/389558/213299960-01ed417c-1c60-45fb-bd95-28303791571f.mov~~


https://user-images.githubusercontent.com/389558/213554361-a400aecd-dc0a-47ba-9ada-a028604a10ef.mov


I'm seeing this only on web on Mac.  I also tried Linux web and Mac desktop and couldn't reproduce it.

### Steps to reproduce

  1. Run an app with a GestureDetector with an onSecondaryTap or onSecondaryTapDown handler (such as the one below) on web.
  2. Right click down on the GestureDetector, drag so that the cursor is over the context menu, and release.
  3. Try right clicking the GestureDetector again.

Expect: The GestureDetector always detects right clicks and the Container changes color.
Actual: Subsequent right clicks are not detected and the color doesn't change.

<details>

<summary>Code</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: Center(
          child: _ClickMe(),
        ),
      ),
    );
  }
}

class _ClickMe extends StatefulWidget {
  @override
  State<_ClickMe> createState() => _ClickMeState();
}

class _ClickMeState extends State<_ClickMe> {
  bool clicked = true;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onSecondaryTapDown: (TapDownDetails details) async {
        setState(() {
          clicked = !clicked;
        });
      },
      child: Container(
        width: 100,
        height: 100,
        color: clicked ? Colors.deepPurpleAccent : Colors.orangeAccent,
      ),
    );
  }
}

```

</details>
Repository: stable-diffusion-webui
Issue: [Feature Request]: Save Image input/name in generation info somehow
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 ?

Save Image input/name in generation info somehow-because even with parameters saved: its impossible in some cases to guess which image was used in IMG2IMG as input. please :)

### Proposed workflow

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


### Additional information

_No response_
Repository: node
Issue: AsyncLocalStorage and deferred promises
Labels: async_hooks

Take the following case:

```js
const { AsyncLocalStorage } = require('async_hooks');
const als = new AsyncLocalStorage();

process.on('unhandledRejection', () => {
  console.log(als.getStore());
});

let reject;
als.run(123, () => { new Promise((a,b) =>reject = b); });
als.run(321, () => reject('boom'));
```

What value should the `console.log(als.getStore())` print to the console?

Currently, it prints `123` because the async context is captured as associated with the Promise at the moment it is created (in the kInit event).

I'd argue, however, that it *should* print `321` -- or, more concretely, that it should capture the async context at the moment the promise is resolved, not at the moment the promise is created, but the current behavior could also be correct. 

/cc @nodejs/async_hooks @bmeck @bengl @mcollina
Repository: TypeScript
Issue: Would you implement a simple protocol for the watch command?
Labels: Discussion

# Suggestion

Hi guys

I'm currently trying to get task-runners on board to create a protocol for watch-processes. The goal is that build-processes in watch mode do not automatically trigger a rebuild on file changes, but rather wait for the task-runner to tell them to do so. On the other hand, the watch-process should get a way to tell the task-runner when it's done and what the result is.

That's pretty much it, and it would be a very simple protocol.

Since TypeScript is the prime use case I have in mind for this, I thought I should ask you guys what you think about the idea. If such a protocol existed, would you implement it?

I'm trying to get the discussion started here: https://github.com/VanCoding/task-graph-protocol/issues/3
And here's a link to my example protocol and implementation, which also already has an implementation for `tsc`: https://github.com/VanCoding/task-graph-protocol

## 🔍 Search Terms

`watch process` 

Related issues #33388 #20258 #19584 #41611 #42838

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [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).
Repository: PowerToys
Issue: Swapping capslock/ctrl causes ctrl to stick ON (Surface Laptop Studio)
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Priority-1

### Microsoft PowerToys version

0.66.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Swap capslock and control keys, as shown, then use computer for a while.  

Debugging zip file attached below

![image](https://user-images.githubusercontent.com/3851891/213317686-20fd517c-e1f7-4462-8642-59a2e9724bd2.png)

[PowerToysReport_2023-01-18-15-22-47.zip](https://github.com/microsoft/PowerToys/files/10451965/PowerToysReport_2023-01-18-15-22-47.zip)


### ✔️ Expected Behavior

Caplock and control are switched.  No other changes.  

Capslock/control switching have worked for years on Windows without any problems, until a month or two ago.  During that time, windows (11) has updated itself a couple times, as has PowerTools.

### ❌ Actual Behavior

Over several hours of use, the compute keys work normally.  But eventually, the caplock key becomes stuck, so that if I type "F" the computer acts as if I'd typed ctrl-F.

The keyboard's capslock key LED isn't lit when ctrl is stuck like this.  Before it's stuck, the LED toggles when I hit capslock (mapped to ctrl), as expected.

The problem goes away after I reboot -- it's not a mechanical problem with the keyboard.

### Other Software

_No response_
Repository: go
Issue: cmd/compile: deduplicate wrappers for promoted methods
Labels: NeedsInvestigation,compiler/runtime

Given:

```
type X int
func (*X) m() {}

type A struct { X }
type B struct { b int32; X }
type C struct { c uint32; X }
```

the compiler currently synthesizes method wrappers for the promoted methods:

```
func (a *A) m() { a.X.m() }
func (b *B) m() { b.X.m() }
func (c *C) m() { c.X.m() }
```

But we only really need 1 wrapper:

* `A` can just use `X`'s method directly, because the `X` field is at offset 0 anyway.
* `B` and `C` could use a single shared wrapper, because they need the same pointer adjustment before tail calling to `(*X).m`.

This would save some executable size, but I also think it could help slightly with CPU I-cache and branch predictions. For example, within the compiler itself, `ir.Node`'s `Op` and `Pos` methods are always actually implemented by `ir.miniNode` (which we always embed at offset 0). But we create a wrapper method for each `ir.Node` implementation, which means (caveat: hypothesizing) a bunch of identical methods all end up taking up I-cache space and the branch predictor has to guess which one is going to be called.
Repository: pytorch
Issue: Update quantization to make source files complient with /Zc:lambda
Labels: module: windows,oncall: quantization,low priority,triaged

# Summary
While working on this PR: [#91909](https://github.com/pytorch/pytorch/pull/91909) which uses a c++ 17 optional flag to enable the updated lambda preprocessor https://learn.microsoft.com/en-us/cpp/build/reference/zc-lambda?view=msvc-170, I was unable to get windows builds to pass applying this globally. The failing tests: 
```
C:\actions-runner\_work\pytorch\pytorch\aten\src\ATen\native\quantized\cuda\AffineQuantizer.cu(45): error C2326: 'scalar_t at::native::_GLOBAL__N__809cb215_18_AffineQuantizer_cu_95ed4547_5828::quantize_tensor_per_tensor_affine_cuda::<lambda_1>::()::<lambda_1>::()::<lambda_1>::operator ()(float,scalar_t) const': function cannot access 'qmin'
C:\actions-runner\_work\pytorch\pytorch\aten\src\ATen\native\quantized\cuda\AffineQuantizer.cu(45): error C2326: 'scalar_t at::native::_GLOBAL__N__809cb215_18_AffineQuantizer_cu_95ed4547_5828::quantize_tensor_per_tensor_affine_cuda::<lambda_1>::()::<lambda_1>::()::<lambda_1>::operator ()(float,scalar_t) const': function cannot access 'qmax'
C:\actions-runner\_work\pytorch\pytorch\aten\src\ATen\native\quantized\cuda\AffineQuantizer.cu(45): error C2326: 'scalar_t at::native::_GLOBAL__N__809cb215_18_AffineQuantizer_cu_95ed4547_5828::quantize_tensor_per_tensor_affine_cuda::<lambda_1>::()::<lambda_2>::()::<lambda_1>::operator ()(float,scalar_t) const': function cannot access 'qmin'
```

In c++ 20 the updated lambda expression will become the default. So in order to smooth the transition we should update the lambda expression in this file to be conforming.

cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht @iremyux @Blackhex @cristianPanaite @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: flutter
Issue: Use Pigeon for isolate communication
Labels: package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

Pigeon is an official Flutter package that generates communication implementation to cross from Flutter's Dart land into platform land.

There's a similar challenge when communicating between isolates. We might like to call methods and receive return values across isolates, as if we were executing any other asynchronous method. Doing this manually is very tedious. Every method call needs an implementation on the sender side, a message encoder/decoder, and another version of the method on the callee side.

Does Pigeon contain tools that could be used in their current form to generate comms for isolates? If not, can Pigeon add that machinery?

@gaaclarke
Repository: stable-diffusion-webui
Issue: [Bug]: Permission Error - Textual Inversion with Blip - Clip
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

Tried to use the blip caption function for preprocessing images.  Getting a permission denied error.  Reinstalled Python 3.10.6.  Reinstalled Automatic 1111.  Tried Deepbooru caption and it works correctly.

### Steps to reproduce the problem

1. Go to the train tab.
2. Click on the preprocess image sub tab.
3. Paste source directory.
4. Paste destination directory.
5. Select the "Use Blip for caption" checkbox.
6. Click the Preprocess button.


### What should have happened?

It should have put photos and txt files in the destination folder.  Nothing in folder after error.

### Commit where the problem happens

bb0978ecfd3177d0bfd7cacd1ac8796d7eec2d79

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
New Install with no Arguments
```


### Additional information, context and logs

load checkpoint from C:\AI\stable-diffusion-webui\models\BLIP\model_base_caption_capfilt_large.pth
Error completing request
Arguments: ('task(0artx6avnzyt6vz)', 'C:\\Users\\jason\\Desktop\\AI\\Heather AI\\Inputs\\V2', 'C:\\Users\\jason\\Desktop\\AI\\Heather AI\\Inputs\\V2\\processed', 512, 512, 'ignore', False, False, True, False, 0.5, 0.2, False, 0.9, 0.15, 0.5, False) {}
Traceback (most recent call last):
  File "C:\AI\stable-diffusion-webui\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "C:\AI\stable-diffusion-webui\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "C:\AI\stable-diffusion-webui\modules\textual_inversion\ui.py", line 19, in preprocess
    modules.textual_inversion.preprocess.preprocess(*args)
  File "C:\AI\stable-diffusion-webui\modules\textual_inversion\preprocess.py", line 18, in preprocess
    shared.interrogator.load()
  File "C:\AI\stable-diffusion-webui\modules\interrogate.py", line 82, in load
    self.clip_model, self.clip_preprocess = self.load_clip_model()
  File "C:\AI\stable-diffusion-webui\modules\interrogate.py", line 66, in load_clip_model
    model, preprocess = clip.load(clip_model_name, download_root=shared.cmd_opts.clip_models_path)
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\clip\clip.py", line 120, in load
    model_path = _download(_MODELS[name], download_root or os.path.expanduser("~/.cache/clip"))
  File "C:\AI\stable-diffusion-webui\venv\lib\site-packages\clip\clip.py", line 54, in _download
    if hashlib.sha256(open(download_target, "rb").read()).hexdigest() == expected_sha256:
PermissionError: [Errno 13] Permission denied
Repository: stable-diffusion-webui
Issue: [Bug]: Can't create images with the API/API Docs Outdated
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

I was experimenting with the api by following the api wiki at https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API. I tried making a post request to the gradio server but kept responding with 404 (I had the api flag enabled). I also checked the docs on the site itself ([url]/docs) and couldn't find any documentation regarding the sdapi endpoint used for generating a new image via the api.

### Steps to reproduce the problem

1. Start the webui with the api flag
2. Attempt to send a post request to [link]/sdapi/v1/txt2img


### What should have happened?

It should generate an image and respond with that.

### Commit where the problem happens

26a6a78b16f88a6f88f4cca3f378db3b83fc94f8

### What platforms do you use to access UI ?

Other/Cloud

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
api, share and gradio-debug
```


### Additional information, context and logs

I used thunder client on visual studio code to send the request.
Repository: excalidraw
Issue: Text on path
Labels: enhancement,discussion

Hi,

Would it be possible to add Text being able to follow a Path (eg an invisible ellipse or curved line from multiple points placed by user in whatever form, a sine wave or spiral)
similar to Inkscape: https://youtu.be/B3MOgQjElJ4?t=323
?
Repository: kubernetes
Issue: ContainerStatus imageID is inconsistent / badly documented
Labels: kind/bug,priority/backlog,sig/node,sig/docs,triage/accepted

### What happened?

the `imageID` property on ContainerStatus seems inconsistent on clusters running different CRI implementations (or the same CRI implementation with different configuration), which makes it impossible to actually tell which container image is being used.

On GKE, `imageID` is a repo digest, though often to a "fat manifest", so to figure out which container is actually used you have to check the node architecture.

```
  - containerID: containerd://6eed9a2af53b5a56f39328fe1349395e56a0d01b443780a5d3ded56c3690a7e5
    image: gke.gcr.io/k8s-dns-kube-dns:1.22.12-gke.0
    imageID: gke.gcr.io/k8s-dns-kube-dns@sha256:b18b51683f6633979434a24ca2341e3b6bab8af0167b1be6b43f901aa615b38e
```

On Kind, it seems to actually be an Image ID from the image configuration object, so it is not possible to resolve on a container registry beyond hoping the `image` property isn't pointing to a moving target and then matching the image ID of the resolved image.

```
  - containerID: containerd://058f852ac99502198092865c214c548c871f20e1ac5d9c9e75b2f4ae4ed9622c
    image: registry.k8s.io/coredns/coredns:v1.9.3
    imageID: sha256:b19406328e70dd2f6a36d6dbe4e867b0684ced2fdeb2f02ecb54ead39ec0bac0
```

```
$ docker image inspect registry.k8s.io/coredns/coredns:v1.9.3 | jq .[0].Id
"sha256:b19406328e70dd2f6a36d6dbe4e867b0684ced2fdeb2f02ecb54ead39ec0bac0"
```

The field is simply documented as "ImageID of the container's image.". This is insufficient and should be changed if the content of the field being implementation dependent is intentional.

### What did you expect to happen?

`imageID` has predictable behavior and ideally can be used to identify the exact image used (repo digest or single-arch manifest digest)

### How can we reproduce it (as minimally and precisely as possible)?

`kind create cluster`

get any pod

pull the same image, compare `imageID` provided with config and manifests

### Anything else we need to know?

_No response_

### Kubernetes version

CRI issue.

### Cloud provider

Several.

### OS version

_No response_

### Install tools

_No response_

### Container runtime (CRI) and version (if applicable)

Several.

### Related plugins (CNI, CSI, ...) and versions (if applicable)

_No response_
Repository: vscode
Issue: Should not change values in `environmentService`
Labels: debt,continue-working-on

Properties here should all be readonly imho:

https://github.com/microsoft/vscode/blob/498b2ff60035d2cf476b730e7619a00703f9c095/src/vs/workbench/services/environment/browser/environmentService.ts#L262
Repository: create-react-app
Issue: Doesn't work nicely with Node 18 (Or even 17)
Labels: needs triage,issue: bug report

### Describe the bug

Starting from Node 17 the Open SSL changed, and now we have to run in legacy mode, which probably isn't that great:

```
ERROR in ./src/style/img/bt_logo_white.svg
Module build failed (from ../node_modules/file-loader/dist/cjs.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at getHashDigest (/Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/getHashDigest.js:46:34)
    at /Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/interpolateName.js:113:11
    at String.replace (<anonymous>)
    at interpolateName (/Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/interpolateName.js:110:8)
    at Object.loader (/Users/dorious/BT/athena-ui/node_modules/file-loader/dist/index.js:29:48)
```

https://stackoverflow.com/a/73465262
Guys says we should change hashFunction in webpack output config, which obviously we can't do.
Repository: stable-diffusion-webui
Issue: [Bug]: Occasionally displayed images do not update
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I click generate, console shows its generating, images get made in the temporary image directory, but the display on the right does not change.

Sometimes it happens more than others, like currently I have generated with a batch count of 9 and after it finishes the right side shows nothing, I have tried 10 times and it hasn't updated at all so I cannot display any images.

This seems to vary greatly even if the code hasn't changed so I assume it is something conflicting, could be available ram, time of day, phase of the moon, not sure.

### Important info maybe?
Occurs more often if batch count is higher than 6 images (batch size is 1 though)
Getting `Uncaught (in promise) Connection errored out. ` in Firefox dev console is when the issue arrises.
The below shows lines that only show when the generation DOES end up updating the gallery.
![image](https://user-images.githubusercontent.com/19684420/213840626-adb9b5e1-4093-42f6-bbfe-6652d7b5fdab.png)


### Steps to reproduce the problem

use Txt2img or img2img to generate an image
wait for generation to finish
be disappointed that nothing shows

### What should have happened?

Images that are generated are shown in the gallery on the right.

### Commit where the problem happens

has been happening since the start its worse today(though I assume its not because of changes in code) 46e3c00d

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox
Repository: ant-design
Issue: `message` doesn't work in sequence on React 17
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-message-bug-vxe39w?file=/demo.tsx)

### Steps to reproduce

1. Have React 17.0.2 and Antd 5.1.5
2. Have callback with two `message.success` going back to back
3. Fire this callback as a `Form` `onFinish` callback

or
1. go to the reproduction link
2. click on the submit button


### What is expected?

two messages appear on the screen

### What is actually happening?

only the first message appears

| Environment | Info |
| --- | --- |
| antd | 5.1.5 |
| React | 17.0.2 |
| System | MacOS |
| Browser | Chrome |

---
when using this callback as a event handler for the onClick on the button everything works as expected

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: TypeScript
Issue: Unable to resolve generic type when using an overloaded function as parameter
Labels: Bug,Help Wanted

# Bug Report

### 🔎 Search Terms

overload parameter function

### 🕗 Version & Regression Information

Using the playground, the code works when I choose version 3.3.3. After that version, the problem comes up.

### 💻 Code

```ts
type SpecialType<T> = () => void & { value: T };

function specialFunction<T>(): SpecialType<T>;
function specialFunction<T>(source: Record<string, T>): Record<string, T>;
function specialFunction<T>(source?: Record<string, T>): SpecialType<T> | Record<string, T> {
  return source as any;
}

const otherFunction = <K extends keyof T, T>(source: Record<string, T>, property: K): Record<string, T[K]> => ({ source, property }) as any;

const obj: Record<string, { label: string }> = { value: { label: 'hello world' } };

const defined = specialFunction(obj);
const working = otherFunction(defined, 'label');

const nonworking = otherFunction(specialFunction(obj), 'label');

const alsoworking = otherFunction(specialFunction<{ label: string }>(obj), 'label'); 
```

### 🙁 Actual behavior

The non-inlined call chain works and label is recognized as a property name. The inlined call as a parameter states, that the second parameter type is `never`(instead of `keyof T`).

### 🙂 Expected behavior

No different type resolution regardless of the call type.