sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: electron
Issue: .showInactive() stealing focus on Mac with Electron 8
Labels: platform/macOS,bug :beetle:,8-x-y,11-x-y

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [X ] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [X ] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [X ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * <!-- (output of `node_modules/.bin/electron --version`) e.g. 4.0.3 --> 8.4.0
* **Operating System:**
  * <!-- (Platform and Version) e.g. macOS 10.13.6 / Windows 10 (1803) / Ubuntu 18.04 x64 --> macOS 10.14.6
* **Last Known Working Electron version:**
  * <!-- (if applicable) e.g. 3.1.0 --> 4.2.12

### Expected Behavior
<!-- A clear and concise description of what you expected to happen. --> The new incoming electron notifications shouldn't steal focus from the user. 

### Actual Behavior
<!-- A clear and concise description of what actually happened. --> When the electron app in mac is in full screen mode, a new notification coming onto the main desktop steals the focus and makes a desktop switch. This wasn't happening for earlier used Electron version 4.2.12.

### To Reproduce
<!--
Your best chance of getting this bug looked at quickly is to provide an example.
-->
- Open an electron app on mac in full screen mode.
- Display an electron notification using _.showInactive()_. This notification should come on the main desktop. 
- The new notification steals the focus and makes a desktop switch, switching the screen from the app to the main desktop. 

<!--
For bugs that can be encapsulated in a small experiment, you can use Electron Fiddle (https://github.com/electron/fiddle) to publish your example to a GitHub Gist and link it your bug report.
-->

<!--
If Fiddle is insufficient to produce an example, please provide an example REPOSITORY that can be cloned and run. You can fork electron-quick-start (https://github.com/electron/electron-quick-start) and include a link to the branch with your changes.
-->

<!--
If you provide a URL, please list the commands required to clone/setup/run your repo e.g.
```sh
$ git clone $YOUR_URL -b $BRANCH
$ npm install
$ npm start || electron .
```
-->

### Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->

### Additional Information
<!-- Add any other context about the problem here. -->
Repository: go
Issue: cmd/go: enable listing direct dependency updates
Labels: Proposal,Proposal-Accepted,GoCommand,modules

## Intro

The recommended approach to listing available module updates is to run the following command.

```
go list -u -m all
```

This displays every dependency along with newer available versions.

```
go list -u -m all
github.com/icholy/utm
github.com/google/go-cmp v0.5.0 [v0.5.1]
github.com/pkg/errors v0.8.1 [v0.9.1]
github.com/spf13/pflag v1.0.3 [v1.0.5]
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 [v0.0.0-20200709230013-948cd5f35899]
golang.org/x/net v0.0.0-20190311183353-d8887717615a [v0.0.0-20200707034311-ab3426394381]
golang.org/x/sync v0.0.0-20190423024810-112230192c58 [v0.0.0-20200625203802-6e8e738ad208]
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a [v0.0.0-20200722175500-76b94024e4b6]
golang.org/x/text v0.3.0 [v0.3.3]
golang.org/x/tools v0.0.0-20190624222133-a101b041ded4 [v0.0.0-20200723000907-a7c6fd066f6d]
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
gotest.tools/v3 v3.0.2
```

My `go.mod` only specifies two dependencies.

```
  
module github.com/icholy/utm

go 1.14

require (
	github.com/google/go-cmp v0.5.0
	gotest.tools/v3 v3.0.2
)
```

## Problem

The `go list` output gets completely unmanageable when the dependency tree grows. When listing available module updates, I'm only interested in my direct dependencies. Those are the only ones I usually have control over. 

The `go list` command has a `-json` flag which makes it possible to feed into external tools such as https://github.com/psampaz/go-mod-outdated. However, I find it strange that I need external tooling to ask "which modules in go.mod are outdated"

## Proposal

I propose a mechanism for limiting the `go list` output to direct dependencies.

```
go list -u -m direct
```

Relates to #40323
Repository: flutter
Issue: Flutter driver doesn't have a way to find the current state of toggle button
Labels: c: new feature,framework,f: material design,t: flutter driver,P3,team-design,triaged-design

Actually while working on the integration tests in flutter I am trying to perform assertion on the toggle button where I need to find the actual state of Toggle button (Switch OFF/ON).

FlutterDriver has following method to get the text of different controls e.g. Text().

FlutterDriver.getText(Finder);

I am not able to find any similar kind of method for fetching the flag value of Toggle button (ON/OFF).

There is a tricky way to achieve this which is to iterate through the "getWidgetDiagnostics" view hierarchy of the toggle button but I am looking for an official solution for this.

Can you please add a feature in flutter driver in the reference.
Repository: TypeScript
Issue: Variadic tuple constraint incoherent ?
Labels: Suggestion,Awaiting More Feedback

**TypeScript Version:**  4.0.0-dev.20200722

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
Variadic tuple
Variadic tuple constraint

**Code**

```ts
type A<GArgs extends [number, string, ...any[]]> = true;
type B<GArgs extends [string, ...any[]]> = A<[number, ...GArgs]>; // ERROR
type C = A<[number, ...[string, ...any[]]]>; // OK
```

**Actual / Expected  behavior:**

On the type `B` we get an error:
 ```
TS2344: Type '[number, ...GArgs]' does not satisfy the constraint '[number, string, ...any[]]'.   Element at index 1 is variadic in one type but not in the other
```

Sounds incorrect because on `B`, `GArgs` is properly shaped to be <decomposed> just like in `C`

[Playground Link](https://www.staging-typescript.org/play?ts=4.0.0-beta#code/C4TwDgpgBAggPAcRgJwOYGcoQB7AgOwBNMBtfAVwFsAjCZAGinWGQEt9VGA6HgQ3xAkAukIB8UALxQW5CAG4AUKEhQAQohQYsuAsSglmbDtz4DhYybDhkqtBlB5ckadGLlQA9B6gBRAEp+APJ+SuDQAMKW8DY0dCZcBizsnA6mgiJunt6BANIKUFBAA)

**Related Issues:**

The variadic issues are a big jungle, and I was not able to find any related issue (but probably some exists?)
Repository: rust
Issue: diagnostics: rustc displays confusing Ok(#[stable(feature = "rust1", since = "1.0.0")] T) if wrong match binding is used
Labels: C-enhancement,A-diagnostics,T-compiler

If I have a function that returns `Result<(), i32>`  and  try to match on it with `Ok()` instead of `Ok(())` or `Ok(_)`, I get an error:
````
error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 1 field
   --> src/main.rs:7:9
    |
7   |         Ok() => {}
    |         ^^^^ expected 1 field, found 0
    |
   ::: /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/result.rs:250:5
    |
250 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     --------------------------------------------------- tuple variant defined here
    |
help: missing parenthesis
    |
7   |         Ok(()) => {}
    |           ^  ^

error: aborting due to previous error
````

The `Ok(#[stable(feature = "rust1", since = "1.0.0")] T),` comes from `std` but I think it can look very confusing to beginners, a simple `Ok(T)` would be much clearer here imo.

code:

```rust
fn a() -> Result<(), i32> {
    Ok(())
}

fn main() {
    match a() {
        Ok() => {} // should be: Ok(()) or Ok(_)
        Err(_) => {}
    }
}

```

````
binary: rustc
commit-hash: 346aec9b02f3c74f3fce97fd6bda24709d220e49
commit-date: 2020-07-11
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
````
Repository: create-react-app
Issue: Allow hiding error overlay for certain errors
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

There are cases when throwing error from component is intended and caught by Error boundaries. Even in that case, CRA still displays error in development mode.

### Describe the solution you'd like

Allow users to throw custom errors which will not be displayed. For example, if the error is object and has property `__dangerouslyHideError` equal to `true`, then omit it from displaying.
Repository: angular
Issue: The `setErrors` method does not set errors
Labels: area: forms,state: confirmed,forms: validators,P4,area: docs

When you set the errors of a `FormControl` (using the `setErrors` method) inside a `FormGroup`, where the `FormControl` contains validators then the errors are not set. 

```typescript
formGroup: FormGroup;

constructor(private formBuilder: FormBuilder) {
  this.formGroup = this.formBuilder.group({
    login: ["", [Validators.required]]
  });
}

ngOnInit() {
  const formLoginControl = this.formGroup.controls.login;
  formLoginControl.setErrors({ incorrect: true });
}
```

Here is a [stackblitz ](https://stackblitz.com/edit/angular-forms-set-errors-gh-issue-38191-cb9m14?file=app/app.component.ts)of the issue.

This is happening because the validation has not run yet. Since `setErrors` is called before the validation has run, the errors get overwritten by the validator. Note that this issue occurs, when your `FormControl` is part of a `FormGroup` - it does not happen on stand-alone controls that are not part of a `FormGroup`.

To overcome this, `setErrors` needs to be called in a `setTimeout`. 

Action items:

- Update the docs to make this issue clear
- Fix the underlying issue
Repository: pytorch
Issue: Automating the various Installation processes for Linux
Labels: module: build,feature,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
A python script to automate the installation process for all the different requirements according to the user's need.

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
These days no one wants to do the hardwork, everyone wants things automated and to work at one click. By automating this process of installation users could simply enter their requirement as to how they want PyTorch on their system and the script would do the rest for them.

## Pitch

<!-- A clear and concise description of what you want to happen. -->
There are various options for the user as to the way in which he/she wants to install and use PyTorch. For example, if the user wants to install the Docker image, the script will ask if he wants the pre-built images or built a image by himself, and do the further installation accordingly. 

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->


cc @malfet
Repository: rust
Issue: Missing unsizing coercions for raw slice pointers
Labels: C-bug,A-coercions

With https://github.com/rust-lang/rust/pull/73986 having landed, one would expect something like this to work:
```rust
#![feature(raw_ref_op)]
#![feature(slice_ptr_get)]

struct S {
    keys: [i32; 2],
}

unsafe fn get_last(s: *const S) -> i32 {
    let keys = &raw const (*s).keys;
    *keys.get_unchecked(1)
}

fn main() {
    let s = S { keys: [24, 42] };
    let p = &raw const s;
    assert_eq!(unsafe { get_last(p) }, 42);
}
```
However, this fails saying
```
error[E0599]: no method named `get_unchecked` found for raw pointer `*const [i32; 2]` in the current scope
  --> src/main.rs:11:11
   |
11 |     *keys.get_unchecked(1)
   |           ^^^^^^^^^^^^^ method not found in `*const [i32; 2]`
   |
   = note: try using `<*const T>::as_ref()` to get a reference to the type behind the pointer: https://doc.rust-lang.org/std/primitive.pointer.html#method.as_ref
   = note: using `<*const T>::as_ref()` on a pointer which is unaligned or points to invalid or uninitialized memory is undefined behavior
```
One has to add a `*const [_]` type annotation to force an unsizing coercion for this to work.
Repository: pytorch
Issue: ASAN build broken when using USE_ASAN=1
Labels: module: build,triaged,module: POWER

## 🐛 Bug

I'm trying to debug the failures on Power by building with ASAN. Checking the documentation and combining the CONTRIBUTION.MD with .jenkins/pytorch/build-asan.sh I arrived at:
`LD_PRELOAD=${LIBASAN_RT} CC="clang" CXX="clang++" LDSHARED="clang --shared" LDFLAGS="-stdlib=libstdc++"   CFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -shared-libasan -pthread"   CXX_FLAGS="-pthread"   USE_ASAN=1 USE_CUDA=0 USE_MKLDNN=0 USE_OPENMP=0 BUILD_CAFFE2_OPS=0 USE_DISTRIBUTED=0 DEBUG=1  python setup.py install`

However this fails during configure with:
```
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- compiled but failed to run
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- compiled but failed to run
CMake Error at third_party/benchmark/CMakeLists.txt:231 (message):
  Failed to determine the source files for the regular expression backend
```

Getting some output why it failed to run I see `==109219==Your application is linked against incompatible ASan runtimes.`

I traced this back to `USE_ASAN=1` which adds flags in CMake: `"-fsanitize=address -fPIE -pie"`: https://github.com/pytorch/pytorch/blob/0ec7ba40888f07678d3a1d766817154dc90bef90/cmake/MiscCheck.cmake#L318

From the CMakeOut.log I see many lines like this:
> clang-9: warning: argument unused during compilation: '-pie' 

So it seems that clang doesn't understand `-pie` and it hence shouldn't be added unless checked before (just like other flags too)

## To Reproduce

Steps to reproduce the behavior:

1. Set LIBASAN_RT as described in CONTRIBUTING.md
1. Run above command

## Expected behavior

Build succeeds

## Environment

 - PyTorch Version (e.g., 1.0): 1.6.0-rc3
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Python version: 3.7.4


cc @malfet
Repository: pytorch
Issue: ASAN build breaks when using third_party/protobuf
Labels: module: build,module: protobuf,triaged,module: POWER

## 🐛 Bug

When using the third_party protobuf (default?) the build breaks with `terminate called after throwing an instance of 'std::system_error'` when running the compiled protoc

## To Reproduce

Steps to reproduce the behavior:

1. setup `LIBASAN_RT`
1. `LD_PRELOAD=${LIBASAN_RT} CC="clang" CXX="clang++" LDSHARED="clang --shared" LDFLAGS="-stdlib=libstdc++"   CFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -shared-libasan -pthread"   CXX_FLAGS="-pthread -shared-libasan"  USE_CUDA=0 USE_MKLDNN=0 USE_OPENMP=0 BUILD_CAFFE2_OPS=0 USE_DISTRIBUTED=0 DEBUG=1  python setup.py install`

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

Last lines:
```
FAILED: caffe2/proto/metanet.pb.cc caffe2/proto/metanet.pb.h caffe2/proto/metanet_pb2.py 
cd /tmp/pytorch && /software/ml/CMake/3.15.3-GCCcore-8.3.0/bin/cmake -E make_directory /tmp/pytorch/build/caffe2/proto && /tmp/pytorch/build/bin/protoc -I/tmp/pytorch --cpp_out=dllexport_decl=CAFFE2_API:/tmp/pytorch/build /tmp/pytorch/caffe2/proto/metanet.proto && /tmp/pytorch/build/bin/protoc -I/tmp/pytorch --python_out /tmp/pytorch/build /tmp/pytorch/caffe2/proto/metanet.proto && /software/ml/CMake/3.15.3-GCCcore-8.3.0/bin/cmake -DFILENAME=/tmp/pytorch/build/caffe2/proto/metanet.pb.h "-DNAMESPACES=caffe;caffe2;onnx;torch" -P /tmp/pytorch/cmake/ProtoBufPatch.cmake
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
/bin/sh: Zeile 1: 112598 Abgebrochen             /tmp/pytorch/build/bin/protoc -I/tmp/pytorch --cpp_out=dllexport_decl=CAFFE2_API:/tmp/pytorch/build /tmp/pytorch/caffe2/proto/metanet.proto
```

## Environment

 - PyTorch Version (e.g., 1.0): 1.6.0-rc3
 - OS (e.g., Linux): Linux
 - Python version: 3.7.4

Running the compiled protoc without arguments works. Also using a system protobuf via `BUILD_CUSTOM_PROTOBUF=0` seems to make it past this point

cc @malfet
Repository: angular
Issue: Radio-buttons out of sync with model (reactive-forms)
Labels: type: bug/fix,area: forms,state: confirmed,forms: directives,forms: ControlValueAccessor,P3

🐞 bug report

### Is this a regression?
Not that I know

### Description
I'm creating a survey app which contains multiple questions, but when 2 subsequent questions contain the same answer labels in different positions, the view gets out of sync when selecting one of them and navigating between the 2 questions. 

The radio buttons are contained in a child component which gets the data from the parent component.
The questions are loaded 1 by 1 through a service (faked server call).
The given answers are stored in a array in the Typescript code.

Posted it earlier on SO: https://stackoverflow.com/questions/62910998/angular-radio-buttons-out-of-sync-with-model

## 🔬 Minimal Reproduction
I have a reproduction with and without Angular Material because they both have different behaviour.
Without Material: https://stackblitz.com/edit/angular-9-material-starter-jnbscw
With Material: https://stackblitz.com/edit/angular-9-material-starter-omkvvq

## 🔥 Exception or Error
The view gets out of sync with the model
Without Material: No radio-button is selected.
With Material: The wrong radio-button is selected or multiple (2) radio buttons are selected.

## 🌍  Your Environment

**Angular Version:**
<pre><code>Angular CLI: 9.1.7
Node: 12.18.2
OS: win32 x64

Angular: 9.1.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Ivy Workspace: Yes

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.901.7
@angular-devkit/build-angular              0.901.7
@angular-devkit/build-optimizer            0.901.7
@angular-devkit/build-webpack              0.901.7
@angular-devkit/core                       9.1.7
@angular-devkit/schematics                 9.1.7
@angular/cdk                               9.2.4
@angular/cli                               9.1.7
@angular/flex-layout                       9.0.0-beta.31
@angular/material                          9.2.4
@angular/material-moment-adapter           9.2.4
@ngtools/webpack                           9.1.7
@nguniversal/module-map-ngfactory-loader   8.2.6
@schematics/angular                        9.1.7
@schematics/update                         0.901.7
rxjs                                       6.5.5
typescript                                 3.8.3
webpack                                    4.42.0</code></pre>
Repository: flutter
Issue: Video_Player issues - out of memory exception when choosing large file from phone to play
Labels: c: crash,platform-android,customer: crowd,p: video_player,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.3,team-android,triaged-android

Hello,

I have an app that chooses a video from the phone with the file picker plugin, and tries to play it in video player after choosing it.
The issue that I am having on android, is that when videos are larger than 256 MB, the player throws an exception of out of memory and my app simply crashes.

`Flutter version 1.17.5`

This is the log that I get when  the app is out of memory.

`I/(27384): Clamp target GC heap from 279MB to 256MB
E/ExoPlayerImplInternal(27384): Source error
E/ExoPlayerImplInternal(27384):   com.google.android.exoplayer2.upstream.Loader$UnexpectedLoaderException: Unexpected OutOfMemoryError: Failed to allocate a 65552 byte allocation with 15904 free bytes and 15KB until OOM, target footprint 268435456, growth limit 268435456
E/ExoPlayerImplInternal(27384):       at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:450)
E/ExoPlayerImplInternal(27384):       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/ExoPlayerImplInternal(27384):       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/ExoPlayerImplInternal(27384):       at java.lang.Thread.run(Thread.java:919)
E/ExoPlayerImplInternal(27384):   Caused by: java.lang.OutOfMemoryError: Failed to allocate a 65552 byte allocation with 15904 free bytes and 15KB until OOM, target footprint 268435456, growth limit 268435456
E/ExoPlayerImplInternal(27384):       at com.google.android.exoplayer2.upstream.DefaultAllocator.allocate(DefaultAllocator.java:102)
E/ExoPlayerImplInternal(27384):       at com.google.android.exoplayer2.source.SampleDataQueue.preAppend(SampleDataQueue.java:392)
E/ExoPlayerImplInternal(27384):       at com.google.android.exoplayer2.source.SampleDataQueue.sampleData(SampleDataQueue.java:181)
E/ExoPlayerImplInternal(27384):       at com.google.android.exoplayer2.source.SampleQueue.sampleData(SampleQueue.java:474)
`

Did someone else encounter this issue?
Thank you
Repository: terminal
Issue: Don't localize command names on the command palette
Labels: Issue-Feature,Area-UserInterface,Product-Terminal,Priority-1,Area-Localization,Area-CmdPal


# Environment

```none
Windows build number: 10.0.20175.0 (Japanese)
Windows Terminal version: 1.2.2022.0
```
# Steps to reproduce/Actual behavior


Opening command palette and type some command in English.
For example, if I want to invoke certain `scroll` commands, I want to search the commands with typing `scro...` but because Windows terminal localizes these command strings, I cannot find the commands.

![cpal](https://user-images.githubusercontent.com/1311400/88288452-bf4e7080-cd2e-11ea-8f88-e100e5ba28f7.gif)

# Expected behavior

Please consider some way to allow us (especially CJK users) to search the commands in plain English. Typing CJK words are not so easy and if the commands are localized, it makes the command palette almost unusable.

VSCode have had similar issues before and they fixed the issue already:

- https://github.com/microsoft/vscode/issues/4679
- https://github.com/microsoft/vscode/issues/4691