sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Can't use global theme overrides for Button disabled
Labels: bug 🐛,breaking change,component: button

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

When using [global style overrides](https://mui.com/customization/theme-components/#global-style-overrides) to target the "disabled" css slot on a Button like so:
```ts
const theme = createTheme({
  components: {
    MuiButton: {
      styleOverrides: {
        disabled: {
          fontSize: "55rem"
        }
      }
    }
  }
});
```
The global style override does not apply.

### Expected behavior 🤔

Any styles contained in MuiButton.styleOverrides.disabled should be applied to a `.MuiButton-root.Mui-disabled`.

### Steps to reproduce 🕹

Steps:

1. Open https://codesandbox.io/s/globalthemeoverride-material-demo-forked-dpvi1?file=/demo.tsx
2. Observe output: the font size should be gigantic (55 rem), but is clearly the default font size, meaning the override failed

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
 System:
    OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 8.35 GB / 12.43 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.15 - ~/.yarn/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Managers:
    Apt: 2.0.6 - /usr/bin/apt
  Utilities:
    Git: 2.25.1 - /usr/bin/git
  IDEs:
    Nano: 4.8 - /usr/bin/nano
    VSCode: 1.62.2 - /home/ian/.vscode-server/bin/3a6960b964327f0e3882ce18fcebd07ed191b316/bin/code
    Vim: 8.1 - /usr/bin/vim
  Languages:
    Bash: 5.0.17 - /usr/bin/bash
    Perl: 5.30.0 - /usr/bin/perl
    Python3: 3.8.10 - /usr/bin/python3
```
(I use Chrome)
</details>
Repository: node
Issue: Events.on should not automatically throw on error event
Labels: events,errors

### Version

16.6.2

### Platform

 Darwin Kernel Version 18.7.0

### Subsystem

Events

### What steps will reproduce the bug?

[The docs for `events.on` state:](https://nodejs.org/api/events.html#eventsonemitter-eventname-options)

>  It will throw if the EventEmitter emits 'error'.

This a design flaw. Ideally, error handling would be explicit, but _at minimum_ there must be a way to opt out of this mechanism.

An event emitter is stateful. `on` mutates that state in such a way that inhibits meaningful control at the call-site which produces fundamentally unexpected results:

The most basic example is the case where one might want stream events from an event emitter _uninhibited_ by errors.

```javascript
const ee = new EventEmitter();

ee.on('error', () => { ... });

// Snip, sometime later:

for await (const message of on(ee, 'message')) {
  // I don't expect the error event to disrupt this iteration. I'm handling it somewhere else.
}
```

Taking events into AsyncIterators is a necessary building block for working with first-class Node apis. But the above example not being possible effectively makes the `on` function useless. 

Consider the following interfaces: 

```javascript
// Merge iterators into a single iterator.
async function* merge(...asyncIterators) { ... }

// Lazily map an iterator into a new value.
async function* map(asyncIterator, cb) { ... }
```

I should be able to do the following:

```javascript
const eventStream = merge(
  map(on(ee, 'message'), intoMessageEvent),
  map(on(ee, 'exit'), intoExitEvent),
  map(on(ee, 'error'), intoErrorEvent)
);

for await (const event of eventStream) {
  // This _should not throw_ on error.
}
```

There's no reason to expect the above to not be possible.



### How often does it reproduce? Is there a required condition?

Every single time

### What is the expected behavior?

For `on` to not implicitly throw when an `error` event is emitted.

### What do you see instead?

`on` throws when an `error` event is emitted, there's no way to opt out. 

Further, there's no way to remove the events added in a meaningful way because `on` wraps the callbacks in an `eventHandler` function. 

### Additional information

_No response_
Repository: rust
Issue: Use of `.await` in 2015 edition prints one error per use
Labels: A-diagnostics,P-low,T-compiler,D-edition,D-verbose

When using `.await` and `async fn` in 2015 editions, we emit an error for each instance of incorrect usage. The most common case of this happening is *likely* to be when not being aware of the edition distinction in a new project and/or copying complete code from elsewhere. We should group these errors and emit a *single* error to reduce output verbosity. We might want to group per `mod` or some other strategy, but even the naïve approach is likely to work out ok.
Repository: yt-dlp
Issue: Add support for multiple videos on France Info webpage
Labels: site-enhancement

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.11.10.1**. ([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

Hi,

Sample URL: [https://france3-regions.francetvinfo.fr/grand-est/emissions/vos-jt-1213-1920-lorraine](https://france3-regions.francetvinfo.fr/grand-est/emissions/vos-jt-1213-1920-lorraine)

When watching the FranceInfo video that I linked above, there are other videos on the same page. If I click on those videos, they are loaded on the same page without going to a new URL (i.e the videos don't have a separate URL). Therefore, yt-dlp is only downloading the original video and doesn't have the capability of downloading other videos on the same page.

Can you please add a feature for downloading them as a playlist?
Repository: pytorch
Issue: [docs] Strange signatures for torch.autocast
Labels: module: docs,triaged,module: amp (automated mixed precision)

Is `torch.autocast` a class or a function? If class, what are the arguments listed in the header? Constructor arguments?

Below in the code the classes/functions are not qualified and imports are missing. So it's not clear how can `autocast()` be called if `device_type` is mandatory argument without a default argument

https://pytorch.org/docs/stable/amp.html#torch.autocast:
![image](https://user-images.githubusercontent.com/1041752/141604407-ae6add7d-7377-41d7-a353-a3f786fe364f.png)


cc @brianjo @mruberry @mcarilli @ptrblck
Repository: rust
Issue: Tracking Issue for `#![feature(downcast_unchecked)]`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(downcast_unchecked)]`

This is a tracking issue for the `downcast_unchecked`, `downcast_ref_unchecked`, and `downcast_mut_unchecked` methods.

### Public API

```rust
impl dyn Any (+ Send + Sync) {
    pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T;
    pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T;
}

impl<A: Allocator> Box<dyn Any (+ Send + Sync), A> {
    pub unsafe fn downcast_unchecked<T: Any>(&self) -> Box<T, A>;
}
```

### Steps / History

- [x] Implementation: #90851
- [ ] Final comment period (FCP)
- [ ] Stabilization PR

### Unresolved Questions

- None yet.
Repository: flutter
Issue: Use `presentDrawable:afterMinimumDuration:`
Labels: platform-ios,engine,c: performance,platform-mac,perf: speed,P2,team-ios,triaged-ios

https://developer.apple.com/documentation/metal/mtlcommandbuffer/2806849-presentdrawable?language=objc

https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/MTLBestPracticesGuide/FrameRate.html

See also https://github.com/flutter/flutter/issues/93352

I do not have traces to prove this is a problem on Metal, so we should investigate that first and if it is, use the API to make sure we don't exaggerate jank.
Repository: flutter
Issue: Use VkPresentTimesInfoGOOGLE on Vulkan backend
Labels: engine,c: performance,perf: speed,P2,team-engine,triaged-engine

See https://android-developers.googleblog.com/2020/04/high-refresh-rate-rendering-on-android.html, https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPresentTimesInfoGOOGLE.html

See https://github.com/flutter/engine/pull/29727

See https://github.com/flutter/flutter/issues/93352

We should determine if this is an issue on Vulkan, and if so use the extension similarly to how it's implemented in the linked pull request for OpenGL. On the OpenGL backend, it significantly improved raster times for 99th percentile and average.

It would be interesting to know if Fuchsia would benefit from this (and/or has this or some other extension to support it). /cc @arbreng @chaselatta
Repository: youtube-dl
Issue: [Site-support-request/nate] Add new extractor 
Labels: site-support-request

<!--

######################################################################
  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:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.06.06. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [ x ] I'm reporting a new site support request
- [ x ] I've verified that I'm running youtube-dl version **2021.06.06**
- [ x ] I've checked that all provided URLs are alive and playable in a browser
- [ x ] I've checked that none of provided URLs violate any copyrights
- [ x ] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://tv.nate.com/clip/4282848?list=popular&type=ALL
- Single video: https://tv.nate.com/clip/4283073?list=popular&type=ALL

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
Repository: neovim
Issue: Allow defining complete function for `input()` as a Funcref
Labels: enhancement,has:workaround

### Feature already in Vim?

No

### Feature description

Currently, if you want to add an `input` prompt with some autocompletion, you need to do something like this:

```vim

function MyAutocompleteFunction(ArgLead, CmdLine, CursorPos) abort
  return ['foo', 'bar', 'baz']
endfunction

call input('My prompt:', '', 'customlist,MyAutocompleteFunction')

"or 

call input({
  \ 'prompt': 'My prompt:',
  \ 'completion': 'customlist,MyAutocompleteFunction',
  \ })
```

It would be great to allow defining the autocomplete function inline like a funcref/lambda function:


```vim
function s:my_function(ArgLead, CmdLine, CursorPos) abort
  return ['foo', 'bar', 'baz']
endfunction

call input({
  \ 'prompt': 'My prompt:',
  \ 'completion': function('s:my_function'),
  \ })

" or 

call input({
  \ 'prompt': 'My prompt:',
  \ 'completion': {a,c,cur-> ['foo', 'bar', 'baz']},
  \ })
```

Or in Lua:

```lua
vim.fn.input({
  prompt = 'My prompt:',
  completion = function(arglead, cmdline, cursorpos)
    return {'foo', 'bar', 'baz'}
  end

-- Maybe even with the argument version:

vim.fn.input('My prompt:', '', function(arglead, cmdline, cursorpos)
     return {'foo', 'bar', 'baz'}
end)
``` 

This would allow creating these completions much easier and it would allow them to be more dynamic.

I currently need these for [orgmode.nvim](https://github.com/kristijanhusak/orgmode.nvim) since orgmode has a bunch of prompts with a different completion values, and managing these globally accessible functions, especially from lua, is a bit tedious. 

Regarding the `custom` or `customlist`, I would say that if it's a funcref, just consider it a `customlist`. It seems more natural (to me at least).
Repository: yt-dlp
Issue: multiple output templates in config depending on extractor
Labels: question

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.11.10.1**. ([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

Is it possible to add a feature where we can setup several different output templates based on the extractor being used in the config file, and in the case an extractor doesn't have a template specified yt-dlp will use either its own default or a default that we set
Repository: godot
Issue: RichTextLabel clear() fails
Labels: bug,regression,topic:gui

### Godot version

3.4 stable

### System information

OSX

### Issue description

When creating multiple instances containing a RichTextLabel in a for statement, `clear()` at _ready() and _enter_tree() fails to clear the placeholder text in `bbcode_text`

This worked in 3.3 stable.

### Steps to reproduce

Create a scene with a RTL and placeholder bb code in bbcode_text that calls clear() at _ready();

In a parent scene, add multiple instances of the above scene to a grid container;

You should see the placeholder bbcode_text instead of empty bbcode_text.

### Minimal reproduction project

_No response_
Repository: rust
Issue: HashMap::from_iter doesn't compile without explicitly supplying the hasher
Labels: C-enhancement,T-libs-api,A-inference,A-iterators,T-libs

Now that `FromIterator` is in the prelude, I expected to be able to create a `HashMap` like using `HashMap::from_iter()`:

```rust
use std::collections::HashMap;
fn main() {
    let h = HashMap::from_iter([("foo", 1), ("bar", 2)]);
}
```

However, that doesn't compile, saying "type annotations needed for `HashMap<&str, i32, S>`":

```
 --> src/main.rs:3:13
  |
3 |     let h = HashMap::from_iter([("foo", 1), ("bar", 2)]);
  |         -   ^^^^^^^ cannot infer type for type parameter `S` declared on the struct `HashMap`
  |         |
  |         consider giving `h` the explicit type `HashMap<&str, i32, S>`, where the type parameter `S` is specified
```
[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2d036ef3458e980c1489c9b8445bb7e1)

I would expect `<HashMap as FromIterator>::from_iter()` to pick the default hasher in absence of an explicit request for a different one requested, like `Vec::from_iter()` [compiles](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e80534359219408d3a28fa72f067fd82) and defaults to the global allocator. (`HashMap::from()` also compiles, but it seems to be limited to the default hasher.)

Note that this is different from #69123 which is about a confusing diagnostic. This issue is about the error itself, in particular as compared to `Vec::from_iter()`.

Tested with Rust 1.56.1 stable.
Repository: PowerToys
Issue: win key + R doesn't work when key is remapped
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Priority-1,Status-Reproducible

### Microsoft PowerToys version

0.49.1

### Running as admin

- [X] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I am using a Macbook Pro running Windows 10. I remap the left Alt to Windows key. 

Press left Alt + R

### ✔️ Expected Behavior

Windows Run pop up

### ❌ Actual Behavior

nothing happens

I tried remap the same key using AutoHotkey and everything works fine. 

### Other Software

_No response_
Repository: pytorch
Issue: Potential race conditions between multiple workers trying to download and cache the same file in torch.hub.load_state_dict_from_url and torch.hub.download_url_to_file <- duplicate dataset/model downloads across DDP workers
Labels: high priority,triaged,module: hub,actionable

https://github.com/pytorch/pytorch/blob/577a4d34a7c017bf57b997967bf965255fd61909/torch/hub.py#L585

There should be a recommendation how to cache / download   files and checkpoints correctly betwen multiple workers or at least warn of these problems

Same might happen if all of workers are using torchvision pretrained models? (which lead to this caching presumably)

cc @ezyang @gchanan @zou3519 @nairbv @NicolasHug @vmoens @jdsgomes
Repository: vscode
Issue: Language Packs add a line to Command Palette
Labels: feature-request,quick-open

I've seen that language packs that localise VSCode to other languages add a line to the command palette with the english command bellow the localised one.

Ie for the french localisation : 
![image](https://user-images.githubusercontent.com/44371364/139333912-8ea76537-4aac-4c6e-8634-346f8eaebbec.png)

I would like to have an option to disable this behaviour (in order to make the command palette much more usable, because now it can't show as many commands as before), or to overwrite the langauge VSCode is using for the command palette and displaying all in english.

I'm ok for this behaviour to exist, because I can work in english without the localisation, but for beginners, or simply ones that would like to have a nice and thin palette having the option(s) would be nice

Edit : I'm totally new to opening issues, don't know if it's the right place to open this one, if i'm wrong or did anything incorrectly, tell me please
Repository: rust
Issue: "function defined here" notes shouldn't show `mut`s
Labels: A-diagnostics,T-compiler

<!--
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.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

In https://github.com/rust-lang/rust/pull/90886 I changed the definition of `fold` such that it no longer needed the `mut` on the `f` parameter, and was surprised to get a UI test failure (in <https://github.com/rust-lang/rust/blob/master/src/test/ui/issues/issue-3044.rs>) from it.  The update from `bless`:
![image](https://user-images.githubusercontent.com/18526288/141662958-b0496b48-2d11-41a8-90d9-ead8dbf646b0.png)

Playground link with the same as that UI test: <https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=548bf44a26aa1406bafb496f9341bf29>

It doesn't seem to be showing the note in playground, though?!?

The current output is:
```
 note: associated function defined here
  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
   |
LL |     fn fold<B, F>(mut self, init: B, mut f: F) -> B
   |        ^^^^
```

Ideally the output should look like:

```
 note: associated function defined here
  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
   |
LL |     fn fold<B, F>(self, init: B, f: F) -> B
   |        ^^^^
```

because the `mut`s are not relevant to the caller of the function.
Repository: yt-dlp
Issue: errors returned as parsable json
Labels: enhancement

### Checklist

- [X] I'm reporting a feature request
- [X] I've verified that I'm running yt-dlp version **2021.11.10.1**. ([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

return errors as JSON to stdout with a flag like `--output-json-error`. example error output:
```json
{
  "_type": "error",
  "message": "Only available in The Netherlands", 
  "kind": "GeoRestrictedError", 
  "countries": ["NL"]
} 
```

this would be very nice for handling errors in automated yt-dlp runs occurring with CLI and not the Python bindings (like in [BashTube](https://git.sakamoto.pl/domi/BashTube))
Repository: vscode
Issue: "Don't show again" button does not work and is misleading
Labels: git,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: Version: 1.62.0 (Universal)
- OS Version: MacOS 12.0.1 (21A559)

Steps to Reproduce:

1. Open VS Code
2. Drag in a folder from your desktop
3. Get this images 
<img width="576" alt="Screen Shot 2021-11-13 at 6 16 59 PM" src="https://user-images.githubusercontent.com/35577566/141664914-243eedb9-5e12-4597-aa3e-fe4c893e5cc7.png">
 4. Click "Don't show again"
 5. Remove the folder from the project pane, add a new one, same issue shows up again. 
 
 I know this is coming from the git extension but that seems pretty core to VS Code which is why I opened this issue anyway. Why does the "Don't show again" button not work?  I have clicked it hundreds of times.