sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: I have an error when I try to run "npm run build"
Labels: needs triage

I try to use "npm run build", but I have an issue with this.

Creating an optimized production build...
Failed to compile.
static/css/main.82ffb408.css from Css Minimizer plugin 
TypeError: Cannot set properties of undefined (setting 'value')

 I don't know what to do, please help!
Repository: material-ui
Issue: Autocomplete race condition / resets state "at random"
Labels: component: autocomplete

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

It's very hard to replicate, as it depends on the timing of network requests and React renders, but the logic is easily proven faulty via deduction.

Here, you do a shallow equality check:
https://github.com/mui/material-ui/blob/master/packages/mui-base/src/AutocompleteUnstyled/useAutocomplete.js#L199

```
value !== prevValue.current
```

Regardless of the value of `freeSolo`, you call `resetInputValue` as long as the inequality check returns true. In the case `freeSolo` is not in use, you always reset the input. In the case the user is using *objects* for the values instead of strings, this check will *always* return true after a render even if the values are still the same (since it compares by reference) and will reset the input. It needs to do a deep equality check (compare by value)

The result is that after the user (or automated test) enters a keyboard input event and the DOM element updates, MUI internally resets the input and displays "no options" and the user or automated test experiences a defect where an empty input value is observed, and the expected results are hidden.

### Current behavior 😯

Autocomplete randomly resets the input and shows "no results" after a keyboard input event that triggers async requests.

### Expected behavior 🤔

No random flaky failures in my e2e tests because of MUI non deterministically resetting the input.

### Context 🔦

My e2e tests started failing, and I was able to set a conditional breakpoint to confirm my `onInputChange` is being called with `null` event. The stack trace made it apparent this is due to a particular line in the MUI codebase and not something I directly have control over (other than rewriting my code to avoid the use of "objects as values" I suppose).

### Your environment 🌎

n/a
Repository: flutter
Issue: Bring up remaining AXPlatformNodeTextRangeProviderWin unittests
Labels: a: accessibility,platform-windows,a: desktop,P2,team-windows,triaged-windows

Currently, as a result of adding implementations for `TextRangeProvider` and `TextProvider` for [flutter/flutter#11629](https://github.com/flutter/flutter/issues/116219), a few of the unit tests for `AXPlatformNodeTextRangeProviderWin`, as modeled after the Chromium codebase, are left disabled for now, as they refer to or rely on functionality that we lack or do not use, such as certain attribute values or ignored state.  
In particular, I believe we treat text objects and line breaking objects differently than what is assumed in Chromium's existing unit tests. I have changed the boundary behavior for finding enclosing lines and paragraphs to stop if already at a boundary instead of continuing to the final boundary, so that if the carat is at the beginning or end of a text item and the user requests the screen reader narrate the focused text, it will not skip to the previous or next text item. With the test document trees set up as for Chromium, this alters the expectations.
Repository: rust
Issue: Rustdoc should note default-feature in item descriptions
Labels: T-rustdoc,C-enhancement

Currently, if an item is feature-gated (Such as Axum's [Query struct](https://docs.rs/axum/0.6.1/axum/extract/struct.Query.html)), it is noted at the top. That is awesome! However, the `Query` struct is available by default, as the `query` feature is a Cargo default-feature. This is confusing wording IMO.

I think that if that feature is marked as a default feature, that should be noted too. As is the wording: "Available on crate feature FEATURE only." implies it wont work by default.
Repository: react
Issue: [DevTools Bug]: Labels are cut off on Firefox on Ubuntu 22.04
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://github.com/iprotoni/react-skill-assessments

### Repro steps

 the key labels on the right hand pane are cut off whenever using React DevTools on Firefox latest version on Ubuntu 22.04

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: flutter
Issue: [DataTable] [A11y] Improve DataCell communication to screen reader users
Labels: c: new feature,framework,f: material design,a: accessibility,c: proposal,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

Currently the DataCells in Flutter DataTables are announced as the value inside them alone. For example, a cell with number '150' in it would be announced verbatim as '150', which is not very helpful to users. Instead, we would want their corresponding row and column information to be announced together to help make sense of the cell info.

## Proposal
Thanks to @vick08, @konainm, @chunhtai

### Framework:
Add support for row and column semantics heading information.

### Engine:
Call platform specific APIs to instruct screen reader how to announce a table.

For example:
Android: https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionInfo
iOS: https://developer.apple.com/documentation/uikit/uitableview
Repository: flutter
Issue: Document known issues and caveats with FragmentProgram API
Labels: engine,d: api docs,P2,team-engine,triaged-engine

Including:

Coordinate system, uniform optimization (removal), for loop compatiblity, et cetera. This isn't as urgent once the dartdocs link is updated.
Repository: go
Issue: x/playground:  timeout running program but locally it works fine
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?
1.19 on playground

### Does this issue reproduce with the latest release?
yes

### What operating system and processor architecture are you using (`go env`)?
locally where it works fine I use this
```bash
❯ go env                                                                                                                                                                ─╯
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/path/Library/Caches/go-build"
GOENV="/Users/path/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/path/go/pkg/mod"
GOOS="darwin"
GOPATH="/Users/path/go"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_w/9dtgqhsj1n13jrc_tcb_98pw0000gn/T/go-build3103171944=/tmp/go-build -gno-record-gcc-switches -fno-common"
```

### What did you do?
I run this playground https://go.dev/play/p/540B1xaqNzs

### What did you expect to see?
I expect the program to run fine on Playground

### What did you see instead?
Playground throws a weird `timeout running program`, but if I run it locally it works just fine.
Repository: storybook
Issue: [Bug]: When Storybook crashes while building, it doesn't notify the user on the browser
Labels: bug,core

### Describe the bug

When building a Storybook with broken code, it opens the browser, and kind of loads, but the server crashes before building everything, yet you get a white Storybook, that is interactive and looks like it’s kinda working:

![image](https://user-images.githubusercontent.com/1671563/207452864-bdd30fc7-ac7b-4bf5-8fb1-13aa0c359f71.png)

Ideally, the error should be displayed, or at least a message telling the user that Storybook was disconnected and they should fix the code and rerun it.

### To Reproduce

```shell
Access this branch:
https://github.com/storybookjs/component-catalog/compare/feat/sb-7.0?expand=1

And run Storybook
```


### System

_No response_

### Additional context

_No response_
Repository: deno
Issue: Type checking npm compat import without types errors via `deno check`, but not in the lsp
Labels: bug,node compat

Hi! As mentioned in https://github.com/denoland/deno/issues/15960 I'm opening a new issue to talk about this issue I'm having.

Is the task "[ ] automatic acquisition of @types package for type checking" related to type checking npm specifier imports? I'm getting errors such as:

```
TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'Box3'.
import { Box3, Layers, PerspectiveCamera as PC, Vector3, Vector3Tuple } from 'three';
         ~~~~
    at file:///Users/douges/projects/FAZE/packages/editor-frontend/src/canvas.tsx:4:10
```

It type checks fine in VSCode, just not with `deno check`. Is there anything on my end to do for a fix?

My deno.json:

```
{
  "importMap": "./import_map.json",
  "tasks": {
    "editor": "deno run --allow-run packages/editor-cli/mod.ts",
    "check": "deno run --allow-read --allow-write --allow-run scripts/check.ts"
  },
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "react",
    "lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"],
    "types": ["vite/client", "./types/vite.d.ts"]
  }
}
```

My import_map.json:

```
{
  "imports": {
    "@faze/editor-backend": "./packages/editor-backend/mod.ts",
    "@faze/editor-cli": "./packages/editor-cli/mod.ts",
    "@faze/editor-frontend": "./packages/editor-frontend/mod.ts",
    "@react-three/drei": "npm:@react-three/drei@9.45.0",
    "@react-three/fiber": "npm:@react-three/fiber@8.9.1",
    "react-dom": "npm:react-dom@18.2.0",
    "react-dom/client": "npm:react-dom@18.2.0/client",
    "react-router-dom": "npm:react-router-dom@6.4.4",
    "react": "npm:react@18.2.0",
    "react/jsx-runtime": "npm:react@18.2.0/jsx-runtime",
    "three": "npm:three@0.144.0",
    "three-stdlib": "npm:three-stdlib@2.20.4"
  }
}
```
Repository: youtube-dl
Issue: Support https://pac-12.com
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.12.17. 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.12.17**
- [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://pac-12.com/videos/2020-pac-12-womens-basketball-media-day-arizona-cal-stanford
- Single video: https://pac-12.com/article/2020/11/24/sonoran-dog-dish-presented-tums
- Playlist: Site does not have playlists


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

pac-12.com is the Pac-12 Conference web site. It hosts a variety of static free videos and free livestreams of Pac-12 sports events. There are also links to pay channels, but I don't expect youtube-dl to support those.

I have sent a pull request for a youtube-dl extractor that supports the free streams on this site: https://github.com/ytdl-org/youtube-dl/pull/28157

Note: My extractor generally works, but sometimes when a livestream starts with a commercial, youtube-dl captures the audio only of the commercial; the audio of the stream itself is not captured. I'd appreciate any suggestions on debugging or workarounds. This is hard to debug because it can only be reproduced while a live sporting event is in progress.
Repository: flutter
Issue: [web:payload] move brotli dictionary into a lazy-loaded file
Labels: engine,a: size,platform-web,perf: app size,P2,team-web,triaged-web

Flutter Web uses Brotli behind-the-scenes to uncompress WOFF2 font files. Most of the payload cost in Brotli comes from its [dictionary](https://github.com/google/brotli/blob/master/c/common/dictionary.c). Currently, the dictionary is hard-coded into C++ as one big byte array. If we could find a way to move it out of C++ and into its own binary file, we would not need to load it until the app loads its first WOFF2 font. A carefully optimized app could avoid WOFF2 fonts for their first frame entirely.
Repository: flutter
Issue: [web] Perf: computePhysicalSize called twice from _metricsDidChange
Labels: engine,c: performance,platform-web,P2,team-web,triaged-web

`_metricsDidChange` contains [logic](https://github.com/flutter/engine/blob/0baa4b5b3af37a53ba8e29fd4712d46139fa9695/lib/web_ui/lib/src/engine/embedder.dart#L401) for detecting rotation when screen metrics change. `isRotation()` method calls `computePhysicalSize` to get the new physical screen size. Then later in the `else` branch calls it again to get the same data. This is wasteful. Since `isRotation` is only used by the `FlutterViewEmbedder` we should be able to inline it into `_metricsDidChange` and optimize it.
Repository: storybook
Issue: [Bug]: argTypes used with Object.create doesn't work but spread does
Labels: bug,has workaround,needs triage

### Describe the bug

I am attempting to create a custom argType for examples in a story.



The following code does not work:

```
const defaultArgTypes = {
  test: {
    control: {
      options: {
        test: 'test',
      },
    },
  },
};
// ...more code
export const AlertWithIcon: Story<AlertProps> = Template.bind({});
AlertWithIcon.argTypes = Object.create(defaultArgTypes);
```

The following code does work:

```
const defaultArgTypes = {
  test: {
    control: {
      options: {
        test: 'test',
      },
    },
  },
};
// ...more code
export const DefaultAlert: Story<AlertProps> = Template.bind({});
DefaultAlert.argTypes = { ...defaultArgTypes };
```
Looks like this when it works in the browser:
<img width="726" alt="image" src="https://user-images.githubusercontent.com/10507098/207493682-9f9f65e8-9c27-41a7-a1a3-fb0923d7d1df.png">

The reason I wish to use `Object.create` is to save on memory when reusing the same properties on the default argType object.

```
    "@storybook/addon-a11y": "^6.4.19",
    "@storybook/addon-actions": "^6.3.12",
    "@storybook/addon-essentials": "^6.3.12",
    "@storybook/addon-links": "^6.3.12",
    "@storybook/addon-storysource": "^6.4.19",
    "@storybook/react": "6.4.20",
```




### To Reproduce

```shell
.
```


### System

```shell
Environment Info:

  System:
    OS: macOS 12.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
```


### Additional context

.
Repository: PowerToys
Issue: ctrl + left/right will cause failure
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.65.0

### Installation method

Microsoft Store

### Running as admin

None

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

map CapsLock to right ctrl, then map right ctrl + w/a/s/d to up/left/down/right and right ctrl + q/e to left ctrl + left/right.
when long press CapsLock, click w/a/s/d,  then click q/e will failure, it becomes type q/e into editor.

![20221214_111348](https://user-images.githubusercontent.com/2688923/207496472-2177e60e-b5e5-4553-b3db-b4381615e228.gif)


### ✔️ Expected Behavior

It should type up/down/left/right ctrl+left ctrl+right

### ❌ Actual Behavior

It typed w/a/s/d/e/q

### Other Software

_No response_
Repository: rust
Issue: Type annotations needed for type alias that refers to associated type on trait
Labels: A-trait-system,A-associated-items,T-compiler,A-inference,C-discussion,T-types

<!--
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.
-->

I tried this code:

```rust
enum Foo<A> {
    A(A)
}

trait Baz {
    type A;
}

type Bar<B> = Foo<<B as Baz>::A>;

struct Impl {
    bar: Bar<Self> 
}

impl Baz for Impl {
    type A = String;    
}

fn main() {
    
    let s = Impl {
        bar: Bar::A(String::new())
    };
    
}
```

Playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=97b88d916216f04a93c1d24ca2a4f558

I expected to see this happen: It compiles without issues.

Instead, this happened:

```
Compiling playground v0.0.1 (/playground)
error[[E0284]](https://doc.rust-lang.org/stable/error-index.html#E0284): type annotations needed
  --> src/main.rs:22:14
   |
22 |         bar: Bar::A(String::new())
   |              ^^^ cannot infer type for type parameter `B` declared on the type alias `Bar`
   |
   = note: cannot satisfy `<_ as Baz>::A == String`

For more information about this error, try `rustc --explain E0284`.
error: could not compile `playground` due to previous error
```

Unless I am missing something, the type of `Impl::Bar` is defined unambiguously to be `Foo<String>`. It works once you add the type annotation:

```rust
let s = Impl {
	bar: Bar::<Impl>::A(String::new())
};
```

### 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.
-->

The problem is reproducible for stable, beta and nightly (tried in playground).

`rustc --version --verbose`:
```
rustc 1.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: x86_64-unknown-linux-gnu
release: 1.65.0
LLVM version: 15.0.0
```
Repository: vscode
Issue: Git - Add the way to display the number of additions and removal of lines 
Labels: feature-request,git

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

### Current behavior
It just display `A`, `R`, `M`, `D`

### Expected behavior
There should be the ability to display the number of modified rows.

For example the left side is Bitbucket PR review:

<img width="652" alt="image" src="https://user-images.githubusercontent.com/890063/207503778-e98c7b23-5658-42f6-9ee8-e7313f258abb.png">
Repository: pytorch
Issue: Support `divmod` for tensors
Labels: triaged,module: numpy

### 🚀 The feature, motivation and pitch

Python has a nice builtin function called `divmod` defined as `divmod(x, y) = (x // y, x % y)`. There are some previous issues about supporting it in pytorch https://github.com/pytorch/pytorch/pull/20979 and https://github.com/pytorch/pytorch/issues/18627 but they appear to only work on integers and not tensors.

For example, in pytorch (1.11) I get the following error:
```
>>> ti = torch.randint(10, size=(3,3))
>>> divmod(i, 3)
TypeError: unsupported operand type(s) for divmod(): 'Tensor' and 'int'
```

whereas in numpy I can do this without issue:
```
>>> ni = np.random.randint(10, size=(3,3))
>>> divmod(ni,3)
(array([[2, 3, 0],
        [2, 3, 1],
        [2, 1, 0]]),
 array([[2, 0, 1],
        [2, 0, 1],
        [0, 1, 1]]))
```



### Alternatives

Alternatively pytorch could support a `tensor.divmod` method, but I think it makes more sense to just follow the standard Python API.

### Additional context

One may have to think about how broadcasting would work if you called `divmod(x, y)` where both `x` and `y` were tensors. However, in general it should probably just follow the equation above `divmod(x, y) = (x // y, x % y)`.

cc @mruberry @rgommers
Repository: vscode
Issue: Better placeholder for Command Center
Labels: feature-request,polish,command-center

In user research for command center we found that its placeholder `🔎 Search` might prime users that it is only useful for file search and navigation. While many searched, we have seen very few users using it for executing commands.

This issue is about exploring how we might change the icon and placeholder that better communicates the rich features of the command center while not becoming too busy.

cc @daviddossett @jrieken
Repository: pytorch
Issue: Support for Pylint
Labels: module: lint,triaged

### 🚀 The feature, motivation and pitch

Using linters is crucial for code safety and clarity. One of the commonly used linters Pylint (e.g. default for Visual Studio Code), fails to find members in the `torch` module as these are supposedly generated (see https://github.com/PyCQA/pylint/issues/7937).  

### Alternatives

Pylint supports external C libraries through the use of the `--extension-pkg-allow-list` option, and this works well e.g. for NumPy, but not for PyTorch.
The common solution people use is to completely ignore `torch` members by using `--generated-members=numpy.*,torch.*`, which is like using no linting for PyTorch at all.

### Additional context

This issue has been repeatedly brought up with no solution, see https://github.com/pytorch/pytorch/issues/24807, https://github.com/pytorch/pytorch/issues/1942, https://github.com/pytorch/pytorch/issues/701. PyLint devs claim they are unable to receive member information from PyTorch, see https://github.com/PyCQA/pylint/issues/7937.