sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Embedding flutter to android app fails with exact same followings for tutorial.
Labels: platform-android,d: api docs,a: existing-apps,P2,team-android,triaged-android

I'm trying to embed existing flutter application to Android application so I'm trying to find a way to handle this.

https://docs.flutter.dev/development/add-to-app/android/project-setup

I saw this guideline, but it fails to follow example same procedure with completely new sample application.

First of all, it cannot find maven repository of modules. So, I tried with manual adding with absolute path of aar such as 
```gradle
debugImplementation fileTree(dir: '/Users/wangmir/Developments/source/sample_flutter_module/sample_module/build/host/outputs/repo/com/example/sample_module/flutter_debug', include: ['*.aar', '*.jar'], exclude: [])
```

but it fails to because importing of flutter activity fails, (screenshot is in below)

```kotlin
import io.flutter.embedding.android.FlutterActivity 
```

And, I saw the similar issue
https://github.com/flutter/flutter/issues/19830#issuecomment-965176105

but it seems slightly different.

## Steps to Reproduce
1. Make flutter module with 
```
flutter create -t module --org com.example sample_module
```
2. Create a new Android project for embedding flutter activity

3. Add repository for flutter and modules
```gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext {
        compose_version = '1.0.1'
    }

    String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"
    repositories {
        maven {
            url "${projectDir}/../sample_module/build/host/outputs/repo"
        }
        maven {
            url "$storageUrl/download.flutter.io"
        }
        google()
        mavenCentral()

    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.3"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
```

4. Add dependency to app build.gradle

```gradle
    dependencies {
      debugImplementation 'com.example.sample_module:flutter_debug:1.0'
      profileImplementation 'com.example.sample_module:flutter_profile:1.0'
      releaseImplementation 'com.example.sample_module:flutter_release:1.0'
    }

```

## Logs

![image](https://user-images.githubusercontent.com/6769075/146663828-13fa7f33-48ae-423d-8e09-28120ac090a1.png)

![image](https://user-images.githubusercontent.com/6769075/146663847-1c614edc-6a5c-4616-9e11-3fed99925ca6.png)
Repository: rust
Issue: GAT `Self: 'a` bounds break some `async` blocks with `impl Trait`
Labels: GATs-triaged,A-GATs

<!--
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.
-->
As required by #87479, `Self: 'a` must be explicitly added for GATs with `self` lifetimes. But it seems such a bound breaks `async` blocks with `impl Trait` sometimes.

Given a trait with a GAT:
```rust
trait Client {
    type Connecting<'a>: Future + Send
    where
        Self: 'a;

    fn connect(&'_ self) -> Self::Connecting<'_>;
}
```

Awaiting on `Client::connect()` in an `async` block results in a confusing lifeime error on `impl ...`:

```rust
fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send  // removing +Send will compile
where
    C: Client + Send + Sync,
{
    // c.connect().inspect(|_| println!("this compiles"))
    async move {
        println!("this does not compile");
        c.connect().await
    }
}
```
```
error[E0311]: the parameter type `C` may not live long enough
  --> src/lib.rs:19:33
   |
19 | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send  // removing +Send will compile
   |                 -               ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
   |                 |
   |                 help: consider adding an explicit lifetime bound...: `C: 'a`
```

It also breaks a generic `impl` on the trait with `type_alias_impl_trait`:

```rust
struct ClientWrapper<T>(T);

impl<T> Client for ClientWrapper<T>
where
    T: Client + Send + Sync,
{
    type Connecting<'a>
    where
        T: 'a,
    = impl Future + Send; // removing +Send here & in the trait will compile

    fn connect(&'_ self) -> Self::Connecting<'_> {
        // self.0.connect()  // <- this compiles
        // self.0.connect().inspect(|_| println!("this compiles"))
        async move {
            println!("this does not compile");
            self.0.connect().await
        }
    }
}
```
```
error[E0311]: the parameter type `T` may not live long enough
  --> src/lib.rs:42:29
   |
33 | impl<T> Client for ClientWrapper<T>
   |      - help: consider adding an explicit lifetime bound...: `T: 'a`
...
42 |     fn connect(&'_ self) -> Self::Connecting<'_> {
   |                             ^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
```

Full code on the playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=15714304b9b5efab401efad8c2e84887

### 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.59.0-nightly (7abab1efb 2021-12-17)
binary: rustc
commit-hash: 7abab1efb21617ba6845fa86328dffa16cfcf1dc
commit-date: 2021-12-17
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.0.0
```
Repository: yt-dlp
Issue: Add option to download youtube storyboard as jpg
Labels: enhancement,site:youtube,core:post-processor

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

YouTube **storyboard** download feature is very useful but I need to download **storyboard** as **jpg** or **png**, I tried some online sites to convert  **mhtml** files to jpg and other formats but no luck with that.
Repository: vscode
Issue: iPad: Can't search for settings
Labels: bug,settings-editor,workbench-os-integration,ios-ipados

On iPad, with keyboard:

1. Open https://vscode.dev
2. Press <kbd>Cmd ,</kbd> to open settings

🐛 Sometimes the search input box is focused, sometimes it's not
🐛 Typing in the search input box does nothing

cc @roblourens @alexdima
Repository: vscode
Issue: iPad: Workbench disappears
Labels: bug,ios-ipados

I had https://insiders.vscode.dev open as a PWA. Hit a [bug](https://github.com/microsoft/vscode/issues/139453), so I came to GitHub to file it. Once I <kbd>Cmd Tab</kbd> to go back, the workbench was like this:

![FD8C468F-3F5E-45D0-976B-66C7B25EACCB](https://user-images.githubusercontent.com/22350/146665936-ef18c149-9ff5-4706-b9e1-9e5bc8815b70.png)

Reloading doesn't help. I had to _kill_ the PWA.
Repository: vscode
Issue: iPad: Can't run notebook cell with Keyboard
Labels: bug,ios-ipados,notebook

1. Open a notebook, focus a cell
2. Press any combination of <kbd>Cmd</kbd>, <kbd>Ctrl</kbd>, <kbd>Shift</kbd>, <kbd>Alt</kbd>, <kbd>Enter</kbd>. 🐛  Nothing seems to make the cell run.

🐛 `Run Cell` doesn't appear in the command palette, so I can't figure out the keyboard action from there.
🐛 It also doesn't appear in the cell's `...` menu:

![5A20D050-F241-48B2-AB32-0E64201F2726](https://user-images.githubusercontent.com/22350/146666183-a2ee2135-364e-4f50-9632-a3a370e93e4f.jpeg)

I could only find out the actual shortcut <kbd>Ctrl Enter</kbd> by going into Keyboard Shortcut Preferences.
Repository: godot
Issue: Animation Editor, key frames, not deselected visually
Labels: bug,topic:editor,confirmed,topic:animation

### Godot version

v3.4.1.stable.official [aa1b95889]

### System information

Windows 10 21H1

### Issue description

Key frame(s) are not deselected visually,
when clicking outside a key frame in the Animation Editor.

### Steps to reproduce

- add a node: AnimationPlayer
- add a new animation
  - click on the Animation button at the top of the Animation editor
  - choose New
  - press OK to use the default name: New Anim
- add a key frame
  - the Inspector shows the AnimationPlayer properties,
click on the key icon to the right of: Editor Description
- A window opens: Please Confirm...
  -  click: Create
- In the Animation Editor,
select the key frame by clicking on it (the white diamond) at the animation position (time): 0
the key frame changed color to blue, and the Inspector shows: AnimationTrackKeyEdit
- In the Animation Editor,
try to deselect the key frame by clicking below the editor_description track


#### Observed
The inspector becomes blank (as expected, nothing is selected)
but the key frame still has a blue color.

The key frame isn't selected, because:
right clicking on an unselected the key frame just shows: Insert key
and this is what's observed after the steps above.

Right clicking on a selected key frame shows:
Insert Key
Duplicate Key(s)
Delete Key(s)


#### Expected
The key frame color should change to white, to indicate that it's been deselected.


### Multiple key frames
There's an additional issue when attempting to deselect multiple key frames.
Only the key frame(s) on the selected track are deselected.

### Reproduction steps
- Add another key frame,
with the AnimationPlayer node selected,
in the Inspector, click on the key icon to the right of: Pause Mode
- In the Animation Editor,
click on the first (top) key frame,
to select the editor_description track (it gets a border)
- select both key frames and keep the first track selected by,
mouse dragging a selection rectangle, from below both key frames
- try to deselect them by clicking below both key frames

The Inspector became empty (as expected).
- move up the mouse over the 2d editor

#### Observed
Only the key frame on the selected track (with the border), changed to white.
The key frame, on the second track (pause_mode), is still blue.

#### Expected
Both key frames should have been deselected (white color),
when clicking outside a selected key frame.

### Minimal reproduction project

_No response_
Repository: godot
Issue: Animation Editor, no right click menu, on left half of key frame at time 0
Labels: bug,topic:editor,usability,topic:animation

### Godot version

v3.4.1.stable.official [aa1b95889]

### System information

Windows 10 21H1

### Issue description

Nothing happens when right-clicking on the left half of a key frame, at time 0.


### Steps to reproduce

- add a key frame at time 0
- right click on the left half of the key frame

### Observed
Nothing happens.

![godot_keyframe_right_click_left_of_time_0](https://user-images.githubusercontent.com/13420573/146667055-fa480e08-b828-422e-949c-bc027cbc52d3.gif)

The recording software shows right clicks as a red circle.

### Expected
The key frame's right click menu, should appear on any part of the key frame.

Because it seemed to be an intermittent bug, where the right click menu only opened,
after moving the mouse slightly.

### Minimal reproduction project

_No response_
Repository: youtube-dl
Issue: discovery plus not working anymore
Labels: duplicate

Hello, i wanted to download as usual from Discovery plus but now it says "Unsupported URL"
the url is "https://www.discoveryplus.com/it/video/i-signori-della-neve/stagione-2-episodio-1-i-preparativi"
Can anyone kindly help?
Repository: go
Issue: proposal: cmd/go: manage binaries installed in GOBIN
Labels: Proposal

As a user, I would like to have a command that iterates through my $GOBIN and checks if all of the packages I installed are in their latest version.
the new `go install` command is great and allows installing the binaries without changing anything on the machine.

some solutions I can see in mind for this:
1. have a similar solution of `go.mod` or a section inside `go.mod` that relates to binaries so `go list` can display them and then can be easily iterated on.
2. create a new `go_install.mod` specific for this solution
3. add metadata in the $GOBIN folder on what binary version was installed and the `go install` will read it when using the `--list-outdated` flag
4. other

this issue comes from the fact I have an `update` command that upgrades all of the components on my machine fairly frequently and rust has https://github.com/nabijaczleweli/cargo-update for that case
Repository: electron
Issue: [Feature Request]: Add webFrame.x, webFrame.y coordinates relative to the BrowserWindow
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

I want to get a subframe position relative to the BrowserWindow or BrowserView, no matter the nesting level. I'm building a browser-like application and require this to make an "Inspect element" contextmenu option work (in the contextmenu event, I only get the coordinates relative to the iframe, but I need coordinates relative to the top frame - the webContents).

Separately, I need to get webContents (top frame) position relative to its BrowserView or BrowserWindow when devTools are attached on the left https://github.com/electron/electron/issues/32131 

### Proposed Solution

Add `x` and `y` property to a `WebFrame` instance that would indicate frame's position relative to the window that contains them. It should work both for the top frame and any subframe.

### Alternatives Considered

For now I wanted to make it work at least for iframes that are direct descendants of the top frame by getting the iframe position from the top frame. However I'm stopped by: https://github.com/electron/electron/issues/32249

And even if the above was possible, making this work for nested iframes would be very complex and require `nesting_level * 2`  (or 4 if main process needs to be used for routing) number of IPC calls to compute it and probably affect performance.

### Additional Information

- It does not matter if it's relative to BrowserView or BrowserWindow since the position of BrowserView relative to the BrowserWindow is always known. Whatever is easier and makes more sense (probably BrowserWindow).

- Implementing this would partially solve another feature request: https://github.com/electron/electron/issues/32131

- I have no idea how complex it is. Supporting many nested levels would be nice to have, but not a must. At the very least I need to know the position of the top frame relative to the window (https://github.com/electron/electron/issues/32131) and be able to locate an iframe in DOM by routing id https://github.com/electron/electron/issues/32249 (so I can create my  workaround for direct descendants) I just thought that maybe if it's not something super complex this would be a more elegant solution that would cover both the problem with devTools on the left and the iframe positions
Repository: pytorch
Issue: Dot product return completely incorrect result when using pip but not when using conda
Labels: high priority,module: cuda,triaged,module: correctness (silent),module: lts

### 🐛 Describe the bug

Hi. While working with `kornia` (which use pytorch under the hood), I found out that for the same input, the dot product operation `@` can return completely incorrect result if I install pytorch via pip but not when I install pytorch via conda.

Summary: :white_check_mark: correct, :red_circle: incorrect
| Version | Conda (CUDA)       | Pip (CUDA)         |
|---------|--------------------|--------------------|
| 1.8.1   | :white_check_mark: | :red_circle:       |
| 1.8.2   | :white_check_mark: | :red_circle:       |
| 1.10.1  | :white_check_mark: | :white_check_mark: |

I've created a small repo on how to reproduce this behaviours. You can check it out in [here](https://github.com/lamhoangtung/dummy-pytorch)

Obviously people can use conda to install pytorch and avoid this problem. But many project using python setuptools would have no choice other than install pytorch via pip.

Even though this issue seems to be fixed for pytorch 1.10.1, other long term support version still encounter this issue (ex: pytorch 1.8.2). And many project (including mine) still depend on torch 1.8.x + CUDA 11.1, I think what ever fixes had been push for pytorch 1.10.1 should be fed back to pytorch 1.8.x, specifically 1.8.3 as well

### Versions

Environment information was provided in the reproduction repo itself!

cc @ezyang @gchanan @zou3519 @bdhirsh @ngimel
Repository: react
Issue: React 18 : Add commitEffects begin and complete hook exposing to customized renderer to improve render performance
Labels: Type: Enhancement,Status: Unconfirmed,Component: Reconciler

If developed a customized renderer for kind of RN framework，it cannot access the exact begin and finish time of commitEffects (commitMutationEffects) , which is a good timing to send batch of node operations to native. We have to collect all placements such as appendChild, insertBefore, removeChild, commitUpdates in an extra task(promise or setTimeout) to implement real batch update for native side, resulting in low render performance. #22946 is the PR
Repository: TypeScript
Issue: Allow nesting user-defined type guards within a return object
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

nested user-defined type guards

## ✅ Viability Checklist

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

Currently, type guards can only return a boolean value (`x is SomeType`). I think it would be beneficial to allow this assertion to be nested within a more complex return type.

[Playground link](https://www.typescriptlang.org/play?#code/FAFwngDgpgBAkgEQIYiTAvDA3sGeYB2SAtlAPwBcMAziAE4CWBA5sAL6iSxwBqSANgwAmyVBmy58RUlVqMW7YEuAAzAK4EAxiAYB7AjABuA4SigAKISiRVE1gJRUsMKHTq66lGvSbMANDAM1HyCQlRWYkHwIcKiaGwS+IEqMOYAhBFIAHTSUPaJSfh0UCBqdAbOru50VABEAHIksFHFAI5qDMVCtQFBMWEwKgLUsBxJCVD8IwWFMMWl5diBwSYD9GqjkngcHMqa+rQ0uqRxtnHiWBz7BIfGoSh6BABKUNRq-CDid6YgFtTHUDi9iUDBS5m+EUeLzeHyyfVW+RwSWu-34UCy-F0zHMAAMABKTTEBAAkWH+J2sOSabBxwImU1gSPwKN0aIxWNxAFE3B4qAAVAAWsFyyxgGiEUBUTCgQiyMFJEIe+mh7xAWSqHhpdKAA)

## 📃 Motivating Example

```typescript
function validate(data: IData): { error?: string, isValid: data is ValidData } {
    if (!data.name) {
        return { error: "Name is required", isValid: false }
    } else {
        return { isValid: true }
    }
}
```

## 💻 Use Cases

Currently, we have to either have to assert properties when we use them (`data.name!`) or we manually type-cast the object within the check: 

```typescript
if (isValid) {
  const validData = someData as IValidData
}
```
Repository: material-ui
Issue: Use TransitionGroup with Grid
Labels: support: question,component: Grid,component: transitions

### Duplicates

- [x] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

I tried to get the below code to work, but wrapping the grid item breaks the layout, because it wraps the children in a `div`, so I added `component={null}`, but then the Grid items don't get stretched to the width:

![Grid transition bug](https://user-images.githubusercontent.com/5586278/146675849-aa7253a4-f556-46ed-8dab-38766bc296ac.png)

Trying this: `<Collapse key={index} component={Grid}>` doesn't seem to properly inherit the props from the container Grid element.

Is there any way for this example so the grid doesn't break?

### Expected behavior 🤔

```jsx
 <Box>
    <Grid container spacing={2}>
      <TransitionGroup component={null}>
        {items
          ? map(items, (item, index) => {
              return (
                <Collapse key={index}>
                  <Grid item xs={12} sm={6} md={4} lg={3} xl={2}>
                    <SomeComponent item={item} />
                  </Grid>
                </Collapse>
              )
            })
          : null}
      </TransitionGroup>
    </Grid>
  </Box>

```

### Steps to reproduce 🕹

To reproduce, try the above code

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
System:
    OS: Windows 10 10.0.18363
  Binaries:
    Node: 14.17.6 - C:\Program Files\nodejs\node.EXE       
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.18362.1533.0)
  npmPackages:
    @emotion/react: ^11.7.1 => 11.7.1
    @emotion/styled: ^11.6.0 => 11.6.0
    @mui/base:  5.0.0-alpha.59
    @mui/icons-material: ^5.2.1 => 5.2.1
    @mui/lab: ^5.0.0-alpha.60 => 5.0.0-alpha.60
    @mui/material: ^5.2.3 => 5.2.3
    @mui/private-theming:  5.2.3
    @mui/styled-engine:  5.2.0
    @mui/system:  5.2.3
    @mui/types:  7.1.0
    @mui/utils:  5.2.3
    @types/react: ^17.0.0 => 17.0.37
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    typescript: ^4.1.2 => 4.5.3
```
</details>
Repository: create-react-app
Issue: React errors UI appears differently
Labels: needs triage

I see we recently updated to v5.0.0 and there were some changes to the `react-error-overlay`. Can we revert back to the old version?

This new one has less information, features, and is much harder to read. What happened here?

New – worse UI:
<img width="617" alt="Screen Shot 2021-12-19 at 09 42 37" src="https://user-images.githubusercontent.com/4069241/146682157-9af51924-017c-459e-921e-9e2875c08ae6.png">

Old – better UI:
<img width="773" alt="Screen Shot 2021-12-18 at 11 22 33" src="https://user-images.githubusercontent.com/4069241/146682204-a146e6a8-cc93-4870-8bee-6ed16d917570.png">