sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Disable Keyboard manager by default on Games (Full screen apps)
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager,Priority-1

### Description of the new feature / enhancement

based on reddit posts, we're seeing KBM causing a input delays on games.

i propose we have an option that is turned on by default to "Ignore / Disable KBM on full screen mode"

### Scenario when this would be used?

Gamers and not causing an input delay

### Supporting information

_No response_
Repository: flutter
Issue: Enable the bot that checks for tests on all other repos
Labels: team-infra,P3,triaged-infra

Currently the bot that talks about needing tests only seems to run on engine and flutter repos.
We should run it on all flutter/* repos.
Repository: nvm
Issue: nvm commands hang instead of reporting an error when curl is not available
Labels: non-issue / invalid

<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->

#### Operating system and version:

Ubuntu 20.04

#### `nvm debug` output:
<details>
<!-- do not delete the following blank line -->

```sh
# Will provide if necessary but it's not accurate now that I've installed curl
```
</details>

#### `nvm ls` output:
<details>
<!-- do not delete the following blank line -->

```sh
# Will provide if necessary. 
```
</details>

#### How did you install `nvm`?
<!-- (e.g. install script in readme, Homebrew) -->
install script

#### What steps did you perform?
Had a working nvm install break after updating from Ubuntu 16.04 to Ubuntu 20.04

#### What happened?
Any nvm command that made a remote request would hang

#### What did you expect to happen?
I expected the command to complete successfully or report a reason for an error

#### Is there anything in any of your profile files that modifies the `PATH`?
<!--  (e.g. `.bashrc`, `.bash_profile`, `.zshrc`, etc) -->
Yes



When updating to Ubuntu 20.04, curl was remove from my system. After this, any nvm commands would hang and output nothing. Re-installing curl resolved the issue but I spent quite a bit of time to figure out that this was the issue. It would be nice if nvm would fail and report if curl is not available.
Repository: flutter
Issue: [Android] Accessibility Talkback rectangle isn't visible in Flutter Fragment.
Labels: platform-android,engine,a: accessibility,a: existing-apps,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-android,triaged-android

When navigating with Talkback on my phone, no rectangle is rendered around the currently selected item inside the flutter fragment .

reproductions code:

Create a new Android project 
Add a Flutter module to this project
Create an Empty Activity with an empty FrameLayout inside the xml.
Create a new Flutter Fragment and insert it inside the FrameLayout in the Activity via the Fragment Manager

Now you should see the Counter App inside the activity 
Activate Accessibility TalkBack

You should see that the talkback is working but no rectangle is  rendered around the currently selected item.

Flutter doctor:
```
[√] Flutter (Channel stable, 2.5.1, on Microsoft Windows [Version 10.0.17134.2208], locale en-IL)
    • Flutter version 2.5.1 at C:\myFlutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (2 weeks ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Android\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Android\SDK
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Community Edition (version 2019.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (3 available)
    • SM G950F (mobile) • ce04171429c238300d • android-arm64  • Android 8.0.0 (API 26)
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 94.0.4606.61
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 91.0.864.67

• No issues found!

```
Repository: rust
Issue: Type mismatch error on associated type as array type in trait bound
Labels: A-associated-items,C-bug,T-types

This example is fairly contrived, but I believe it should compile

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7d37659480cbde3d0455ab62b80f029c

<!--
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.
-->

```rust
pub trait Foo {
    type Size: Copy;

    fn to_bytes(&self) -> [Self::Size; 9];
}

pub trait MyTrait<T> {}

impl<T> MyTrait<T> for T {}

pub fn bar<G: Foo, T: Foo>(a: &G, _b : &T) -> G::Size
where
    [T::Size; 9]: MyTrait<T::Size>,
{
    deeper_bar(a)
}

fn deeper_bar<G: Foo>(a: &G) -> G::Size
where
    [G::Size; 9]: MyTrait<G::Size>,
    // The compiler selects the ParamCandidate ([T::Size; 9]: MyTrait<T::Size>) to prove this bound
{
    a.to_bytes()[0]
}

fn main() {}
```

I expected to see this happen: Code compiles

Instead, this happened: 

We get the following error on both the nightly and stable version:

```
error[E0271]: type mismatch resolving `<G as Foo>::Size == <T as Foo>::Size`
  --> non_const_effective2.rs:17:5
   |
13 | pub fn bar<G: Foo, T: Foo>(a: &G, _b : &T) -> G::Size
   |            -       - found type parameter
   |            |
   |            expected type parameter
...
17 |     deeper_bar(a)
   |     ^^^^^^^^^^ expected type parameter `G`, found type parameter `T`
   |
   = note: expected associated type `<G as Foo>::Size`
              found associated type `<T as Foo>::Size`
   = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
   = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters

error: aborting due to previous error
```

I think this fails because we incorrectly choose a candidate from the caller bounds, since type inference equates the two associated types. We end up with two candidates but reject the ImplCandidate in favour of the ParamCandidate.

Using the associated type directly instead of inside an array does not cause an error:

```rs
pub trait Foo {
    type Size: Copy;

    fn to_bytes(&self) -> [Self::Size; 9];
}

pub trait MyTrait<T> {}

impl<T> MyTrait<T> for T {}

pub fn bar<G: Foo, T: Foo>(a: &G, _b : &T) -> G::Size
where
    T::Size: MyTrait<T::Size>,
{
    deeper_bar(a)
}

fn deeper_bar<G: Foo>(a: &G) -> G::Size
where
    G::Size: MyTrait<G::Size>,
{
    a.to_bytes()[0]
}

fn main() {}
```

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=3ce5b779d6811dd5182f5a70537e6b3e
Repository: flutter
Issue: Flutter Camera plugin camera lens change
Labels: platform-android,p: camera,package,P2,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
Enable multi-camera systems on android devices instead of only one standard back camera

## Use case
Improved camera applications

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
Please add a feature so you can change what camera lense you can use instead only enabling it to use default back and front lense, ie. if a phone has a multi-camera setup on the back, enable it to choose between the lenses like standard wide, ultrawide, telephoto etc. This is a problem in last couple of years because Camera2 API uses logical cameras so all the back cameras are now one logical back camera and you have to switch between them but that's not possible in current Camera plugin
<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: terminal
Issue: Allow config so that a right-click paste emits a ctrl+v (or other user defined key sequence) instead
Labels: Area-TerminalControl,Area-Settings,Product-Terminal,Issue-Task

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

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

Per https://github.com/PowerShell/PSReadLine/issues/579 PSReadLine (which handles the interactive experience for PowerShell) cannot tell that the text is typed or pasted and can only treat it as typed.  So newlines gets the input executed which can fail if the content is a multi-line script, for example:

```powershell
if ($true -eq $false)
{
  'true'
}
else
{
  'false'
}
```

In this case, PowerShell will accept the individual lines for the `if` clause, but since `else` is optional, will execute the `if` part and then treats `else` as a command which fails.  However, PSReadLine can handle pasting from the clipboard as it knows the entire content of the clipboard rather than seeing it character by character.

So instead of having `Ctrl+v` or `Ctrl+Shift+v` bound to terminal paste, let the shell handle it, but have the terminal emit a `ctrl+v` (or whatever user binding has been defined) on right-click of the mouse.
Repository: kubernetes
Issue: Kubectl reports wrong status for evicted pod when container statuses are synced after
Labels: kind/bug,sig/node,sig/cli,triage/accepted

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


#### What happened:

In Kubernetes <1.22, Evicted pods would not have any container status synced. Kubectl displayed them as "Evicted".

In 1.22+, we fixed a bug where we now sync out the last known container status from the runtime on Evicted pods. However, that status syncs after we update the pod status. As soon as the runtime status syncs, since it is more recent, it takes precedence in the display, and the pod's status updates from Evicted to whatever the container's status is (Error, ContainerStatusUnknown, etc.)

#### What you expected to happen:

So long as the pod status stays Evicted with phase Failed, I expected kubectl to print Evicted.

#### How to reproduce it (as minimally and precisely as possible):

See https://github.com/kubernetes/kubernetes/issues/105358#issue-1011532980 and https://github.com/kubernetes/kubernetes/issues/105358#issuecomment-932470027

#### Anything else we need to know?:

/sig cli node

#### Environment:
- Kubernetes version (use `kubectl version`):
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
Repository: flutter
Issue: Unable to run Flutter when installed in a read-only directory
Labels: tool,a: first hour,c: proposal,P3,team-tool,triaged-tool

## Steps to Reproduce

1. Install Flutter in a read-only directory
2. Add `flutter/bin` to PATH
3. Try `flutter doctor` and note failure

This is the same as #19664 and I'm not looking for a work-around (make the directories and files read/write). I'm looking for a fix so I can use Flutter in a classroom setting where Flutter is in a directory managed by IT and the student's programs are in their (networked) home directory.
Repository: go
Issue: testing: unclear what t.Skip does in the context of fuzzing
Labels: NeedsDecision,fuzz

The current "first class fuzzing" proposal design doc (https://go.googlesource.com/proposal/+/master/design/draft-fuzzing.md) only has one mention of "skip":

```
	// Run the fuzz test
	f.Fuzz(func(t *testing.T, a string, num *big.Int) {
		t.Parallel() // seed corpus tests can run in parallel
		if num.Sign() <= 0 {
			t.Skip() // only test positive numbers
		}
```

As I was porting one of my fuzz funcs from go-fuzz to first class fuzzing, I remembered that go-fuzz actually has two kinds of "skips":

> The function must return 1 if the fuzzer should increase priority of the given input during subsequent fuzzing (for example, the input is lexically correct and was parsed successfully); -1 if the input must not be added to corpus even if gives new coverage; and 0 otherwise; other values are reserved for future use.

So it seems like, with go-fuzz, you have three options: give priority (+1), must ignore (-1), or default behavior (0).

Personally, I only used +1 or 0 in my go-fuzz funcs; I never had any input that must never be added to the corpus. I've adapted those returns for the new fuzzer so that the `return 1` is now a regular return ending the function, and `return 0` is now a `t.Skip` to signal an uninteresting input. Here's an example: https://github.com/mvdan/sh/commit/e186e04cbf119ac6e51d2010cb37674374557046

I'd love it if the meaning of `t.Skip` in the context of fuzz funcs was better documented. Perhaps my understanding of what it does is incorrect, or perhaps it doesn't correspond to `return 0` in go-fuzz.

Another question is whether we want an equivalent to go-fuzz's `return -1`. I personally didn't have a need for it, but others might be using it and not know how to transition those to the new fuzzer.

cc @katiehockman
Repository: TypeScript
Issue: Make “declare property… ” quick fix move focus to the newly declared property
Labels: Help Wanted,Experience Enhancement

*TS Template added by @mjbvz*

**TypeScript Version**: 4.4

**Search Terms**
- code action
- quick fix
- refactoring

---

When running the `declare property...` quick fix on `boop` in the below code, TS auto-inserts `boop: any;`, but I'd really prefer for it to be `private boop: number` or something, if my cursor moved to the insert location or I was prompted for the access level and type or something that'd be nice:

```ts
class A {
  constructor() {
    console.log(this.boop);
  }
}
```
Repository: go
Issue: cmd/link: improve error for missing method body
Labels: help wanted,NeedsInvestigation,compiler/runtime

The language permits omitting the method body.  However, the error message for this could be clearer.

Test case (uses `import "C"` to force the compiler to assume that method bodies are defined elsewhere):

```Go
package main

import "C"

type S struct{}

func (S) M()

var Sink interface{}

func main() {
	Sink = S{}
}
```

Running `go build foo.go` produces

```
type.main.S: relocation target main.S.M not defined
```

This error message is accurate but conveys little information to someone unfamiliar with linker jargon like "relocation target."  We should instead say "missing function body", though unfortunately it may be difficult to give a good file/line position for the declaration with the missing body.
Repository: rust
Issue: "Automatically" implemented traits do not display implementors (or as implemented traits) in rustdoc
Labels: T-rustdoc,A-trait-system,C-bug

We have a bunch of traits that are normal traits but implemented automatically for a bunch of stuff. `std::ptr::Pointee`, `std::marker::DiscriminantKind` and soon `std::enums::AsRepr` (#89507).

`rustdoc` generated documentation fails to account for those and does not populate the trait's Implementors section: https://doc.rust-lang.org/stable/std/marker/trait.DiscriminantKind.html nor do the types that implement the trait present these traits in the implementations section (e.g. https://doc.rust-lang.org/stable/std/cmp/enum.Ordering.html#trait-implementations)
Repository: storybook
Issue: Allow the users to have more control over the selected background feature (light and dark theme)
Labels: feature request,addon: backgrounds,needs triage

**Is your feature request related to a problem? Please describe**
Following this request on [Discord](https://discord.com/channels/486522875931656193/501692020226654208/814594837789278238) from **Caalyx**, I believe there would be a great advantage from connecting the Storybook selected theme (storybook backgrounds) to the DOM, allowing users more control over the theming feature.

**Describe the solution you'd like**
While switching theme (between dark and light for example) a class relative to the selected theme would be applied to the body. This would allow the user to connect the components styling to something more powerful like a Design System. For example:

index.scss
```
@use '~@angular/material' as mat;
@use './typography' as typography;

@include mat.core();

@import './light-theme/theme';
@import './dark-theme/theme';

@include mat.core(typography.$my-custom-typography-config);
```

themes/light-theme.scss
```
@use '~@angular/material' as mat;
@use '../components/button/_button-theme' as button;

@use './palettes' as palettes;

.light-theme {
  $light-primary: mat.define-palette(palettes.$primary);
  $light-accent: mat.define-palette(palettes.$accent);
  $light-warn: mat.define-palette(palettes.$warn);

  $light-theme: mat.define-light-theme((
    color: (
      primary: $light-primary,
      accent: $light-accent,
      warn: $light-warn,
      is-dark: false,
    )
  ));

  @include mat.core-theme($light-theme);
  @include mat.all-component-themes($light-theme);
  @include button.theme($light-theme);
}
```

In short, I'm using the Angular Material API to load our own theme defined by a new set of palettes, and this applies while it's encapsulated with either a `.light-theme` or a `.dark-theme`. Currently I'm overriding the preview-body.html so by default the application takes the light-theme:

```
<body class="light-theme"></body>
```

But I would prefer to load this theme dynamically (ideally extracted from the localStorage so the user doesn't have to set it up everytime). But so far I haven't been able to load consistently my themes depending on the selected theme (storybook background)

If you need more information, feel free to comment
Repository: vscode
Issue: Add file references provider 
Labels: feature-request,api,references-viewlet,keep

I propose a new `file references` API that lets an extension tell VS Code about references to a given file. Possible use cases:

- Listing file references  #66162
- Safe delete #52844

#21018 was somewhat related but for more generic relationships between files, not just references 

JS/TS implements file references with a custom solution today. I feel it makes sense to lift this into a proper VS Code api so that we can provide a consistent experience for across languages
Repository: pytorch
Issue: [JIT][Sym Shape Analysis] Extend analysis to extract output shape logic
Labels: oncall: jit,module: bootcamp

## 🚀 Feature

Sym Shape Analysis works by partially evaluating a [shape function](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/runtime/symbolic_shape_registry.cpp#L158) until the resulting shape can be inferred from the computation. For example, a graph that returns `[1, 1, x, 10]` we know will be of dimension 4, with dims0,dims1 = 1, and dim3 = 10. Currently bail if the output list is [written to](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/symbolic_shape_analysis.cpp#L477). 

With a function like [view](https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/runtime/symbolic_shape_registry.cpp#L100), the inputs may be of dimension negative 1, so there is logic to calculate size and then update the inferred dimension (following along with how eager does it). If we view from a size dimension we know it won't be negative and we clean that up, however, in the general case we don't know which inputs are negative. 

If you run 
```
import torch

@torch.jit.script
def foo(x: int, y: int, z: int, a):
	return a.view([x, y, z])

torch._C._jit_pass_propagate_shapes_on_graph(foo.graph)
```
with `PYTORCH_JIT_LOG_LEVEL='>>symbolic_shape_analysis'`, you'll see that the inferred graph looks like the following: https://gist.github.com/eellison/a42850082de60591e927ea2a1ac8a962. 

The list has two uses, one as an output and the write to the inferred dimension if it exists. Currently we are bailing (it has writers), but we can actually infer that the output will be dimension 3 because `_set_item` does not affect the length of the list.