sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Windows] MouseRegion cursor in Draggable feedback does not work properly.
Labels: framework,platform-windows,a: desktop,a: mouse,has reproducible steps,P2,found in release: 3.7,found in release: 3.10,team-windows,triaged-windows

The `MouseRegion` cursor in the `Draggable` feedback does not change properly while dragging on the **`Windows`** platform. It works properly on the **`Web`** platform.

## Steps to Reproduce

1. Execute `flutter run` on the code sample. 
2. Drag the container.

**Expected results:** The mouse cursor should change properly while dragging.

**Actual results:** The mouse cursor was not changed properly while dragging.   

- **Windows platform:** 

https://user-images.githubusercontent.com/93904422/231093342-c719bb18-6697-4534-a9ae-97e7c7b9be2d.mp4


- **Web platform:** 


https://user-images.githubusercontent.com/93904422/231093324-4d710014-1afe-4b4e-b2f3-cf16b9133635.mp4


<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: Draggable(
            ignoringFeedbackPointer: false,
            feedback: MouseRegion(
              cursor: SystemMouseCursors.noDrop,
              child: Container(
                  color: Colors.grey,
                  height: 100,
                  width: 200,
                  child: const Center(child: Text('Drop'))),
            ),
            child: MouseRegion(
              cursor: SystemMouseCursors.move,
              child: Container(
                  color: Colors.cyan,
                  height: 100,
                  width: 200,
                  child: const Center(child: Text('Drag'))),
            ),
          ),
        ),
      ),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.19044.2728], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.4.3)
[√] Android Studio (version 2021.3)
[√] Connected device (4 available)
[√] HTTP Host Availability

 

• No issues found! 
```

</details>
Repository: angular
Issue: DebugElement.attributes has null in return type definition which should be undefined
Labels: area: testing,breaking changes

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

Currently the property is defined as `get attributes(): {[key: string]: string|null}` in [angular](https://github.com/angular/angular)/[packages](https://github.com/angular/angular/tree/main/packages)/[core](https://github.com/angular/angular/tree/main/packages/core)/[src](https://github.com/angular/angular/tree/main/packages/core/src)/[debug](https://github.com/angular/angular/tree/main/packages/core/src/debug)/[debug_node.ts](https://github.com/angular/angular/tree/main/packages/core/src/debug/debug_node.ts). Since Ivy the returned object will no longer contain null values, because they will be missing (undefined), as stated in https://github.com/angular/angular/issues/33672#issuecomment-552794021. I would suggest using either `{[key: string]: string|undefined}` or `Partial<{ [key: string]: string }>` as the return type.

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-fzgduh-af2bek?file=src%2Fapp%2Fapp.component.spec.ts

### Please provide the exception or error you saw

```true
Error: src/app/app.component.spec.ts:29:43 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'Expected<string | null>'.
  Type 'undefined' is not assignable to type 'Expected<string | null>'.

29       expect(link.attributes.target).toBe(target /* as any*/);
                                             ~~~~~~
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 15.2.0
Node: 18.13.0
Package Manager: npm 9.3.1
OS: win32 x64

Angular: 15.2.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, material-date-fns-adapter
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.0
@angular-devkit/build-angular   15.2.0
@angular-devkit/core            15.2.0
@angular-devkit/schematics      15.2.0
@schematics/angular             15.2.0
ng-packagr                      15.2.2
rxjs                            7.8.0
typescript                      4.9.5
```


### Anything else?

_No response_
Repository: PowerToys
Issue: Dynamic "Keep in Foreground"
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

When typing into your browser or whatever application you're working in, I find it always and again bothersome for other applications, to pop up so that what I type looses focus and or switches to the just popped up application. I then got to grab the mouse and my concentration is broken. I don't know how you guys and gals feel about this, but it's a daily issue.
It would be so cool to have this "dynamic / keep interacted window in foreground" WHILE TYPING / interacting WITHOUT the need to use the power toys command "keep in foreground" which is a bit cumbersome, for this special task, as you'll have to switch it off again.

### Scenario when this would be used?

Especially when you boot up your computer.

### Supporting information

_No response_
Repository: next.js
Issue: next/server ImageResponse throws `Error: Expected <div> to have explicit "display: flex"...` when mixing variables and text
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Home
Binaries:
  Node: 16.13.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant packages:
  next: 13.3.1-canary.4
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue

https://github.com/leonlarsson/og-test

### To Reproduce

1. Deploy [the mentioned repo](https://github.com/leonlarsson/og-test) to Vercel or locally with `npm run dev`
2. Browse to `https://<domain>/image2`
3. Check the Vercel logs or local terminal and see issue

For a working version (without any await or fetch), browse to `https://<domain>/works`

### Describe the Bug

**Please see my first comment that better describes what the bug is. It has nothing to do with fetch and await specifically.**

Using `ImageResponse` from `next/server` produced an error if I await a fetch before returning `new ImageResponse`
```
Error: Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.
    at (node_modules/next/dist/compiled/@vercel/og/index.edge.js:15573:12)
    at (node_modules/next/dist/compiled/@vercel/og/index.edge.js:15577:18)
    at (node_modules/next/dist/compiled/@vercel/og/index.edge.js:16503:11)
    at (node_modules/next/dist/compiled/@vercel/og/index.edge.js:18064:14)
    at (node_modules/next/dist/compiled/@vercel/og/index.edge.js:18103:24)
```
As seen in https://github.com/leonlarsson/og-test/blob/main/app/image2/route.tsx, this shouldn't happen.

I have tried this without any awaits or fetches, and it works as expected (https://github.com/leonlarsson/og-test/blob/main/app/works/route.tsx)

Is this expected to work or is `await fetch(externalApi)` simply not supported?

### Expected Behavior

The behaviour I expect is for the `await fetch(...)` to finish, and then the `ImageResponse` will be returned, with the data from the fetch.

### Which browser are you using? (if relevant)

Chrome 112.0.5615.50 (but not relevant)

### How are you deploying your application? (if relevant)

Vercel
Repository: rust
Issue: No way to support `cargo -Zrustdoc-map` with re-exported docs from a proc-macro
Labels: T-rustdoc,C-bug

Setup a pair of crates, the first a proc-macro linking to a dependency and the second re-exporting from the first:

```console
> cargo new --lib foo
     Created library `foo` package
> cat <<END >> foo/Cargo.toml
bs58.version = "0.3"
[lib]
proc-macro = true
END
> cat <<'END' > foo/src/lib.rs
/// [`bs58::Alphabet`]
#[proc_macro]
pub fn foo(t: proc_macro::TokenStream) -> proc_macro::TokenStream { t }
END

> cargo new --lib bar
     Created library `bar` package
> echo 'foo.path = "../foo"' >> bar/Cargo.toml
> echo 'pub use foo::foo;' >> bar/src/lib.rs
```

Now build the docs for the second crate, using `-Zrustdoc-map` to link dependencies to docs.rs:

```console
> cd bar && cargo rustdoc -Z rustdoc-map --config "doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\""
   Compiling bs58 v0.3.1
   Compiling foo v0.1.0 (/tmp/tmp.VUf54czzNC/foo)
 Documenting bar v0.1.0 (/tmp/tmp.VUf54czzNC/bar)
    Finished dev [unoptimized + debuginfo] target(s) in 0.74s
```

Expected: Open the docs and the re-exported `bar::foo` has a resolved link to `bs58::Alphabet`.
Actual: The link is missing

Prior to https://github.com/rust-lang/rust/pull/94857 it was possible to hack this into working by adding `bs58` as a dependency of `bar` too, but since that change that no longer works for proc-macro intermediary crates; it still works for non-proc-macros as I assume the crate ids get unified somehow.
Repository: go
Issue: x/pkgsite: can not show dependencies with vendor directory
Labels: NeedsFix,pkgsite

pkgsite when run locally can not show packages outside of the main module if there is a vendor directory. For example

```
$ git clone github.com/go-delve/delve
$ cd delve
$ pkgsite
```

and open http://localhost:8080/github.com/hashicorp/golang-lru/simplelru
Repository: next.js
Issue: `next lint` does not respect the `--config` flag
Labels: create-next-app,bug

### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.20.0
      npm: 8.19.4
      Yarn: N/A
      pnpm: 8.1.1
    Relevant packages:
      next: 13.3.1-canary.4
      eslint-config-next: 13.2.4
      react: 18.2.0
      react-dom: 18.2.0
```


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

CLI (create-next-app)

### Link to the code that reproduces this issue

N/A

### To Reproduce

Move the `.eslintrc.json` to a new directory and then pass the `--config` flag to `next lint`.

### Describe the Bug

As the title states, the `next lint` command shows that it accepts a `--config` flag but then this is provided, it does not get respected and instead the CLI attempts to create a new config in the root directory. The expected behaviour is that the config flag is respected and configurations can exist in other directories as desired since this is already (supposedly) an option.

### Expected Behavior

The `--config` flag is respected and works as described.

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

N/A

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

N/A
Repository: PowerToys
Issue: Text and Keyboard feature
Labels: Needs-Triage

### Description of the new feature / enhancement

Add an option to change selected text into capital or small or capitalize each word anywhere in the pc or net, by just a keyboard shortcut.

### Scenario when this would be used?

in note taking apps and renaming files

### Supporting information

_No response_
Repository: godot
Issue: Rigidbody3D apply_impulse position ignored when run in _ready or first tick
Labels: bug,documentation,topic:physics,topic:3d

### Godot version

4.0.2.stable.mono

### System information

Endeavour OS Zen Kernel 6.2.7 Ryzen 5900x Nvidia RTX 2080TI 11GB (proprietary drivers)

### Issue description

When using `apply_impulse` with a position (second) field specified inside of `_ready` or any subfunction started on the first tick, the position field is ignored. The first (impulse) field seems to work normally on the first tick though.

### Steps to reproduce

Create a Rigidbody3D inside of a world with corresponding mesh and colliders. Add a script which runs `apply_impulse` under `_ready` using both impulse and location fields. The impulse will disregard the position field and only use the impulse field.

### Minimal reproduction project

Under this example project by default the workaround of setting up a timer with an await to skip the first frame is enabled To see the unintended behavior in which the position is ignored comment the await function. 
[BrokenApplyImpulse.tar.gz](https://github.com/godotengine/godot/files/11201280/BrokenApplyImpulse.tar.gz)
Repository: godot
Issue: Can't sample two different textures with different repeat and filter settings in a custom shader function
Labels: bug,topic:shaders

### Godot version

v4.0.2.stable.official.7a0977ce2

### System information

Windows 11, Vulkan API 1.3.212 - Forward Mobile - Using Vulkan Device #0: Intel - Intel(R) UHD Graphics

### Issue description

When creating a function in a shader that samples from a sampler2D argument, it shows an error when using this function with two different sampler2D with different repeat and filter settings.
Take as a simple example:
```glsl
shader_type spatial;

uniform sampler2D tex_a : filter_linear, repeat_enable;
uniform sampler2D tex_b : filter_nearest, repeat_disable;

vec4 sample(sampler2D p_sampler, vec2 p_uv) {
	return texture(p_sampler, p_uv);
}

void fragment() {
	vec4 a = sample(tex_a, UV);
	vec4 b = sample(tex_b, UV);
	ALBEDO = mix(a, b, 0.5).xyz;
}
```

It throws the error: `error(12): Sampler argument 0 of function 'sample' called more than once using textures that differ in either filter or repeat setting.`

It doesn't throw if I create two different functions with same signature and body, and use each function for each sampler:
```glsl
shader_type spatial;

uniform sampler2D tex_a : filter_linear, repeat_enable;
uniform sampler2D tex_b : filter_nearest, repeat_disable;

vec4 sample1(sampler2D p_sampler, vec2 p_uv) {
	return texture(p_sampler, p_uv);
}

vec4 sample2(sampler2D p_sampler, vec2 p_uv) {
	return texture(p_sampler, p_uv);
}

void fragment() {
	vec4 a = sample1(tex_a, UV);
	vec4 b = sample2(tex_b, UV);
	ALBEDO = mix(a, b, 0.5).xyz;
}
```

### Steps to reproduce

Just create a shader resource with the content provided above and it shows the error.

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: Add modifier key for optional restore original window size when unsnapping 
Labels: Needs-Triage

### Description of the new feature / enhancement

An additional modifier key pressed when moving the window out of the zone, like ALT or CTRL, to invert the behavior of restoring the window size.

Or an drop-down list with behavior options:
- keep the size of the zone
- always restore to original size
- restore original size while holding down ALT or CTRL

### Scenario when this would be used?

I can only change the behavior of this option through the settings. Usually it is on. And I can't use two ways at the same time, depending on current task.

When using multiple monitors with a large resolution is comfortable to use a browser window size equal to full screen fullhd monitor, because many sites are not adapted to a higher resolution.

Also, when developing sites and working on adaptivity, I use a special zones layout with the needed size of the browser window.

The problem is that depends on the task, in some cases it is convenient to keep the window size equal to the zone, and in other cases it is vice versa.

### Supporting information

_No response_
Repository: godot
Issue: Game freezes and quits quietly when arranging GraphEdit nodes in specific circumstances
Labels: bug,topic:gui

### Godot version

v4.0.2.stable.official.7a0977ce2

### System information

Windows 10

### Issue description

When using a GraphEdit to arrange a very specific configuration of GraphNodes/slots/connections, the game freezes for a second or two and then quits without any message.

Does not matter whether you call `arrange_nodes()` in GDScript or press the corresponding button in the GraphEdit.

Affects both the editor and exported games.
The editor remains functional; nothing is actually crashing as far as I can tell. (The game is possibly shutting down due to an infinite loop? Though I'd expect some sort of error.)
Running with `-v` also does not produce any output.

### Steps to reproduce

One constellation that reliably triggers the issue for me:
![image](https://user-images.githubusercontent.com/1206571/231191704-dff5679e-a72e-4c2b-96db-6e140485eb06.png)

Some "fun" cases which "fix" the issue:
- Connect either/both of the leftmost nodes to the center node
- Disconnect either/both of the rightmost nodes from the center node
- Delete either/both of the leftmost nodes


### Minimal reproduction project

[graphedit-arrange-repro.zip](https://github.com/godotengine/godot/files/11201502/graphedit-arrange-repro.zip)
Contains a single scene (see screenshot above) and the following script to trigger the issue:
```gdscript
extends GraphEdit


func _ready() -> void:
	connect_node(&"CenterNode", 0, &"FirstInputNode", 0)
	connect_node(&"CenterNode", 0, &"SecondInputNode", 0)

	arrange_nodes()

```

Simply running the game (F5) immediately reproduces the issue.
Repository: kubernetes
Issue: [flaky] Test_StorageVersionUpdatedWithAllEncodingVersionsEqualOnLeaseDeletion
Labels: sig/api-machinery,kind/flake,triage/accepted

### Which jobs are flaking?

pull-kubernetes-unit
ci-kubernetes-unit

### Which tests are flaking?

Test_StorageVersionUpdatedWithAllEncodingVersionsEqualOnLeaseDeletion

### Since when has it been flaking?

April 3rd

### Testgrid link

https://storage.googleapis.com/k8s-triage/index.html?pr=1&text=Test_StorageVersionUpdatedWithAllEncodingVersionsEqualOnLeaseDeletion&job=ci-kubernetes-unit

### Reason for failure (if possible)

```
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0
goroutine 102 [running]:
testing.tRunner.func1.2({0x32b1500, 0xc0001dc4e0})
	/usr/local/go/src/testing/testing.go:1526 +0x372
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1529 +0x650
panic({0x32b1500, 0xc0001dc4e0})
	/usr/local/go/src/runtime/panic.go:890 +0x263
k8s.io/kubernetes/pkg/controller/storageversiongc.Test_StorageVersionUpdatedWithAllEncodingVersionsEqualOnLeaseDeletion(0xc000701040)
	/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/storageversiongc/gc_controller_test.go:142 +0x1be5
testing.tRunner(0xc000701040, 0x3547530)
	/usr/local/go/src/testing/testing.go:1576 +0x217
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1629 +0x806

```

### Anything else we need to know?

_No response_

### Relevant SIG(s)

/sig api-machinery
Repository: flutter
Issue: support grammtical inflection in flutter_localizations API
Labels: c: new feature,platform-android,framework,a: internationalization,c: proposal,e: OS-version specific,P3,team-android,triaged-android

## Use case

> 3 billion people speak gendered languages: languages where grammatical categories—such as nouns, verbs, adjectives, and prepositions—inflect according to the gender of people and objects you talk to or about. Traditionally, many gendered languages use masculine grammatical gender as the default or generic gender.
>
> Addressing users in the wrong grammatical gender, such as addressing women in masculine grammatical gender, can [negatively impact](https://www.nature.com/articles/s41539-021-00087-7) their performance and attitude. In contrast, a UI with language that correctly reflects the user's grammatical gender can improve user engagement and provide a more personalized and natural-sounding user experience.
>
> To help you build a user-centric UI for gendered languages, Android 14 introduces the [Grammatical Inflection API](https://developer.android.com/about/versions/14/features/grammatical-inflection), which lets you add support for grammatical gender without refactoring your app.

~ [google on android 14](https://developer.android.com/about/versions/14/features#grammatical-inflection)

with this motivation in mind a similar API should be available in Flutter

## Current Workaround

currently one would gender the strings by using this in the .arb files
```
"pronoun": "{gender, select, male{he} female{she} other{they}}",
"@pronoun": {
  "description": "A gendered message",
  "placeholders": {
    "gender": {
      "type": "String"
    }
  }
}
```
and querying them via
```dart
// Examples of internationalized strings.
return Column(
  children: <Widget>[
    ...
    // Returns 'he'
    Text(AppLocalizations.of(context)!.pronoun('male')),
    // Returns 'she'
    Text(AppLocalizations.of(context)!.pronoun('female')),
    // Returns 'they'
    Text(AppLocalizations.of(context)!.pronoun('other')),
  ],
);
```

## Proposal

This should be refactored to provide a similar API as Android 14 itself by reading in the correct `app_fr_female.arb`, `app_fr_male.arb` or `app_fr_neutral.arb` etc. files depending on system preferences.

additionally the Locale should get an `gender: ` parameter so overriding the locales would look like:
```diff
Localizations.override(
  context: context,
  locale: const Locale(
    'fr', 
+    gender: Gender.female,
  ),
  // Using a Builder to get the correct BuildContext.
  // Alternatively, you can create a new widget and Localizations.override
  // will pass the updated BuildContext to the new widget.
  child: Container(
    //...
  ),
),
```