sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Re-rendered segment above
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
next 13.2.3
nodejs 18
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue

https://next13-app-exp-templates-git-static-dynamic-segments-denisso.vercel.app/static

### To Reproduce

Goto static segment (click "Static" button), then switch to the dynamic segment (click "Dynamic" button), we will see that the data of the static segment layer has been cached and transferred to the dynamic segment.

![cache dynamic 1](https://res.cloudinary.com/mrdramm/image/upload/v1677765547/site0001/articles/20230203-next13/cache-001_vwm0bn.jpg)

If you click on the "Refresh current segment" button which run [router.refresh()](https://beta.nextjs.org/docs/api-reference/use-router#userouter ), to clear the client cache and request new data from the server, being on a dynamic segment, component "layout" that came from the "static" segment will also receive updated data from the server, despite the fact that it is "force-static".

![cache dynamic 2](https://res.cloudinary.com/mrdramm/image/upload/v1677765547/site0001/articles/20230203-next13/cache-002_vs5b9v.png)

### Describe the Bug

In route /static/dynamic push button "Refresh current segment", component /static/layout.tsx re-rendered.

### Expected Behavior

I expected that partial rendering would work, and the layout component would not change

[github](https://github.com/denisso/next13-app-exp/tree/static-dynamic-segments)

Structure of demo files

```
app
│   globals.css
│   layout.module.scss
│   layout.tsx
│   page.tsx
│
└───static  - segment is cached, because in the static\layout.tsx file the option dynamic=force-static 
    │   layout.tsx
    │   page.tsx
    │
    └───dynamic  - segment is not cached, because in the file static\dynamic\page.tsx the option dynamic=force-dynamic
            page.tsx
```

code layout.tsx

```tsx
import { ReactNode } from "react";
import moment from "moment";

export default function Layout({ children }: { children: ReactNode }) {
  return (
    <div>
      <div>Layout Static: generated at {moment().format("MMMM Do YYYY, h:mm:ss a")}</div>
      <div>
        <pre>
          <code>{`export const dynamic = "force-static";`}</code>
        </pre>
      </div>
      <div>{children}</div>
    </div>
  );
}

export const dynamic = "force-static";
```

### Which browser are you using? (if relevant)

Chrome

### How are you deploying your application? (if relevant)

Vercel
Repository: pytorch
Issue: Build from source,  Undefined symbol: c10::detail::maybe_wrap_dim_slow(long long, long long, bool)
Labels: triaged,oncall: mobile,module: ios

### 🐛 Describe the bug

Hi

I tried to build Pytorch for iOS from source (Because we need to support more arch than pre-build binary, like LibTorch-Lite provides, so we're forced to build from source).

We followed the guidance in [build-pytorch-ios](https://pytorch.org/mobile/ios/#build-pytorch-ios-libraries-from-source). Everything turns out good, the building process is smooth. But we got errors while linking Pytorch to our project.

```
Showing Recent Messages
Undefined symbol: at::_ops::repeat_interleave_self_int::call(at::Tensor const&, long long, c10::optional<long long>, c10::optional<long long>)

Undefined symbol: at::_ops::pad::call(at::Tensor const&, c10::ArrayRef<long long>, c10::basic_string_view<char>, c10::optional<double>)

Undefined symbol: c10::detail::maybe_wrap_dim_slow(long long, long long, bool)
```

I have found [issue 13541](https://github.com/pytorch/pytorch/issues/13541), and tried adding ```"-D_GLIBCXX_USE_CXX11_ABI=0"``` flag to ```building_ios``` script but that doesn't fix the issue.

My compiler version:

Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix

If anyone could give a hint that where should I look into, it would be a great help.

Thanks a lot.

### Versions

I build from the master branch, don't know whether it's relevant.
Repository: PowerToys
Issue: FancyZones "quick layout switch" ignores remappings in Keyboard Manager
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.67.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

FancyZones, Keyboard Manager

### Steps to reproduce

1. Remap a key to control using keyboard manager (in my case I've remapped Capslock -> Ctrl (left))
2. Enable quick layout switch, and set a layout to a certain hotkey
3. Pressing Ctrl+Win+Alt+<number> switches to that zone
4. Pressing Capslock+Win+Alt+<number> does not (even though capslock is remapped to control)

### ✔️ Expected Behavior

I should be able to use a remapped ctrl key to use FancyZones quick layout switch.

### ❌ Actual Behavior

FancyZones does not recognise the shortcut when using a remapped ctrl key

### Other Software

_No response_
Repository: godot
Issue: Scrolling in script editor laggy
Labels: bug,topic:editor,needs testing,performance

### Godot version

4.0-stable

### System information

Arch Linux 6.1.12-arch1-1 NVIDIA GeForce GTX 1650 Mobile / Max-Q 

### Issue description

Scrolling in script editor is very laggy while everything else works perfectly. Applies to the scrollbar and mouse wheel.

https://user-images.githubusercontent.com/58263600/222657429-9cbab6a9-036f-4d3f-b8b7-15be5c8019ea.mp4



### Steps to reproduce

1. Open a script in the script editor
2. Make sure it's long enough
3. Scroll

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: Paste by line
Labels: Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

A shortcut key to paste a single line of text from a multi-line text in the clipboard. The lines are iterated through after each paste.

### Scenario when this would be used?

Copying data from one place to another where bulk operations are not available.

eg) After copying
```
one
two
three
```
Pasting with the shortcut would produce
```
one
```
then
```
two
```
and finally
```
three
```

### Supporting information

I couldn't find any decent way do this, AHK scripts have been suggested ([Paste from a file one line (or section) at a time](https://stackoverflow.com/questions/27174798/paste-from-a-file-one-line-or-section-at-a-time)), but a more robust solution would be appreciated.
Repository: pytorch
Issue: The torch.sparse document's typo error
Labels: module: sparse,module: docs,triaged

### 📚 The doc issue

In the torch.sparse module(https://pytorch.org/docs/stable/sparse.html), there is a typo error of the "Operator overview" chapter(https://pytorch.org/docs/stable/sparse.html#operator-overview). The original description is
"The particularities of storage, that is the physical layout of the data, influences the performance of an operation but shhould not influence the semantics." And the error spelling is "shhould", which the right spelling is "should".


### Suggest a potential alternative/fix

Change the "shhould" to "should".

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @svekars @carljparker
Repository: pytorch
Issue: [vulkan] missing aten::reflection_pad1d.out operator
Labels: triaged,module: vulkan

As discussed in https://discuss.pytorch.org/t/error-with-pytorch-mobile-on-vulkan-backend-during-prediction/142047

The `aten::reflection_pad1d.out` operator is missing from the Vulkan backend and thus some models can't be run on Android GPU.
Repository: rust
Issue: Rust compiler shows unused function warning when using modules with the path expression
Labels: A-lints,A-diagnostics,A-resolve,P-low,T-compiler,C-bug,D-incorrect,S-has-mcve,L-dead_code

It seems like there's something wrong with how the warning works when it comes to modules, During some coding I had to divide into modules, some of them are located in `/src/utils/`, While some of the utils located there beside `main.rs` requires other utils to be able to work the only solution for me was to use the path expression `#[path = './module.rs']` then `mod module` to use it in my code

Using the module doesn't get read by the compiler, So I may be using `module::function` in my code and the compiler would still show me warning that I didn't use `function` in the module and it's an unused function that should be either removed or used 

Here's my directory structure 

```
./
./src/
./target/
.gitignore
Cargo.lock
Cargo.toml

./src/main.rs
./src/utils/

./src/utils/mod.rs
[more rs modules here]
...
```

The code works fine though, The function i'm using gets executed, it's just about the errors and how it's not supposed to be there since everything is working fine ig?
Repository: opencv
Issue: OpenCV 4.7 core dump when importing ONNX model
Labels: bug,category: dnn (onnx)

### System Information

OpenCV python version: 4.7.0.
Operating System / Platform: Arch Linux
Python version: 3.10.9

### Detailed description

Prior to upgrading to 4.7.0, I used 4.6.0 without issue. However after upgrading, my Python program would core dump after running. I thought perhaps this as an issue w/ the Arch Linux build as if I pip install in a venv, I do not encounter the issue. I opened a [bug report](https://bugs.archlinux.org/task/77705) with Arch and was told this was an assert issue and to report it upstream. 

Here is what I see:
/usr/include/c++/12.2.1/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = float; _Alloc = std::allocator<float>; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
/usr/include/c++/12.2.1/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = float; _Alloc = std::allocator<float>; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)

### Steps to reproduce

Here is the [link](https://drive.google.com/drive/folders/1i_aqCIovVoC6ufG1b8e-S6ELNG9DEMp3?usp=sharing) to the program, test data and model.

### 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
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: PowerToys
Issue: [Mouse Jump] Allows to change pen tablet's monitor setting if the another monitor area clicked
Labels: Needs-Triage

### Description of the new feature / enhancement

It will be amazing if Mouse Jump allows to change pen tablet's setting.
Most of pen tablet users that use multi-monitor are set monitor setting to one monitor.
The issue for this is its very unconvinience to move cursor to another monitor area.
This feature would be an amazing solution for this.
It would be better to deal this feature as plugin or extension.
The problem with this proposal is that each product would require an individual implementation.
So I recommend to implement only for WACOM users, because the number of pen tablet users who use Wacom products is the largest.
This is Japanese user's data, but please look at this.
The above one is WACOM, and the total share is almost 90%.
![image](https://user-images.githubusercontent.com/44313991/222692346-676a82cf-90d6-45a6-9f68-52cbed17a046.png)
https://www.bcnretail.com/research/detail/20210326_218820.html



There is a documentation about WACOM pentablet SDK.
This section is about changing monitor setting.
https://developer-docs.wacom.com/intuos-cintiq-business-tablets/docs/wintab-basics#mapping-tablet-to-display
And sample code.
https://github.com/Wacom-Developer/wacom-device-kit-windows
https://github.com/Wacom-Developer/Wacom-Developer-Welcome-Page

Unfortunately, XPPEN pentablet SDK has no feature to change monitor setting.
But here's a SDK link.
https://www.xp-pen.jp/developer

### Scenario when this would be used?

When pentablet user want to move the cursor to another monitor area.

### Supporting information

_No response_
Repository: opencv
Issue: Get error gpu_mat.cu:116: error: (-217:Gpu API call) unknown error in function 'allocate' in different GPU
Labels: bug

### System Information

OpenCV version: 4.5.4
Operating System / Platform: Ubuntu 18.04
Compiler & compiler version: GCC 9.3.0

### Detailed description

I compiled opencv with cuda support on GPU rtx2060. Everything goes fine when i call cuda function on this kind of devices. But when i deployed the application to other device with other GPU（eg. A4000） but the same cuda version, it raised error " unknown error in function 'allocate' in different GPU" when the cuda functions were called. Is that meant  I should compile opencv on different GPUs before i want to depoly application to target device? Is there a better solution?

### Steps to reproduce

cv::Ptr<cv::cuda::Filter> openFilter = cv::cuda::createMorphologyFilter(mode, src.type(), element);
openFilter->apply(src, dst);

### 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
- [ ] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: PowerToys
Issue: [Mouse Jump] Allow binding to middle mouse button
Labels: Idea-Enhancement,Product-Mouse Utilities

### Description of the new feature / enhancement

I was kind of excited about the new mouse jump feature only to find out i'd still need to bind it to a keyboard shortcut.

Proposal:

Allow binding mouse jump action to things like mouse wheel click so you don't have to move your hands to your keyboard to jump navigate.

### Scenario when this would be used?

I'm a left handed mouse user so I don't have a hand free for a windows key shortcut.

### Supporting information

_No response_
Repository: storybook
Issue: Feature: Storybook doesn't show an error for a story file with Meta but no stories
Labels: feature request,help wanted,story index

### Describe the bug

If you create a sandbox e.g. `npx storybook@next sandbox` then run Storybook

Then modify the contents of the `Button.stories` file to only this:
```js
export default {
  title: 'Hello',
}
```

or
```js
import { Button } from './Button'
export default {
  component: Button
}
```

Storybook will not display any errors in the CLI or in the browser, and the Button component will not be visible in the sidebar:

<img width="1919" alt="image" src="https://user-images.githubusercontent.com/1671563/222702706-756c1493-3548-43ba-af5a-8bb468883852.png">

<img width="553" alt="image" src="https://user-images.githubusercontent.com/1671563/222702991-59f66995-729d-4580-944b-b44d9b14e981.png">

Additionally, you get the same behavior if you change the contents of the story file to be:
```
import { Button } from './Button'
export default {
  component: Button,
  excludeStories: 'Default'
}

export const Default = {}
```
Repository: PowerToys
Issue: Opening Folders in the Same Window
Labels: Needs-Triage

### Description of the new feature / enhancement

I always use WIN+E as a shortcut key to access my documents, but every time I click it, a different window opens. It would be very nice if there was a window stabilization to prevent this situation. 

### Scenario when this would be used?

It would be very nice if there was a window stabilization to prevent this situation. 

### Supporting information

_No response_
Repository: PowerToys
Issue: Feature
Labels: Needs-Triage

### Description of the new feature / enhancement

Please create a dock like mac os has and also please create a library kind of like we have in mobiles where we can see all of our installed application

### Scenario when this would be used?

It helps and ehances the usage of the laptop

### Supporting information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]:  NameError: name 'index_url' is not defined
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

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

### What happened?

When I run webui-user.bat I get error:

NameError: name 'index_url' is not defined

I am using python-3.10.6150.1013




### Steps to reproduce the problem

1. Run webui-user.bat
2. Write in additional launch options - "--skip-torch-cuda-test" (because without this command, the program does not work for me)
3. Wait

### What should have happened?

![f](https://user-images.githubusercontent.com/59397459/222725371-6841eeab-1f2c-4955-8ef0-3960788874fb.jpg)


### Commit where the problem happens

Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

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

Windows

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

Google Chrome

### Command Line Arguments

```Shell
No
```


### List of extensions

No

### Console logs

```Shell
Cancel
venv "G:\A1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Traceback (most recent call last):
  File "G:\A1111\stable-diffusion-webui\launch.py", line 360, in <module>
    prepare_environment()
  File "G:\A1111\stable-diffusion-webui\launch.py", line 275, in prepare_environment
    run_pip(f"install {gfpgan_package}", "gfpgan")
  File "G:\A1111\stable-diffusion-webui\launch.py", line 136, in run_pip
    index_url_line = f' --index-url {index_url}' if index_url != '' else ''
NameError: name 'index_url' is not defined
```


### Additional information

No
Repository: godot
Issue: Godot 4 crashes when loading project with anything other than Compatibility settings. 
Labels: bug,platform:linuxbsd,topic:rendering,topic:thirdparty,needs testing

### Godot version

4.0-stable

### System information

Fedora 36, 

### Issue description

```
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.stable.official (92bee43adba8d2401ef40e2480e53087bcb1eaf1)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib64/libc.so.6(+0x3ea30) [0x7fbfda23ea30] (??:0)
[2] /usr/lib64/libvulkan_radeon.so(+0x1483e7) [0x7fbfc49483e7] (??:0)
[3] /usr/lib64/libvulkan_radeon.so(+0x123589) [0x7fbfc4923589] (??:0)
[4] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1b042ca] (??:0)
[5] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1abe45e] (??:0)
[6] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x3b5e932] (??:0)
[7] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0xec1616] (??:0)
[8] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1ec3b73] (??:0)
[9] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1c271af] (??:0)
[10] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1c2c242] (??:0)
[11] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x1c2dd85] (??:0)
[12] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x4568594] (??:0)
[13] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x2b9a3ee] (??:0)
[14] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0x2bd12a1] (??:0)
[15] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0xec07db] (??:0)
[16] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0xe027f3] (??:0)
[17] /lib64/libc.so.6(+0x29510) [0x7fbfda229510] (??:0)
[18] /lib64/libc.so.6(__libc_start_main+0x89) [0x7fbfda2295c9] (??:0)
[19] /home/sean/Desktop/gamedev/Godot4/Godot_v4.0-stable_linux.x86_64() [0xe2286e] (??:0)
-- END OF BACKTRACE --
================================================================
```

Upon loading a project with Forward+ or Mobile settings, I see this followed by the engine crashing to the previous log. I suspect it is a driver related issue but updating my drivers hasn't fixed it on multiple attempts throughout the Beta and RC stage, I do apologise for not reporting it sooner.

Vulkan works great on my GPU except for a few particular things, and Godot seems to be one of them.


PC specs: 8-core Ryzen 5 3550H with Vega graphics




### Steps to reproduce

Setting any project to forward+ or mobile causes this. Compatibility works fine, but has no shading, of course.

### Minimal reproduction project

N/A doesn't make a difference
Repository: next.js
Issue: getServerSideProps returns ```undefined``` on client side transition after adding locales
Labels: bug

### Verify canary release

- [ ] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Home
    Binaries:
      Node: 16.15.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 12.2.0
      eslint-config-next: 12.2.0
      react: 18.2.0
      react-dom: 18.2.0
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Data fetching (gS(S)P, getInitialProps), Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue

https://github.com/abdofola/Abdallah-Money-Tracker

### To Reproduce

clone the repo in the link above, follow the instructions in the `readme.md`  to get started. 

### Describe the Bug

After successfully running the project locally, try to navigate from `home` to `statement` page you will have and error in the browser console:
```
 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
```
the `id` comes from `getServersideProps`, which has the following code:

```
import { withSessionSsr } from "@lib/session";

export const getServerSideProps = withSessionSsr(({ req }) => {
  const { user } = req.session;

// user has this structure {id, email, name, createdAt, updatedAt}
  console.log("-----getServerSideProps---->", { session: user });
  if (!user) return { redirect: { permanent: false, destination: "/login" } };
  return { props: { session: user } };
});

// page component
const AccountStatement: NextPageWithLayout = ({ session }) => {
// dome some client fetching based on the id
  const { data, isSuccess, isLoading, error } = useGetTransactionsQuery({
    userId: session.id, // session is `undefined`, the hook fails to fetch and raises an error
  });

// return some jsx
...
}

export default AccountStatement;
```

the weird thing though, when deploying to `vercel` the error happens the other way around, i.e when navigating from `statement` to `home` page and not vice versa


### Expected Behavior

expect `getServerSideProps` to run on client side transition, therefore `session` should not be `undefined`

### Which browser are you using? (if relevant)

chrome

### How are you deploying your application? (if relevant)

vercel