sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Upgrade guide references @material-ui/core@^4.11.2 why?
Labels: package: material-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Is this required? @material-ui/core@^4.11.2 in v5?

Steps:

1. npm install @material-ui/core@^4.11.2 react@^17.0.0

However on yarn install I get v5 upgrade notices.


### Current behavior 😯

N/A

### Expected behavior 🤔

N/A

### Context 🔦

N/A

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: Light-only mode in CanvasItemMaterial makes tile disappear in Tilemap/Tileset editor
Labels: bug,topic:rendering,topic:editor,topic:2d

### Godot version

v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3640) - Intel(R) Xeon(R) CPU           W3530  @ 2.80GHz (4 Threads)

### Issue description

The same problem as reported in issue #44559 - except it happens when setting light mode for tiles in tileset editor. Affects only tileset and tilemap editors preview, tiles are visible on scenes and in-game. All tiles sharing the same material are affected.

### Steps to reproduce

1. Create TileMap
2. Create TileSet
3. import a tileset bitmap and select a tile/multiple tiles
4. Add CanvasItemMaterial 
5. Set the light mode in the material to light only



### Minimal reproduction project

N/A
Repository: TypeScript
Issue: Allow `readonly` with `accessor`
Labels: Suggestion,Revisit

### 🔍 Search Terms

accessor
decorator
readonly

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Add `readonly` as a modifier for `accessor` fields.

### 📃 Motivating Example

Suppose you have an injection framework with `@provides`, `@consumes`, and `@inject`. Consider the example

```ts
class A {
  @provides(Number)
  readonly value: number;

  @inject([Number])
  accessor b = new B();

  constructor(value: number) {
    this.value = value;
  }
}

class B {
  @consumes(Number)
  readonly value: number;
}
```

Note because `@provides` is a field decorator, it cannot know when `value` is assigned unless it's in the initializer. As a consequence, `b` will not have `value` injected since `@provides` doesn't know when to reinject. This is fixed if you do

```ts
class A {
  @provides(Number)
  readonly accessor value: number;

  @inject([Number])
  accessor b = new B();

  constructor(value: number) {
    this.value = value;
  }
}

class B {
  @consumes(Number)
  readonly value: number;
}
```

### 💻 Use Cases

1. What do you want to use this for?
Accessor declarations that shouldn't be modified after being used in the constructor.
2. What shortcomings exist with current approaches?
You can only mark a field with `@readonly` using JSDoc and just hope that other developers don't touch the field.
3. What workarounds are you using in the meantime?
`@readonly` using JSDoc
Repository: PowerToys
Issue: Powertoys Window in Windows 10
Labels: Issue-Bug,Product-Settings,Area-User Interface,Priority-3

### Microsoft PowerToys version

0.72.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Settings, Welcome / PowerToys Tour window

### Steps to reproduce

When I start Powertoys settings, in Windows 11 the Window is shown correct.
But on my Windows 10 systems, the Window appears not fully shown. The edge on top does not show the blue lining. 

### ✔️ Expected Behavior

The blue lining should surround the window on all sides, like on my Windows 11 systems

### ❌ Actual Behavior

On my Windows 10 systems, the blue lining on top is missing

### Other Software

![20230807 Powertoys Windows 10](https://github.com/microsoft/PowerToys/assets/78240788/7d03f0e9-4a5a-4f6c-a209-6921cac036cf)
Repository: vscode
Issue: 1.81.0 Broke indentation styles
Labels: bug,editor-indent-guides,regression

<!-- ⚠️⚠️ 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?: Yes/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: 1.81.0
- OS Version: Mac

Steps to Reproduce:

Before this update in settings i had 
```
"editorIndentGuide.activeBackground": "#798092",
"editorIndentGuide.background": "#00000000",
```

Now with this new update i cant use `"editorIndentGuide.background": "#00000000",` with value 00000000 because it does not show the `798092`

The only way i can see that line now is if i enable other lines but i dont want that, i want like it was before so i dont see red lines and only see green line 

<img width="1019" alt="image" src="https://github.com/microsoft/vscode/assets/36937039/13512ee9-dad8-41e2-9f88-ddf7e2302432">


Here i enable my style that hides the line because of last 00 alpha values but it hides everything now...
<img width="966" alt="image" src="https://github.com/microsoft/vscode/assets/36937039/3a719f8e-e443-4262-93a0-18a1d967e238">
Repository: next.js
Issue: beforeInteractive scripts duplicated during SSR
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64
    Binaries:
      Node: 16.15.0
      npm: 8.5.5
      Yarn: 1.22.19
      pnpm: 8.5.1
    Relevant packages:
      next: 12.3.4
      eslint-config-next: 12.3.4
      react: 17.0.2
      react-dom: 17.0.2
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Script optimization (next/script)

### Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/next-js-duplicated-beforeinteractive-scripts-x2r8k3?file=%2Fapp%2Fpage.tsx%3A1%2C1

### To Reproduce

Render the same `<Script strategy="beforeInteractive">` more than once within a single page. The script will be inserted that many times into the page, so will execute that many times on the browser.

### Describe the Bug

During SSR, `<Script strategy="beforeInteractive" />` renders a `<script>` into the page without de-duping, so the same script executes multiple times on the client. This may occur if a component that renders the `<Script>` is rendered more than once in the component tree.

### Expected Behavior

Only one `<script>` should be rendered to the page during SSR, no matter how many times a `<Script>` is rendered with the same `id` or `src`

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: go
Issue: proposal: reflect: package reflection
Labels: Proposal

## Proposal

I'd like to propose basic **package reflection** in `reflect` to support discovery of types, functions, and variables in a package.

Similar to how value reflection allows discovery of methods and fields given a struct value; package reflection should allow discovery of functions, variables, and types given a package.

## Problem

This closes a gap that exists today where code using `reflect` must be "pre-loaded" with the types it should know about, making every new type, function, or variable that "wants" to be reflected first register itself with the reflector. This is not up to the standard of how reflection of structs works, where reflecting code can iterate over every struct field and method.

## Example Usage

One possibility is to retrieve a package from an "anchor" type:

```go
import "reflect"
import "time"

t := reflect.TypeOf(time.Time{})
p := t.Package() // Returns a reflect.Package
```

Another, which uses a modified syntax, allows direct retrieval:

```go
import "reflect"
import "time"

p = reflect.PackageOf(time) // Returns a reflect.Package
```

## Example Interface

A `reflect.Package` might respond to similar calls as a `reflect.Value`:

```go
type Package interface {
	// Equal reports true if p is equal to q.
	// For two invalid packages, Equal will report true.
	// Otherwise, Equal will report true if p and q
	// refer to the same package.
	Equal(q Package) bool
	// Function returns a function value corresponding to p's i'th function.
	// Function panics if i is out of range.
	Function(i int) Value
	// FunctionByName returns a function value corresponding to the function
	// of p with the given name.
	// It returns the zero Value if no function was found.
	FunctionByName(name string) Value
	// NumFunction returns the number of functions in the package p.
	NumFunction() int
	// NumType returns the number of types in the package p.
	NumType() int
	// NumVar returns the number of fields in the package p.
	NumVar() int
	// PkgPath returns a defined package's path, that is, the import path
	// that uniquely identifies the package, such as "encoding/base64".
	Path() string
	// String returns a string representation of the package.
	// The string representation may use shortened package names
	// (e.g., base64 instead of "encoding/base64") and is not
	// guaranteed to be unique among types.
	// To test for package identity, compare the Packages directly.
	String() string
	// Type returns a type corresponding to p's i'th type.
	// Type panics if i is out of range.
	Type(i int) Type
	// TypeByName returns a type value corresponding to the type
	// of p with the given name.
	// It returns the zero value if no type was found.
	TypeByName(name string) Type
	// Var returns the i'th variable of the package p.
	// It panics if i is out of range.
	Var(i int) Value
	// VarByName returns the package variable with the given name.
	// It returns the zero Value if no variable was found.
	VarByName(name string) Value
}
```
Repository: go
Issue: proposal: compress/gzip: return different error for trailing garbage
Labels: NeedsInvestigation

Hello,
Regarding #47809 ,  would you consider returning a different err ? 
"gzip: invalid header" can be quite misleading when the error is actually because of trailing garbage.
Repository: tauri
Issue: [bug] Repeated error prompts when launching tauri2 on Android
Labels: type: bug,status: needs triage,platform: Android

### Describe the bug

I'm trying to build tauri application on android platform, however I experienced repeated error while even using the sample code of vite.

The repeated error seems like this:

```
08-07 03:02:31.308  5392  5443 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
```

For the sample code for vite, such error kept showing when I'm typing in the inputbox.

### Reproduction

1. Init tauri2 and android plugin, using vite + ts template. (This is my route, and I suggest that it's not because of the frontend framework.)
2. Running tauri2 on android for development.
3. Try to type something into the input-box.

Then the terminal kept printing ```E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5```.

### Expected behavior

For the vite template, there should be a greeting message after click on the button, but probably because of the error, nothing happens.

### Platform and versions

```text
yarn run v1.22.19
$ tauri info

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 115.0.1901.188
    ✔ MSVC: Visual Studio ���ɹ��� 2022
    ✔ rustc: 1.70.0 (90c541806 2023-05-31)
    ✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.13.0
    - pnpm: 8.6.12
    - yarn: 1.22.19
    - npm: 9.7.1

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.10
    - tauri-build [RUST]: 2.0.0-alpha.6
    - wry [RUST]: 0.28.3
    - tao [RUST]: 0.19.1
    - @tauri-apps/api [NPM]: 2.0.0-alpha.5
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.10

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - bundler: Vite
```


### Stack trace

```text
There's no stack-trace.
```


### Additional context

I cannot find a similar issue on my side, so if there's already one, please tell me and I'll close this issue.
Repository: material-ui
Issue: [Popover] Styled Components engine ignores sx property in slotProps
Labels: bug 🐛,component: Popover,package: styled-engine-sc

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/styled-components-forked-rcl437

Steps:

1. Click on the Button to open the popover


### Current behavior 😯

The background color of the Popover is white

### Expected behavior 🤔

The background color of the Popover is red

### Context 🔦

I'm trying to use Popover API to style my components, but the sx property in slotProps.paper is not working if I'm using the styled-components style engine.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: Windows 10 10.0.22621
  Binaries:
    Node: 20.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 115
    Edge: Spartan (44.22621.1992.0), Chromium (115.0.1901.188)
  npmPackages:
    @mui/base:  5.0.0-beta.9
    @mui/core-downloads-tracker:  5.14.3
    @mui/material: ^5.14.3 => 5.14.3
    @mui/private-theming:  5.13.7
    @mui/styled-engine: ^5.13.2 => 5.13.2
    @mui/styled-engine-sc: ^5.12.0 => 5.12.0
    @mui/system:  5.14.3
    @mui/types:  7.2.4
    @mui/utils: ^5.14.3 => 5.14.3
    @mui/x-date-pickers:  5.0.20
    @mui/x-date-pickers-pro: ^5.0.4 => 5.0.20
    @mui/x-license-pro: ^6.9.0 => 6.10.2
    @types/react: ^18.2.18 => 18.2.18
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    styled-components: ^5.3.11 => 5.3.11
    typescript:  4.9.5

```
</details>
Repository: pytorch
Issue: torch.polygamma inconsistent with scipy.special.polygamma for n >= 1
Labels: triaged,module: numpy,module: special

kshitij12345 raised an issue two years ago concerning the fact that pytorch's implementation of the 1st order polygamma function incorrectly produces finite values for negative integers. The issue was closed, but the issue still seems to be present in the latest nightlies and the latest release of pytorch.

> n = 1
> 
> ```python
> >>> t = torch.tensor([-1.])
> >>> torch.polygamma(1, t)
> tensor([1.2914e+15])
> >>> scipy.special.polygamma(1, t.numpy())
> array([inf], dtype=float32)
> 
> >>> t = torch.tensor([-501.])
> >>> torch.polygamma(1, t)
> tensor([2.0831e+09])
> >>> scipy.special.polygamma(1, t.numpy())
> array([inf], dtype=float32)
> 
> >>> t = torch.tensor([-float('inf')])
> >>> torch.polygamma(1, t)
> tensor([nan])
> >>> scipy.special.polygamma(1, t.numpy())
> array([inf], dtype=float32)
> >>> 
> ```
> 
> n > 1
> 
> ```python
> >>> t = torch.tensor([float('inf')])
> >>> torch.polygamma(2, t)
> tensor([nan])
> >>> scipy.special.polygamma(2, t.numpy())
> array([-0.], dtype=float32)
> >>> torch.polygamma(3, t)
> tensor([nan])
> >>> scipy.special.polygamma(3, t.numpy())
> array([0.], dtype=float32)
> >>> torch.polygamma(4, t)
> tensor([nan])
> >>> scipy.special.polygamma(4, t.numpy())
> array([-0.], dtype=float32)
> ```
> 
> cc @mruberry @rgommers @kshitij12345


_Originally posted in https://github.com/pytorch/pytorch/issues/55357
Repository: stable-diffusion-webui
Issue: How do I use GPU distributed on inference?
Labels: question

### Is there an existing issue for this?

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

### What happened?

I have 8 GPUs now, but only one GPU is running when I actually reason .

else an error opened: 
OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

### Steps to reproduce the problem

OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

### What should have happened?

OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

### Version or Commit where the problem happens

1.2.3

### What Python version are you running on ?

None

### What platforms do you use to access the UI ?

_No response_

### What device are you running WebUI on?

_No response_

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
```


### List of extensions

OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

### Console logs

```Shell
OutOfMemoryError: CUDA out of memory. Tried to allocate 21.97 GiB (GPU 0; 31.75 GiB total capacity; 24.92 GiB already allocated; 5.61 GiB free; 24.93 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
```


### Additional information

_No response_
Repository: go
Issue: proposal: spec: type inference for union of functions
Labels: Proposal,TypeInference

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

### Context

Type inference is a powerful feature where Go can infer generic types based on usage. In the following example, the `RPC(Hello)` function is able to infer types based on the function signature. 

```go
func RPC[In, Out any, Fn Func[In, Out]](fn Fn) http.Handler {
  return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    var in In
    if err := json.NewDecoder(r.Body).Decode(&in); err != nil {
      http.Error(w, err.Error(), http.StatusBadRequest)
      return
    }
    out, err := fn(&in)
    if err != nil {
      http.Error(w, err.Error(), http.StatusInternalServerError)
      return
    }
    if err := json.NewEncoder(w).Encode(out); err != nil {
      http.Error(w, err.Error(), http.StatusInternalServerError)
      return
    }
  })
}

type HelloIn struct {
}

type HelloOut struct {
}

func Hello(in *HelloIn) (*HelloOut, error) {
  return &HelloOut{}, nil
}

// Usage
mux := http.NewServeMux()
mux.Handle("/hello", RPC(Hello))
```

The long-form equivalent is `RPC[HelloIn, HelloOut](Hello)`. This also works with type constraints when you have a single type. In the following example, we introduce a `Func` constraint:

```go
type Func[In, Out any] interface {
  func(in *In) (*Out, error)
}
```

Then adjusting the RPC function to the following:

```go
func RPC[In, Out any, Fn Func[In, Out]](fn Fn) http.Handler {
  // ...
}
```

And type inference continues to work as expected.

### Problem

If you introduce another type like the following:

```go
type Func[In, Out any] interface {
  func(in *In) (*Out, error) | func(ctx context.Context, in *In) (*Out, error)
}
```

Then type inference no longer works. You'll be greeted with:

```
./main.go:66:26: cannot infer In 
```

To fix this, you need to specify the types:

```go
// Usage
mux := http.NewServeMux()
mux.Handle("/hello", RPC[HelloIn, HelloOut](Hello))
```

### Proposal

It'd be great if type inference could infer more complex types. It does seem to work with basic type constraints, which is awesome:

```go

type StringOrInt interface {
	string | int
}

func print[T StringOrInt](t T) {
	switch t := any(t).(type) {
	case string:
		println(t)
	case int:
		println(t)
	}
}

// usage
print(10) // works!
print("hello") // works!
```

Could this be extended to support more complex types?

---

Thanks for your consideration!
Repository: flutter
Issue: [local_auth] Add localizedCancelTitle support for iOS
Labels: platform-ios,a: internationalization,p: local_auth,package,c: proposal,P2,has partial patch,team-ios,triaged-ios

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

iOS local auth dialog is not fully localised with respect to system API, see (https://developer.apple.com/documentation/localauthentication/lacontext/1643658-localizedcanceltitle).

### Proposal

Add localizedCancelTitle support for iOS.
Repository: flutter
Issue: Proposal - Implement a way to tree shake constant icon font files (when there is dynamic use for others)
Labels: tool,c: proposal,P2,team-tool,triaged-tool

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

We have dynamic use of the Material Icon font so we can't tree shake that font file. It would be really useful to be able to tree shake the other fonts (e.g. Cupertino and Ionicons in our case) to minimize the Web bundle in particular.

### Proposal

For Flutter to be able to dynamically tree shake icon files that have const usage and to leave the other font files at their full scope.