sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: google_sign_in tests should use a mock implementation of the interface
Labels: p: google_sign_in,package,team-ecosystem,P3,triaged-ecosystem

tests in google_sign_in uses the real method channel, which could cause failure after publishing changes in google_sign_in_platform_interface. These failures are not easy to catch as they don't fail when landing the change, but they fail until the change is published to pub.

See https://github.com/flutter/plugins/blob/master/packages/url_launcher/url_launcher/test/mock_url_launcher_platform.dart for an example of mock platform interface

We had a temp fix in https://github.com/flutter/plugins/pull/3690 for one of such failures.
Repository: react-native
Issue: Unhandled promises result in white screen of death (silent exceptions)
Labels: Issue: Author Provided Repro

## Description
Exceptions that occur within an unhandled promise do not trigger React exception handling. This makes it impossible to track exceptions or use standard exception handling methods. We call this the white screen of death.

## React Native version:
```
System:
    OS: macOS 11.2.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 646.73 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v14.5.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_282 - /usr/bin/javac
    Python: 3.8.6+ - /Users/alitamoore/.pyenv/shims/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^16.13.1 => 16.13.1 
    react-native: ^0.63.4 => 0.63.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
```

## Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

1. Build out an app with two buttons
2. One button has the promised force crash, the other is not
3. Press the promised force crash and you'll see a white screen
4. Press the not promised force crash and you'll see the RED screen

## Expected Results
Both buttons should show a RED screen or white screen should trigger exception handling

## Snack, code example, screenshot, or link to a repository:
```typescript
import { TouchableOpacity } from "react-native-gesture-handler";
import { Text, View } from "react-native-animatable";

export const forceCrash = () => {
    console.log("force crash");
    crash();
};

const forceCrashPromise = async () => forceCrash();
const forceCrashNotPromise = () => forceCrash();

const Button = () => (
    <View>
        <TouchableOpacity onPress={forceCrashPromise}>
            <Text>Force Crash Promise</Text>
        </TouchableOpacity>
        <TouchableOpacity onPress={forceCrashNotPromise}>
            <Text>Force Crash Not Promise</Text>
        </TouchableOpacity>
    </View>
);
```
Repository: youtube-dl
Issue: Support npostart.nl at youtube-dl
Labels: DRM,question

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

WRITE QUESTION HERE
**Do you support npostart.nl?**

When I use this link:
 **https://www.npostart.nl/jouw-schuld-dat-ik-dik-ben/21-10-2020/VPWON_1320428**

**I get this error on youtube-dl:**

[npo] VPWON_1320428: Downloading token
[npo] VPWON_1320428: Downloading player JSON
[npo] VPWON_1320428: Downloading hls profile JSON
[npo] VPWON_1320428: Downloading dash-widevine profile JSON
[npo] VPWON_1320428: Downloading dash-playready profile JSON
[npo] VPWON_1320428: Downloading smooth profile JSON
[npo] VPWON_1320428: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 410: Gone (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Repository: flutter
Issue: Avoid requiring Visual Studio for Windows development
Labels: c: new feature,platform-windows,a: desktop,P3,team-windows,triaged-windows

Hi,

Sorry if the point below was already brought to attention but searching Visual Studio here matches too many Github's issues.

## Use case

You surely know this as well, but Visual Studio isn't free. It is when using Community for learning, open-source and one man company. On the others cases, a license is needed which, of course, cost money. Since Windows is the major desktop platform and will probably remains as such for at least a decade it would be great if Flutter could be used to build Windows application in a commercial environment without needing a Visual Studio license.  Otherwise, it will probably limits the growth of Flutter for commercial projects on the desktop which is rather unfortunate.

## Proposal

Regarding solutions, I don't have any to propose since I don't know Flutter internals. But a few imaginable ones (I don't know if they are barely possible):

* Provide a ready to use binary.
* Use a free toolchain like MinGW
Repository: electron
Issue: click and other mouse events on a BrowserView are ignored if the BrowserView is on top of a draggable region
Labels: platform/windows,bug :beetle:,component/BrowserView,status/confirmed,has-repro-repo,component/draggable-regions,30-x-y

### 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:**
  * 11.3.0
* **Operating System:**
  * Windows 10 20H2
* **Last Known Working Electron version:**
  * Not sure, have tried Electron 10.3.1 with the same result

### Expected Behavior
Buttons on a BrowserView rendered on top of a draggable region with the `-webkit-app-region: no-drag` style applied should be clickable and hoverable.

### Actual Behavior
Buttons on a BrowserView rendered on top of a draggable region are not clickable or hoverable.

### To Reproduce
See branch here: https://github.com/devinbinnie/electron-quick-start/tree/browserview_click_issue

### Screenshots
![Hello World! 2021-03-08 17-33-22](https://user-images.githubusercontent.com/52460000/110390844-974d1c80-8034-11eb-9d33-3b3d1c7554b4.gif)

### Additional Information
Works correctly on macOS.
Repository: TypeScript
Issue: Preserve ordered yield types when no logic is involved
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

yield ordered return types

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Make types more definite for each yielded return value in a generator function

See also https://stackoverflow.com/questions/66538431/function-chain-factory-in-typescript-preserving-input-output-types

## 📃 Motivating Example

Right now, if I do this:

```js
function* work() {
  yield 1;
  yield 'test';
  return [123];
}
```

Right now this gives:

```js
const g = work();
g.next().value  // string | number | number[]
g.next().value  // string | number | number[]
g.next().value  // string | number | number[]
```

But since there's no logic/branching/etc, it would be more helpful to me to have:


```js
const g = work();
g.next().value  // number
g.next().value  // string
g.next().value  // number[]
```

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

## 💻 Use Cases

Sometimes I want to use a function generator to represent a series of steps that I want to examine (whether at runtime or during testing, etc) before deciding whether to continue. In other words, I want to break up a function into a series of "pauseable" steps.

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: rust
Issue: Add nuance to suggestion of !Copy expressions in for loops
Labels: A-diagnostics,P-low,T-compiler,A-iterators,A-suggestion-diagnostics

Given

```rust
struct S(i32);
fn foo(x: Vec<S>) {
    for y in x {
        
    }
    let z = x;
}
```

we currently suggest borrowing `x`:

```
error[E0382]: use of moved value: `x`
   --> src/lib.rs:6:13
    |
2   | fn foo(x: Vec<S>) {
    |        - move occurs because `x` has type `Vec<S>`, which does not implement the `Copy` trait
3   |     for y in x {
    |              -
    |              |
    |              `x` moved due to this implicit call to `.into_iter()`
    |              help: consider borrowing to avoid moving into the for loop: `&x`
...
6   |     let z = x;
    |             ^ value used here after move
    |
note: this function takes ownership of the receiver `self`, which moves `x`
```

The `note` doesn't have a span, so we should remove it when it is `DUMMY_SP`.

When we make the `y` pattern `mut`, we get [the same output](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=3cb7229b06f85ed3e6c5b89182e42e0b).

We should likely suggest `.iter_mut()` when the pattern is mutable, and the expression isn't `Copy`.
Repository: rust
Issue: Scope ID should be on Ipv6Addr, not SocketAddrV6
Labels: T-libs-api,C-bug,T-libs

Currently `std::net::Ipv6Addr`, which is meant to represent individual IPv6 addresses, does not contain a field for Scope ID. Meanwhile, `std::net::SocketAddrV6`, which is meant to include all the information necessary for establishing a connection, does include a Scope ID.

This is incorrect layering. IPv6 Addresses which have a Scope ID are meaningless without it. The scope is not an additional qualifier for connection establishment, it is part of the address itself.
Repository: pytorch
Issue: How to delete Module from GPU? (libtorch C++)
Labels: module: cpp-extensions,module: cpp,triaged

All the demo only show how to load model files. But how to unload the model file from the GPU and free up the GPU memory space?
I tried this, but it doesn't work.

```cpp
model.~Module(); 
c10::cuda::CUDACachingAllocator::emptyCache();
```

cc @yf225 @glaringlee
Repository: TypeScript
Issue: Investigate compressing TS Server socket communication 
Labels: Suggestion,Committed

## Problem
On desktop, TS Server uses a  [json based protocol](https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#message-format). This protocol up being quite verbose for larger documents, especially for requests such as `navTree` which return results from the entire file

Just opening ` checker.ts` for example results in individual requests and responses that are a few MB in size.

## Proposal
We've seen up to a 10x reduction of on the wire data by enabling [websocket per-message compression](https://tools.ietf.org/html/rfc7692) for VS Code's internal communications. We aren't using web sockets here, but I believe we should be able to fairly easily compress individual messages on the server side and decompress them on the editor side. Most importantly, we could enable this without any changes to the json protocol itself. 

For backwards compatibility, this would have to be an opt-in feature
Repository: terminal
Issue: Support random color scheme, pseudocode [ scheme = rand(settings.schemes) ]
Labels: Help Wanted,Area-Settings,Product-Terminal,Issue-Task,good first issue

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

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

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

There is a site [https://windowsterminalthemes.dev/](https://windowsterminalthemes.dev/), it shares many awesome color themes. I choose some of them, pasted in settings.schemes, then I may change the colorScheme daily depends on my feeling.

The `Oh-My-Zsh` has a similar feature, the random theme, a theme will be chosen randomly every time a new shell is opened.

Wish Windows Terminal could have something like that.

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->

Introduce a keyword like `random`, if the colorScheme field is set to random, then every time a new tag or window is opened, randomly choose a color schema from settings.schemes .
Repository: electron
Issue: `zoomin`, `zoomout`, `resetzoom` roles target last created <webview>, not focused <webview>
Labels: component/webview,has-repro-gist,12-x-y

### 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:**
  * 3.0.0 through 16.0.0-beta.2
* **Operating System:**
  * NixOS 21.11 x86_64
* **Last Known Working Electron version:**
  * none

### Expected Behavior
A menu item with the `zoomin`, `zoomout`, or `resetzoom` role should affect the currently focused web contents.

### Actual Behavior
A menu item with the `zoomin`, `zoomout`, or `resetzoom` role affects the most recently created `<webview>`, whether or not it is focused. This is due to a problem with `WebContents#isFocused` (see below).

### To Reproduce
Run this Electron Fiddle: https://gist.github.com/andersk/86ab57716125046320b566f928bc3563. Focus one of the three text boxes, and use the Ctrl+Shift+Plus, Ctrl+Minus, Ctrl+0 accelerators for zoom in, zoom out, reset zoom. These should affect the focused `<webview>` (or the outer web contents if neither are focused), but instead they all affect the second `<webview>` regardless of focus.

### Screenshots
https://user-images.githubusercontent.com/26471/110422296-f3736900-8053-11eb-8bdd-944e89617c76.mp4

### Additional Information
This is the same as #20667, which was auto-closed since the original Electron version in that report has become unsupported. To quote my [analysis](https://github.com/electron/electron/issues/20667#issuecomment-772144054) there:

https://github.com/electron/electron/blob/3ae63c9a06a4b5c9074572ee8b7137520fe4ba4e/lib/browser/api/web-contents.ts#L731-L741

`getFocusedWebContents` uses `WebContents#isFocused` to check whether each webview is focused, but empirically, `WebContents#isFocused` returns `true` as long as the *window* is focused regardless of how many webviews are in the window. So `getFocusedWebContents` will always return the first webview it finds, not the focused webview.
Repository: TypeScript
Issue: export import in declare module
Labels: Suggestion,Awaiting More Feedback

# Suggestion

## 🔍 Search Terms
declare module enum export import

## ✅ Viability Checklist

My suggestion meets these guidelines:

* [v] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [v] This wouldn't change the runtime behavior of existing JavaScript code
* [v] This could be implemented without emitting different JS based on the types of the expressions
* [v] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [v] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion
Allow `export import` for types and values in `declare module`

## 📃 Motivating Example
```ts
declare module './back_module' {
    /** @deprecated for backward compatible */
    export import EnumType = import('./front_module').EnumType; // Suggestion feature
}
(back_module as any).RawTypeId = front_module.RawTypeId;

// ...

import { EnumType } from './back_module';
type foobar = EnumType.Value; // it's impossible with just `type =` and `let =`
type foobar2 = OnlyForEnumType<EnumType>; // it's impossible if enum is new
```

## 💻 Use Cases

I moved `EnumType` to a different module but I wish to keep it backward compatible.
and `back_module` cannot import `front_module` for my situation.
So I want to declare it on the other module which combines them.
Repository: electron
Issue: Electron writes \r\n to stdout when started as a subprocess on Windows
Labels: platform/windows,12-x-y,has-repro-comment

<!--  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:** 12.0.0
* **Operating System:** Windows 10

### Expected Behavior
Do not write any extra white space to stdout.

### Actual Behavior
Electron writes extra white space to stdout when started on Windows. 

This is follow up of #12578 (closed automatically)

### To Reproduce
Just simple `index.js`:
```js
require("console").log("Hello");
const { app } = require('electron');
if (app) app.quit();
```

1. Run `node index.js`.
2. Run `npx electron index.js`.

The electron prints extra blank characters at start.
Repository: flutter
Issue: [question] google_sign_in Popup "Choose Account" does not list Youtube brand accounts?
Labels: p: google_sign_in,package,team-ecosystem,P3,triaged-ecosystem

I am currently working with https://pub.dev/packages/google_sign_in.

It works so far, but in the Google Sign In Popup, I don't see my Youtube brand account there at "Choose Account" and as a result, Youtube Data API does not recognize API Calls correctly with the parameter "mine=true", because if I select my Google Account, it has no connection to the Youtube account.

In the docs of Youtube Data API, if I do "Try now" there, the Google SignIn lists my Youtube brand accounts after I select my Google Account.

**Used Packages:**
```
Flutter 2.0.1
Dart 2.12.0
google_sign_in: 5.0.0
```

**Example Code** (permissions with firebase and API Explorer are set and works):
```
final GoogleSignIn _googleSignIn = GoogleSignIn(
      signInOption: SignInOption.standard, // not necessary
      scopes: <String>['https://www.googleapis.com/auth/youtube']);
...
this._googleSignIn.onCurrentUserChanged.listen((GoogleSignInAccount account) {}
...
this._googleSignIn.signIn();
...
```
As a result, the Youtube Data API call, which returns an empty result for my Google Account (but the call is valid):

```
http.get(
    Uri.parse(
    'https://www.googleapis.com/youtube/v3/channels?part=id,snippet,contentDetails&mine=true'),
    headers: await currentGoogleUser.authHeaders);
```

Any help, so I get the screen to select Youtube brand account in the GoogleSignIn process?