sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: FlatList is not rendering the complete list of items.
Labels: Component: FlatList,Needs: Triage :mag:,Needs: Repro

### Description

It seems that there is a bug on the  react-native flatlist while trying to render a list of items. Sometimes only some of the list items are displayed.
When there are interactions such as state changes, there is an update in the list and all the list items are displayed properly.

### React Native Version

0.72.4

### Output of `npx react-native info`

System:
Binaries:
  Node:
    version: 16.20.0
  Yarn:
    version: 1.22.19
  npm:
    version: 8.19.4

SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.2
      - iOS 16.2
      - macOS 13.1
      - tvOS 16.1
      - watchOS 9.1
  Android SDK:
    API Levels:
      - "23"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
    Build Tools:
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 34.0.0

Languages:
  Java:
    version: 11.0.15
  Ruby:
    version: 2.6.10
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.4
    wanted: 0.72.4
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

### Steps to reproduce

We are using a FlatList to render a List of 500-1000 items based on a dynamic response. We are updating the states based on navigations and data filter.
However sometimes in the initial load of the page the Flatlist is rendering only 5 items and it is unable to render the remaining items when scrolling down.

When there are state changes after initial load of data, there is an update in the list and all the data items are displayed properly.



### Snack, screenshot, or link to a repository

Attaching an example link only for depicting the flatlist configuration we use.
https://stackoverflow.com/questions/77036267/issue-flatlist-rendering-only-few-items-in-the-list
Repository: vscode
Issue: npm extension: simply package manager detection, remove module dependencies
Labels: tasks,debt

The npm extension uses node modules `find-up` and `find-yarn-workspace-root` to find the lock files for yarn and pnpm.

Both node modules now use ESM in their latest version, making it more diffcult to updae.

I think the easiest is to not use the node modules. Simplify the logic and implement the `find up` ourselves. This could be done by using our file system providers so that it  works for non-`file` URIs as well
Repository: storybook
Issue: [Bug]: storybook is creating components.d.ts file in vue3 - javascript project
Labels: bug,needs triage

### Describe the bug

I installed with `pnpm dlx storybook@latest init` storybook to the system;
vue: ^3.3.4,
vite: ^4.4.6,
pnpm: 8.16.22,
node: 18.17.0

Project includes vue 3 and javascript. However, when i run `pnpm run storybook`, storybook is creating components.d.ts file which is a typescript file and i cannot remove it because it always creates when i run storybook. How can i install javascript version of storybook? Since it is changing also other packages as you can see in screenshot below.


![Screenshot 2023-09-13 at 15 30 30](https://github.com/storybookjs/storybook/assets/40266538/ce4c86af-a518-4427-81c5-c7be4b85cb42)





### To Reproduce

_No response_

### System

```bash
Environment Info:

  System:
    OS: macOS 13.5.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 16.6
  npmPackages:
    @storybook/addon-essentials: ^7.4.1 => 7.4.1 
    @storybook/addon-interactions: ^7.4.1 => 7.4.1 
    @storybook/addon-links: ^7.4.1 => 7.4.1 
    @storybook/blocks: ^7.4.1 => 7.4.1 
    @storybook/testing-library: ^0.2.0 => 0.2.0 
    @storybook/vue3: ^7.4.1 => 7.4.1 
    @storybook/vue3-vite: ^7.4.1 => 7.4.1
```


### Additional context

_No response_
Repository: godot
Issue: Inconsistent combination of tilemap and audio player crashes release build when changing/reloading scenes
Labels: bug,topic:audio,crash,topic:gui

### Godot version

v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.3699) - AMD Ryzen Threadripper 3970X 32-Core Processor (64 Threads)

### Issue description

I am running into a strange issue where a seemingly arbitrary tilemap size causes a crash when calling `reload_current_scene()`. This happens only on release builds of the project; debug builds and running it in editor works perfectly fine. I have an autoloaded `AudioStreamPlayer` for playing music which also seems to increase the chance of crash by a noticeable amount, but it does not guarantee a crash either.

If I run it using `gdb`, it seems to prevent the crash as well. It spits out a `ERROR: Condition "slot >= slot_max" is true. Returning: nullptr` error, but this doesn't seem to impact whether it crashes or not, as it happens whether I have a tilemap or not, and if it's a functioning size or not.

A screenshot of a _**working**_ tilemap size:
![image](https://github.com/godotengine/godot/assets/7411742/f5f7a0d9-91e9-4ff8-a484-98d26e4c3e30)

One that breaks it:
![image](https://github.com/godotengine/godot/assets/7411742/cfceaf7d-8fab-4369-bd39-ed4dadb4d477)

It's also not a hard cutoff to crash; it seems below a certain size, it never crashes, and then it increases likelihood to crash as it grows.

I wanted to see if there was any insight before trying to get a minimal repro for this, as it has been a PITA to narrow down. I don't mind uploading the full project where it is crashing if that is okay.

### Steps to reproduce

1. Will add repro-steps with minimal reproduction project if needed.

### Minimal reproduction project

Can add if needed
Repository: electron
Issue: [Feature Request]: load preload scripts in `iframe` with src=about:blank and load preload script in Web Workers
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

I've seen the Electron source code and there is a limitation to loading a preload script into an `iframe` using `src=about:blank`. There is also no option to enable preload script loading in Web Workers.

### Proposed Solution

Add flags to allow these things.

### Alternatives Considered

No alternatives.

### Additional Information

_No response_
Repository: flutter
Issue: Flutter should support capturing the mouse pointer
Labels: c: new feature,framework,f: gestures,c: proposal,P3,team-framework,triaged-framework

### 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

I'm trying to implement a "zoom" feature in my app and i really find the one in Ableton Live to have the best feel/UX. 

https://github.com/flutter/flutter/assets/32097135/5805b167-b254-4fdc-ac1d-046be0522238

Notice that the mouse cursor disappears on what would be the Flutter Listener's onPointerDown equivalent, and then I can move the mouse as much as I have space on my desk upwards, while normally the cursor would quickly hit the top of my screen.

This is how it looks like in my app. The Listener's onPointerMove is limited by the screen's real estate. 

https://github.com/flutter/flutter/assets/32097135/7c42af36-4fd8-4a4e-96ca-fc7b9f90cc67

### Proposal

Any ideas on how I could "hide" the cursor in flutter and count the mouse travelled distance pixels in a virtually infinite space?
Repository: transformers
Issue: UMT5 incredibly slow in generating
Labels: WIP

### System Info

- `transformers` version: 4.33.1
- Platform: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.34
- Python version: 3.11.4
- Huggingface_hub version: 0.16.4
- Safetensors version: 0.3.1
- Accelerate version: 0.22.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.0.1+cu117 (True)


### Who can help?

@ArthurZucker and @younesbelkada and @gante

### Information

- [ ] The official example scripts
- [ ] 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

```python
import time

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, GenerationConfig


if __name__ == "__main__":
    timings = {}

    for model_name in ("facebook/mbart-large-50-many-to-one-mmt", "google/umt5-small"):
        model = AutoModelForSeq2SeqLM.from_pretrained(model_name, device_map={"": "cuda"})
        print(model_name, model.num_parameters())
        # google/umt5-small                        306601984
        # facebook/mbart-large-50-many-to-one-mmt 1122990080
        tokenizer = AutoTokenizer.from_pretrained(model_name)
        gen_config = GenerationConfig.from_pretrained(
            model_name,
            max_new_tokens=200,
            max_length=None,
            num_beams=1,
        )
        text = "I would really like to eat some cookies now."
        if "t5" in model_name:
            text = f"translate English to Dutch: {text}"

        encoded = tokenizer(text, return_tensors="pt")
        encoded = {k: v.to(model.device) for k, v in encoded.items()}
        start_time = time.perf_counter_ns()
        for _ in range(100):
            _ = model.generate(**encoded, generation_config=gen_config)

        timings[model_name] = time.perf_counter_ns() - start_time

    for model_name, timings in timings.items():
        print(f"Generation duration for {model_name.split('/')[1]}:\t{timings}")
        # Generation duration for mbart-large-50-many-to-one-mmt:  22413427363
        # Generation duration for umt5-small:                     207906791077
```

So despite UMT5-small having only about **27%** the number of parameters of the MBART-large model it is **9-10x** slower!

(I also tried with a gc.collect() after each generation.)

### Expected behavior

Faster inference/generation speed. Training is fine so I assume caching of past states is not (correctly) implemented but I might be wrong. This PR on adding caching to T5 by @patrickvonplaten might be related: https://github.com/huggingface/transformers/pull/3682
Repository: kubernetes
Issue: E2E Tests for a separate image filesystem
Labels: sig/node,kind/feature,help wanted,sig/testing,good first issue,needs-triage,sig/k8s-infra

### What would you like to be added?

There should be a way to provision kubelet with a separate disk for images.

E2E tests for eviction, summary and stats could all utilize this kubelet with a separate disk.

### Why is this needed?

Kubelet has had support for separate disks for a long time.  Container runtimes do allow one to separate the image filesystem into a separate disk from Kubelet.  

However, we have little test coverage around this area.  There has been bugs in this area due to the lack of testing.  

Main areas we should coverage are Summary, Eviction and Stats.  

With [KEP-4191](https://github.com/kubernetes/enhancements/issues/4191), we want to increase the ways the image filesystem can be split.  There are some other requests for more splitting but the test coverage around this area is lacking.  


```[tasklist]
### Tasks
```
Repository: flutter
Issue: Add shadows to TableSpanDecoration
Labels: c: new feature,framework,f: scrolling,package,c: proposal,P2,team-framework,triaged-framework,p: two_dimensional_scrollables

### Summary feature requests for TableSpan / TableSpanDecoration

* [x] padding
  * https://github.com/flutter/packages/pull/5039 
* [ ] shadows
* [x] border radius
  * https://github.com/flutter/packages/pull/5184 

---

### 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

For the table view, the only options in TableSpan are backgroundDecoration and foregroundDecoration, but there is no way to have rounded corners for each row/tablespan.  There is no way to have padding between rows, there is no way to add shadow to the entire row/tablespan, it's pretty bare bones right now.

![No_Rounded_Corners](https://github.com/flutter/flutter/assets/38195772/a8ac22f1-3e8e-4a64-ac54-9b31ec53c4d4)

We are trying to get something like this which doesn't seem possible currently:

![Row_Look](https://github.com/flutter/flutter/assets/38195772/691b5fa0-5a79-433c-afe3-10451002e5c6)


### Proposal

The proposal would be to have the tablespan somehow have settings like border radius, shadow, and padding as options
Repository: next.js
Issue: Link to the code that reproduces this issue or a replay of the bug
Labels: bug

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/wilkinsonjack1993/next-js-webpack-bug

### To Reproduce

1. Install deps with pnpm 
2. run webapp from root: `pnpm run dev:web`
3. go to `localhost:3000/test` - observe that pages directory pages load as expected
4. go to `localhost:3000` observe that page load fails with error: `Error: Currently React only supports one RSC renderer at a time.`
5. Go to `next.config.js` and remove the following:
```
  webpack: (config, options) => {
    if (options.isServer) {
      config.externals = [
        "react",
        "next-i18next",
        "react-dom",
        ...config.externals,
      ];
    }

    config.resolve.alias["react"] = path.resolve(
      __dirname,
      ".",
      "node_modules",
      "react"
    );

    config.resolve.alias["next-i18next"] = path.resolve(
      __dirname,
      ".",
      "node_modules",
      "next-i18next"
    );

    config.resolve.alias["react-dom"] = path.resolve(
      __dirname,
      ".",
      "node_modules",
      "react-dom"
    );

    return config;
  },
```
6. Run the dev server again and see that the app directory page now loads correctly

### Current vs. Expected behavior

Expected: App directory page loads correctly
Actual: `Error: Currently React only supports one RSC renderer at a time.`

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
"node": v16.15.1
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next": "13.4.19",
"pnpm": 8.6.6
```


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

App Router

### Additional context

We have this configuration to get around the issue described [here](https://github.com/martpie/next-transpile-modules#i-have-trouble-with-duplicated-dependencies-or-the-invalid-hook-call-error-in-react).

We use are using transpilePackages but that also has the same issue as the old next-transpile-modules package when it comes to resolving peer dependencies in packages.
Repository: opencv
Issue: Cast with incorrect alignment
Labels: category: build/install

### System Information

OpenCV version: 4.8.0
OS / Platform: macOS 13.5.1 on M1
Compiler: emscripten 3.1.45 (any recent llvm)

### Detailed description

Building a project that includes opencv headers with a recent llvm and `-Wcast-align` turned on produces errors of the form

```
opencv/modules/core/include/opencv2/core/mat.inl.hpp:947:17: error: cast from 'uchar *' (aka 'unsigned char *') to 'double *' increases required alignment from 1 to 8 [-Werror,-Wcast-align]
  947 |         return *(_Tp*)(data + step.p[0] * i0);
```

This may well be correct, but should then have an `std::assume_aligned` or similar to make the compiler happy.

### Steps to reproduce

Any project that uses `-Wcast-align` and includes `opencv.hpp`.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: godot
Issue: Godot can hang when doing ANY action
Labels: bug,platform:macos,topic:editor,needs testing

### Godot version

4.1.1

### System information

Godot v4.1.1.stable - macOS 10.15.7 - Vulkan (Compatibility) - Intel HD Graphics 5000 OpenGL Engine - Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz (4 Threads)

### Issue description

Godot can freeze MacOS 10.15.7 on any project when doing any action. The actions I've done it on **Saving** and running the game.

### Steps to reproduce

This is varied. It can be anything.

### Minimal reproduction project

N/A

Note: On my 4GB of ram it locks up the system.
Repository: vscode
Issue: Reloading a window switched the locale from Korean to English
Labels: bug,l10n-platform

What I did:

1. Have 3 Insiders windows open
2. Run some tests via testing feature in the vscode repo window
3. They hung, I ran more which also hung
4. Reloaded the window via keybinding, 🐛 the reloaded window came back in English, different from all the other windows

![Image](https://github.com/microsoft/vscode/assets/2193314/146e13ed-00ed-498c-9250-b76a90e854ad)

Some output channels are still localized:

![Image](https://github.com/microsoft/vscode/assets/2193314/3f2e6cf9-e3a4-4743-8ff1-e3bd5aabcfe4)

Build task statusbar item is still localized:

![Image](https://github.com/microsoft/vscode/assets/2193314/3041a319-9ed0-4b49-af5f-ba109d9fb727)

Only relevant trace logs in Window channel I see are:

```
TRACE pickRunningLocation for MS-CEINTL.vscode-language-pack-ko, extension kinds: [workspace], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess
```

Reloading the window again did not fix the problem. I full restart of the application was needed to fix it.
Repository: flutter
Issue: TableView Scrollbar Adjustment for top Pinned Row
Labels: c: new feature,framework,f: scrolling,package,c: proposal,P2,team-framework,triaged-framework,p: two_dimensional_scrollables

### 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

For a normal tableview, you would most likely use the top row as a pinned row, and the pinning of the row works amazing!  The only problem is that the scrollbar scroll's over that row, which isn't what I would expect from a normal table, I would expect it to not go over the top row if pinned, sort of like this example:

![pinned_row_scrollbar](https://github.com/flutter/flutter/assets/38195772/47dac92c-d1af-41ad-b7f1-bf1118ae91a8)

What i have to do now is something like this:

`data: ScrollbarThemeData(
            thumbColor: MaterialStateProperty.all(
                Theme.of(context).colorScheme.onBackground.withOpacity(0.5)),
            trackColor: MaterialStateProperty.all(Colors.transparent),
            crossAxisMargin: 0,
            mainAxisMargin: 50,
            minThumbLength: 30,
            thickness: MaterialStateProperty.all(7),
            radius: const Radius.circular(15),
          ),`
      
Which makes the scrollbar not scroll all the way to the bottom b/c with mainAxisMargin it does the padding on both the top and bottom.  So, now I have to create a whole custom scrollbar for a normally used feature in a table view.

### Proposal

My proposal would be to easily add the ability for the scrollbar to adjust to the top pinned row for normal use-case of table views.
Repository: PowerToys
Issue: PowerRename: Option to restart counter for files inside different folders (independent counters for each folder)
Labels: Idea-Enhancement,Product-PowerRename

### Description of the new feature / enhancement

I'd like that when I open PowerRename in a folder which in turn has many folders inside it, each of them with many files inside, and I use the ${} counter, PowerRename offers me an option to apply this counter independently for files inside different folders. Let's say I have the folder "Parent folder" and inside of it there are two folders, "Child folder 1" and "Child folder 2". Inside "Child folder 1" there are the files "File A.jpg" and "File B.jpg", and inside "Child folder 2" there are the files "Another file A.jpg" and "Another file B.jpg". Currently, if I open PowerRename in "Parent folder" and select that it matches the regex ".*" for files (without extension) only and replaces it with "${padding=3;start=0}", "File A.jpg" becomes "000.jpg", "File B" becomes "001.jpg", "Another file A.jpg" becomes "002.jpg" and "Another file B.jpg" becomes "003.jpg", but I'd like "Another file A.jpg" and "Another file B.jpg" to become "000.jpg" and "001.jpg" again, because they are inside a different folder.

### Scenario when this would be used?

Imagine you have hundreds of folders with hundreds of files inside each one, and these files have slightly random names (but you are OK with their relative order, like for example their names are fileA01, fileA02, fileA03, then somehow there's no fileA04 but then there is fileA05, then fileA06, fileB01, etc) and you want all of them to just be 000, 001, 002 or something similar. If you use PowerRename for this, you would have to run it separately for each folder, hundreds of times... (If I'm not missing something).

### Supporting information

_No response_
Repository: go
Issue: x/tools/gopls: provide actions when rename fails due to interface implementation breakage
Labels: FeatureRequest,gopls,Tools

gopls built on master.

When attempting to rename a method but that will make the struct no longer implement an interface and break the code, gopls tries to be helpful by showing the details like this.

![Screenshot 2023-09-13 at 10 27 53 AM](https://github.com/golang/go/assets/4999471/b95ff543-4559-4925-8338-7adb993ec22c)

That's an improvement (thanks!), however, since VS Code does not linkify source locations shown in the message and vscode by design discourages use of multi-line notification [1](https://github.com/microsoft/vscode/issues/48900#issuecomment-385332787), this is a bit hard to deal with for VS Code users.

Some options to consider in this case

* VS Code notification supports a subset of markdown syntax and one of them is `[link](url)` form. Utilize that when possible (check client info or markdown handling capability) so users can jump to the rename-able interface definition location by clicking the link.

* Utilize 'actions' field and utilize 'ShowMessageRequestClientCapabilities.messageActionItem.additionalPropertiesSupport'.  (e.g. "Rename this instead")

* Or provide an option to force renaming - some users may attempt to recover by fixing the diagnostics following, or revert the action.