sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Provide structural pinning guarantees for slices, vecs, arrays
Labels: A-docs,A-array

_Link to [Zulip Discussion](https://rust-lang.zulipchat.com/#narrow/stream/187312-wg-async/topic/Projecting.20Pin.3CVec.3E.20to.20Vec.3CPin.3E)._

Right now `Vec` provides no guarantees wrt [structural pinning](https://doc.rust-lang.org/std/pin/index.html#pinning-is-structural-for-field), meaning if we have a `Vec` of futures and we pin project through it, it works fine today - but we're not _guaranteed_ it will continue to work fine tomorrow. For example, [`futures::join_all!`](https://docs.rs/futures-util/0.3.25/src/futures_util/future/join_all.rs.html#18-23) notes internally that:

> Safety: `std` _could_ make this unsound if it were to decide Pin's invariants aren't required to transmit through slices. Otherwise this has the same safety as a normal field pin projection.

Those are pretty shaky grounds to build on, and it'd be better if we could actually guarantee that this will continue to work fine in the future. Especially as the Async WG is looking to fold facilities akin to `join_all!` into the stdlib. I'm not sure what exactly we'd need to document in order to make these guarantees, hence this issue.

---

Tagging in: @rust-lang/wg-async, @rust-lang/wg-unsafe-code-guidelines, and also @RalfJung specifically since they've been working on the intersection of soundness and pinning recently.
Repository: flutter
Issue: Set up an autoroller for expat
Labels: platform-android,engine,P2,team-android,triaged-android

Currently we're rolling this manually, and very infrequently; see https://github.com/flutter/flutter/issues/114734 and https://github.com/flutter/flutter/issues/91384. We should ideally have an autoroller so that this doesn't get so outdated.

(See also https://github.com/flutter/flutter/issues/93881 which would eliminate the need for this, but it doesn't seem like that's a short-term project.)
Repository: TypeScript
Issue: Parameter completion for arrow/anonymous functions
Labels: Suggestion,Help Wanted,Experience Enhancement

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Auto complete the parameters of anonymous functions. JavaScript and most other languages already name the parameters when the function is defined and you can see these names while you are writing the function, but why not complete the whole statement, or at least complete the names when in the parentheses.

JavaScript already knows the param names
![image](https://user-images.githubusercontent.com/24759591/200318348-912c6b23-2348-423e-9076-f291cb1227f1.png)

How IntelliJ handles it
![image](https://user-images.githubusercontent.com/24759591/200318653-bbf15432-0b2e-4961-a7f2-bc045a9bcc38.png)
![image](https://user-images.githubusercontent.com/24759591/200319101-f6d36933-f748-43f9-9aec-4352a7ff9113.png)
Repository: create-react-app
Issue: react-scripts not available after eject
Labels: needs triage,issue: bug report

I needed to eject after migrating from cra4 to cra5

after ejecting, react-scripts are not available when running npm run start do I need to change my start/build scripts in package.json ?


eg : node scripts/start.js  ?
Repository: PowerToys
Issue: Faster size evaluation for large or complex folders
Labels: Needs-Triage

### Description of the new feature / enhancement

Determines and displays folder size for large or complex folders (including those located within network drives) in less elapsed time than the traditional "right click>properties>size" method

### Scenario when this would be used?

This feature would be useful for determining the size of a folder with a particularly complex structure of subfolders and an overall large size when the usual "right click>properties>size" method (suitable for smaller folders) takes too much time. 

### Supporting information

The GetDirSummary.bat Script in the answers at the following Stack Overflow post is closest to what I'd like to replicate: https://stackoverflow.com/questions/12813826/get-folder-size-from-windows-command-line

https://answers.microsoft.com/en-us/windows/forum/all/taking-a-lot-of-time-to-evaluate-folder-sizes/55bf907b-05bc-44e1-ae1a-c4494b6bf575

https://www.jam-software.com/treesize_free?ca=1
Repository: vscode
Issue: More intuitive naming during conflict resolution 
Labels: feature-request,merge-conflict

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

During conflict resolution, e.g. in the merge editor, Current and Incoming are not intuitive, it would be better to use the branch names or at least have the branch name in parenthesis after Current and Incoming
Repository: rust
Issue: "ambiguous associated type" when accessing concrete type (but not on generic type)
Labels: A-associated-items,T-compiler,A-inference

Consider the following code:
```rust
trait Memory {
    type Provenance;
}

struct BasicMemory;

impl Memory for BasicMemory {
    type Provenance = ();
}

fn some_fn() {
    let x: BasicMemory::Provenance; // this fails
}

fn some_generic_fn<T: Memory>() {
    let x: T::Provenance; // this works
}
```
Using `Type::Provenance` works when `Type` is a generic parameter that implements the appropriate trait, but strangely fails when `Type` is a *concrete* type that implements the appropriate trait. That seems like a bug? Or at least it is an odd limitation that it'd be nice to lift. :)

Thanks to @memoryleak47 for pointing this out!
Repository: go
Issue: misc/cgo/testtls: static test fails
Labels: OS-NetBSD,NeedsInvestigation,arch-arm

### What version of Go are you using (`go version`)?

581a822a9ed8fcae4afbc93daa6a74db7d9ea9a2 in the Go 1.20 development tree

### What operating system and processor architecture are you using (`go env`)?

netbsd/arm, observed on the trybots for [CL 448016 PS 2](https://go-review.git.corp.google.com/c/go/+/448016/2)

### What did you do?

I've been enabling dist tests for cgo on more architectures where it's not clear why they're disabled. One of the misc/cgo/testtls static build configurations crashes on netbsd/arm (but passes on netbsd/arm64). It's unfortunately not easy to extract tests from dist (something I'm hoping to improve), but I believe this is what the test is doing:

```sh
cd $GOROOT/misc/cgo/testtls
go test -short=true -count=1 -run= -ldflags=-linkmode=external -tags=static .
```

It appears all of the other misc/cgo tests pass once I skip that specific one.

### What did you expect to see?

Test passes.

### What did you see instead?

Test crashes with SIGABRT. See the [trybot log](https://storage.googleapis.com/go-build-log/bf79e904/netbsd-arm-bsiegert_7b38db8b.log).

/cc @golang/netbsd
Repository: godot
Issue: [FileDialog][Window Node] - Select file with double click breaks clicking/focusing of windows
Labels: bug,needs testing,topic:gui

### Godot version

v4.0.beta3.official [01ae26d31]

### System information

Windows 11, Vulkan

### Issue description

If you have 2 windows and a file dialog open and you select an file using double click, you can't select the windows by clicking on them anymore. (Only by using the taskbar.) You also can't use the buttons (e. g. close button). This dosn't happen if you use the OK button on the file dialog.

### Steps to reproduce

1. Start the example project (you can select all windows by clicking normally on them)
2. Select a file using double click
3. Try selecting the windows again
Result: Windows not focusable/clickable.
---
1. Start the example project (you can select all windows by clicking normally on them)
2. Select a file using the OK button
3. Try selecting the windows again
Result: Windows normally focusable/clickable.

### Minimal reproduction project

[FileDialogDoubleClickBug.zip](https://github.com/godotengine/godot/files/9954419/FileDialogDoubleClickBug.zip)
Repository: flutter
Issue: Use the Android Dynamic Performance Framework on Android
Labels: c: new feature,platform-android,engine,c: performance,dependency: android,perf: speed,perf: energy,P3,team-android,triaged-android

We should consider using https://developer.android.com/games/optimize/adpf to increase the clock speed during animations and reduce the vsync frequency when the thermal monitoring says we're heating the device.
Repository: storybook
Issue: [Bug]: `npx sb upgrade` fails silently when you have a private npm registry
Labels: bug,cli

### Describe the bug

trying to upgrade from 6.3.8 to the latest version, 6.5.13.

I ran `npx sb ugrade` in the terminal, and was surprised to find that _there were no changes_ in my working directory in git. My `package.json` file and lockfiles were not affected at all by this, yet npx seemed to run successfully.

I took a closer look at npx's output though... and it actually emitted some errors as part of its output but the script did not actually error out. It got some 401 errors trying to get the latest version of storybook/* packages from my company's private npm registry.

Shouldn't it be using the npmrc file's contents? If so, it would not be running into errors like this.

Also, if it errors, the entire thing should return with an error, not an apparent success.



### To Reproduce

```shell
1. Use a private npm package registry (my company uses Jfrog's Artifactory)
2. use version 6.3.8 of storybook
3. run `npx sb ugrade`

Expected: `npx sb ugprade` is able to access the packages in your private registry using your npmrc file

Actual: it gets 401 errors on trying to access the npm registry

ALSO EXPECTED: if there are errors accessing npm packages, then the entire script should error out

ALSO ACTUAL: it fails silently on 401 errors to the npm registry, the script continues and returns a success state. The user must comb through the output to find any 401 errors early in the output of the script.
```


### System

running that command gives me this:

```shell
➜  my-project-name-here git:(master) npx sb@next info
Unexpected token '?'
```

### Additional context

_No response_
Repository: PowerToys
Issue: Keyboard manager: Add a checkbox to block or allow fallthrough of all sub-shortcuts
Labels: Issue-Bug,Needs-Triage

### Description

Fallthrough shortcuts need to be handled. There are two current situations this causes problems.

* [Remapping a shortcut to be disabled](#disabling-shortcuts)
* [Remapping a shortcut to another shortcut](#remapping-to-other-shortcuts)

### Microsoft PowerToys version

0.64.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

## Potential solutions

There's 2 ways I can think to solve this:
* Include a checkbox to include all derivatives of the shortcut (e.g. Alt+Tab+ _any key_ all get blocked, or Ctrl+1+W is activated, depending on the shortcut type)
* Alternative: Allow n-keys to be set in the shortcuts of Keyboard Manager

&nbsp;

<h1 id="disabling-shortcuts">Disabling shortcuts</h1>

### Steps to reproduce

1. Set a shortcut to disable Alt+Tab on a specific process, e.g. mspaint
1. Open Paint
1. Press Alt+Tab
1. Note the shortcut is correctly blocked
1. Press Alt+Tab + _any other key_
1. The Alt+Tab menu opens

### ✔️ Expected Behavior

When setting this shortcut, I should check the box "include fallthrough". This essentially remaps Alt+Tab + all other combinations of keys to be disabled.

No matter what else is pressed with Alt+Tab, it should not open the Alt+tab menu.

### ❌ Actual Behavior

Disabling a shortcut only blocks the specific shortcut, and the presence of any other key press at the same time lets the shortcut fallthrough and still get executed by Windows.

&nbsp;

<h1 id="remapping-to-other-shortcuts">Remapping to other shortcuts</h1>

### Steps to reproduce

The effects are more easily observed in a game where you can set keybinds, such as World of Warcraft:

1. Set something to activate with alt+1 in the game (or another application)
1. Remap Ctrl+1 to to alt+1
1. Press Ctrl+1
1. Note the button correctly activates
1. Press Ctrl+1+W
1. Whatever the buttons are set to activate do not activate as they should

### ✔️ Expected Behavior

When setting this shortcut, I should check the box "include fallthrough". This essentially remaps Ctrl+1 + all other combinations of keys to the new shortcut I set.

No matter what else is pressed with Ctrl+1, it should activate what it is set to.

### ❌ Actual Behavior

Setting a shortcut only activates the specific shortcut, and the presence of any other key press at the same time lets the shortcut fallthrough think the unmapped shortcut is being pressed.
Repository: pytorch
Issue: Despite having aten::diag_embed.out, torch.diag_embed doesn't support out= argument
Labels: triaged,module: codegen

### 🐛 Describe the bug

Discovered while working on https://github.com/pytorch/pytorch/pull/88584 You can test by trying to call diag_embed with an out= argument.

I think it has to do with the autogenerated schema machinery, as I don't see a denylist for diag_embed anywhere in codegen

cc @bhosmer @bdhirsh 

### Versions

master
Repository: material-ui
Issue: [joy-ui] Add `useMediaQuery` hook
Labels: docs,hook: useMediaQuery,ready to take,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

I'd like to be able to import and use `useMediaQuery` with Joy UI just like Material UI supports to adapt my layout for different screen sizes

### Examples 🌈

```typescript
import { Button, IconButton, useMediaQuery } from '@mui/joy'
import SettingsIcon from '@mui/icons-material/Settings'

const NavigationBar = () => {
    let isScreenMobile = useMediaQuery((theme) =>
        theme.breakpoints.down('mobile')
    )

    return (
        <div>
            {isScreenMobile ? (
                <Button startDecorator={<SettingsIcon />}>
                    Settings
                </Button>
            ) : (
                <IconButton>
                    <SettingsIcon />
                </IconButton>
            )}
        </div>
    )
}
```

### Motivation 🔦

I'm trying to adapt my interface to have my navigation bar show just an `IconButton` when on a tablet or larger sized screen, but a larger regular `Button` with an icon when on a mobile sized screen. At the moment I appear to be unable to do so without something like `useMediaQuery` which has access to my theme's media breakpoints, which makes the app less friendly and functional on mobile. While the `sx` prop is very useful for adapting individual components, it's common to want to render entirely different components at different breakpoints. 

For reference, my breakpoints are set to:
```
mobile: 0,
tablet: 640,
laptop: 1024,
desktop: 1200
```

Many well-designed web apps like [Twitter](https://twitter.com/home) have elements like side bars that collapse, disappear completely (like the "What's happening" bar on the righthand side) or are replaced by new layouts (like the navigation bar on the lefthand side, which collapses at smaller sizes and is wholly replaced by a bottom navigation bar on mobile). This kind of adaptability is essential for designing a responsive/mobile-friendly app.

If there's a workaround in the meantime I'd be happy to learn it! I love the aesthetic of Joy UI much more than Material UI 2, so am eager and making an effort to use it although it's still in alpha.
Repository: vscode
Issue: 📓 Separate content part and overlay
Labels: debt,perf,notebook-perf

Currently the notebook renders all cell parts synchronously and then read their DOM dimensions if needed. This is because most cell parts need to be visible right after they are rendered, if they are not positioned correctly, users will be able to some UI flickering, which is what we try to avoid.

However some parts are absolutely positioned and only shows up on hover or click, for these set of cell parts, there is no harm to postpone their rendering to next frame. To archive this, we can explore introducing `CellContentPart` and `CellOverlayPart`, the later can be used to implement Insert Toolbars, Cell Title Toolbars, etc.
Repository: PowerToys
Issue: Fancy Zones Forgets "Main" Display Upon Wake
Labels: Issue-Bug,Product-FancyZones,Needs-Triage

### Microsoft PowerToys version

64

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

When my Windows 11 goes to sleep, and then wakes back up, Fancy Zones's start expanding under the task bar. During use on another display, Fancy Zones then expands with an invisible buffer zone, creating an imaginary task bar, on another display that is not my main display. 

It's possible that because one display is on another graphics device and maybe starts first it is not updating my main display when windows awakens the other.

### ✔️ Expected Behavior

Fancy Zones to reflect the configuration in windows.

### ❌ Actual Behavior

When my Windows 11 goes to sleep, and then wakes back up, Fancy Zones's start expanding under the task bar. During use on another display, Fancy Zones then expands with an invisible buffer zone, creating an imaginary task bar, on another display that is not my main display. 

It's possible that because one display is on another graphics device and maybe starts first it is not updating my main display when windows awakens the other.

Changing the "main display" in windows to the incorrect one and then back to the correct one causes Fancy Zones to again expand correctly.

### Other Software

Wallpaper Engine.
Repository: rust
Issue: Confusing precedence for shifts
Labels: A-lints,T-lang

<!--
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
1 << 13 - 10
```

I expected to get `(1 << 13) - 10`, but instead got `1 << (13 - 10)`. I would have expected the precedence rules here to align with those for multiplication/division.

### 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.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: aarch64-apple-darwin
release: 1.65.0
LLVM version: 15.0.0
```
Repository: vscode
Issue: Re-explore turning on transform optimization in notebook
Labels: debt,perf,notebook-perf

We currently disable transform optimization in notebook as before we didn't get proper context menu or overlay widget support when it's turned on (widgets can be cut off at the boundaries of layers). We might want to revisit how it works now. Currently we are paying the price of not optimizing the layout/paint on scrolling

**Turned off**


https://user-images.githubusercontent.com/876920/200408332-348a877c-5544-4be2-bbe1-2cfd756ec8a1.mov


**Turned on**


https://user-images.githubusercontent.com/876920/200408395-760adf41-15e9-40d6-af1e-8def80d002a8.mov
Repository: next.js
Issue: App.dir Dynamic Routing Overwriting Index (page.tsx) Page
Labels: bug

### Verify canary release

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

### Provide environment information

    Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Pro
    Binaries:
      Node: 18.12.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.0.3-canary.0
      eslint-config-next: 13.0.1
      react: 18.2.0
      react-dom: 18.2.0

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

_No response_

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

Vercel

### Describe the Bug

I am receiving a 500 internal server error when visiting my homepage on Vercel.  It seems that I am getting an error because the dynamic routing is trying to find a .json file and render a page at "/" instead of using the "page.tsx" (index page) in the code.  Currently I have a [slug] folder that is rendering pages off an s3 bucket. It seems to think the homepage is a page to be rendered dynamically and is looking for a json file instead of looking at the page.tsx in the app folder. 
[errorlog.txt](https://github.com/vercel/next.js/files/9955246/errorlog.txt)


### Expected Behavior

While the docs say that Next.js predefined routes should override the dynamic routes, it seems the opposite is happening in production. While running locally it does not seem to have this issue and the homepage loads correctly. I confirmed that if I deleted the dynamic route [slug] page that the homepage then loads correctly. 

### Link to reproduction

https://github.com/jedwards4044/next-website/tree/app-dir/app

### To Reproduce

This error occurs after you deploy the site to production and try and visit the homepage. The deployment should work but when you visit the homepages "/" you should receive an error and function logs dictating that is was unable to find the json file.
Repository: go
Issue: x/tools/go/packages: NeedDeps has no effect
Labels: Tools

The documentation for the NeedDeps field is unclear. It says:
```
        // NeedDeps adds the fields requested by the LoadMode in the packages in Imports.
```
I think perhaps the idea might be more clearly expressed as:
```
       // NeedDeps causes all Packages transitively reachable through
       // the Imports map to also be populated according to the LoadMode.
```
but that isn't what actually happens. Observe:

```
xtools$ cat main.go 
package main

import (
	"fmt"
	"log"

	"golang.org/x/tools/go/packages"
)

func main() {
	cfg := &packages.Config{
		Mode: packages.NeedImports |
			packages.NeedCompiledGoFiles |
			//packages.NeedDeps |       // try with and without this line
			0,
	}
	pkgs, err := packages.Load(cfg, "runtime")
	if err != nil {
		log.Fatalf("load: %v", err)
	}
	packages.Visit(pkgs, nil, func(p *packages.Package) {
		fmt.Println(p, len(p.CompiledGoFiles))
	})
}

xtools$ go run  ./main.go  > with
# Now uncomment the NeedDeps line.
xtools$ go run  ./main.go  > without
xtools$ diff with without
xtools$
# nothing
```

In other words, the NeedDeps flag seems to have no effect when the NeedImports flag is set. And If you remove NeedImports, only a single package is reported, regardless of NeedDeps. It's as if the flag has no effect at all.

I would expect the following behaviors:
- Imports=true, deps=true: import graph fully populated according to mode bits
- imports=true, deps=false: import map is populated to depth 1; dependencies may be stubs.
- imports=false: import map is nil. Deps flag has no effect.
Repository: flutter
Issue: [flutter_tools] Tool host/device port needs documentation and cleanup
Labels: team,tool,P2,c: tech-debt,team-tool,triaged-tool

A discussion that started with https://github.com/flutter/flutter/pull/114628#discussion_r1014481571 revealed a lot of confusion over `--device-vmservice-port`, `--host-vmservice-port`, and `--dds-port`. The conclusion was:

* Application runs on device, it starts up a VM Service instance. This instance will broadcast on a port + auth code combo.
* (Optional) If Host/Device are different machines, we forward the device port to a selected host port.
* (Optional) If dds is enabled, dds connects to the selected host port, then broadcasts on the dds port

However, we should:

1. verify this is how things currently work
2. refactor to clean up, remove redundancy, and add validations
3. document how it all works, in the code, the CLI help text and a standalone document.