sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Type identification with (match sth.get_mut()) of collections with structs
Labels: T-compiler,A-inference,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
struct ShaderGroup {
    vertex: Option<String>,
    geometry: Option<String>,
    fragment: Option<String>,
}

fn main() {
    let mut shader_groups = HashMap::new();
    match shader_groups.get_mut("Test") {
        Some(shader_group) => {
            // Remove this line will make everything fine
            shader_group.vertex = None;
        }
        None => {
            shader_groups.insert("Test".to_owned(), ShaderGroup { vertex: None, geometry: None, fragment: None });
        }
    }
}
```

I expected to see this happen: *Rust automanticly knows the type of `shader_groups` is `HashMap<String, ShaderGroup>`*

Instead, this happened: *If I don't remove the line with comment, Rust says "type annotations needed for `HashMap<K, V>`" on the definition of `shader_group`, and says "no field `vertex` on type `&mut _`" on the commented line. But if I remove the commented line, Rust then knows the type of `shader_groups` and compile will be successful.*

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.74.0-nightly (203c57dbe 2023-09-17)
binary: rustc
commit-hash: 203c57dbe20aee67eaa8f7be45d1e4ef0b274109
commit-date: 2023-09-17
host: x86_64-pc-windows-msvc
release: 1.74.0-nightly
LLVM version: 17.0.0
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
No back trace since it cannot even pass the compile :(
```

</p>
</details>
Repository: flutter
Issue: NavigationRail should have a iconType attribute so that only the selected or none of the icons are displayed
Labels: c: new feature,framework,f: material design,P3,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

NavigationRail doesn't have `iconType` only `labelType`

### Expected results

add iconType to NavigationRail

### Actual results

no iconType to NavigationRail

### Code sample

<details><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: excalidraw
Issue: Embed request ^_^ https://blocks.glass
Labels: enhancement,discussion,Embeddable

Hey Folks! 

We're big fans of Excalidraw at [Looking Glass](https://lookingglassfactory.com)! We make holographic displays, and ways to embed holograms on the internet via [Blocks](https://blocks.glass)! 

It'd be so cool to be able to embed these in Excalidraw! Let us know if there's anything we can do to help support that ^_^ <3 

Here's an example embed code: [https://blocks.glass/embed/648](https://blocks.glass/embed/648)
Repository: pytorch
Issue: _assert_bound_is_rational can fail
Labels: triaged,module: dynamic shapes

### 🐛 Describe the bug

This test

```
    def test_tensor_symfloat(self):
        def f(a):
            r = torch.tensor(a.size(0) * 1.0)
            assert r.dtype is torch.float
            return r

        r = str(make_fx(f, tracing_mode="symbolic")(torch.randn(2)).code).strip()
        # NB: this specializes, which is fine, the point is to make sure the
        # dtype inference is correct
        self.assertExpectedInline(r, """""")
```

fails with

```
  File "/data/users/ezyang/a/pytorch/test/test_proxy_tensor.py", line 1052, in f
    r = torch.tensor(a.size(0) * 1.0)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/symbolic_shapes.py", line 991, in guard_float
    r = self.shape_env.evaluate_expr(self.expr, self.hint, fx_node=self.fx_node)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/recording.py", line 227, in wrapper
    return fn(*args, **kwargs)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/symbolic_shapes.py", line 3798, in evaluate_expr
    static_expr = self._maybe_evaluate_static(expr)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/symbolic_shapes.py", line 1557, in wrapper
    return fn_cache(self, *args, **kwargs)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/symbolic_shapes.py", line 3478, in _maybe_evaluate_static
    _assert_bound_is_rational(new_expr, out)
  File "/data/users/ezyang/a/pytorch/torch/fx/experimental/symbolic_shapes.py", line 603, in _assert_bound_is_rational
    assert bound.lower.is_rational or bound.lower.is_Boolean or not bound.lower.is_finite or expr.has(sympy.Pow), (bound, expr)
AssertionError: (ValueRanges(lower=2.00000000000000, upper=9.22337203685478e+18, is_bool=False), 1.0*shape_0 + 1.0)
```

cc @ysiraichi 

### Versions

main
Repository: go
Issue: proposal: x/exp/jsonrpc2: add ConnectionOptions.ConnContext as net/http.Server.ConnContext
Labels: Proposal

The `context.Context` passed to [`Handler.Handle`](https://pkg.go.dev/golang.org/x/exp/jsonrpc2#Handler) or [`Preempter.Preempt`](https://pkg.go.dev/golang.org/x/exp/jsonrpc2#Preempter) is not canceled when the connection is closed. Each async (long-running) handler has to monitor the end of the connection by itself to stop running when this happens.

The goal of this proposal is to mimic [`net/http.Server.ConnContext`](https://pkg.go.dev/net/http#Server.ConnContext) and so to allow the user to provide its own `context.Context` derived from the "server" one.

To be backward compatible, a new `ConnContext` field can be added to [`ConnectionOptions`](https://pkg.go.dev/golang.org/x/exp/jsonrpc2#ConnectionOptions) as:

```go
// ConnectionOptions holds the options for new connections.
type ConnectionOptions struct {
	…
	// ConnContext optionally specifies a function that modifies
	// the context used for a new connection conn.
	ConnContext func(ctx context.Context, conn *Connection) context.Context
}
```

This function will then be called in `newConnection` just after `Binder.Bind` is called as:
```diff
 	options, err := binder.Bind(ctx, c)
 	if err != nil {
 		return nil, err
 	}
+ 	if options.ConnContext != nil {
+ 		ctx = options.ConnContext(ctx, c)
+ 		if ctx == nil {
+ 			panic("ConnContext returned nil")
+ 		}
+ 	}
  	if options.Framer == nil {
```
Repository: rust
Issue: Tracking Issue for `cmp::minmax{_by,_by_key}`
Labels: T-libs-api,C-tracking-issue

<!--
Thank you for creating a tracking issue!

Tracking issues are for tracking a feature from implementation to stabilization.

Make sure to include the relevant RFC for the feature if it has one.

If the new feature is small, it may be fine to skip the RFC process. In that
case, you can use `issue = "none"` in your initial implementation PR. The
reviewer will ask you to open a tracking issue if they agree your feature can be
added without an RFC.
-->

Feature gate: `#![feature(cmp_minmax)]`

This is a tracking issue for `core::cmp::minmax{_by,_by_key}`.

Those functions take two values and return an array of `[min, max]`. This is essentially a sort specialized for two arguments.

<!--
Include a short description of the feature.
-->

### Public API

<!--
For most library features, it'd be useful to include a summarized version of the public API.
(E.g. just the public function signatures without their doc comments or implementation.)
-->

```rust
// core::cmp

pub fn minmax<T>(v1: T, v2: T) -> [T; 2]
where
    T: Ord;

pub fn minmax_by<T, F>(v1: T, v2: T, compare: F) -> [T; 2]
where
    F: FnOnce(&T, &T) -> Ordering;

pub fn minmax_by_key<T, F, K>(v1: T, v2: T, f: F) -> [T; 2]
where
    F: FnMut(&T) -> K,
    K: Ord;
```

### Steps / History

<!--
For larger features, more steps might be involved.
If the feature is changed later, please add those PRs here as well.
-->

- [x] Implementation: #109409
- [ ] Final comment period (FCP)[^1]
- [ ] Stabilization PR

<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.

If this feature didn't go through the RFC process, a final comment period
(FCP) is always needed before stabilization. This works as follows:

A library API team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilization PR can be opened by anyone.
-->

### Unresolved Questions

<!--
Include any open questions that need to be answered before the feature can be
stabilised. If multiple (unrelated) big questions come up, it can be a good idea
to open a separate issue for each, to make it easier to keep track of the
discussions.

It's useful to link any relevant discussions and conclusions (whether on GitHub,
Zulip, or the internals forum) here.
-->

- None yet.

[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
Repository: PowerToys
Issue: Position the desktop icon in the specified area
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

When there is new icon or when the user just reorganize the desktop icon, icons can only appear in a specified area, a customized region instead of  left-top area.

### Scenario when this would be used?

When I work with a super long screen, all of my focus is actually on the centre part of the screen but not the left part of the screen. So if these icons can be oragnized in a allowed-area, like centre-cnentre part of the screen, that would be a great convience. (then we can directly press win+d to go back to desktop and quickly pick the program we want to run)

### Supporting information

_No response_
Repository: go
Issue: proposal: x/sys/unix: Add support for ethtool_cmd and ethtool_value 
Labels: Proposal

For invoking ioctl with the SIOCETHTOOL request, only `EthtoolDrvinfo` is supported by x/sys/unix at the moment. This is a proposal to implement support for ethtool_cmd and ethtool_value structs as follows:

1. Add new structs
```
type EthtoolCmd struct {
  // struct ethtool_cmd from ethtool.h
}

type EthtoolValue struct {
  // struct ethtool_value from ethtool.h
}
```

2. Add new ioctl wrapper functions
```
func IoctlEthtoolCmd(fd int, ifname string, eCmd *EthtoolCmd) error
func IoctlEthtoolValue(fd int, ifname string, eValue *EthtoolValue) error
```
Repository: svelte
Issue: Wrong a11y wargning on <dialog> with autofocus attribute
Labels: a11y

### Describe the bug

Ally warning "Avoid using autofocus" appears on `<dialog autofocus>` element definition. 
But using of autofocus on dialog or its descendants is recommended by the standard: https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element

> As such, authors should use the [autofocus](https://html.spec.whatwg.org/multipage/interaction.html#attr-fe-autofocus) attribute on the descendant element of the dialog that the user is expected to immediately interact with after the dialog opens. If there is no such element, then authors should use the [autofocus](https://html.spec.whatwg.org/multipage/interaction.html#attr-fe-autofocus) attribute on the [dialog](https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element) element itself.

### Reproduction

```html
<dialog autofocus>
	I'm a dialog
</dialog>
```

https://svelte.dev/repl/483135a2842e4da6ba6f24ea63430cf2?version=4.2.0

### Logs

_No response_

### System Info

```shell
N/A
```


### Severity

annoyance
Repository: next.js
Issue: No update in HTML/browser after change to page on a clean create next app
Labels: bug

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/vanGalilea/nextjsrepro

### To Reproduce

1. start the app via `next dev` or `next build`
2. change page.tsx's content
3. no change is visible in browser


### Current vs. Expected behavior

I expect the changes to be visible in the browser automatically (hot reloading) and/or after hard refresh via the browser button.
Also changes should be visible after `next build` and `next start`

### 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.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.17.1
      npm: 9.6.7
      Yarn: 1.22.19
      pnpm: N/A
    Relevant Packages:
      next: 13.4.20-canary.36
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.3
    Next.js Config:
      output: N/A
```


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

Not sure

### Additional context

- This issue was tested with Chrome and Safari with the same results.
- I'm pretty sure the issue is locally and has to do with my machine/setup.
- After removing `page.tsx` completely and adding it again there is an update with the new content. Though if the `page.tsx`'s content changes again it doesn't update it.
- It seems like next caches some data aggressively.

https://github.com/vercel/next.js/assets/25864161/ba7bf3f2-115d-4d8c-84d3-831b5c0ffd42
Repository: godot
Issue: sometimes an existing node doesn't show up in search.
Labels: bug,topic:editor,needs testing

### Godot version

4.1.1.stable.mono

### System information

Windows 11 Enterprise Version	22H2 Installed  OS build	22621.2283 Experience	Windows Feature Experience Pack 1000.22662.1000.0

### Issue description

when a scene has over 200/300+ node , sometimes an existing node doesn't show up in search. 

### Steps to reproduce

add a bunch of nodes save the project, add a few more. repeat a few times. And at a point randomly a child node will not show up in search.

### Minimal reproduction project

.
[is_this_cell_taken__project_zomboid_map_mod.zip](https://github.com/godotengine/godot/files/12656292/is_this_cell_taken__project_zomboid_map_mod.zip)


Edit: I meant filter node in the scene tree.
Repository: godot
Issue: directional light shadows not working in large world
Labels: bug,topic:rendering,needs testing,topic:3d

### Godot version

v4.1.1.stable.custom_build [bd6af8e0e] (double)

### System information

Windows 11

### Issue description

The object is at position <75000, 0, -149900> where lighting fails (the shading is completely black), while other nodes also exist at far away distances. The shadows work when the object is close to the origin (~2000 meters).

### Steps to reproduce

* open project
* stare at black shadows

### Minimal reproduction project

[bugreportScene.zip](https://github.com/godotengine/godot/files/12651559/bugreportScene.zip)
Repository: deno
Issue: [jupyter-kernel] stdout/stderr are not captured (only `console`)
Labels: bug,cli,deno jupyter

We should re-route stdout and stderr to the notebook rather than just capturing console.log, console.error and the like. This may be complicated to make work on Windows, however.
Repository: material-ui
Issue: [joy-ui][Select] onChange auto triggers when the `value` is not found in options
Labels: bug 🐛,component: select,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example:

https://codesandbox.io/s/currying-dew-2hl2tp?file=/Demo.tsx

Steps:

1. Open the example provided above.
2. See the console logs. You will see the log on the console on the first render. 


### Current behavior 😯

Currently, the onChange triggers automatically when we provide a value that is not found in the Options.

### Expected behavior 🤔

_No response_

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: deno
Issue: [jupyter-kernel] Deno kernel does not shutdown cleanly when Jupyter closes
Labels: bug,cli,deno jupyter

While jupyter states that the kernel is shutting down, deno is still running in the background:

```
11:20 $ jupyter console --kernel deno
Jupyter console 6.5.0

Welcome to Deno kernel
In [1]:                                                             
Do you really want to exit ([y]/n)? y
Shutting down kernel
Client disconnected PeerIdentity([195, 235, 7, 199, 251, 85, 69, 229, 170, 78, 155, 37, 165, 29, 224, 244])
11:20 $ ps aux | grep "deno" | grep "jupyter"
matt             65952   0.0  0.6 410162528 210800   ??  Ss   11:20AM   0:01.02 /Users/matt/Documents/github/deno/deno/target/debug/deno --unstable jupyter --kernel --conn /Users/matt/Library/Jupyter/runtime/kernel-65927.json
```
Repository: PowerToys
Issue: PowerToys "Session Restore": Restart programs after "Crash" / "Windows Update" (Desktop + Virtual Desktops)
Labels: Needs-Triage

### Description of the new feature / enhancement

One of the problems with Microsoft Windows is that **after a crash (or update) you have to restart all your programs**.
You also have to **reorganise your virtual desktops**. 

This is really annoying if you are working on a laptop where you have many programs running at the same time (Browser, IDE, Console, Design Tools, Mail Client, Skype, Time Trackers, ...), organised on different virtual desktops.

Windows needs an option to restore the last session and automatically restart all programs.

Perhaps this could be implemented using **PowerToys**.

**PowerToys "Session Restore" options:**)

- Session Restore - Restart programs after
    - Crash [**yes**/no].
    - Restart / Update [**yes**/no].
- Ask before restoring session at Windows startup? [yes/**no**]
- Restore desktops
    - All desktops, including virtual ones.  [**radio option**, default on]
    - Main desktop only [radio option]
- Exclude list
    - List of programs that shouldn't be restarted.  [List of programs]

Please also take a look at MacOS, which has this feature too baked in into the OS.

### Scenario when this would be used?

- After each Crash
- After each Windows Update (in my organization, there are many updates)
- After Windows restarts

### Supporting information

_No response_
Repository: vscode
Issue: Quick chat container can be focused and has focus border cut off
Labels: bug,polish,quick-chat

Repro:

- Open quick chat
- Click just above the textbox

I'm not sure focusing this does anything in which case it should not be focusable, if this is intentional the bottom focus border should show

![Image](https://github.com/microsoft/vscode/assets/2193314/a1b8e008-531d-4b02-9781-9d4268680970)
Repository: vscode
Issue: Improve chat view's horizontal code scrolling visual feedback
Labels: ux,under-discussion

It's not that clear that these code blocks can be scrolled horizontally:



![Image](https://github.com/microsoft/vscode/assets/2193314/7fbc5287-1105-4269-a339-861430419bab)


Depending on the font/zoom/etc. there may also be no partial characters on the right side.

The editor has the shadow on the left of the minimap for long lines:



![Image](https://github.com/microsoft/vscode/assets/2193314/0dfb8dd7-9e7a-41c0-9821-d7e5c2107c77)
Repository: go
Issue: x/website: https://cs.opensource.google/go missing indexes for x/telemetry, x/vuln, and x/pkgsite-metrics
Labels: NeedsFix,website

### What did you do?

Navigate to https://cs.opensource.google/go.


### What did you expect to see?

Entries for all of the `x/` repos whose tests are reported on https://build.golang.org/.


### What did you see instead?

Most `x/` repos, but no entries for `x/telemetry`, `x/vuln`, or `x/pkgsite-metrics`.
That makes test failures in those repos more difficult to identify and report, since one cannot view the commit history of a failing test in the usual place.

(attn @golang/release)
Repository: godot
Issue: (Video attached) When resizing screen with ScrollContainer and ScrollContainer transitions from scrollable to non-scrollable game crashes
Labels: bug,confirmed,crash,topic:gui

### Godot version

4.1.1.stable.mono

### System information

Godot v4.1.1.stable.mono - Windows 10.0.22000 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.3713) - Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz (8 Threads)

### Issue description


https://github.com/godotengine/godot/assets/44527670/843def8f-56ac-4d9c-a22b-2d59304bc5e6

When i resize the screen of my game and i make the screen big enough for the screen to not need a scroll list anymore it crashes, this happens in the oppisite context aswell where the game boots without the need for a scroll list but if i make it smaller to the point where it needs a scroll list it crashes.

### Steps to reproduce

Resize screen to the point where it doesnt need a scroll list.

### Minimal reproduction project

[Stranded - Copy.zip](https://github.com/godotengine/godot/files/12652078/Stranded.-.Copy.zip)
Repository: PowerToys
Issue: FancyZones: "Space around zones" not applied correctly
Labels: Issue-Bug,FancyZones-Layouts,Needs-Triage

### Microsoft PowerToys version

0.73.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

1. Set a desktop background of a different color than the Windows theme (e.g. red if using a Dark theme)
2. Set any Template or Custom layout with "Space around zones" to either "0 px" or disabled (or both)
3. Shift+Drag a window into each zone
4. Notice that a 1-pixel line of desktop background around and between each zone is visible

Curiously, this appears to only happen with my Custom template (two column zones split at roughly a third of the way from the left edge) on my secondary 1440p monitor, where I have it applied all the time. On my primary 2160p (4k) monitor, the Custom template does not have this 1-pixel border issue, however all of the default templates still do.

### ✔️ Expected Behavior

With "Space around zones" enabled and set to "0 px" or with the option disabled, the expected behavior is for each zone to fill all available space.

### ❌ Actual Behavior

Using any template on any monitor (other than my Custom template, as described above) leaves a 1-pixel border around and between each zone. My rotating desktop backgrounds include some bright images that often bleed through, causing a distraction while trying to focus. After moving windows into the zones I want, I have to manually drag the borders horizontally and vertically to cover the pixel-wide border. And because I use a KVM switch to access a secondary PC, nearly all application windows are reorganized frequently and I have to readjust windows almost daily.

### Other Software

I have not found any applications where this does not apply other than those that cannot be resized down to the width or height of a given zone, such as MS Paint on Windows 11.