sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: Composition - some addons don't seem to work
Labels: bug,composition,sev:S2

### Describe the bug

report by @yannbf during QA:

When composing a Storybook that contains exactly the same code (two directories with the same project, each running SB in a different port), most of the addons in the toolbar don't seem to work

Addons that worked:
- controls
- actions
- viewport
- a11y panel
- storybook-addon-designs

Addons that did not work:
- backgrounds (and grid)
- measure
- outline
- a11y toolbar

Edit: It seems that if I switch stories after enabling all addons, the next story does contain most of them (a11y filters never worked)

![2023-03-07 19 03 17](https://user-images.githubusercontent.com/3070389/224035759-65ec985f-a52d-4735-bca4-9052a026bee5.gif)


### To Reproduce

- make a static storybook
- host the static storybook
- change the same storybook's main.js file, to compose the static hosted one
  (you should now have exactly the same storybook twice, 1 referencing the other)
- start the storybook

### System

_No response_

### Additional context

_No response_
Repository: angular
Issue: Keyframe scoping fails in combination with scss mixins
Labels: area: compiler

### Which @angular/* package(s) are the source of the bug?

Don't known / other

### Is this a regression?

No

### Description

There was a new feature introduced in Angular 15 about keyframes.

I observed that keyframes inside a SCSS mixin will not get the elements scope as a prefix and thus never run.
This only happens if the styling is delivered from a library. 

Example code:
```
div {
  height:100px;
  width: 200px;
  background: red;

  @include motion {
    animation: change-color 4s .2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
  }
}

@keyframes change-color {
  from {
    background-color: blue;
  }

  to {
    background-color: green;
  }
}


```
The motion mixin in this example will add a `@media (prefers-reduced-motion: no-preference) { ... }` .

I added an link to a minimal project to reproduce to bug. You need to run `npm run build lib` and afterwards `npm run start`.
The application relies on the dist folder of the library. 


### Please provide a link to a minimal reproduction of the bug

https://github.com/stevenimhof/ng15-keyframe-bug

### Please provide the exception or error you saw

```true
The above example will end up in this code inserted inside the head-Element.


div[_ngcontent-yfu-c12] {
  height: 100px;
  width: 200px;
  background: red;
}
@media (prefers-reduced-motion: no-preference) {
  div[_ngcontent-yfu-c12] {
    animation: change-color 4s 0.2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
  }
}
@keyframes _ngcontent-yfu-c12_change-color {
  0% {
    background-color: #00f;
  }
  to {
    background-color: green;
  }
}

```
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 15.2.2
Node: 16.15.1
Package Manager: npm 8.11.0
OS: darwin x64

Angular: 15.2.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.2
@angular-devkit/build-angular   15.2.2
@angular-devkit/core            15.2.2
@angular-devkit/schematics      15.2.2
@schematics/angular             15.2.2
ng-packagr                      15.2.2
rxjs                            7.5.7
typescript                      4.9.5
```


### Anything else?

_No response_
Repository: storybook
Issue: [Bug]: Composition - type of ComposedRef is missing `expanded` property
Labels: bug,help wanted,composition,sev:S3

### Describe the bug

reported by @yannbf during QA:

The `expanded` field from the refs property from the `StorybookConfig` type does not exist, even though the property exists and works, and is [shown in the documentation](https://storybook.js.org/docs/react/sharing/storybook-composition#compose-published-storybooks)

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: Add location information when exception are thrown in `torch.jit.annotations.try_ann_to_type`
Labels: oncall: jit

### 🚀 The feature, motivation and pitch

The functions `is_tuple`, `is_list`, `is_dict`, `is_optional`, `is_union`, `is_future`  (all in `torch/_jit_internal`) might throw exceptions when called from `try_ann_to_type`. These exception are not very useful. For example, one says:

```
RuntimeError: Attempted to use Dict without contained types. Please add contained type, e.g. Dict[int, int]
```

This exception together with the location information would be much more useful. For example, the location says:

```
(Pdb) print(loc)
SourceRange at:
  File "/home/schuetze/Documents/work/github/prediction_net/multimodal/models/heads/retina_head.py", line 187
    def forward(self, fpn_features: t.Dict, inputs: t.Dict,
                                    ~~~~~~ <--- HERE
                gts: t.Dict = None) -> t.Dict[str, t.Any]:
        """
```

Could we maybe add `location` as an optional parameter to the `is_X` function? Would you be open for a PR in that case? 


### Alternatives

Include location information when throwing the exception. 

### Additional context

_No response_

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: next.js
Issue: Silent failure when running npm run dev
Labels: bug

### Verify canary release

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

### Provide environment information

```bash
> test-app-three@0.1.0 info
> next info


    Operating System:
      Platform: win32
      Arch: ia32
      Version: Windows 10 Home
    Binaries:
      Node: 18.15.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.2.4-canary.8
      eslint-config-next: 13.2.3
      react: 18.2.0
      react-dom: 18.2.0
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue

https://github.com/CodyMoore240/test-app-three

### To Reproduce

run `npm install`
run `npm run dev`

### Describe the Bug

upon running `npm run dev`, this is displayed in the console and then silently fails

> test-app-three@0.1.0 dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000

### Expected Behavior

It should not silently fail and run the project

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

Chrome 110.0.5481.178

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

_No response_
Repository: stable-diffusion-webui
Issue: Add delete option to interrupt or skip buttons [Feature Request]: 
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Add button option next to existing button (maybe a check box or x mark next to the button to delete file when you click interrupt or skip.  something like this, but nicer
![Untitled](https://user-images.githubusercontent.com/10617746/224055357-7aac22ff-c2e2-4fe1-bea8-bd8953cdcfe7.png)


### Proposed workflow

1. Go to txt2img or img2img
2. Press generate
3. if you dont like where the generation is going, you have the option to 
4. press interrupt or skip 
5. or press a red x next to each to interrupt (and delete file) or skip (and delete file)


### Additional information

sounds obvious
Repository: vscode
Issue: balancedBracketScopes per bracket type
Labels: feature-request,editor-bracket-matching

It would be cool to enable the typescript theme to match any `()`, `[]`, `{}` anywhere, but `<`...`>` only in certain tokens (instead of excluding invalid tokens).
Currently, token filters apply to all bracket pairs.

This is how typescript is currently configured:
```json
"grammars": [
    {
    "language": "typescript",
    "scopeName": "source.ts",
    "path": "./syntaxes/TypeScript.tmLanguage.json",
    "unbalancedBracketScopes": [
        "keyword.operator.relational",
        "storage.type.function.arrow",
        "keyword.operator.bitwise.shift",
        "meta.brace.angle",
        "punctuation.definition.tag"
    ],
    "tokenTypes": {
        ...
    }
},
```

I think it would be reasonable to support configurations like this:
```json
"grammars": [
    {
    "language": "typescript",
    "scopeName": "source.ts",
    "path": "./syntaxes/TypeScript.tmLanguage.json",
    "bracketScopes": {
        "<": ["punctuation.definition.typeparameters.begin.ts"],
        ">": ["punctuation.definition.typeparameters.end.ts"],
    },
    "tokenTypes": {
        ...
    }
},
```

This would only apply token filters to `<` and `>`, eliminating all false-positives.

This would fix
* https://github.com/microsoft/vscode/issues/165232
* https://github.com/microsoft/vscode/issues/176618 

And it would make initial flickering less likely:

![Code_-_Insiders_WgHUBMxWEy](https://github.com/microsoft/vscode/assets/2931520/f0b2876f-172c-45dc-b3dd-ede2285e948d)
Repository: godot
Issue: Conversion Tool: MacOS Export Template Settings Missing
Labels: enhancement,topic:editor

### Godot version

4.0

### System information

MacOS 13.2.1/M2

### Issue description

After running a v3.5.1 project with MacOS, Windows, and Linux export settings (templates) through the v4.0 conversion tool, only the Windows and Linux export settings remain. The MacOS settings are missing.

### Steps to reproduce

Run a v3.5.1 project with a MacOS export template through the v4.0 conversion tool.

### Minimal reproduction project

N/A
Repository: ant-design
Issue: glitch on Textarea and scrollbar
Labels: help wanted,Inactive

### Reproduction link

[https://stackblitz.com/run?file=demo.tsx](https://stackblitz.com/run?file=demo.tsx)

### Steps to reproduce

put some text, till the scrollbar is shown

### What is expected?

focused the textarea with focused with full rounded scrollbar

### What is actually happening?

textarea with full scrollbar, but the rounded scrollbar is missing

![image](https://user-images.githubusercontent.com/25293774/224068582-12065c81-f79e-4842-b082-d0aedbd9d012.png)


| Environment | Info |
| --- | --- |
| antd | 5.3.0 |
| React | react |
| System | Windows 10 |
| Browser | Chrome 101.0.4951.67 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: storybook
Issue: [Bug]: Interactions - When step function is not awaited, it gets lost in debugger
Labels: bug,help wanted,has workaround,addon: interactions,sev:S4

### Describe the bug

![2023-03-09 16 28 50](https://user-images.githubusercontent.com/1671563/224072505-e077b613-d9b8-4b17-809b-08a5592a6e95.gif)

This happens if the play function looks like this:
```ts
play: async ({ canvasElement, step }) => {
    const canvas = within(canvasElement);
    const loginButton = await canvas.getByRole('button', {
      name: /Log in/i,
    });
    await userEvent.click(loginButton);
    // This should be awaited. If it's not, the panel bugs out.
    step('click', async () => {
      await userEvent.click(loginButton);
    })
}
```

### To Reproduce

https://stackblitz.com/edit/github-wmyzqk?file=src%2Fstories%2FPage.stories.ts&preset=node

### System

_No response_

### Additional context

_No response_
Repository: storybook
Issue: [Bug]: Interactions panel fails when stepping through "waitForElementToBeRemoved" as the element's been removed
Labels: bug,help wanted,addon: interactions,sev:S3

### Describe the bug

This is tricky.

Suppose there's an element in a page, which gets removed in 500ms (e.g. loading spinner). When writing a play function that asserts for that element to be removed, like so:

```ts
play: async ({ canvasElement, step }) => {
    const canvas = within(canvasElement);
    await waitForElementToBeRemoved(await canvas.findByText('loading...'))
    await userEvent.click(getByRole('button')) // button is only visible after spinner is gone!
},
```

If you click to start on the step debugger, by the time you think of clicking on the next step, the spinner is already gone.
This means that stepping through the steps will fail.

I'm not sure what's a solution to this scenario, or even if there is a good solution!

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: godot
Issue: Tree control focus frame is not clipped by parent container
Labels: bug,confirmed,topic:gui

### Godot version

4.1.dev (9b9bb418cb1137e69b5131ec9fa7b41c0396db28)

### System information

Ubuntu 22.04, Intel Iris Plus Graphics G7, Wayland

### Issue description

The focus frame around the Tree control overflows its parent container, even if it should be clipped due to scrolling.

![image](https://user-images.githubusercontent.com/26961646/224088478-84cf695b-b1c6-47d5-9ce1-489507bec10e.png)



### Steps to reproduce

Create a blank project and a new theme resource, to access the theme preview panel.

Focus on the tree control of the previewed widgets and scroll the whole preview to notice the overflowing frame.

### Minimal reproduction project

N/A
Repository: flutter
Issue: [flutter_migrate] Implement conflict resolution
Labels: package,team-ecosystem,P3,p: flutter_migrate,triaged-ecosystem

See https://github.com/flutter/packages/pull/2726 for the in-progress work on this.
Repository: excalidraw
Issue: Change/customize the shape of cursor when drawing?
Labels: enhancement

I'm using a pen tablet to draw on _excalidraw_. The crosshair cursor really blocks something, especially I'm using 150% scale on my laptop. Anyway to change or customize the shape and size of the cursor? Or just don't change the cursor when drawing? Consider adding this function?
Also refer to [https://www.reddit.com/r/ObsidianMD/comments/zfrn0d/configuring_pen_buttons_and_cursor_in_excalidraw/](url)
Repository: flutter
Issue: [flutter_migrate] Support use as a library
Labels: package,team-ecosystem,P3,p: flutter_migrate,triaged-ecosystem

See https://github.com/flutter/packages/pull/3065 for the in-progress work on this.
Repository: storybook
Issue: [Bug]: Composition - keyboard shortcuts do not allow you switch stories between the composed Storybooks
Labels: bug,help wanted,composition,sev:S3

### Describe the bug

Reported by @thafryer (thank you!!)

If you have composed Storybooks, the keyboard shortcuts do not allow you switch stories between the composed storybook.

### To Reproduce

https://www.loom.com/share/719081b18a3a4e628b62ff184ea369ab

### System

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: Compressed sparse constructor allows mixed `int32/int64` indices which leads to dtype promotion/demotion in conversions.
Labels: module: sparse,triaged

### 🐛 Describe the bug

As per title, namely we can create a tensor with `compressed_indices.dtype != plain_indices.dtype`. That not only can potentially break some kernels, it creates inconsistencies in `to_sparse(...)` conversions. For example:
```python
In [1]: import torch

In [2]: x = torch.rand(3, 3).to_sparse_csr()

In [3]: y = torch.sparse_csr_tensor(x.crow_indices().to(torch.int32), x.col_indices().to(torch.int64), x.values())

In [4]: z = y.to_sparse_csc()

In [5]: z.ccol_indices().dtype
Out[5]: torch.int32

In [6]: z.row_indices().dtype
Out[6]: torch.int32

In [7]: y = torch.sparse_csr_tensor(x.crow_indices().to(torch.int64), x.col_indices().to(torch.int32), x.values())

In [8]: z = y.to_sparse_csc()

In [9]: z.ccol_indices().dtype
Out[9]: torch.int64

In [10]: z.row_indices().dtype
Out[10]: torch.int64

```

### Versions

Current master.

cc @alexsamardzic @pearu @cpuhrsch @amjames @bhosmer
Repository: storybook
Issue: [Bug]: Storybook not respecting Vue lifecycle
Labels: bug,vue3,sev:S2

### Describe the bug

We have a component that uses the lifecycle function onBeforeUnmount() to clear a NodeJS.Timeout. In storybook, the component never runs onBeforeUnmount after changing to another story or docs page.

I'm on latest Storybook 7 prelease version for Vue3.

### To Reproduce

Create a component that uses onMounted() to start a NodeJS.Timeout loop, and uses onBeforeUnmount() to clear the NodeJS.Timeout.

When moving to another story, the component is never unmounted.

### System

```shell
System:
    OS: Linux 5.19 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
  Binaries:
    Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.9.0/bin/yarn
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
  npmPackages:
    @storybook/vue3: ^7.0.0-beta.64 => 7.0.0-beta.64
```


### Additional context

Is there any documentation on the storybook component lifecycle? Is there any documentation on events for unmounting a component?
Repository: yt-dlp
Issue: [Twitch] continue downloading live VOD
Labels: site-enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a site-specific feature
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and 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)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Example URLs

https://www.twitch.tv/

### Provide a description that is worded well enough to be understood

I'm asking for a feature for continuing downloading the live VODs on Twitch :  
When a streamer is live, and has activated the VODs, you can access the VOD of the current live being recorded (→ you have a specific URL for the VOD, and not just the streamer URL, like https://www.twitch.tv/videos/[0-9]*).  
But if you use that specific URL to download using yt-dlp, the download stops at the time of the video at the time you started the command (→ if you launched the command at 18h00, it downloads the live until 18h00), even if the streamer is still live, still under the same VOD URL.

What I'm asking for is a way to tell yt-dlp to download the blocks it hasn't already downloaded until the streamer goes offline.  
Something like
```
{
    downloadM3U;
    compareToAlreadyDownloadedBlocks;
    downloadMissingBlocks;
    sleep(10);
}while(isLive)
```
(without forgetting doing it a few times after the live is offline to get all the blocks)

Use case : sometimes, a streamer who has the VOD activated display inadvertently something Twitch doesn't like (NSFW for example), and decide to disable the VOD for this particular video, at the end of the stream.
In that case, I start downloading the live ~15min before the end, to maximize the duration of the stream I can download, but I miss the last 15min.  
The feature I ask for would solve that issue.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [x] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
-
```
Repository: flutter
Issue: Null check operator used on a null value
Labels: customer: fuchsia,a: null-safety

 it seems there is a chance for bytes to be null [here](https://github.com/flutter/flutter/blob/763fc03f6d1d54cac0da690e541025f19df2a13e/packages/flutter/lib/src/foundation/consolidate_response.dart#L130)

```
at consolidateHttpClientResponseBytes.<anonymous closure> | (consolidate_response.dart:131)
-- | --
  | at _HttpClientResponse.listen.<anonymous closure> | (http_impl.dart:715)
  | at _RootZone.runGuarded | (zone.dart:1581)
  | at _BufferingStreamSubscription._sendDone.sendDone | (stream_impl.dart:392)
  | at _BufferingStreamSubscription._sendDone | (stream_impl.dart:402)
  | at _BufferingStreamSubscription._close | (stream_impl.dart:291)
  | at _ForwardingStream._handleDone | (stream_pipe.dart:99)
  | at _ForwardingStreamSubscription._handleDone | (stream_pipe.dart:161)
  | at _ForwardingStreamSubscription._handleDone | (stream_pipe.dart:160)
  | at _RootZone.runGuarded | (zone.dart:1581)
  | at _BufferingStreamSubscription._sendDone.sendDone | (stream_impl.dart:392)
  | at _BufferingStreamSubscription._sendDone | (stream_impl.dart:402)
  | at _BufferingStreamSubscription._close | (stream_impl.dart:291)
  | at _StreamController._closeUnchecked | (stream_controller.dart:782)
  | at _StreamController.close | (stream_controller.dart:630)
  | at _HttpParser._doParse | (http_parser.dart:1147)
  | at _HttpParser._parse | (http_parser.dart:319)
  | at _HttpParser._onData | (http_parser.dart:873)
  | at _HttpParser._onData | (http_parser.dart:868)
  | at _RootZone.runUnaryGuarded | (zone.dart:1593)
  | at _BufferingStreamSubscription._sendData | (stream_impl.dart:339)
  | at _BufferingStreamSubscription._add | (stream_impl.dart:271)
  | at _StreamController._add | (stream_controller.dart:774)
  | at _StreamController.add | (stream_controller.dart:596)
  | at _Socket._onData | (socket_patch.dart:2330)
  | at _Socket._onData | (socket_patch.dart:2325)
  | at _RootZone.runUnaryGuarded | (zone.dart:1593)
  | at _BufferingStreamSubscription._sendData | (stream_impl.dart:339)
  | at _BufferingStreamSubscription._add | (stream_impl.dart:271)
  | at _StreamController._add | (stream_controller.dart:774)
  | at _StreamController.add | (stream_controller.dart:596)
  | at _RawSecureSocket._sendReadEvent | (secure_socket.dart:1107)
  | at _RawSecureSocket._sendReadEvent | (secure_socket.dart:1100)
  | at Timer._createTimer.<anonymous closure> | (timer_patch.dart:18)
  | at _Timer._runTimers | (timer_impl.dart:398)
  | at _Timer._handleMessage | (timer_impl.dart:429)
  | at _Timer._handleMessage | (timer_impl.dart:419)
  | at _RawReceivePortImpl._handleMessage | (isolate_patch.dart:192)
```
Repository: vscode
Issue: No diagnostics for the settings JSON split editor
Labels: bug,api,workbench-tabs

When using something like the following to the settings:
```
"something": { "*": 'DEBUG' }
```
This is a typo for:
```
"something": { "*": "DEBUG" }
```
The setting is not really available, but there is no squiggle shown around `'DEBUG'`
Repository: vscode
Issue: Split View: Allow Snap To Content Size
Labels: feature-request,splitview-widget

## Use Case

My debug pane currently looks like this:

<img src="https://user-images.githubusercontent.com/2931520/224112450-a1724cec-4e3d-43a1-8b4d-51e0bb37179e.png" height="800" />

It would be very cool if the panes would fit to their content like this (and stay so):

<img src="https://user-images.githubusercontent.com/2931520/224112573-ab23b848-0686-438b-9bd3-f608d87a322e.png" height="800" />

## Feature

My requested feature would be this:

Allow panes to snap to the size of their content: Once a splitter snaps to the content size of the pane above it, that pane's size is bound to the size of the pane-content - i.e. when the content size changes, the size of the pane is adjusted.

When the splitter is moved again to a different size than the content size, this size binding is cleared.

This would offer a nice UX for enabling users to use a more space efficient layout.