sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: pageProps(JSON) by getStaticProps is returned as an empty object in the pageProps of the index page of basePath.
Labels: bug,Runtime,Pages Router

### Link to the code that reproduces this issue

https://github.com/edoko/next-ssg-test/tree/main

### To Reproduce

1. Configure a monorepo and basePath
2. Add middleware
Just return NextResponse.next()
3. Add getStaticProps in `/apps/sub/pages/index.tsx` and show the message of props in dom.
4. Add a next/link with href='/sub' in `/apps/main/pages/index.tsx`
6. Add a next/link with href='/sub/my' in `/apps/sub/pages/index.tsx` and create the page(`/apps/sub/pages/my.tsx`)
7. Deploy to Vercel and open the main page `https://deploy-main-app` (`/apps/main`)
8. Click the link with `/sub` and move the `/sub` page
9. Show the message(`Hello from getStaticProps!`) of getStaticProps
10. Click the link with `/sub/my` and move the `/sub/my` page
11. Press the back button, move the `/sub` page and not showing message of getStaticProps
12. In the Network tab, index.json also appears empty object.

### Current vs. Expected behavior

Current:
`https://next-ssg-test-main-app.vercel.app/sub/_next/data/{build_id}/index.json` is `{}`.

Expected:
`https://next-ssg-test-main-app.vercel.app/sub/_next/data/{build_id}/index.json` is
```
{
  props: {
    pageProps: {
      message: "Hello from getStaticProps!"
    },
    __N_SSG: true
  }
}
```


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:31 PST 2024; root:xnu-10063.101.15~2/RELEASE_X86_64
  Available memory (MB): 32768
  Available CPU cores: 6
Binaries:
  Node: 20.11.0
  npm: 10.2.4
  Yarn: 4.1.1
  pnpm: N/A
Relevant Packages:
  next: 14.2.0-canary.34 // Latest available version is detected (14.2.0-canary.34).
  eslint-config-next: 14.2.0-canary.34
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Data fetching (gS(S)P, getInitialProps), Middleware / Edge (API routes, runtime)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

I'm also running a real project using yarn workspace and basePath. middleware is also being used.
If I used getStaticProps in '/index' of basePath, if I go back after moving to another page or click the link that moves to `/`, pageProp is returned empty.

The first reproduced version was `v13.5.2`, and the same issue occurred even when updated to `v14.1.0` and `v14.1.4`, and the same problem occurred even when using `v14.2.0-canary.34`.

So I created a project that could reproduce the above problem.


experience the problem for here: https://next-ssg-test-main-app.vercel.app/
Repository: stable-diffusion-webui
Issue: [Feature Request]: How to get the original inpainting result without paste the input image back
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

I have noticed that when use img2img inpainting, a brand new image is generated at first, which is shown in the output region when it goes to around 75% steps. Then the masked region which I choose will be pasted into this image, to compose the final output. However, I want the brand new image without paste the input image region back. How can I get it?

### Proposed workflow

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


### Additional information

I have revised the code in 'processing.py', where I delete
`if self.mask is not None:
blended_samples = samples * self.nmask + self.init_latent * self.mask
  if self.scripts is not None:
      mba = scripts.MaskBlendArgs(samples, self.nmask, self.init_latent, self.mask, blended_samples)
      self.scripts.on_mask_blend(self, mba)
      blended_samples = mba.blended_latent

  samples = blended_samples`,
however, nothing changed.
Please help, thx
Repository: tensorflow
Issue: Enabling XLA in tensorflow 2.16 causes memory leaks
Labels: stat:awaiting tensorflower,comp:xla,subtype: ubuntu/linux,type:performance,TF 2.16

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

binary

### TensorFlow version

tensorflow 2.16.1
(tensorflow[and-cuda] 2.16.1)

### Custom code

Yes

### OS platform and distribution

Linux Ubuntu 22.04

### Mobile device

_No response_

### Python version

3.12

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

12.3/8.9.7

### GPU model and memory

RTX3060Ti、RTX3060

### Current behavior?

Executing the tf.keras.Model.fit method with XLA enabled will cause a memory leak.
Note that XLA seems to be enabled by default since Tensorflow 2.16.1.
Setting tf.keras.Model.jit_compile to False disables XLA and eliminates the memory leak.

I think that updating to tensorflow 2.16 will cause memory leaks in almost all existing programs.
I think you need to fix this problem as soon as possible or alert people about it in documents such as Release Note or README.

### Standalone code to reproduce the issue

```python
import numpy as np
import tensorflow as tf
import gc


def call(epochs: int):
    x = np.arange(-1, 1, 0.01)
    y = 0.8 * x + 0.2
    model = tf.keras.Sequential([tf.keras.layers.Dense(1, activation=None)])
    model.compile("sgd", "mse")
    # model.jit_compile = False
    model.build(input_shape=(0,1))
    model.fit(x, y, epochs=epochs)
    del model

epoch_num = 10000
for i in range(epoch_num):
    call(1)
    tf.keras.backend.clear_session()
    gc.collect()
```


### Relevant log output

_No response_
Repository: ui
Issue: [Bug]: unable to reset the text input values using rect-hook-form
Labels: bug

### Describe the bug

Am using, react hook forma long with text input components as shown in the form example. On a case I need to reset the field values and i use `form.reset()` and it didn't work.

### Affected component/components

Form, Inout

### How to reproduce

I followed the example given here https://ui.shadcn.com/docs/components/input#form

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Mac
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: yt-dlp
Issue: "ERROR: This request requires WebSocket support" when passing `--proxy` and websockets is installed
Labels: bug,docs/meta/cleanup,NSFW,core:networking

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Please make sure the question is worded well enough to be understood

I know I have to put the websockets.exe under PATH, but the [url in README](https://github.com/python-websockets/websockets) only provides a python library. (I'm not very familiar with python.) I'm using a pre-compiled version of yt-dlp. Should I compile it?

### Provide verbose output that clearly demonstrates the problem

- [ ] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: godot
Issue: ERROR: FATAL when adding a new SkeletonProfileHumanoid
Labels: bug,topic:import,crash,topic:animation,topic:3d

### Tested versions

v4.2.1.stable.official [b09f793f5]

### System information

Windows 11 Pro - 23H2 - AtlasOS - Vulkan API 1.3.277

### Issue description

Godot crash when I want to add a new SkeletonProfileHumanoid :
ERROR: FATAL: Index p_index = 2 is out of bounds (size() = 2).
   at: get (./core/templates/cowdata.h:158)
[](url)

### Steps to reproduce

1. Download the gltf model here : https://sketchfab.com/3d-models/curious-skeleton-757d9863b3504a75a439b2b99a530454#download
2. Add it to the project folder
3. In Godot, select the "scene.gltf" and click on the "Advecement..." button in the import tab
4. Select the Skeleton3D and add a new BoneMap
5. Add a new SkeletonProfileHumanoid to the BoneMap
![Godot_v4 2 1-stable_win64_ySG4QHo5WH](https://github.com/godotengine/godot/assets/37516760/31ad4f61-b73f-44de-a0ba-8fc642d6e5b6)


### Minimal reproduction project (MRP)

[game.zip](https://github.com/godotengine/godot/files/14697116/game.zip)
Repository: PowerToys
Issue: MWB Worked fine for months then just stopped working & no longer connects
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.77.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

[Log_2024-03-21.txt](https://github.com/microsoft/PowerToys/files/14695810/Log_2024-03-21.txt)


### ✔️ Expected Behavior

1. I expect Mouse Without Borders to work consistently. I've been using it for years and it's ALWAYS been flaky, will just stop working & I'll have to hit the 'Refresh connections" button on both machines at least once a day but it will usually reconnect & work again for several hours. Now it's stopped working & nothing I do will reconnect the 2 machines. I'm on the same subnet physically wired with ethernet (but have also tried wi-fi & still can't reconnect) & typically have the PC names & IP addresses mapped to resolve but have tried with & without. There are no other machines on my network, just the 2 I've been using for years.

### ❌ Actual Behavior

Cannot get the machines to connect to mouse/keyboard share all of the sudden after years of use. There have been no changes or updates to either machine lately to render the app useless. 

### Other Software

n/a
Repository: next.js
Issue: next/dynamic has incorrect type for jsx file with optional prop
Labels: bug,TypeScript,Lazy Loading

### Link to the code that reproduces this issue

https://github.com/TzviPM/next-dynamic-js-optional-bug

### To Reproduce

1. create a jsx file exporting a component with at least one prop.
2. Add proptypes indicating that one of the props is optional (not `isRequired`)
3. In a tsx file, import the component using `next/dynamic`
4. attempt to render the component without providing the optional prop

### Current vs. Expected behavior

I expect to be able to render the component without a typescript error. Instead, typescript reports that the prop is missing.

**Note** this is a regression from the typing behaviour of `React.lazy` which does respect proptypes.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.1.4
  eslint-config-next: 14.1.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


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

Dynamic imports (next/dynamic), TypeScript (plugin, built-in types)

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

next dev (local), next build (local), Other (Deployed)

### Additional context

I set up a CI workflow so that you can quickly see the bug: https://github.com/TzviPM/next-dynamic-js-optional-bug/actions/runs/8377130818/job/22938499553.

Notice that React.lazy does work as expected when imported here: https://github.com/TzviPM/next-dynamic-js-optional-bug/blob/main/src/pages/index.tsx#L6 and rendered here: https://github.com/TzviPM/next-dynamic-js-optional-bug/blob/main/src/pages/index.tsx#L18.
Repository: pytorch
Issue: On Lack of Default `__len__` in Python Abstract Base Classes
Labels: module: docs,triaged,module: data

Thoughts about `# NOTE [ Lack of Default __len__ in Python Abstract Base Classes ]`.

**TL;DR:**

1. We don't have the `__len__` ("abstract") methods but seems like they could be (via [a `TypeError`](https://discuss.python.org/t/list-constructor-and-len-method/47860/48) or [an abstract method](https://discuss.python.org/t/list-constructor-and-len-method/47860/8) implementations).
2. We don't have the `__len__` docstrings but they could be (without the method itself).
3. We don't point in the documentation datasets have the size. (Or they don't?)

---

We have https://github.com/pytorch/pytorch/blob/v2.2.1/torch/utils/data/sampler.py#L70-L95 (introduced in #19228):

```python
# NOTE [ Lack of Default `__len__` in Python Abstract Base Classes ]
#
# Many times we have an abstract class representing a collection/iterable of
# data, e.g., `torch.utils.data.Sampler`, with its subclasses optionally
# implementing a `__len__` method. In such cases, we must make sure to not
# provide a default implementation, because both straightforward default
# implementations have their issues:
#
```
```python
#   + `return NotImplemented`:
#     Calling `len(subclass_instance)` raises:
#       TypeError: 'NotImplementedType' object cannot be interpreted as an integer
```
But what should return `len(subclass_instance)` without an implemented length value?
No matter, on other hand, [`NotImplemented` is for binary operators only](https://docs.python.org/3/library/constants.html#NotImplemented).
Let's remove this part of the comment?

```python
#
#   + `raise NotImplementedError()`:
#     This prevents triggering some fallback behavior. E.g., the built-in
#     `list(X)` tries to call `len(X)` first, and executes a different code
#     path if the method is not found or `NotImplemented` is returned, while
#     raising a `NotImplementedError` will propagate and make the call fail
#     where it could have used `__iter__` to complete the call.
```
[This comment](https://discuss.python.org/t/list-constructor-and-len-method/47860/5) says we should write `list(iter(X))` instead of `list(X)`. (See the [`list` cconstructor](https://docs.python.org/3/library/stdtypes.html#list) documentation.)
```python
#
# Thus, the only two sensible things to do are
#
#   + **not** provide a default `__len__`.
#
```
```python
#   + raise a `TypeError` instead, which is what Python uses when users call
#     a method that is not defined on an object.
#     (@ssnl verifies that this works on at least Python 3.7.)
```
It is a good idea, isn't it? [This comment](https://discuss.python.org/t/list-constructor-and-len-method/47860/48) says it is the correct one.

More options:

[This comment](https://discuss.python.org/t/list-constructor-and-len-method/47860/8) suggest to make an abstract method.

Are we able to add the documentation stub (without the method itself)?

Thanks!

cc @svekars @brycebortree @VitalyFedyunin @ejguan @dzhulgakov @ssnl
Repository: rust
Issue: Evaluating constants in MIR optimizations introduces const eval errors 
Labels: T-compiler,C-bug,A-const-eval,A-mir-opt,A-monomorphization

```rust
#![feature(inline_const)]
#![crate_type = "lib"]
pub fn f<T>() -> usize {
    g::<()>()
}
pub fn g<T>() -> usize {
    const { 0 / std::mem::size_of::<T>() }
}
```
This compiles fine in debug builds, but fails in release builds:

```console
$ rustc b.rs
$ rustc b.rs -O
error[E0080]: evaluation of `g::<()>::{constant#0}` failed
 --> b.rs:7:13
  |
7 |     const { 0 / std::mem::size_of::<T>() }
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to divide `0_usize` by zero

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0080`.
```

Based on https://github.com/rust-lang/rust/issues/107503#issuecomment-2011659833 cc @RalfJung.


But also see [this example](https://github.com/rust-lang/rust/pull/104087#issuecomment-2035070170) based on type sizes.
Repository: PowerToys
Issue: Keyboard Manager
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Assign F13 (or F14-F24) to a USB-wired/Bluetooth macro keyboard.
Assign generic key, a/b/c/F1/F12/etc. to a USB-wired/Bluetooth macro keyboard.

1. Connect the macro keyboard over a **wired USB** connection.
1a. Click on Remap keys->Select and press the F13-F24 configured macro keyboard button.
1b. Click on Remap keys->Select and press the generic key configured macro keyboard button.

2. Connect the macro keyboard over a **Bluetooth** connection.
2a. Click on Remap keys->Select and press the F13-F24 configured macro keyboard button.
2b. Click on Remap keys->Select and press the generic key configured macro keyboard button.

### ✔️ Expected Behavior

1a. Configured F13-F24 key is displayed as input.
1b. Configured generic key is displayed as input.

2a. Configured F13-F24 key is displayed as input.
2b. Configured generic key is displayed as input.

### ❌ Actual Behavior

1a. Configured F13-F24 key is displayed as input.
1b. Configured generic key is displayed as input.

2a. **Nothing is displayed.**
2b. Configured generic key is displayed as input.

### Other Software

_No response_
Repository: ui
Issue: [Bug]: Input OTP strange bug
Labels: bug

### Describe the bug

![image](https://github.com/shadcn-ui/ui/assets/29999228/ee4ba6f1-4354-4ba1-84e6-953476771c9a)
![image](https://github.com/shadcn-ui/ui/assets/29999228/6258aca4-59a4-4fae-99e5-09108a2946d6)


### Affected component/components

Input OTP 

### How to reproduce

1. Open up https://ui.shadcn.com/docs/components/input-otp
2. Input otp
3. select the otp once 

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
- MacOS Intel
- Firefox Developer Edition
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: Pushing events to Viewports no longer triggers `InputEventMouseMotion` in `_gui_input`
Labels: bug,topic:input,regression

### Tested versions

- Reproducible in Godot 4.3-dev5
- Works in Godot 4.3-dev4

### System information

Windows 11 Pro - Godot 4.3-dev5

### Issue description

If you push an `InputEventMouseMotion` to a viewport using `push_input`, it will not be received by `_gui_input` methods in its controls. This was introduced by 99ba2519eaf79271c86b8a932ce185666fb79a37, specifically the change to `mouse_in_viewport` default of `false` when it was previously `true`.

`mouse_in_viewport` having a default of false does make sense, but it also doesn't make sense to me that pushing events inside a viewport do not work. Perhaps receiving events should update that flag?

There is a workaround you can call from your game code. If you trigger `NOTIFICATION_VP_MOUSE_ENTER` that will set the flag and your events will be passed as they were before.

### Steps to reproduce

I have included a zip file that reproduces the issue. Simply move the mouse and look at the console to see events are not being received. If you uncomment `sub_viewport.notification(NOTIFICATION_VP_MOUSE_ENTER)` in `main.gd` then you will see the events. Additionally, using a version of godot prior to 99ba2519eaf79271c86b8a932ce185666fb79a37 such as 4.3-dev4 will work.

### Minimal reproduction project (MRP)

Here is the project: 
[test-pushinput.zip](https://github.com/godotengine/godot/files/14704171/test-pushinput.zip)
Repository: godot
Issue: TileSet bottom button stays visible when TileMap is deselected
Labels: bug,topic:editor,topic:2d

### Tested versions

4.3 dev5
Not sure when it started, might be relatively recent.

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

See title.

https://github.com/godotengine/godot/assets/2223172/f4730fd3-fc70-4dcc-9645-09f5542affbf

The TileSet tab seems to stay permanently, even if you close the scene and the TileSet was built-in.

### Steps to reproduce

1. Add TileMap
2. Add TileSet
3. Try making the TileSet bottom button disappear

### Minimal reproduction project (MRP)

N/A
Repository: PowerToys
Issue: Fancy Zones : make lines between zones pop more
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Would be nice with more highlighted borders between programs since some programs dont use/obey windows default borders. 
Also maybe have some animations like fire / water / lightning / neon running along the lines
Or just static line with text on it ex : company name


### Scenario when this would be used?

Quick glance at second monitor where I use Fancy Zones would make it easier to distinguish between programs if they all use black borders
![visual](https://github.com/microsoft/PowerToys/assets/32860064/98b1c058-4593-413a-98ea-38561f73f501)
The image is just a visual aid but as you can see my second monitor is divided into 3 zones, And since i use Steam Friends ( left box ), Opera GX in dark mode ( top box ) and Discord ( lower box ) its sometimes hard to see where 1 program ends and the next start

### Supporting information

_No response_
Repository: go
Issue: cmd/compile: use mapaccess1_fast64 for small keys
Labels: NeedsDecision,compiler/runtime

### Go version

go1.22

### Output of `go env` in your module/workspace:

```shell
GOARCH=amd64
GOOS=linux
```


### What did you do?

Compile the following program:
```go
package main

type key struct {
	u16 uint16
	u8  bool
	u32 uint32
}

var map1 map[key]struct{}
var map2 map[uint64]struct{}
var key1 = key{}
var key2 = uint64(0)
var sink struct{}

func main() {
	sink = map1[key1]
	sink = map2[key2]
}
```

### What did you see happen?

The compiler output:
```
0x0023 00035 (main.go:17)	CALL	runtime.mapaccess1(SB)
...
0x0040 00064 (main.go:18)	CALL	runtime.mapaccess1_fast64(SB)
```

### What did you expect to see?

`runtime.mapaccess1_fast64` being used on both since the `key` type is smaller than a uint64.

That said, there is some complications. For example, through `unsafe`, someone could writes values to the padding in-between the `bool` field and the `uint32`. Also, someone using `unsafe` could write a bit pattern to the bool that isn't 0 or 1.
It isn't clear to me that this is something that someone can rely on.

However, even if we make the `key` struct exactly 64-bits wide with no padding and no bools, it still doesn't use `runtime.mapaccess1_fast64`.
Repository: flutter
Issue: 'Linux flutter release builder' links to wrong build and therefore stuck at yellow
Labels: team-infra,P2,triaged-infra,fyi-release

on [builds of release branch](https://flutter-dashboard.appspot.com/#/build?repo=flutter&branch=flutter-3.19-candidate.1), the build target 'Linux flutter release builder' stucks at yellow.

sir Godofredo pointed out that this is because the [linked build](https://ci.chromium.org/ui/p/dart-internal/builders/luci.flutter.prod/Linux%20flutter_release_builder) which people don't have permission to view, is in fact wrong. The correct build link should be [this one](https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Linux%20flutter_release_builder)