sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: sum.golang.org: repeated 500 internal server errors when fetching very new versions
Labels: NeedsInvestigation,Tools,proxy.golang.org

We have had four CI jobs fail in the past week due to `sum.golang.org` reporting 500 internal server errors as well as an unexpected EOF.

* https://github.com/cue-lang/cuelang.org/actions/runs/11405713492/job/31737794702
* https://github.com/cue-lang/cuelang.org/actions/runs/11406304337/job/31739760236
* https://github.com/cue-lang/cuelang.org/actions/runs/11494340883/job/31991655336
* https://github.com/cue-lang/cuelang.org/actions/runs/11514929154/job/32054554147

The two types of errors we have seen look like:

> go: cuelang.org/go@v0.11.0-alpha.3.0.20241018144220-537f744a9cc7: verifying go.mod: cuelang.org/go@v0.11.0-alpha.3.0.20241018144220-537f744a9cc7/go.mod: reading https://sum.golang.org/lookup/cuelang.org/go@v0.11.0-alpha.3.0.20241018144220-537f744a9cc7: 500 Internal Server Error

> go: cuelang.org/go@v0.10.1: verifying module: cuelang.org/go@v0.10.1: Get "https://sum.golang.org/lookup/cuelang.org/go@v0.10.1": EOF

These CI jobs are doing what is effectively:

```
go mod init
go get cuelang.org/go@${commitRef}
```

where `${commitRef}` is a commit hash which was just pushed to master.

We are aware that `proxy.golang.org` and `sum.golang.org` may respond with status codes like 404 for the first fifteen to thirty minutes as they discover the new version (https://github.com/golang/go/issues/49916#issuecomment-984839295), but I still assume that the 500 and EOF errors are unexpected and should be fixed.

Moreover, we do dozens of these runs per week, and only very few fail, so `sum.golang.org` often answers these requests correctly without any issue.
Repository: material-ui
Issue: Tabs not scroling to the correct tab after navigation
Labels: component: tabs,enhancement

### Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/still-snow-z385rn

Steps:
1. Add a tabs component with more tabs then the view width can hold
2.  scrollButtons="auto"
3. set the selected tab to a tab outside the view
4. refresh the view an see that the selected tab is only partly in view

Make sure to set browser width smaller then the tabs container.

<img width="699" alt="Screenshot 2024-10-25 at 11 18 35" src="https://github.com/user-attachments/assets/f5fd27b8-5969-485d-8303-8f1aeaff07a8">

You can here see a small green line and the tab is not in view.

With scrollButtons={true} it works

### Current behavior

The selected tab is not in view.

<img width="613" alt="Screenshot 2024-10-25 at 11 10 38" src="https://github.com/user-attachments/assets/70fefd9b-ad12-4eea-bc07-7979fee544ba">


### Expected behavior

The selected tab is in view.

<img width="487" alt="Screenshot 2024-10-25 at 11 11 11" src="https://github.com/user-attachments/assets/d2cc81d3-7bff-41e1-983f-5943aa62836d">


### Context

We have dynamic tabs and device sizes, and we dont want arrows all the time, but not scrolling the selected tab into view is causing out users to be confused, would be nice if the tabs component scrolled to the selected tab

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Browser: Chrome
  System:
    OS: macOS 14.7
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    pnpm: 9.12.2 - ~/.nvm/versions/node/v20.13.1/bin/pnpm
  Browsers:
    Chrome: 130.0.6723.70
    Edge: Not Found
    Safari: 18.0.1
  npmPackages:
    @emotion/react: 11.10.4 => 11.10.4
    @emotion/styled: 11.10.4 => 11.10.4
    @mui/icons-material: 5.16.7 => 5.16.7
    @mui/lab: 5.0.0-alpha.173 => 5.0.0-alpha.173
    @mui/material: 5.16.7 => 5.16.7
    @mui/styles: 5.16.7 => 5.16.7
    @mui/system: 5.16.7 => 5.16.7
    @mui/x-data-grid-premium: 7.20.0 => 7.20.0
    @mui/x-date-pickers: 6.20.2 => 6.20.2
    @mui/x-date-pickers-pro: 6.20.2 => 6.20.2
    @mui/x-license: 7.20.0 => 7.20.0
    @mui/x-tree-view: 7.20.0 => 7.20.0
    @types/react: 18.3.1 => 18.3.1
    react: 18.3.1 => 18.3.1
    react-dom: 18.3.0 => 18.3.0
    typescript: 4.6.4 => 4.6.4
```
</details>


**Search keywords**: tabs scroll
Repository: rust
Issue: Fix JSON output of libtest
Labels: C-feature-request,A-libtest,T-testing-devex

Right now the JSON output of libtest is a bit unusable. It outputs all of the json messages to stdout where they get mixed with the rest of the stdout. 

It would be nice to be able to output it to a file (it shouldn't particularly hard to do since the `OutputFormatter` only requires `Write`) and also to be able to customize what the json formatter outputs. 

@rustbot tag +T-bootrstap
Repository: PowerToys
Issue: Multiple zones spanning across monitors
Labels: Needs-Triage

### Description of the new feature / enhancement

We should be able to span window across multiple zones but across multiple monitors treated like separate ones. I have layout which has all monitors divided into exact quarters - and want add more zones from second one after I have filled the first one all 4 zones but need more width but not like now when all monitors are treated like one rectangle splitted...

### Scenario when this would be used?

For example very wide application use, or for example teamviewer looking on dual monitor setup with all monitors enabled in one window - then I'm able to quickly arrange this window with 2 remote monitors to 2 of my monitors with same resolution and this leads to nice showing of all information from two remote monitors on my physical monitors - also the edge of both physical monitors are like split line between two remote screens

### Supporting information

here the printscreens joined to view quickly the idea... :-)![Image](https://github.com/user-attachments/assets/e2f2deec-4f9b-43b2-b938-4d680ecc81da)
Repository: vscode
Issue: [NETSDKE2E] [Insiders] Asian language localization display anomalies when using tar.gz to install VS Code.
Labels: bug,help wanted,linux

Affected Build:
VS Code 1.95.0-insider
Repro OS: Linux

Steps to Reproduce:

1. Use the tar.gz to install VS Code insiders from https://code.visualstudio.com/insiders/#linux in Linux
2. Change the VS Code language to Asian language like Simple Chinese, Japanese
3. Obverse.

Expected Result:
Asian languages ​​need to be fully localized.
SC:
![Image](https://github.com/user-attachments/assets/96cb2d58-3520-4062-9726-a36e1e74b256)
JP:
![Image](https://github.com/user-attachments/assets/ef260aed-4d35-4c90-9021-aa16b27ff410)
Actual Result:
Asian language localization display anomalies.
SC:
![Image](https://github.com/user-attachments/assets/3cb89083-db26-4ccc-a77e-494e883d7719)
JP:
![Image](https://github.com/user-attachments/assets/fd304a25-115d-46a8-a6d5-016e244ab09f)
Repository: pytorch
Issue: DISABLED test_sdpa_mask_fp16_L6_S17_NH23_HS121 (__main__.TestSDPA)
Labels: triaged,module: flaky-tests,module: macos,skipped,module: mps

Platforms: mac, macos

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_sdpa_mask_fp16_L6_S17_NH23_HS121&suite=TestSDPA&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/32033795652).

Over the past 3 hours, it has been determined flaky in 4 workflow(s) with 4 failures and 4 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_sdpa_mask_fp16_L6_S17_NH23_HS121`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.



<details><summary>Sample error message</summary>

```
Traceback (most recent call last):
  File "/Users/ec2-user/runner/_work/pytorch/pytorch/test/test_mps.py", line 9547, in test_sdpa_mask_fp16_L6_S17_NH23_HS121
    self._test_sdpa_mask(torch.float16, 7, 17, 23, 121)
  File "/Users/ec2-user/runner/_work/pytorch/pytorch/test/test_mps.py", line 9535, in _test_sdpa_mask
    self._compare_tensors(y.cpu(), y_ref)
  File "/Users/ec2-user/runner/_work/pytorch/pytorch/test/test_mps.py", line 9459, in _compare_tensors
    self.assertLess(err, 0.01)
  File "/Users/ec2-user/runner/_work/_temp/conda_environment_11490952968/lib/python3.9/unittest/case.py", line 1223, in assertLess
    self.fail(self._formatMessage(msg, standardMsg))
  File "/Users/ec2-user/runner/_work/_temp/conda_environment_11490952968/lib/python3.9/unittest/case.py", line 676, in fail
    raise self.failureException(msg)
AssertionError: nan not less than 0.01

To execute this test, run the following from the base repo dir:
    python test/test_mps.py TestSDPA.test_sdpa_mask_fp16_L6_S17_NH23_HS121

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```

</details>


Test file path: `test_mps.py`

cc @clee2000 @malfet @albanD @kulinseth @DenisVieriu97 @jhavukainen
Repository: transformers
Issue: Support dynamic batch size
Labels: trainer,Feature request

### Feature request

Hi thanks for the library! When training, I realize that, if a micro batch contains too few tokens, the throughput will be quite bad (i.e. average time per token is large). However, I cannot increase the batch size, because there are long (e.g. 2000 tokens) and short (e.g. 500 tokens) sequences in the training data. The batch size that make short sequences run fast will make long sequences OOM.

Therefore, I am proposing to have dynamic (micro) batch size. For example, suppose we have batch_size=16. Then, before this proposal, we have e.g. micro_batch_size=2 & grad_accum=8. After this proposal, for short sequences, use 4 samples in this micro batch; for long sequences, use 2 samples in this micro batch. After they sum up to 16 samples, we can compute the loss and consider this step is done.

### Motivation

(see above)

### Your contribution

I am happy to PR
Repository: godot
Issue: Could not preload resource file / cyclic dependency ?
Labels: bug,topic:core,topic:gdscript

### Tested versions

Reproductile in: 4.3 stable / 4.4 dev 

### System information

Godot v4.4.dev1 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 32.0.15.6109) - AMD Ryzen 7 2700X Eight-Core Processor (16 Threads)

### Issue description

Some files that I preload and that worked until now decided to stop working (the links are still valid).

This is not the first time that this happens to me on this project, I use a lot of custom resources and adding a single line can sometimes cause this, I've managed to get around the problem so far, but it happened to me again, and I don't know which line caused it.

I have the impression that it is the fact of referencing a class in a cyclical way but I'm not sure and part of the problem is that it's very difficult to know which line causes this (and I get no information about the source of the problem other than the inability to preload files of a certain class)

I think that I can use load instead of preload in most cases, which should solve the problem, but it's a bit annoying to use an approach that works for days and then after a while decides to stop working without warning.

### Steps to reproduce

I'm not sure if this is exactly the problem I have in my project, because the error is not identical but in the minimum project I manage to have the panel that indicates that there is a cyclic reference when I try to assign a resource exported via the inspector.

When I try to preload this same resource I get an error that indicates that the type of the resource is "Resource" (while it is of type ResourceJob) so I think the error message is incorrect and should be the same as the one indicated in the inspector.

### Minimal reproduction project (MRP)

[BugResourcePreload.zip](https://github.com/user-attachments/files/17520664/BugResourcePreload.zip)

I manage to recreate problems by creating custom resource cyclic dependencies, but not exactly the one I get in my project.
In my project I just get the error: Parser Error: Could not preload resource file", I can share it privately if it can help to solve the problem.
Repository: next.js
Issue: shadcn components are not working with next 15
Labels: create-next-app,bug

### Link to the code that reproduces this issue

https://github.com/SARATHKUMAR-T/next15

### To Reproduce

1. create new app with `npx create-next-app@latest`
2. try to install shadcn ui with `npx shadcn@latest init`


### Current vs. Expected behavior

![Screenshot from 2024-10-25 16-04-05](https://github.com/user-attachments/assets/6155f6dd-b665-4e9d-b946-a1813746137b)


### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct  2 16:16:55 UTC 2
  Available memory (MB): 11821
  Available CPU cores: 4
Binaries:
  Node: 20.13.1
  npm: 10.5.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.0.1 // Latest available version is detected (15.0.1).
  eslint-config-next: 15.0.1
  react: 19.0.0-rc-69d4b800-20241021
  react-dom: 19.0.0-rc-69d4b800-20241021
  typescript: 5.6.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

create-next-app, Developer Experience

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: rust
Issue: `Box<str>`. `Arc<str>` and `Rc<str>` should implement `AsRef<[u8]>`, `AsRef<Path>`,  `AsRef<OsStr>`, and `FromStr`
Labels: A-trait-system,T-libs-api,A-inference,C-feature-request

The `String` and `str` type implements `AsRef<str>` and `AsRef<[u8]>`, `AsRef<Path>`, and  `AsRef<OsStr>`.
Conversely, `Box<str>` implements only `AsRef<str>`.
This looks like a miss of opportunity.

`Box<str>` should also implement `AsRef<[u8]>`, `AsRef<Path>`,  `AsRef<OsStr>`, and `FromStr`.
Repository: pytorch
Issue: RuntimeError: "addmm_cuda" not implemented for 'ComplexHalf'
Labels: module: cuda,triaged,module: complex,needs design

### 🐛 Describe the bug

import torch


a = torch.tensor([[1+2j, 3+4j]], dtype=torch.complex32)
b = torch.tensor([[2+3j], [4+5j]], dtype=torch.complex32)


c = a @ b


RuntimeError: "addmm_cuda" not implemented for 'ComplexHalf'

### Versions

torch 2.0.1+cuda11.8

cc @ptrblck @msaroufim @ezyang @anjali411 @dylanbespalko @mruberry @nikitaved @amjames
Repository: godot
Issue: Importing a large 400mb gltf/glb file crashes at 99%
Labels: bug,confirmed,topic:import,crash,topic:3d

### Tested versions

[4.4 dev3](https://godotengine.org/download/archive/4.4-dev3)

### System information

win10 21H2,Vulkan API 1.2.0

### Issue description


![B`}0_G%H8QZC3B3Q}UFUW{D](https://github.com/user-attachments/assets/e83d11cb-9897-4365-b3f1-22a185fc121d)


```
Godot Engine v4.4.dev3.official.f4af8201b - https://godotengine.org
libpng warning: iCCP: cHRM chunk does not match sRGB
Vulkan 1.3.242 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 3080

ERROR: Basis [X: (1, 0, 0), Y: (0, 0, 0), Z: (0, 0, 1)] must be normalized in order to be casted to a Quaternion. Use get_rotation_quaternion() or call orthonormalized() if the Basis contains linearly independent vectors.
   at: (core/math/basis.cpp:725)
ERROR: FATAL: Index p_index = 620 is out of bounds (count = 620).
   at: operator[] (./core/templates/local_vector.h:177)

================================================================
CrashHandlerException: Program crashed with signal 4
Engine version: Godot Engine v4.4.dev3.official (f4af8201bac157b9d47e336203d3e8a8ef729de2)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
[25] error(-1): no debug info in PE/COFF executable
[26] error(-1): no debug info in PE/COFF executable
[27] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================

```

### Steps to reproduce

1. create new project
2. importing glb file
3. 99% crash

### Minimal reproduction project (MRP)

issue page upload file max size 25MB. so, download file look at [this](https://github.com/zedrun00/godot_issue/releases/download/1/Quarry_Slate.glb).
Repository: transformers
Issue: Switch to sdpa_kernel api with newer torch version
Labels: Documentation,Good Second Issue,bug

### System Info

- `transformers` version: 4.45.2
- Platform: Linux-5.15.0-89-generic-x86_64-with-glibc2.35
- Python version: 3.10.14
- Huggingface_hub version: 0.26.1
- Safetensors version: 0.4.5
- Accelerate version: 1.0.1
- Accelerate config:    not found
- PyTorch version (GPU?): 2.5.0+cu124 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: <fill in>
- Using GPU in script?: <fill in>
- GPU type: NVIDIA GeForce RTX 4090


### Who can help?

I noticed that many files in transformers use the older sdp api `torch.backends.cuda.sdp_kernel`. We just discovered a bug in Pytorch 2.5.0 and the old sdp api that would make it run slower https://github.com/pytorch/pytorch/issues/138386

It would be a good idea to update to the new api (`from torch.nn.attention import sdpa_kernel, SDPBackend`) and set the appropriate compile flag to avoid losing as much as 20% of the performance !

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Gist here as a reference example: https://gist.github.com/mobicham/aa1e77689d9cf866cbea2cb75a53a9e4 
More details in the torch issue: https://github.com/pytorch/pytorch/issues/138386

### Expected behavior

Examples using sdp with torch 2.5.0 should run at least as fast as 2.4.1
Repository: PowerToys
Issue: Preview in File Explorer for .txt files Button Inverted
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

Just to mention that in the Explorer file preview for .txt files, I need to deactivate the button for it to work, and when activated, it disables the preview. So, I think the function is simply inverted.

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: pytorch
Issue: Select SDPA backend smartly by `sdp_params` and benchmark results
Labels: triaged,module: sdpa

### 🚀 The feature, motivation and pitch

Right now, the used SDPA backend is selected by a static priority order list:

``` python
std::array<SDPBackend, num_backends> priority_order(sdp_params const& params) {
  constexpr std::array<SDPBackend, num_backends> default_order{
      SDPBackend::flash_attention,
      SDPBackend::efficient_attention,
      SDPBackend::math,
      SDPBackend::cudnn_attention,
      };
  return default_order;
}
```

It was reasonable as `flash_attention` (v2) is universally faster than `efficient_attention` and `math`.

But for some new backends, the order is not always static. Some backends may focus on performance improvement in some specific settings but may not perform well in other settings. As the benchmark results are shown by #137901 , CuDNN will be faster than Flash Attention v3 when `seqlen < 8k`, but the order will be reversed when `seqlen > 8k`.

Can I propose that we use a benchmark result file to build the priority order list for different `sdp_params` settings (e.g., `head_dim`, `seq_len`, `is_causal`, `dtype`, etc.)?

There are two options:

1. We run the complete benchmark for all the possible settings and collect the results to build the priority order mesh. But it will be very hard as the backend performance relies on not only `sdp_params` but also the dependent libraries (CUDA version, CuDNN version) and hardware (GPU arch).
2. **Suggested:** We ask the user to run our benchmark script and cache the result. Then the backend selector loads the cache to determine which backend is better in different `sdp_params` settings. Similar to how the package manager (e.g., `apt`, `dnf`, `pacman`) selects the fastest mirror.

I can lead this effort if people are interested in it :)


### Alternatives

_No response_

### Additional context

_No response_

cc @jbschlosser @bhosmer @cpuhrsch @erichan1 @drisspg @mikaylagawarecki