sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: `MouseRegion` callbacks are triggered unexpectedly on Android when tapped
Labels: platform-android,framework,a: tablet,f: gestures,has reproducible steps,P2,team-ios,triaged-ios,found in release: 3.24,found in release: 3.26

### Steps to reproduce

When trying to fix https://github.com/flutter/flutter/issues/154842, I noticed that issue is caused misfired `MouseRegion` callbacks on Android.  While testing on iOS, these mouse region callbacks are not called, as expected.

Try a sample code below with `MouseRegion`


### Android


https://github.com/user-attachments/assets/83b5c5c9-193d-4d6e-995b-c56c44ad35da


### iOS 

https://github.com/user-attachments/assets/e4e885b0-c12c-44a0-a5d6-d5c66736d443





### Expected results

Expect same behavior on both mobile platforms

### Actual results

Mouse region callbacks are triggered on only Android

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  int onHoverCount = 0;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
            title: const Text('Sample'),
          ),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Text('onHover called $onHoverCount times', style: TextStyle(fontSize: 20)),
                MouseRegion(
                  onHover: (PointerHoverEvent event) {
                    print('onHover');
                    setState(() {
                      onHoverCount++;
                    });
                  },
                  hitTestBehavior: HitTestBehavior.opaque,
                  child: const FlutterLogo(size: 100),
                ),
              ],
            ),
          ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

This is reproducible as far back as Flutter 3.0
Repository: terminal
Issue: Allow remapping of experimental.repositionCursorWithMouse to use key bindings such as Alt + Left Click
Labels: Issue-Feature,Area-Settings,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

I'm aware that as of now, by setting `experimental.repositionCursorWithMouse` as `true`, we are able to move the cursor to the mouse's position with a simple left click. However, there are times when I want to simply click on the terminal to get it into focus without moving the cursor around. Hence, I think it would be best to let the user choose what keys would be best for them to utilize this feature, for eg. Alt+Left Click/Ctrl+Left Click/Middle Click.

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)

I'm aware that mouse key bindings are currently not available yet as explained in #1553. However, once they are available, I'd really love it if we can have a command such as `moveCursorWithMouse` and not just `experimental.repositionCursorWithMouse` as a profile setting just like how we have [`showContextMenu`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#open-context-menu) as a command that can be mapped to a key binding and not just the profile setting `experimental.rightClickContextMenu`.

So maybe we could have something like this in the future:
```json
{ "command": "moveCursorWithMouse", "keys": "alt+left_click" }
```

<!-- 
A clear and concise description of what you want to happen.
-->
Repository: PowerToys
Issue: Wrong offset of the window when closing crop and lock.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Crop and Lock

### Steps to reproduce


1. Select the area to be cropped.
 ![Screenshot 2024-09-11 172601](https://github.com/user-attachments/assets/61616c15-d518-4d1a-bcd4-41be269ecba7)

2. The area is cropped and locked ( in a strange way).
![Screenshot 2024-09-11 172617](https://github.com/user-attachments/assets/30d98459-ecdb-4e57-9c3e-87b0d4a67565)

3.When i close the cropped window the screen offset of the original window is broken (not the hitting area, infact to close the window i have to click on the top right corner in the black area.
![Screenshot 2024-09-11 172629](https://github.com/user-attachments/assets/fdbbc285-1e02-4a78-96aa-bfc17fbf2245)





### ✔️ Expected Behavior

closing the crop and lock window everything goes back to how it was before

### ❌ Actual Behavior

the offset of the window i cropped is wrong and i have to close the window.

### Other Software

_No response_
Repository: PowerToys
Issue: Workspaces & Splash Screens
Labels: Issue-Bug,Product-Workspaces

### Microsoft PowerToys version

0.84.1

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

Workspaces

### Steps to reproduce

Setup a workspace to open an program that has a start-up splash screen, when the workspace is activated PowerToys Workspace tries to size and move the splash screen and fails and then the application opens to the wrong size and in the wrong place!

### ✔️ Expected Behavior

To open the application, wait for the splash screen to close and then move the application window to the required size and place.

### ❌ Actual Behavior

When the workspace is activated PowerToys Workspace tries to size and move the splash screen and fails and then the application opens to the wrong size and in the wrong place!

### Other Software

_No response_
Repository: vscode
Issue: Find in the multi-diff editor is limited to the focused file
Labels: feature-request,multi-diff-editor

The find in the multi-diff editor should be able to search across all the files in the editor.

I feel like this used to work, but I could be wrong.
Repository: pytorch
Issue: Documentation for `dynamic_shapes` argument of `export` is unclear about namedtuples
Labels: oncall: pt2,oncall: export

### 📚 The doc issue

In the [documentation](https://pytorch.org/docs/stable/export.html#torch.export.export) for `torch.export.export`, the following sentence describes the form of the `dynamic_shapes` argument:

> Arguments that are dicts or tuples / lists of tensors are recursively specified by using mappings or sequences of contained specifications.

I did not understand the terminology "sequences of contained specifications" until I dug into the implementation and understood how Pytree was used to represent the inputs and outputs of functions. This caused me to spend a long time to learn how to mark a dimension of a particular field of a namedtuple as dynamic.

A small reproducible example of what I was attempting is below:
```
import torch
from typing import NamedTuple

class Data(NamedTuple):
    x: torch.Tensor

torch.utils._pytree._register_namedtuple(Data, serialized_type_name="Data")

class Model(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.fc1 = torch.nn.Linear(10, 16)
        self.relu = torch.nn.ReLU()
        self.fc2 = torch.nn.Linear(16, 1)
        self.sigmoid = torch.nn.Sigmoid()

    def forward(self, data: Data):
        x = data.x
        x = self.fc1(x)
        x = self.relu(x)
        x = self.fc2(x)
        x = self.sigmoid(x)
        return Data(x=x)

with torch.no_grad():
    device = "cuda" if torch.cuda.is_available() else "cpu"
    model = Model().to(device=device)

    batch_dim = torch.export.Dim("batch", min=1, max=1024)
    so_path = torch.export.export(
        model,
        args=(),
        kwargs={"data": Data(x=torch.randn(8, 10, device=device))},
        # dynamic_shapes={"data": {"x": {0: batch_dim}}},   # ValueError: Node type mismatch; expected <function namedtuple at 0x7f7c46f5a700>, but got <class 'dict'>.
        # dynamic_shapes={"data.x.0": batch_dim},           # ValueError: Node keys mismatch; missing key(s): {'data'}; extra key(s): {'data.x.0'}.
        dynamic_shapes={"data": Data(x={0: batch_dim})}     # Works without failing. Yay!
    )
```

Because I misunderstood the documentation, my first attempts at expressing dynamism -- by using nested dictionaries and flattened keys -- failed with ValueErrors that did not very effectively guide me to restructure my `dynamic_shapes` argument. I wonder if this is an opportunity to improve the documentation, or simply an indication that namedtuples are not supported for exporting.

### Suggest a potential alternative/fix

Maybe we could add an example such as the one above to clarify how to mark certain fields of namedtuples as dynamic. Alternatively, we could reference the Pytree documentation to illustrate that "sequences of contained specifications" could refer to instances of previously-registered NamedTuple classes.

cc @ezyang @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4
Repository: flutter
Issue: Devicelab failure with log output "Failed to codesign" should be marked infra failure
Labels: team-infra,P2,from: postmortem,triaged-infra

Part of postmortem for https://github.com/flutter/flutter/issues/154881

For example: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737203335879841073/+/u/run_wide_gamut_ios/stdout

```
[2024-09-09 23:54:07.304784] [STDOUT] stdout:             error: [   +8 ms] Target debug_unpack_ios failed: Exception: Failed to codesign /opt/s/w/ir/x/w/rc/tmpvakqwmos/flutter sdk/dev/integration_tests/wide_gamut_test/build/ios/Debug-iphoneos/Flutter.framework/Flutter with identity 6475AE66068783D9C7566E71522EA3915C7D6C9A.
[2024-09-09 23:54:07.304796] [STDOUT] stdout:                        /opt/s/w/ir/x/w/rc/tmpvakqwmos/flutter sdk/dev/integration_tests/wide_gamut_test/build/ios/Debug-iphoneos/Flutter.framework/Flutter: errSecInternalComponent
[2024-09-09 23:54:07.304806] [STDOUT] stdout: 
[2024-09-09 23:54:07.304817] [STDOUT] stdout:                        #0      _signFramework (package:flutter_tools/src/build_system/targets/ios.dart:761:5)
```
Repository: go
Issue: x/telemetry/internal/telemetry: update `ProgramInfo` heuristic for go1.24
Labels: NeedsInvestigation,telemetry

In go1.24, the go command will start to stamp the main module version in the build info
even when the binary is built with `go build`. There are cases where the binary built
in this way can have different dependencies while having the same version string stamped
as the release versions. Adjust the heuristic to detect the case.

https://github.com/golang/telemetry/blob/6d9f2eb83631e39f6d0b87dd8411b8f5d7fac38e/internal/telemetry/proginfo.go#L27

cc @golang/telemetry
Repository: go
Issue: x/playground: simplify development and testing
Labels: NeedsInvestigation,Friction

The playground development setup requires Docker, and as a result there is relatively little test coverage using `go test` (and therefore very little coverage in our default CI). [CL 612456](https://go.dev/cl/612456) is an example of a small change where a test would have been nice, but was not feasible due to friction and time constraints. Proof: in https://go.dev/cl/549015, I had actually started this fix for a related issue, and stalled because it was a low priority and I felt a test was warranted.

As a de-facto-but-superficial maintainer of the playground, I think this friction is holding back playground fixes and other improvements.  From first principles, we should be able run the playground without Docker, and in doing so should be able to write end-to-end tests.

I think this is a good candidate for a friction fixit week.
Repository: flutter
Issue: [google_maps_flutter_platform_interface] Test entire `CameraUpdate.toJson` results
Labels: team,p: maps,package,team-ecosystem,P3,triaged-ecosystem

We currently test only the first element that identifies the type of CameraUpdate. Ideally we would test the entire array returned, instead.
Repository: bitcoin
Issue: RPC: Populate a PSBT input with a UTXO not in wallet/mempool/utxo set
Labels: Feature

### Please describe the feature you'd like to see added.

If a user wants to make a chain of two transactions and sign the child *without being able to get the parent in their mempool*, I do not believe there is a way for this to be done natively in the PSBT RPCs. As the UTXO is not in the mempool/wallet/utxo set, it cannot be found for signing/finalization, unless injected manually.

Note that this functionality seems to exist in the raw transaction path via the "prevtx" argument for signing, via:
bitcoin-cli signrawtransactionwithwallet <tx_hex> '[{"txid": "<txid_hex>", "vout": 0, "scriptPubKey": "<spk_hex>", "amount": "<amt>"}]'

### Is your feature related to a problem, if so please describe it.

_No response_

### Describe the solution you'd like

One thought is an additional optional argument for `utxoupdatepsbt` to inject a UTXO from (an array of) serialized previous transactions. The PSBT Input's prevout can be found in that list, and the PSBT Input populated with the requisite UTXO.

### Describe any alternatives you've considered

_No response_

### Please leave any additional context

_No response_
Repository: TypeScript
Issue: Generated d.ts imports package that is not installed on current project
Labels: Bug,Help Wanted

### 🔎 Search Terms

"d.ts unresolved modules import"

### 🕗 Version & Regression Information

Typescript v5.5.4


### ⏯ Playground Link

_No response_

### 💻 Code

Here is a basic reproduction: https://github.com/baptisteArno/zod-d-ts-issue

1. pnpm install
2. pnpm turbo build --filter=package-three...
3. See error because schema is of type any

### 🙁 Actual behavior

package-two generates with imports from `zod` which package is not installed in package-two.

This means that the type that we get when importing things from package-two are of inferred type `any`

### 🙂 Expected behavior

I would expect the d.ts file to instead imports from installed packages only.

In that very specific case, I would expect it to generate:

```ts
export declare const schema: typeof import("package-one").schema
```

instead of

```ts
export declare const schema: import("zod").ZodObject<
  {
    id: import("zod").ZodString;
    name: import("zod").ZodString;
  },
  "strip",
  import("zod").ZodTypeAny,
  {
    id: string;
    name: string;
  },
  {
    id: string;
    name: string;
  }
>;
```

### Additional information about the issue

_No response_
Repository: vscode
Issue: Tab list gets corrupted when a new webview is opened (extension API)
Labels: bug,workbench-tabs,confirmed,regression

<!-- ⚠️⚠️ 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:  Works <= 1.89.1, broken >= 1.90.2
- OS Version: Linux x64 6.1.0-23-amd64

We develop an extension in which an existing tab gets replaced by a webview. We simply store a reference to the existing tab, open a webview and then close the original tab. This has worked fine up to version 1.89.1. On version >= 1.90.2 closing the tab using `vscode.window.tabGroups.close` fails with the exception `Tab close: Invalid tab not found!`. The tab has not been closed in the meantime nor did we get any close notifications for it via `vscode.window.tabGroups.onDidChangeTabs`. 

Steps to Reproduce:

1. Create an extension with the following function exposed as command: 
```typescript
async dummy(): Promise<void> {
	const tab = vscode.window.tabGroups.activeTabGroup.activeTab;
	if (!tab) {
		console.log("Please open a tab to test this code.");
		return;
	}

	const panel = vscode.window.createWebviewPanel(
		"TestPanel",
		"Test",
		tab.group.viewColumn);
	panel.webview.html = "<body>Hello World</body>";

	// Introduce a tiny delay
	await panel.webview.postMessage("hello");

	vscode.window.tabGroups.close(tab);
}
```
2. Open some tab and call the command 
3. Check the debug console for the  `Tab close: Invalid tab not found!` exception.
Repository: godot
Issue: Blendshapes aren't cleared from MeshInstance3D when mesh is changed.
Labels: bug,topic:3d

### Tested versions

Reproducible:
- v4.4.dev2.official [97ef3c837]
- v4.3.stable.official [77dcf97d8]
...Likely earlier too.

### System information

Godot v4.3.stable - Windows 10.0.22631 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.3699) - AMD Ryzen 9 7950X 16-Core Processor (32 Threads)

### Issue description

When changing MeshInstance3D mesh without clearing it first, the blendshapes of the previous mesh remain.
Before:

<img width="383" alt="before" src="https://github.com/user-attachments/assets/0d5c19ff-0101-442e-9819-1e458a5114ce">

After changing:

<img width="376" alt="after" src="https://github.com/user-attachments/assets/fa43937f-58bb-46e4-8a52-f1f00dadb5f4">

Thus some errors are spammed:

> scene/3d/mesh_instance_3d.cpp:158 - Index p_blend_shape = 0 is out of bounds ((int)blend_shape_tracks.size() = 0).

**Edit**: As I'm writing this I realized I Forgot to test what happens when mesh is changed to an another with blendshapes will report shortly.

**Edit2:** As expected changing to an another mesh with blendshapes doesn't work either, the blendshapes of the previous mesh remain.

### Steps to reproduce

Create MeshInstance3D, attach a mesh with blendshapes to it, change the mesh to an another (without clearing the mesh property).

### Minimal reproduction project (MRP)

[meshswapissue.zip](https://github.com/user-attachments/files/16968957/meshswapissue.zip)
Repository: deno
Issue: import.meta.resolve() is being wrongly blocked when used by a JSR package
Labels: bug,jsr

Version: Deno 1.46.3

**Description:**

The current behavior of JSR (JavaScript Registry) prevents the usage of `import.meta.resolve()` when resolving a URL (like HTTP(S)) within a JSR package. However, `import.meta.resolve()` is not used for dynamic imports but simply for resolving the import URL.

JSR correctly disallows direct imports from HTTP(S) for security reasons, but this restriction should not apply to `import.meta.resolve()` since it's only resolving the URL and not executing the import.

**Steps to reproduce:**

1. Add an entry in your import map that resolves to a http endpoint ("resource/xpto.ts")
2. Publish any JSR package that contains the following code:

   ```typescript
   import.meta.resolve("resource/xpto.ts");
   ```

3. Check the output, and you will receive the following block message:

   ```
   Importing https://example.com/resource/xpto.ts blocked. JSR packages cannot import non-JSR remote modules for security reasons.
   ```

**Expected Behavior:**

`import.meta.resolve()` should be allowed to resolve HTTP(S) URLs without raising a security block since it is not dynamically importing the URL but merely resolving it.

**Actual Behavior:**

JSR blocks the resolution and shows a security message, even though no actual dynamic import is being performed.
Repository: rust
Issue: E0529 wrong infinite suggestion to add `as_deref`
Labels: A-diagnostics,T-compiler

### Code

```Rust
use std::io::ErrorKind;
use std::borrow::Cow;

fn f(x: Result<i32, Vec<ErrorKind>>) -> bool {
    matches!(x, Err([ErrorKind::NotFound]))
}
```


### Current output

```Shell
error[E0529]: expected an array or slice, found `Vec<ErrorKind>`
 --> src/lib.rs:5:21
  |
5 |     matches!(x, Err([ErrorKind::NotFound]))
  |                     ^^^^^^^^^^^^^^^^^^^^^ pattern cannot match with input type `Vec<ErrorKind>`
  |
help: consider using `as_deref` here
  |
5 |     matches!(x.as_deref(), Err([ErrorKind::NotFound]))
  |               +++++++++++
```


### Desired output

no suggestion to use `as_deref`

### Rationale and extra context

1. `as_deref` doesn't change the meaning of the code.
2. When applied, rustc will suggest to apply it again, which is absurd and confusing.

### Other cases

```Rust
matches!(x.as_deref().as_deref().as_deref(), Err([ErrorKind::NotFound]))
```
will suggest
```
help: consider using `as_deref` here
  |
5 |     matches!(x.as_deref().as_deref().as_deref().as_deref(), Err([ErrorKind::NotFound]))
  |                                                +++++++++++
```


### Rust Version

```Shell
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: x86_64-unknown-linux-gnu
release: 1.81.0
LLVM version: 18.1.7
```


### Anything else?

_No response_

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

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

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->