sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: handle direct response from middlware while try server actions
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/YellaGoya/middlware-response-handle-nextjs-issue-reproduction

### To Reproduce

1. Start dev ( `next dev` or `npm run dev` or `bun run dev` )
2. Click `Send it`
3. Nothing happens

### Current vs. Expected behavior

### Current

Blocked by middleware, but no value is returned and try / catch, then / catch doesn't work either

### Expected behavior

I thought that even if server actions are used, if they are blocked by middlware `ex) NextResponse.json( ... )`, there will be some kind of response so that it can be handled on the client side.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: arm64
  Version: #1 SMP PREEMPT_DYNAMIC Wed Dec 13 18:13:24 UTC 2023
  Available memory (MB): 23663
  Available CPU cores: 4
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.1-canary.71 // Latest available version is detected (14.1.1-canary.71).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


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

Middleware / Edge (API routes, runtime)

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

next dev (local), next start (local)

### Additional context

_No response_
Repository: godot
Issue: `const Array[PackedByteArray]` exibits unpredictable buggy behavior and random crashes
Labels: bug,topic:core,topic:gdscript

### Tested versions

Reproducible in the editor in Godot 4.2.1 and in Godot 4.3.dev3, and I remember having this issue in further previous Godot 4 versions.

### System information

Windows 10 - Godot_v4.2.1-stable - Compatability Renderer

### Issue description

The ```PackedByteArray```s in a ```const Array[PackedByteArray]``` exhibit wildly unpredictable and buggy behavior, sometimes occasionally crashing the window before anything can be output to the console and with no errors.

Godot 4.2.1-stable:
![godot_bug_image_1](https://github.com/godotengine/godot/assets/99830732/722bcc8f-650e-47a9-a434-4a80c7a096a2)
(The strange data printed to the console shown is different every time the project is run.)

Godot 4.3-dev3, which exhibits a different flavor of buggy behavior and still randomly crashes:
![image](https://github.com/godotengine/godot/assets/99830732/a9b576be-edeb-4d97-a255-845a6f8e27bf)



This problem does NOT occur when ```var``` is used instead of ```const```.

Godot 4.2.1-stable:
![image](https://github.com/godotengine/godot/assets/99830732/5276aad3-b00d-41d2-a66f-b66de3e24573)

Godot 4.3-dev3:
![image](https://github.com/godotengine/godot/assets/99830732/3676cc9e-a9e6-49d1-be1b-836f637044f1)


### Steps to reproduce

This autoloaded script in a new project:
```gdscript
extends Node

const arr: Array[PackedByteArray] = [
	# (Example contents:)
	[0,1], [0,2], [1,3], [2,3],
	[0,4], [1,5], [2,6], [3,7],
	[4,5], [4,6], [5,7], [6,7],
]

func _enter_tree() -> void:
	for pba in arr:
		# Serveral things are completely wrong and bugy when trying to use the stored PackedByteArrays.
		print("pba: ", pba, " pba's size: ", pba.size(), " pba duplicated: ", pba.duplicate())
```

### Minimal reproduction project (MRP)

N/A

> If the reproduction steps are not project dependent (e.g. the bug is visible in a brand new project), you can write "N/A" in the field.
Repository: vscode
Issue: Opening Extremely Long URLs Causes Notification Popup to Overflow the Display
Labels: bug,linux,uri,confirmation-pending

<!-- ⚠️⚠️ 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

<!-- 🪓 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.86.2
- OS Version: Ubuntu 22.04.3 LTS

Steps to Reproduce:

1. When a program prints out an extremely long url to the terminal, and the user tries to open it with `Ctrl + Click`, 
2. The popup "Do you want Code to open the external website?" overflows the entire screen such that one can can neither confirm to open that website nor to close the notification, except to shutdown VSCode completely.

![image](https://github.com/microsoft/vscode/assets/89672451/56bcb3c3-8347-4c23-b8a5-920d6cafc12b)

![image](https://github.com/microsoft/vscode/assets/89672451/420c548a-ab2b-4950-a2ba-cf188d98f65d)
Repository: react-native
Issue: Second Text component in View line break
Labels: Issue: Author Provided Repro

### Description

I have two components following each other in component and I wanna so that the first component stretches as long as it can and then ellipsizing, but second component stayed close to first without ellipsizing and then in the right with ellipsized first component.

I've tried everything that I can think of but without success. This correctly works on the web but is not on the iOS and Android.

### Steps to reproduce

Example:
```
<View style={{ flex: 1, flexDirection: 'row', }}>
    <Text numberOfLines={1}>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.
    </Text>
    <Text>
        1000ms
    </Text>
</View>
```

### React Native Version

0.73.4

### Affected Platforms

Runtime - Android, Runtime - iOS

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

```text
System:
  OS: macOS 14.3.1
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 7.33 GB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.21
    path: /usr/local/bin/yarn
  npm:
    version: 10.4.0
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: true
  newArchEnabled: false
```


### Stacktrace or Logs

```text
In logs everything okay
```


### Reproducer

https://snack.expo.dev/@volodyaspace/second-component-line-break

### Screenshots and Videos

<img width="333" alt="MnjlK" src="https://github.com/facebook/react-native/assets/42021006/8d2d227e-87f1-4a16-b381-2f7a4d50b064">
Repository: react-native
Issue: ScrollView starts scrolled to bottom inside Modal if Pressable inside
Labels: Issue: Author Provided Repro,Component: Modal,Component: ScrollView

### Description

If I use a ScrollView with an Pressable at the end of content container inside a Modal, the scroll position is initially at the bottom.
Here is a minimal example: https://snack.expo.dev/ZmDt9FQIQjzw0x8SM6-XD

### Steps to reproduce

1. Create a Modal
2. Inside create a Scrollview and fill content
3. Add Pressable at bottom
4. Open Modal with ScrollView

### React Native Version

0.73.4

### Affected Platforms

Runtime - Web

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

```text
System:
  OS: Windows 11 10.0.22621
  CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
  Memory: 3.74 GB / 15.37 GB
Binaries:
  Node:
    version: 20.9.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 9.3.1
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.11090377
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: C:\Program Files\Eclipse Foundation\jdk-17.0.10\bin\javac.EXE
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
```


### Stacktrace or Logs

```text
-
```


### Reproducer

https://snack.expo.dev/ZmDt9FQIQjzw0x8SM6-XD

### Screenshots and Videos

_No response_
Repository: tauri
Issue: [feat] Power Monitor api or plugin like in electron
Labels: type: feature request,status: upstream

### Describe the problem

There's currently no power monitor api or plugin for tauri

### Describe the solution you'd like

It would be nice if a power monitor api/plugin could be implemented like in electron:
https://www.electronjs.org/docs/latest/api/power-monitor/

### Alternatives considered

_No response_

### Additional context

There were talks of a possible plugin on discord but that has not materialized yet.
Repository: next.js
Issue: Chunk Load Error using dynamic routes ([lang])
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/leof240/chunk_load_error_nextauth-nextintl

### To Reproduce

1. build the project
2. deploy on prod server
3. go to a dynamic locale page like http:site/en
4. the page is showing an error on chunk load error 

### Current vs. Expected behavior

Current:
In development the site is working as expected.
in a production build and production environment, the site is throwing a Chunk Load Error on the page js file behind 
![Screenshot 2024-02-24 at 12 47 07](https://github.com/vercel/next.js/assets/6764386/dbf5504f-e76e-4756-a70e-1dceff9bd02a)
the buttons on the page do not work

Expected:
The expected behaviour is to show a page with 2 buttons for signin and sign out. when clicking the signin button, the session is updated and after a page refresh is shown from the layout and the page.
it's also showing the page title translated into different languages for the /en, /fr, / it 

### Provide environment information

```bash
Node 20.1

npm v9.8.1
```


### Which area(s) are affected? (Select all that apply)

Not sure, App Router, Internationalization (i18n), Middleware / Edge (API routes, runtime)

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed), Other (Deployed)

### Additional context

the "next" package is updated to canary version ( 24 / 02 / 2024)

cannot reproduce the error on development environment with npm run start
Repository: godot
Issue: PhysicsServer shapes cannot be given custom solver bias because `shape_set_custom_solver_bias` cannot be called from GDscript or C#
Labels: bug,enhancement,topic:physics,topic:2d

### Tested versions

- Reproducible in 4.2.stable

### System information

Windows 10 - Godot v4.2.1.stable - Vulkan (Forward+)

### Issue description

Shapescreated with PhysicsServer2D or 3D cannot be given custom solver bias because `shape_set_custom_solver_bias` cannot be called from GDscript or C#.

```gdscript
extends Node2D

func _ready():
	var body = PhysicsServer2D.body_create()
	var shape = PhysicsServer2D.circle_shape_create()
	PhysicsServer2D.shape_set_data(shape, 1.0)
	PhysicsServer2D.shape_set_custom_solver_bias(shape, 0.2) # CAUSES AN ERROR
	PhysicsServer2D.body_add_shape(body, shape)
	PhysicsServer2D.body_set_space(body, get_world_2d().space)
```

You can work around it by passing an instance of a shape to the `body_add_shape` function which works but does not seem to be documented anywhere. The catch is that the instanced shape must be stored somewhere otherwise it will stop working as soon as the shape goes out of scope. (I suspect this is caused by garbage collection).

This works:
```gdscript
extends Node2D

var shape: CircleShape2D

func _ready():
	var body = PhysicsServer2D.body_create()
	shape = CircleShape2D.new()
	shape.radius = 1.0
	shape.custom_solver_bias = 0.2
	PhysicsServer2D.body_add_shape(body, shape)
	PhysicsServer2D.body_set_space(body, get_world_2d().space)
```

This doesn't throw an error, but stops working when the shape goes out of scope.
```gdscript
extends Node2D

func _ready():
	var body = PhysicsServer2D.body_create()
	var shape = CircleShape2D.new()
	shape.radius = 1.0
	shape.custom_solver_bias = 0.2
	PhysicsServer2D.body_add_shape(body, shape) # No error but stops working when shape goes out of scope
	PhysicsServer2D.body_set_space(body, get_world_2d().space)
```
Another problem with this workaround is that if some of the shapes are instanced and some created with PhysicsServer, the instanced ones cause an error if you try to free them using `free_rid`. 

### Steps to reproduce

You can start the minimal reproduction project example_scene.tscn to see the differences between the collision shape types. The code for all the shape types can be found in the file `ball_shape.gd` 

### Minimal reproduction project (MRP)

[PhysicsServerMRP.zip](https://github.com/godotengine/godot/files/14392803/PhysicsServerMRP.zip)
Repository: TypeScript
Issue: Change type of `File` constructor parameter `fileBits` to `Iterable<BlobPart>`
Labels: Bug,Help Wanted,Domain: lib.d.ts

### ⚙ Compilation target

es2022

### ⚙ Library

es2022, dom

### Missing / Incorrect Definition

type of the parameter `fileBits` of the `File` constructor.

### Sample Code

```TypeScript
new File((function * () { yield "a" })(), "name")
```


### Documentation Link

https://developer.mozilla.org/en-US/docs/Web/API/File/File#filebits
Repository: godot
Issue: ResourceLoader.load_threaded_get_status progress percentage not well documented
Labels: enhancement,discussion,topic:core,documentation

### Tested versions

- In 4.3.dev (b15105a3585c29c8448f3d2dc8fe20a578a2b41b)

### System information

N/A

### Issue description

Quoting this doc: https://docs.godotengine.org/en/stable/classes/class_resourceloader.html#class-resourceloader-method-load-threaded-get-status

> An array variable can optionally be passed via progress, and will return a one-element array containing the percentage of completion of the threaded loading.

This does not document the type of the array and the value range that the programmer should expect, so they have to figure it out with guesswork and experimentation.

Perhaps it could be changed to:

> An array variable can optionally be passed via progress, and will return a one-element float array in the range 0.0 to 1.0 representing the percentage of completion of the threaded loading.

### Steps to reproduce

N/A

### Minimal reproduction project (MRP)

N/A
Repository: youtube-dl
Issue: [ard] video download results in 404 / Unable to download JSON metadata
Labels: broken-IE



- [x ] I'm reporting a broken site support
- [ x] I've verified that I'm running youtube-dl version **2021.12.17**
     --> I'm running master / HEAD, but the version packaged in debian/testing has the same output
- [x ] I've checked that all provided URLs are alive and playable in a browser
- [ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x ] I've searched the bugtracker for similar issues including closed ones
   --> lots of broken URLs, but I'm fairly sure mine is correct.

## Verbose log

>$ youtube-dl --verbose https://www.ardmediathek.de/video/Y3JpZDovL3N3ci5kZS9hZXgvbzIwMDQ0NjI
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.ardmediathek.de/video/Y3JpZDovL3N3ci5kZS9hZXgvbzIwMDQ0NjI']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 40bd5c181
[debug] Python 3.11.8 (CPython x86_64 64bit) - Linux-6.6.13-amd64-x86_64-with-glibc2.37 - OpenSSL 3.1.5 30 Jan 2024 - glibc 2.37
[debug] exe versions: ffmpeg 6.1.1, ffprobe 6.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 53.140.55.78 (DE) as X-Forwarded-For.
[ARDBetaMediathek] Y3JpZDovL3N3ci5kZS9hZXgvbzIwMDQ0NjI: Downloading JSON metadata
ERROR:  : HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "xxx/youtube-dl/youtube_dl/extractor/common.py", line 678, in _request_webpage
    return self._downloader.urlopen(url_or_request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "xxx/youtube-dl/youtube_dl/YoutubeDL.py", line 2461, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)


## Description

I can't describe much more than what is written above.  I'm not located in Germany, but I get the same error with a slightly older ytdl version from a machine that is located in D, so I don't think this is a geoblocking issue.
Repository: TypeScript
Issue: incorrect inference in union of tuple types
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

tuple type union, inference, discriminator

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Generics.

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.3.3#code/C4TwDgpgBAggdgEwDwBUB8UC8UDaAiAQ0TwBooUIAnAW1TTIproF0AoUSKAUQEc6tceCD1Lk2HaAElgAZ1RkA0lAgAPYBEQyoAawggA9gDNyGbPgCWs0QoZVaKHAuZpx4aI3unufdFAA+UNJyKGS6Bsa+AfDI6KyshgCucADGwOb6cFBglBAI5skE6nQAFOo0AFzkdnQAlFAA3qxQzVA5wAmUmWXUrAC+cckZMsBQwJUeSPUE5XAJ1ABGVL1e2bn5hRDFFlZkhKL4wqIADMzMNaxAA

### 💻 Code

```ts
type And<T> = ["and", Term<T>, Term<T>]
type Eq<T> = ["eq", T]
type Its<T, K extends keyof T> = ["its", K, Term<T[K]>]
type Term<T> = Eq<T> | Its<T, keyof T> | And<T>

function predicate<T>(term: Term<T>) {
    return term
}

const t: Term<{a:number}> = predicate(["its", "a", ["eq", 0]])
```


### 🙁 Actual behavior

TypeScript complains that Type `"a"` is not assignable to type `number | "toString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf" | "toLocaleString" | Term<number>`. The expected types are a union of `number` from `Eq<number>`, `Term<T>` from `And<T>` and `keyof number` from `Its<number>`. `Eq<number>` can be ruled out by both length and first element and `And<T>` by the first element. `number` was chosen as value of `T` despite there being a solution that is also clear for the expected return type.

### 🙂 Expected behavior

TypeScript infers `T` to be `{ a: number }` (or `{ a: any }` when the return type is not known).

### Additional information about the issue

It works when you remove `And` from `Term`, moving the `"and"` to the last index or when modelling something similar using objects instead of tuples. The first element could be used to discriminate the union.
Repository: next.js
Issue: Render blocking CSS
Labels: bug

### Link to the code that reproduces this issue

https://github.com/Mifaresss/nextjs-css-render-blocking

### To Reproduce

1. Initialize new next.js app: npx create-next-app@latest (current 14.1.0v)
2. Deploy app (on Vercel, for example)

### Current vs. Expected behavior

CSS should not block render, but result is:
https://www.webpagetest.org/result/240224_BiDcPN_7X3/1/details/
![image](https://github.com/vercel/next.js/assets/106471161/de9bd790-d185-4ab2-910d-9c6ca75e3c05)


### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
Binaries:
  Node: 20.10.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.0
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

I also add experimental optimizeCSS in next.config.mjs, but it still render blocking..

Pure nextjs app, npm run start:
![image](https://github.com/vercel/next.js/assets/106471161/3f2f643d-14bc-4c7e-86df-e6289fd66237)
Repository: go
Issue: x/pkgsite: add support for github's markdown footnotes
Labels: FeatureRequest,pkgsite

### What is the URL of the page with the issue?

https://pkg.go.dev/github.com/madkins23/go-slog@v0.8.3-alpha-server/infra#section-readme

### What is your user agent?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

### Screenshot

Github:
![github-footnote](https://github.com/golang/go/assets/13398045/6095cb13-afb1-4ba8-91c6-efdf8914977f)

`pkg.go.dev`:
![no-footnotes](https://github.com/golang/go/assets/13398045/d15006f8-8765-4740-9736-a0fdc408575b)

### What did you do?

Added footnotes to `README.md` file per Github markdown syntax.

### What did you see happen?

Works fine in Github. Footnotes not respected in `pkg.go.dev`.

### What did you expect to see?

Footnotes should look the same in both places if possible.