sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Unable to override a getter when inheriting from a mixin class
Labels: Bug,Fix Available

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

mixin getter override
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYGwhgzhAECC0G8CwAoa7rAPYDsIBcAnAV2Hy0IAoA6WsQgcwgC5owcBPAbQF0BKRAF9UGaAwCm+aAFsOAOTDTxlPqwKEAljgaJoI0RkKTihHNADkscwG49aDMJSPUAM2I4yG3NACyGgB5aADwAKtDi-vjiOAAmMPgcAA7iWC5wAHyUAMrEyYSsIQLI9uhG+CZmoJAwAELhkdFx0Dl5iPoGYpIy8orKqtDqWjrFHR1lFRY1Nu0GjqKOzihVUNAAwvVRsTB+gTiUsEUzElKyCkoqakRDujOi46YWq+Z286iLAG70mNAAvNA44gA7msVNZUNg8FgQOJqCAsAxKMBqKdenxbAB6dHQQEaEAgaCJTQ4KTmJ5sGARZJkcQxaD4AAWWGIDHpQA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
class A {
    constructor(...args: any[]) {}
    get myName(): string { 
        return 'A'; 
    }
}

function Mixin<T extends typeof A>(Super: T) {
    return class B extends Super {
        get myName(): string {
            return 'B';
        }
    }
}

class C extends Mixin(A) {
    get myName(): string { 
    // Unexpected Error:
    // 'myName' is defined as a property in class 'Mixin<typeof A>.B & A', but is overridden here in 'C' as an accessor.
        return 'C' 
    }
}

var c = new C();
console.log(c.myName); // will print 'C' as expected though

```

### 🙁 Actual behavior

Error in `get myName()` of class C:
`'myName' is defined as a property in class 'Mixin<typeof A>.B & A', but is overridden here in 'C' as an accessor.` 

It is obviously incorrect because `myName` is defined as a getter (NOT a property) in either A or B.

### 🙂 Expected behavior

No error. 

<!-- What you expected to happen instead, and why -->
Repository: youtube-dl
Issue: At what rate does youtube-dl update the download speed and remaining time estimate
Labels: 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
- [ ] 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.
-->

At what rate does youtube-dl update the download speed and remaining time estimate? 1/second? 1/packet received? Or something else?

My ISP's download speeds are erratic and more often than not, unsatisfactory.  I've registered a service ticket with them, but I want to provide them with compelling evidence of my issues.  As it turns out, I have a bash wrapper script for my `youtube-dl` and I capture its output to a temporary text file.  In this text file, I can see how my download progresses, including the speed.  I know the creation date of the filie, and therefore know when the download started, but I don't know exactly what the interval is between prints to STDOUT for the speed and estimated remaining  time.  Hence my question.  With this info, I can graph my data which will make it easy for my ISP customer service people to see my issue rather than have to argue with them.
Repository: godot
Issue: PS4 controller connected makes a unusable duplicate index on Linux
Labels: bug,platform:linuxbsd,confirmed,topic:input

### Godot version

3.3.2.stable.official

### System information

Garuda Linux, 5.12.12-zen1-1-zen, KDE Dragonized, PS4 Controller

### Issue description

So I started a new project, then added a joystick detector

```
var _unused

func _ready():
	_unused = Input.connect('joy_connection_changed', self, '_joy_changed')
	print(Input.get_connected_joypads())
	print()

func _joy_changed(device : int, connected: int):
	if connected:
		Input.start_joy_vibration(device, 0.50, 0.00, 0.30)
		print(device)
		print(Input.get_joy_guid(device))
		print()
```
I have 2 PS4 controllers connected by cable to a usb 3.0 hub, to a usb 3.0, output:

```
[]

0
030000004c050000c405000011810000

1
030000004c050000c405000011810000

2
030000004c050000c405000011810000

3
030000004c050000c405000011810000
```

I connected both controllers one after the other, and there is duplicate indexes? and if I connect them before starting the project:

```
[0, 1, 2, 3]
```

I also tried using the duplicate index as player input, did not work.

### Steps to reproduce

```
extends Node2D

func _ready():
	Input.connect('joy_connection_changed', self, '_joy_changed')
	print(Input.get_connected_joypads())
	print()

func _joy_changed(device : int, connected: int):
	print(device)
	if connected: print(Input.get_joy_guid(device))
```
Nodes are:

Control
  ViewportContainer
    Viewport
      Node2D (code)

### Minimal reproduction project

_No response_
Repository: storybook
Issue: Test runner: Storyshots migration path
Labels: feature request,addon: storyshots,addon: interactions

As a user, I want to be able to snapshot test my components in parallel with a Jest-native feature set (file pattern matching, watch mode, etc.)

Using the mechanism from #15584
- [ ] Snapshot functions for each framework
- [ ] Migration guide from Storyshots
- [ ] Refactor snapshot functions per below 👇 

## Migrate storyshots serialization into frameworks

As a user, I want to be able to snapshot test my components without having to install loads of dependencies for other frameworks, so that I can save time and disk space.

Currently storyshots includes serializers for most frameworks. This means that storyshots depends on all the framework packages, which leads to bloat.

We should refactor the serializers out of storyshots and into each framework's API. This migration can happen as part of building the new test runner, or can happen earlier as a preparatory prototyping step.



┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1200510412866230/1200575789938323) by [Unito](https://www.unito.io)
Repository: go
Issue: x/pkgsite: flag exclude and replace in go.mod
Labels: help wanted,NeedsInvestigation,pkgsite

currently, there is a listing for "Valid go.mod file" in the "Details" section. it makes sense that this is more of a presence/absence and syntax check, but I was caught off guard when I could not go-get something reported as "Valid":
```
go get: github.com/path/to/want@none updating to
	github.com/path/to/want@v1.0.0 requires
	github.com/path/to/dep@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000
```

it turned out that this module had an `require` version and `replace`d it with the local file system. both `replace` and `exclude` are intended for local development and temporary workarounds, see #37559, thus it seems reasonable to flag such modules. it is possible to craft a `go.mod` with `exclude` or `replace` directives that also works with go-get, but considering it behaves differently as a main and dependent module, it still seems worth flagging.
Repository: react
Issue: [Devtools] Indicate or print which element causes suspense fallback
Labels: Type: Enhancement,Status: Unconfirmed,Component: Developer Tools

In a deep component tree, we sometimes modify a deeply nested component to use suspense but failed to wrap `Suspense` at a suitable place, this causes the root `Suspense` into fallback and is hard to location where this fallback is introduced.

"Whether a component is throwing Promise" is an implicit convention of component, this is not detectable by any static analyzer, so in a complex app this missing `Suspense` issue can happen frequently.

I've tested error boundaries but they cannot catch Promise, maybe devtools can provide functionality to report where Promises are thrown.
Repository: flutter
Issue: [Desktop][Web]: Caret is thick as compared to native
Labels: a: text input,framework,f: material design,platform-mac,a: typography,platform-web,a: desktop,has reproducible steps,P2,found in release: 2.2,team-design,triaged-design

https://user-images.githubusercontent.com/46608407/124898667-9ab7db00-e009-11eb-863f-c851bd7c79a5.mov

flutter version: 
`
  Flutter 2.3.0-13.0.pre.15 • channel master • https://github.com/flutter/flutter.git
  Framework • revision 3fc408200e (7 weeks ago) • 2021-05-18 09:50:24 -0700
  Engine • revision 3cda7f5807
  Tools • Dart 2.14.0 (build 2.14.0-119.0.dev)
`
Repository: react-native
Issue: Warning: Please report - Excessive number of pending callbacks: 501.
Labels: Needs: Triage :mag:

Please provide all the information requested. Issues that do not follow this format are likely to stall.

## Description
Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"18841":{},"18842":{},"18843":{},"18844":{},"18845":{},"18846":{},"18847":{},"18848":{},"18849":{},"18850":{},"18851":{},"18852":{},"18853":{},"18854":{},"18855":{},"18856":{},"18857":{},"18858":{},"18859":{},"18860":{},"18861":{},"18862":{},"18863":{},"18864":{},"18865":{},"18866":{},"18867":{},"18868":{},"18869":{},"18870":{},"18871":{},"18872":{},"18873":{},"18874":{},"18875":{},"18876":{},"18877":{},"18878":{},"18879":{},"18880":{},"18881":{},"18882":{},"18883":{},"18884":{},"18885":{},"18886":{},"18887":{},"18888":{},"18889":{},"18890":{},"...(truncated keys)...":451}

I get this error randomly somewhat frequently now while using my react native application. It happens randomly and I cannot debug to find the source of the issue. Reporting as it says to report.

## React Native version:
react native version number 0.63.4

## Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

1. start react native application via npm run android (react native run-android)
2. Redirect on a few pages and this error pops up saying 501 callbacks never called or pending which I don't think my entire app has 500 callbacks lol I mean I use setState callbacks but nothing outside of that...

![error](https://user-images.githubusercontent.com/81387403/124910459-84972400-dfe3-11eb-9367-7b7481f9c631.png)
Repository: next.js
Issue: Multiple optional slugs in rewrite mapping default to invalid value
Labels: bug,linear: next

### What version of Next.js are you using?

11.0.1

### What version of Node.js are you using?

14.16.1

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

yarn run dev

### Describe the Bug

Multiple optional slugs in route have a wrong empty value when being specified in rewrites:

next.config.js
```
module.exports = {
  async rewrites() {
    return [
      {
        source: '/:optionalParam(foo|bar)?/:secondOptional(foo|bar)?',
        destination: '/?optionalParam=:optionalParam&secondOptional=:secondOptional',
      },
    ]
  },
}
```

Route `/:optionaParam(foo|bar)?/:secondOptional(foo|bar)?`
Path `/foo/`

In this case `props.router.query/secondOptional` value will be ":secondOptional" instead of some empty value (empty string or undefined)

Works fine with Express routing here - https://forbeslindesay.github.io/express-route-tester/

### Expected Behavior

Expected behaviour is to receive empty value for optional empty parameter

### To Reproduce

```
git clone git@github.com:M1r1k/next-rewrite-optional-bug.git

cd next-rewrite-optional-bug

yarn install && yarn run dev
```
Open these three links:
http://localhost:3000/
http://localhost:3000/foo
http://localhost:3000/foo/bar

The second has an unexpected behaviour
Repository: flutter
Issue: [in_app_purchase] Add showManageSubscriptions in the IOS purchase
Labels: c: new feature,platform-ios,p: in_app_purchase,package,c: proposal,P3,team-ios,triaged-ios



Hi everyone,

To respond to IOS requirements, can you add showManageSubscriptions in the in app purchase package to open the subscription management view on IOS?

On android you can call directly the next url top open the same view:
https://play.google.com/store/account/subscriptions?sku=your-sub-product-id&package=your-app-package 

On the top level package you could add a function like: openSubscriptionManager(...).

Thank for your answer.

Daniel
Repository: godot
Issue: Storing Animation Player at onready var and calling "current_animation" causes memory leak
Labels: bug,topic:gdscript,regression

### Godot version

v4.0.dev.custom_build [cb4e42155]

### System information

manjaro Gnome 21, AMD R7 200 series, Intel i3 3.0 GHZ,8GB RAM

### Issue description

When I Store AnimationPlayer in a variable and call "current_animation" godot 4 freezes!

works:
```gd
$AnimationPlayer.current_animation == "test"
```
doesnt work:
```gd
@onready var anim:AnimationPlayer = $AnimationPlayer
anim.current_animation == "test":
```

### Steps to reproduce

*Create a Script
* Create a AnimationPlayer with an animation
* inside the script attach animation player to a variable
* call animation_player.current_animation == something
* godot should freeze
* Test again without attaching animation_player to var but instead direct reference using `$`
* godot should not freeze

### Minimal reproduction project

https://easyupload.io/iysbgu
Repository: vscode
Issue: SCM - Support markdown tooltip in scm command contributions
Labels: feature-request,scm

The tooltip of an SCM command contribution can only be a string. However status bar items now support mark down for tooltips. Would be cool to have that support for SCM command contributions as well.
Repository: pytorch
Issue: I do have the GPU, but the print(torch.cuda.is_available()) always shows False
Labels: module: cuda,triaged

System version:
![image](https://user-images.githubusercontent.com/68514251/124934747-94405800-e037-11eb-8a40-6e3744d256cb.png)

Pytorch version:
![image](https://user-images.githubusercontent.com/68514251/124934633-7bd03d80-e037-11eb-819c-170cf669738e.png)

nvidia-smi:
![image](https://user-images.githubusercontent.com/68514251/124934609-770b8980-e037-11eb-82e9-e5bd5e021d63.png)


I do have the GPU and PyTorch installed, but when I run the `print(torch.cuda.is_available())` it always shows false and this errors:
![image](https://user-images.githubusercontent.com/68514251/124934584-7115a880-e037-11eb-89a2-52d43b242918.png)

I tried many options online, like reinstall, and other ways, but non of them works.
Can someone help me with this situation?
Any help is appreciated!
Thank you


cc @ngimel
Repository: flutter
Issue: [flutter_plugin_tools] Add flags for target languages to `format`
Labels: p: tooling,package,team-ecosystem,P3,triaged-ecosystem

Currently `format` requires that all of the formatters be available, but there's no reason that should always need to be true. We should allow skipping some languages deliberately (e.g., if someone doesn't have clang-format installed, but wants to at least auto-format their Dart and Java changes).
Repository: excalidraw
Issue: Support tablet pressure for more expressive drawing
Labels: freedraw

Not a big deal, but maybe it's simple to do?
Repository: kubernetes
Issue: Kubelet should enforce that static pods do not reference other API objects
Labels: kind/bug,priority/backlog,sig/storage,sig/node,priority/important-longterm,sig/architecture,lifecycle/frozen,triage/needs-information,needs-triage

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


#### What happened:
I put into `/etc/kubernetes/manifests/` one defining a static pod with a `serviceAccount`, because I was wondering if this is supported (the documentation does not say, see https://github.com/kubernetes/website/issues/28611#issuecomment-876537379).  The kubelet created the pod but without giving it the relevant mount.  The kubelet did _not_ create the corresponding mirror pod.

Here is the manifest I created:
```
apiVersion: v1
kind: Pod
metadata:
  name: test5
spec:
  containers:
  - name: bb
    image: busybox
    command:
    - sleep
    - "864001"
  serviceAccountName: default
```
Here are some relevant log entries from the kubelet:
```
Jul 08 15:55:05 init1 kubelet[4229]: I0708 15:55:05.335792    4229 kubelet.go:1681] "Creating a mirror pod for static pod" pod="default/test5-init1"

Jul 08 15:55:05 init1 kubelet[4229]: E0708 15:55:05.343771    4229 kubelet.go:1683] "Failed creating a mirror pod for" err="pods \"test5-init1\" is forbidden: a mirror pod may not reference service accounts" pod="default/test5-init1"
```

#### What you expected to happen:
I expected consistent treatment --- real pod and mirror pod both exist or both do not exist.

#### How to reproduce it (as minimally and precisely as possible):
I think the above is pretty minimal.

#### Anything else we need to know?:

#### Environment:
- Kubernetes version (use `kubectl version`):
  ```
  Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
   Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:53:14Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
  ```
- Cloud provider or hardware configuration: VirtualBox x86_64 VMs with 2 virtual CPUs and 2 GB of memory
- OS (e.g: `cat /etc/os-release`): Ubuntu 20.04.1 LTS
- Kernel (e.g. `uname -a`): `Linux init1 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux`
- Install tools: kubeadm v1.21.2
- Network plugin and version (if this is a network-related bug):
- Others:
Repository: TypeScript
Issue: Conditional types behavior is different when referencing same type with different name
Labels: Bug,Fix Available,Rescheduled

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
conditional types different name 
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information
v4.4.0-beta
<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about *conditional types*

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.4.0-beta#code/C4TwDgpgBAMhBmwA8AtAfFAvFJAVNAFAJRYYG5QQAewEAdgCYDOUKUA-FAIxQBcUAJiIBuAFChIUAEoBLAOYALZOiw58xUlHKUa9Zqw7c+gkaPHhoAUQCOAVwCGAGy5IAGgBooATQzY4iNwxqWkYWWUVkH0NgACdbaH54JyYIMQkrOycBN08ovwRkVyDdUNgCpCjOWPjjJMcUsVEAeiaoOpTzSVcebBsHZyQAb3teJliZOjkAX09BmIh7BgB7OkcQKBGoMZiJ6bRm1uqITuhXAVU+rKGR7d2ZqDmF5dX1zdvJqbQgA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type Left<Z> = <T>() => (T extends Z ? 1 : 2);
type Right<Z> = <T>() => (T extends Z ? 1 : 2);

type Equal1<X, Y> = Left<X> extends Right<Y> ? true : false;
type Equal2<X, Y> = Left<X> extends Left<Y> ? true : false;

// false
type X1 = Equal1<{a:string}, {readonly a: string}>
// true
type X2 = Equal2<{a:string}, {readonly a: string}>
```

### 🙁 Actual behavior
 
`X1` and `X2` is different.

### 🙂 Expected behavior

`X1` and `X2` is the same.

Actually, `Left` and `Right` are the same, `Equal1` and `Equal2` are the same.
But the result of `Equal1` and `Equal2` with the same parameters are different.
Repository: node
Issue: ReadableStream detaches buffer pool (??)
Labels: buffer,web streams

### Version

17.0.0-pre

### Platform

n/a

### Subsystem

stream/web

### What steps will reproduce the bug?

```js
new ReadableStream({
	type: 'bytes',
	start(c) {
		c.enqueue(Buffer.from('hi'));
		c.close();
	},
}).getReader();

Buffer.from('hi!'); // TypeError: Cannot perform Construct on a detached ArrayBuffer
```

cc @jasnell