sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: calling `redirect()` inside a server component causes flashing UI
Labels: bug

### Link to the code that reproduces this issue

https://github.com/Fredkiss3/bug-next-redirect-flashing-ui

### To Reproduce

1. click on the link
2. you will see a blank page while the page is being redirected



### Current vs. Expected behavior

You can see in the video below that for server actions it works as expected, the page don't flash while being redirected (this is the desired behavior), while for link it doesn't :
 
https://github.com/vercel/next.js/assets/38298743/415037db-31a9-4cde-9b13-4f7c6eb99c3a

### 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: arm64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020
Binaries:
  Node: 18.17.1
  npm: 9.6.7
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 13.5.5
  eslint-config-next: 13.4.6
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 4.9.5
Next.js Config:
  output: N/A
```


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

App Router

### Additional context

_No response_
Repository: godot
Issue: If save file when autoloaded script exited node tree(quit ),  will sometimes drop the file on Android
Labels: bug,platform:android,topic:porting,needs testing

### Godot version

4.1.2

### System information

Windows11, GLES3

### Issue description

My game running in android. 

And I have a autoload script, witch will save the data(write some data to a file, and call file.close() when ended) when exit the node tree (in _exit_tree function)
But In some phone, the data always rollback when they foce quit the game or killed by system in background.   
First I think that maybe the game quit before the file totally write in so the file was broken. 
So I use two file to save, one as data backup. 
The two files will save together, so I think it will remain one at least. 
But the very confusing thing is the two files are all droped or broken maybe!!!!! 
I have no idea about it,  and it happens frequently in some phones, but some others never encounter this.

### Steps to reproduce
In the project below, I rewrite some save func based by Resource class. 
And I save data in the _exit_tree function. 
Exported it to android,  If you try to force quit the game or make it killed in the background in some phones, you will sometimes got an unsaved data file(which is rollback). 

Now I have removed the logic in the _exit_tree function, but I think here maybe do exist some problems.  
Thanks.


### Minimal reproduction project
[FileSaveProject (1).zip](https://github.com/godotengine/godot/files/13188955/FileSaveProject.1.zip)




```[tasklist]
### Tasks
```
Repository: flutter
Issue: [Impeller] Use a single convention to denote "empty" and "infinite/no limit" across all coverage/bounds/culling rectangles.
Labels: engine,P2,e: impeller,team-engine,triaged-engine

Currently we have at least two conventions, and we end up having to deal with both of them in `EntityPass::GetSubpassCoverage`, which is quite confusing:
- For the `EntityPass::GetSubpassCoverage` `coverage_limit` parameter as well as `CanvasStackEntry::cull_rect`, `std::nullopt` means "infinite/no limit".
- In the `Contents::GetCoverage` protocol, `std::nullopt` means "no/empty coverage", and `Rect::MakeMaximum()` is treated as "infinite/no limit should be applied".
- In `impeller::TRect`, several methods (such as `TRect::Intersection` and `TRect::Cutout`) use `std::nullopt` to mean "no empty/no result".

We should pick a convention for coverage/bounds and stick with it everywhere.

Perhaps the least finicky and confusing standard would be to:
- Always use an `std::optional<Rect>` for coverage/bounds/culling rectangles.
- Treat `Rect::IsEmpty()` as meaning "no/empty coverage".
-  Treat`std::nullopt` as "infinite/no limit".

Rationale:
- Using `Rect::MakeMaximum()` to mean "infinite/no limit" isn't great, as it requires us to check for this case when doing rectangle arithmetic to avoid nonsense results. This has caused bugs surrounding infinite coverage in the past.
- In some cases, infinite coverage is nonsense (for example, the coverage of a snapshot), and we'd be better off hard disallowing infinite coverage for these cases (for example, by storing coverage as a `Rect` instead of an `std::optional<Rect>`). Then, any codepaths that need to convert from "infinite-allowed" coverage (`std::optional<Rect>`) to "infinite-disallowed" coverage (`Rect`) need to explicitly handle or throw a validation error if infinite coverage is impossible.
- Using `std::nullopt` to mean empty coverage is redundant. We allow rectangles to be zero size, and clearly `Rect::IsEmpty` is also "nothing/empty", but we currently ignore that case in most places, which is awkward.
- One downside here with moving away from `std::nullopt` to mean "empty coverage" is that we'll lose a constant nag that forces us to think about empty coverage everywhere. However, the cases where empty coverage can be dangerous (like crashing because we can't allocate zero sized textures) have clear validations. The vast majority of the time, our empty coverage checks just serve to optimize by returning early rather than avoiding crashers.
Repository: godot
Issue: Editor shrinks vertically slightly when maximized on Windows 11 Laptop
Labels: bug,platform:windows,topic:rendering

### Godot version

4.2 beta 3; 4.1.2 stable; 3.5.3 stable

### System information

Windows 11; NVidia RTX4050 Laptop GPU (Driver version 31.0.15.2901); AMD Ryzen 7 7735HS CPU (Radeon display driver version 31.0.14050.3); 1080p 144hz Display 

### Issue description

When the Godot Editor window is maximized, the rendered area shrinks vertically by a few pixels after a few seconds of inactivity.

Unfortunately, this seems fairly system specific. I'm not sure if anyone else has encountered an issue like this and this is the first device I've used and run into it.

Notice the black strip of pixels at the bottom and the middle of script line 23 missing.
![godot-squish](https://github.com/godotengine/godot/assets/6555773/e8a82585-62ec-4d27-96a2-7aea5a61cc55)

Interestingly, when trying to capture a recording of the issue, it couldn't be recorded when only capturing the Godot window - the full display needed to be captured. It's possible there is an issue of the GPU rendering the window contents and CPU's integrated graphics then scaling the window contents incorrectly, though Godot is the only program which reproduced this issue and only during periods of inactivity. dxdiag reports the CPU's integrated graphics' display as the laptop's display with the GPU's display as `n/a`.

### Steps to reproduce

1. Open Editor
2. Make fullscreen
3. Black strip appears due to vertical shrink after a second of inactivity or when window not in focus

This issue is _not_ reproduced in exported projects; only in the editor and Project Manager.

### Minimal reproduction project

No project necessary, though a script open in the editor makes the issue more apparent.
Repository: node
Issue: node v18 experiences ECONNRESET, node v20 doesn't?
Labels: v18.x

### Version

18 vs 20

### Platform

macos

### Subsystem

_No response_

### What steps will reproduce the bug?

On Node 18, I get this a lot (with no errors logged):

```console
Error: connect ECONNRESET 127.0.0.1:6969
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
  errno: -54,                         #### errno -54....?
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 6969
}

```

on Node v20, I don't seem to see the above error (-54)



### How often does it reproduce? Is there a required condition?

perhaps if server gets overwhelmed?

### What is the expected behavior? Why is that the expected behavior?

expect to not get an error with no error trace in console (no clear cause)

### What do you see instead?

N/A

### Additional information

N/A
Repository: PowerToys
Issue: word finder via OCR / Image
Labels: Idea-Enhancement,Product-Text Extractor

### Description of the new feature / enhancement

you can select an aria and search for a word in that aria by highlighting it or just bringing it to you. using the same kind of code for the Text Extractor.

### Scenario when this would be used?

imagine trying to figure out how to do something by looking it up but it leads you to a wiki full of other stuff and you want to just get straight to the point. well with this tool you can just search for it no mater what its on.

example: https://github.com/microsoft/PowerToys/assets/128339807/c2c46d93-0790-4604-97e7-22ff5f80f3bc
Repository: stable-diffusion-webui
Issue: [Bug]: CodeFormer version c5b4593 not match with Torch version: 2.1.0a0+b5021ba
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

*** Error setting up CodeFormer
    Traceback (most recent call last):
      File "/home/workspace/AIGC/stable-diffusion-webui/modules/codeformer_model.py", line 32, in setup_model
        from facelib.utils.face_restoration_helper import FaceRestoreHelper
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/utils/face_restoration_helper.py", line 7, in <module>
        from facelib.detection import init_detection_model
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/__init__.py", line 11, in <module>
        from .yolov5face.face_detector import YoloDetector
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/yolov5face/face_detector.py", line 20, in <module>
        IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)
    ValueError: invalid literal for int() with base 10: '0a0'

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...


### What should have happened?

All go well

### Sysinfo

Torch version: 2.1.0a0+b5021ba

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

_No response_

### Console logs

```Shell
*** Error setting up CodeFormer
    Traceback (most recent call last):
      File "/home/workspace/AIGC/stable-diffusion-webui/modules/codeformer_model.py", line 32, in setup_model
        from facelib.utils.face_restoration_helper import FaceRestoreHelper
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/utils/face_restoration_helper.py", line 7, in <module>
        from facelib.detection import init_detection_model
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/__init__.py", line 11, in <module>
        from .yolov5face.face_detector import YoloDetector
      File "/home/workspace/AIGC/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/yolov5face/face_detector.py", line 20, in <module>
        IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)
    ValueError: invalid literal for int() with base 10: '0a0'
```


### Additional information

_No response_
Repository: vscode
Issue: Cannot read properties of null (reading 'startLineNumber')
Labels: error-telemetry,snippets

```javascript
TypeError: Cannot read properties of null (reading 'startLineNumber')
at <anonymous> in src/vs/editor/contrib/snippet/browser/snippetSession.ts:149:41
at callback in src/vs/editor/common/model/textModel.ts:1617:13
at U.changeDecorations in src/vs/editor/common/model/textModel.ts:1587:16
at d.move in src/vs/editor/contrib/snippet/browser/snippetSession.ts:136:49
at i.j in src/vs/editor/contrib/snippet/browser/snippetSession.ts:707:33
at <anonymous> in src/vs/editor/contrib/snippet/browser/snippetSession.ts:685:17
at cursorStateComputer in src/vs/editor/common/cursor/cursor.ts:483:23
at cursorStateComputer in src/vs/editor/common/model/editStack.ts:444:33
at d.pushEditOperation in src/vs/editor/common/model/editStack.ts:430:38
at U.vb in src/vs/editor/common/model/textModel.ts:1365:31
at U.pushEditOperations in src/vs/editor/common/model/textModel.ts:1271:16
at d.executeEdits in src/vs/editor/common/cursor/cursor.ts:470:34
at <anonymous> in src/vs/editor/common/viewModel/viewModelImpl.ts:1032:59
at callback in src/vs/editor/common/viewModel/viewModelImpl.ts:1090:11
at m.R in src/vs/editor/common/viewModel/viewModelImpl.ts:1029:8
at m.executeEdits in src/vs/editor/common/viewModel/viewModelImpl.ts:1032:8
at x.executeEdits in src/vs/editor/browser/widget/codeEditorWidget.ts:1236:29
at i.merge in src/vs/editor/contrib/snippet/browser/snippetSession.ts:664:16
at u.p in src/vs/editor/contrib/snippet/browser/snippetController2.ts:150:18
at u.insert in src/vs/editor/contrib/snippet/browser/snippetController2.ts:112:9
at B.p in src/vs/editor/contrib/suggest/browser/suggestController.ts:427:21
at B.acceptSelectedSuggestion in src/vs/editor/contrib/suggest/browser/suggestController.ts:649:8
at s.handler [as d] in src/vs/editor/contrib/suggest/browser/suggestController.ts:805:5
at s.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:288:11
at <anonymous> in src/vs/editor/browser/editorExtensions.ts:321:109
at runner in src/vs/editor/browser/editorExtensions.ts:316:11
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at x.invokeWithinContext in src/vs/editor/browser/widget/codeEditorWidget.ts:435:37
at s.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:309:17
at s.runCommand in src/vs/editor/browser/editorExtensions.ts:321:24
at handler in src/vs/editor/browser/editorExtensions.ts:155:38
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at y.n in src/vs/workbench/services/commands/common/commandService.ts:95:46
at y.executeCommand in src/vs/workbench/services/commands/common/commandService.ts:60:17
at G.L in src/vs/platform/keybinding/common/abstractKeybindingService.ts:366:28
at G.I in src/vs/platform/keybinding/common/abstractKeybindingService.ts:223:15
at <anonymous> in src/vs/workbench/services/keybinding/browser/keybindingService.ts:273:38
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1b07bd25dfad64b0167beb15359ae573aecd2cc&bH=93b54c08-2b12-9999-aafc-e4788d17cbf9)
Repository: vscode
Issue: Cannot read properties of undefined (reading 'completion')
Labels: error-telemetry,suggest

```javascript
TypeError: Cannot read properties of undefined (reading 'completion')
at i.renderItem in src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.ts:130:40
at w.d in src/vs/editor/contrib/suggest/browser/suggestWidget.ts:719:26
at w.execute in src/vs/base/browser/dom.ts:185:9
at Tt in src/vs/base/browser/dom.ts:225:8
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1b07bd25dfad64b0167beb15359ae573aecd2cc&bH=06f85e77-e340-2871-dd71-78110ba85f1f)
Repository: vscode
Issue: Cannot read properties of undefined (reading 'tooltip')
Labels: error-telemetry,inlay-hints

```javascript
TypeError: Cannot read properties of undefined (reading 'tooltip')
at <anonymous> in src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.ts:104:25
at async in src/vs/base/common/async.ts:1711:5
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1b07bd25dfad64b0167beb15359ae573aecd2cc&bH=a1ab12e6-ed19-9215-0dc7-cec0ac1c449d)
Repository: vscode
Issue: Cannot read properties of undefined (reading 'isInHiddenArea')
Labels: bug,error-telemetry,editor-core

```javascript
TypeError: Cannot read properties of undefined (reading 'isInHiddenArea')
at $.render in src/vs/editor/browser/viewParts/viewZones/viewZones.ts:361:42
at H.U in src/vs/editor/browser/view.ts:502:13
at <anonymous> in src/vs/editor/browser/view.ts:445:30
at func in src/vs/editor/browser/view.ts:659:10
at safeInvokeNoArg in src/vs/editor/browser/view.ts:445:3
at H.I in src/vs/editor/browser/view.ts:249:8
at H.render in src/vs/editor/browser/view.ts:565:9
at x.render in src/vs/editor/browser/widget/codeEditorWidget.ts:1603:24
at x.layout in src/vs/editor/browser/widget/codeEditorWidget.ts:1421:8
at b.ab in src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.ts:528:10
at u.value in src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.ts:482:10
at c.z in src/vs/base/common/event.ts:1138:13
at c.fire in src/vs/base/common/event.ts:1169:9
at u.value in src/vs/editor/browser/widget/codeEditorWidget.ts:1662:35
at c.z in src/vs/base/common/event.ts:1138:13
at c.fire in src/vs/base/common/event.ts:1169:9
at I.s in src/vs/editor/common/viewModelEventDispatcher.ts:64:18
at I.endEmitViewEvents in src/vs/editor/common/viewModelEventDispatcher.ts:109:8
at m.S in src/vs/editor/common/viewModel/viewModelImpl.ts:1092:26
at m.R in src/vs/editor/common/viewModel/viewModelImpl.ts:1029:8
at m.executeEdits in src/vs/editor/common/viewModel/viewModelImpl.ts:1032:8
at x.executeEdits in src/vs/editor/browser/widget/codeEditorWidget.ts:1236:29
at c.accept in src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.ts:308:11
at o.run in src/vs/editor/contrib/inlineCompletions/browser/commands.ts:161:28
at o.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:388:15
at <anonymous> in src/vs/editor/browser/editorExtensions.ts:321:109
at runner in src/vs/editor/browser/editorExtensions.ts:316:11
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at x.invokeWithinContext in src/vs/editor/browser/widget/codeEditorWidget.ts:435:37
at s.runEditorCommand in src/vs/editor/browser/editorExtensions.ts:309:17
at o.runCommand in src/vs/editor/browser/editorExtensions.ts:321:24
at handler in src/vs/editor/browser/editorExtensions.ts:155:38
at fn in src/vs/platform/instantiation/common/instantiationService.ts:68:11
at y.n in src/vs/workbench/services/commands/common/commandService.ts:95:46
at y.executeCommand in src/vs/workbench/services/commands/common/commandService.ts:60:17
at G.L in src/vs/platform/keybinding/common/abstractKeybindingService.ts:366:28
at G.I in src/vs/platform/keybinding/common/abstractKeybindingService.ts:223:15
at <anonymous> in src/vs/workbench/services/keybinding/browser/keybindingService.ts:273:38
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1b07bd25dfad64b0167beb15359ae573aecd2cc&bH=8b032777-ae55-e617-3b9e-68978fe39f7e)
Repository: flutter
Issue: [l10n] Generated code does not conform `require_trailing_commas` and `no_leading_underscores_for_local_identifiers` linter rules
Labels: tool,a: internationalization,has reproducible steps,P2,team-tool,triaged-tool,found in release: 3.13,found in release: 3.16

### 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)

### Steps to reproduce

1. add some arb files
2. Run `flutter gen-l10n`
3. The generated files will cause require_trailing_commas and no_leading_underscores_for_local_identifiers(maybe) problems


### Expected results

The AppLocalizations.supportedLocales (maybe some other classname)
```
static const List<Locale> supportedLocales = <Locale>[
    Locale('en'),
    Locale('en', 'US'),
    Locale('fr'),
    Locale('fr', 'CA'),
    Locale('zh'),
    Locale('zh', 'CN'),
  ];
```

### Actual results

The AppLocalizations.supportedLocales (maybe some other classname)
```
static const List<Locale> supportedLocales = <Locale>[
    Locale('en'),
    Locale('en', 'US'),
    Locale('fr'),
    Locale('fr', 'CA'),
    Locale('zh'),
    Locale('zh', 'CN')
  ];
```

The method with parameters will cause a problem `The local variable '_temp0' starts with an underscore.`
![image](https://github.com/flutter/flutter/assets/2263157/1c3ad18c-f4bb-423e-8769-81d830c9fb07)


### Code sample

<details><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: godot
Issue: Code region remains highlighted in the editor when unfolded using command Unfold All Lines
Labels: bug,topic:editor,usability

### Godot version

4.2.beta.3

### System information

Windows 11

### Issue description

Code region when unfolded using command **Edit -> folding -> Unfold All Lines**. keeps the # region line highlighted even though the region is no more folded.

### Steps to reproduce

- Create a region of code using # region ..#endregion comments
- Collapse/Fold the region 
- Notice the #region line is highlighted
- Click Unfold All Lines under script menu **Edit -> Folding -> Unfold All Lines**
Expected - region will be expanded/unfolded and the highlight on the line will be gone.
Actual - region is expanded, but highlight on the line is still there


### Minimal reproduction project

N.A
Repository: storybook
Issue: [Bug]: key prop missing on generated source code
Labels: bug,good first issue,help wanted,block: source,sev:S3

### Describe the bug

Children are missing their `key` prop in the Canvas DocBlock. The key is an important part of the component's api

### To Reproduce

```tsx
// Accordion.stories.tsx
export default {
    title: 'Components/Accordion',
    component: Accordion,
    id: 'next-accordion',
}

export const ExpandByDefault = {
    component: Accordion,
    args: {
        defaultExpandedKeys: ['accordion2'],
        children: [
            <AccordionItem key='accordion1' title='Accordion 1'>
                <p>Accordion 1.</p>

                <p>More content.</p>
            </AccordionItem>,
            <AccordionItem key='accordion2' title='Accordion 2'>
                <p>Accordion 2.</p>

                <p>More content.</p>
            </AccordionItem>,
        ],
    },
}
```

```tsx
// Accordion.mdx
<Canvas of={stories.ExpandedByDefault} />
```

<img width="645" alt="image" src="https://github.com/storybookjs/storybook/assets/37826020/533a8bb6-736f-4539-bf01-b65d8e9e9ebb">



### System

```bash
System:
    OS: macOS 13.3.1
    CPU: (10) x64 Apple M1 Pro
    Shell: 3.2.57 - /bin/sh
  Binaries:
    Node: 16.19.0 - /usr/local/bin/node
    Yarn: 3.4.1 - /usr/local/bin/yarn <----- active
    npm: 8.19.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 118.0.5993.88
    Safari: 16.4
```


### Additional context

_No response_