sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Global 404 page is not available for internationalization
Labels: Internationalization (i18n)

### Verify canary release

- [X] 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 Pro
    Binaries:
      Node: 20.2.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.5-canary.3
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.4
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true), Internationalization (i18n), Routing (next/router, next/navigation, next/link)

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

https://github.com/Arctomachine/404-page-internationalization-root-layout

### To Reproduce

0. Create project as usually, start dev server
1. Follow [internationalization section guide](https://nextjs.org/docs/app/building-your-application/routing/internationalization) and create `/app/[lang]` folder. Create layout file (starting from `<html lang={lang}>`) that will act as root layout.
2. Create `/app/not-found.tsx` file according to [not found section](https://nextjs.org/docs/app/api-reference/file-conventions/not-found)
3. Follow console instruction and make top level root layout (containing only `<>{children}</>) for this page to start working
4. Stop dev server. Run build and then start scripts. Visit any not existing url that would trigger 404

### Describe the Bug

There are multiple problems with it. One of them being actual bug, the rest just would make this the (currently) only solution bad - if it worked.
1. 404 page contents blink for a second, then page goes completely white and empty. Numerous errors in browser console.
2. This approach makes it impossible to fit error page into acting root layout under `/[lang]`
3. This approach makes it impossible to translate error page into other languages

Uploaded reproduction: https://404-page-internationalization-root-layout.vercel.app/en

### Expected Behavior

Since there is not much to be expected from this solution, I will propose new expected workflow instead.
A new way of making 404 page with internationalization in mind:

- treat the topmost _available_ layout as root. Then not-found file inside of it will behave like global 404 page
- allow passing props into not-found file to change its contents based on language of currently visited page

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

any
Repository: go
Issue: database/sql: incorrect assumptions about parameter names
Labels: NeedsInvestigation,FeatureRequest

### What version of Go are you using (`go version`)?

<pre>
go1.20.4 windows/amd64

</pre>

### Does this issue reproduce with the latest release?
yes



### What operating system and processor architecture are you using (`go env`)?
N/A

### What did you do?
reviewed the function validateNamedValueName in go/src/database/sql/convert.go

### What did you expect to see?
The function does not make the incorrect assumption that procedure parameters always start with a letter.


### What did you see instead?
The function should not reject valid parameter names.

For example, `$foo`, and `#bar` are valid stored procedure parameters in SQL Server.

This means that the function needs to support all valid parameter names (which is unknowable), or should be eliminated.

I believe it acceptable to not perform a check and leave it to the database to generate an error.
Repository: opencv
Issue: support wstring for imread() and imwrite()
Labels: duplicate,feature

### Describe the feature and motivation

Currently, `imread()` and `imwrite()` accept a `cv::String` to locate a file.

Unfortunately, under Windows, it must be a multi-byte string, not an UTF8 string, to handle properly special characters.

Usually, a `std::string` is either ASCII or UTF8, it is rarely already a multi-byte string. Under windows, it is common that a non-ascii string will be a `std::wstring` that has to be converted with `wcstomb()` to make a multi-byte `std::string` that `imread()/imwrite()` can use.

It does not seem relevant to add complexity to `cv::WBaseStream` to guess if a string is UTF8 or multi-byte, my proposal is simpler : can we add overloads `imread(std::wstring...)` and `imwrite(std::wstring...)` that will perform some `std::wcsrtombs()`, assuming that using a `std::wstring` is more likely under Windows ?



### Additional context

_No response_
Repository: flutter
Issue: [go_router] RouteMatchlist codec encode and decode will break route future.
Labels: package,P2,p: go_router,team-go_router,triaged-go_router

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

The ImperativeRouteMatchList contains a completer future for route pop. The completer can't be serialized was discard. This causes the previous route future will never be completed after ImperativeRouteMatchList is serialized and deserialized.

This can happen if the app is going through state restoration or browser backward and forward button.

### Proposal

We should figure out a way to try to hook up the future before and after the ImperativeRouteMatchList is serialized, or avoid having a future in RouteMatchList entirely.
Repository: flutter
Issue: Track error cases across multiple tests in our CI
Labels: team,c: proposal,team-infra,P2,triaged-infra

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Checking for specific error cases across multiple tests in our CI system is inefficient and difficult.

For example, while debugging test flakes such as https://github.com/flutter/flutter/issues/120808, I had to watch the tree, examine tests that flaked, look through the logs, and determine if it met my error case. Since this error case happened across multiple tests, I could not rely on the fluttergithubbot to inform me because I'm not test owner to all tests. Also, I believe fluttergithubbot only posts once a week?

### Proposal

Provide a way for developers to easily add/update/remove a check in our CI system to match a specific error case. 

Ideas:
* We could require the developer to provide a github issue link. We could then use the fluttergithubbot to post to that github issue when it finds matches to the error case. 
* Set how often they want it to post to the github issue. 
* Limit on how frequently it posts within a timeframe so it doesn't spam.
* Specify additional steps to be run

Resources that may be needed to match on error case:
* Test name
* Test logs
* Device logs
* If test timed out
* Output from previous steps
* etc
Repository: TypeScript
Issue: 6.0 Deprecation Candidates
Labels: Meta-Issue

* Change the default `rootDir` to the location of the tsconfig.json (i.e. `"."`). This can be safely transitioned by having a warning at 6.0 if the `rootDir` *we would have inferred* doesn't match ".".
Repository: go
Issue: net/url: `(*Error).Timeout` and `(*Error).Temporary` methods should use `errors.As` instead of type assertion
Labels: NeedsInvestigation,FeatureRequest

The url.Error type uses type assertion in the Timeout() and Temporary() method to delegate the work to the wrapped error:

https://github.com/golang/go/blob/0cd9064cd734501738e20a902f942523df0a5a5a/src/net/url/url.go#L32-L44

In todays time, we shouldn't have implemented the methods like this, but should have left the task of unwrapping the error until some error in the chain implements the wanted interface to the user of the error. But as these methods now are implemented, they should use `errors.As` to delegate the answer to `Timeout()` or `Temporary()` to the next error in the chain who implements this interface - and not only to the direct wrapped error as it is done today.
Repository: go
Issue: x/pkgsite: present the package paths in the vulnerability info shown in the versions tab
Labels: pkgsite,vulncheck or vulndb

https://pkg.go.dev/golang.org/x/text?tab=versions

A module may contain multiple packages. When browsing the module's version history,
the versions tab provides vulnerability info. However, it's hard to figure out whether
a vulnerability affects the entire module, or only a certain package. 

For example, GO-2022-1059 affects golang.org/x/text/language, but visible from
pkg.go.dev/golang.org/x/text?tab=versions and it's not obvious that this vulnerability
affects only golang.org/x/text/language.
![Screenshot 2023-06-02 at 12 45 37 PM](https://github.com/golang/go/assets/4999471/c3b622ce-0a9a-4066-b1ef-821a37a42614)

OTOH, if other packages in the module "transitively" depend on golang.org/x/text/language,
I wonder if they are included in the osv entry.
Repository: godot
Issue: 3.6: TTS doesn't work in a thread in HTML5 export
Labels: bug,platform:web,topic:porting

### Godot version

3.6-beta2

### System information

Firefox on Linux

### Issue description

OS.tts_get_voices_for_language("en") doesn't work on HTML5 when run from a thread (with Export type: Threads).  It returns an empty list.  

It does work fine on 4.0.2, which doesn't seem to have a separate threads setting (threads just work, which is awesome).


### Steps to reproduce

```
var tts_lang_id
var loading_thread

func _ready():
	loading_thread = Thread.new()
	loading_thread.start(self, "load_voices")
	
func load_voices():
	var voices = OS.tts_get_voices_for_language("en")
	if len(voices) == 0:
		print ("no voices")
	for voice in voices:
		tts_lang_id = voice
		break
```

### Minimal reproduction project

[spd-html-3.6.zip](https://github.com/godotengine/godot/files/11637335/spd-html-3.6.zip)
Repository: vscode
Issue: order of search results swaps on notebook open
Labels: bug,search,confirmed

1. Search for a string that shows up in notebook inputs and outputs. Ensure that the notebook is closed. 
2. Click on a result to open the notebook.
3. Notice that the order changes. :bug:

https://github.com/microsoft/vscode/assets/31675041/e8df2500-e00f-475f-950b-85c1743da53a

This is expected, since the outputs come before the inputs in the raw text. This will probably be tackled with closed notebook work https://github.com/microsoft/vscode/issues/173726 but I'll put this issue here anyways.
Repository: PowerToys
Issue: [Mouse Utilities] Mouse Pointer Crosshairs + Snipping Tool
Labels: Needs-Triage

### Description of the new feature / enhancement

When mouse pointer crosshairs are being used, they end up part of the screenshot taken with the Snipping tool (Win-Shift-S). It would be better if the mouse pointer crosshairs weren't part of the screenshot, but instead remained attached to the interactive mouse cursor when selecting an area of the screen to grab.

### Scenario when this would be used?

I am often trying to grab the smallest possible portion of the screen that illustrates a problem, but I have to guess the horizontal/vertical position of the cursor across the screen. Having the mouse pointer crosshairs active during a selection of a screen grab is the primary reason I would need the mouse pointer crosshairs in the first place.

### Supporting information

_No response_
Repository: pytorch
Issue: The operator 'aten::poisson' is not currently implemented for the MPS device
Labels: triaged,enhancement,module: mps

### 🚀 The feature, motivation and pitch

I am running some MCMC sample using torch. currently, the torch distributions don't support sampling from a Poisson distribution when the intensity parameter is a tensor (say 2D). Essentially, it cannot do a vector/matrix of entries. 

I get this error: 
NotImplementedError: The operator 'aten::poisson' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. 
WARNING: this will be slower than running natively on MPS.

### Alternatives

_No response_

### Additional context

_No response_

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen @razarmehr @abhudev
Repository: pytorch
Issue: pdb but for dynamo (and time travel debugging)
Labels: feature,triaged,oncall: pt2

### 🐛 Describe the bug

Pitch: In normal eager PyTorch, I can breakpoint() inside Python code and then single step forward.

If I torch.compile() a module, I can no longer do this anymore. What I would like is a way to do this, and single step, but in the context of dynamo symbolic tracing.

Because dynamo symbolic tracing is non-destructive, it should also be possible to time travel debug (e.g., step backwards).

### Versions

main

cc @msaroufim @wconstab @bdhirsh @anijain2305
Repository: rust
Issue: wide pointer/borrow equality for `unsized_const_params`
Labels: T-compiler,A-const-generics,T-types,F-unsized_const_params

Need to figure out how `&dyn Trait + ConstParamTy` or `&[u8]`  will work as const parameter types before stabilization.
Repository: PowerToys
Issue: Color Picker activation behavior: Quickly select color code format without launching Editor
Labels: Idea-Enhancement,Help Wanted,Needs-Triage,Product-Color Picker,Needs-Team-Response

### Description of the new feature / enhancement

This would be a 4th option for Activation Behavior that is kind of in between "Pick a color and open editor" and "Only pick a color." When a color is picked, instead of immediately saving it to clipboard in the default format, the user is presented with a dropdown list at the location of the mouse cursor (perhaps visually similar to a context menu) that lists the different color format names and the value of the picked color (basically how the color is listed in multiple formats in the Editor view, except make it a more visually-compact dropdown list). In the dropdown, the user can select their desired format with the mouse, or navigate down the list with arrow-keys/mouse-scroll and hit Enter. The color code is then copied to clipboard in the selected format.

An even more streamlined implementation would be to enhance the "Only pick a color" mode, where it keeps its current behavior when you pick a color with a mouse-click, but if you _hold down the mouse_ (aka longpress), _then_ it opens the format-selection dropdown as described above. (A middle-ground between these options, and the one that is probably simplest to implement codewise, could be an optional toggle for "Only pick a color" mode, where either a long-mousedown or right-click from picker mode will launch the full Editor. This would depend on #5195/#24450 so that the clicks don't bubble through to whatever's under the cursor.)

### Scenario when this would be used?

Quicker and less visually-busy compared to launching the full Editor panel. Especially useful when a user _typically_ uses just one color format (and therefore would want "Only pick a color" mode), but they _occasionally_ need a different format, and want to be able to quickly copy a picked color in that format without having to change the Color Picker behavior settings.

### Supporting information

Example of dropdown appearance

![image](https://github.com/microsoft/PowerToys/assets/40775958/0b6a6e14-4144-45c2-8f10-a5731d944906)
Repository: godot
Issue: C++ module: can't declare local variables with the same name as a *private* member variable from a parent class
Labels: discussion,topic:core

### Godot version

Godot 4.0.3

### System information

Windows MSVC Github Actions CI

### Issue description

My C++ module has a class derived from `Resource`. Several of its methods declare a local variable `name`, like this one: https://github.com/Zylann/godot_voxel/blob/4784ac6663494aec56940a1646422e2d267cafa7/meshers/blocky/voxel_blocky_library.cpp#L67
It used to compile without issues.

Something changed somewhere around may 2023, and now these local variables are producing warnings specifically on CI, which treated as errors prevent my module from building:
```
warning C4458: declaration of 'name' hides class member
.\core/io/resource.h(62): note: see declaration of 'Resource::name'
```
It appears that now, if a *local* variable has the same name as a PRIVATE *member* variable of a parent class, then it is seen like shadowing and produces a warning...
So variable names such as `name`, `parent` or `data` became unusable, among many other (`connections`, `size` in UI...)
This is overly aggressive, there is no way the two can conflict because the variable is inaccessible and one of them isn't even a member of the class. Besides, this makes a bunch of internal names unnecessarily reserved in all child classes (which is made worse by the fact Godot does not prefix its member variables).


### Steps to reproduce

```cpp
class Derived : public Resource {
    GDCLASS(Derived, Resource)
public:
    String test() {
        String name = "42"; // This line will cause a warning
        return name;
    }
};
```
Compiling using Github Actions with the following workflow:
https://github.com/Zylann/godot_voxel/actions/runs/5149069769/workflow
`scons -j2 verbose=yes warnings=all werror=yes platform=windows tests=no target=${{matrix.target}} dev_build=no`

Result:
https://github.com/Zylann/godot_voxel/actions/runs/5149069769/jobs/9271603813

### Minimal reproduction project

NA
Repository: storybook
Issue: Story conditional controls should override global argTypes setting
Labels: bug,addon: controls

### Is your feature request related to a problem? Please describe

In `preview.js` I have the following:

```
text: {
	if: {
		arg: 'title',
		exists: true,
	},
	...other settings...
},
```

For most of my use cases, this saves me a lot of time by not having to define the argType settings over and over. However, in one story, I need a different conditional check (and only the check; the other settings can remain the same):

```
text: {
	if: {
		arg: 'showBodyText',
		eq: true,
	},
},
```

It seems that Storybook (7.0.18) deeply merges these two conditionals together to try and resolve the global and story-specific settings, which results in:

```
text: {
	if: {
		arg: 'showBodyText',
		eq: true,
		exists: true,
	},
},
```

This throws an error in Storybook:

`Invalid conditional test {"exists":true,"eq":"text"}`

### Describe the solution you'd like

There needs to be a method for completely overriding the argTypes definition for a control. Perhaps if there is an `truthy`, `exists`, `eq`, or `neq` at the story-level it removes any of those same parameters from the global-level?

### Describe alternatives you've considered

Trying to come up with a conditional (`truthy`, `exists`, `eq`, or `neq`) that works at the global _and_ story level is difficult; solving for one or two cases is usually possible, but eventually it becomes untenable.

Leaving the conditional out of the global level doesn't work, because then that control shows up for _every_ story (which may be a bug depending on how you read the documentation?).

The only current solution seems to be never defining argType in `preview.js`.

### Are you able to assist to bring the feature to reality?

no

### Additional context

_No response_
Repository: pytorch
Issue: Inductor: delete code that extracts out sizevars by inspecting tensor inputs to find a size that handled it
Labels: good first issue,triaged,better-engineering,module: inductor

### 🐛 Describe the bug

This is no longer needed since we now pass in all free symbols as explicit arguments

### Versions

main

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @Xia-Weiwen @ngimel
Repository: storybook
Issue: [Bug]: Storybook 7 breaks localization implementation with vue-i18n
Labels: bug,compatibility with other tools,vue3

### Describe the bug

Hello, we are using `vue-i18n` and `@vee-validate/i18n` in our project for changing locale from ENG to FR. 
It worked perfectly for storybook 6.5, but when we updated to storybook version 7, changing locale no longer works unless the story gets reloaded (on browser window reload, not story within storybook).
There are no warnings or errors in the console, and I believe the issue is coming from storybook 7.
### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: rust
Issue: dist-x86_64-linux doesn't build locally, tries to combine download-ci-llvm and thin-lto
Labels: T-infra,C-bug

I tried this code:

(I do not have a `config.toml`)
```
$ bash src/ci/docker/run.sh dist-x86_64-linux
```

I expected to see this happen:

The compiler is built

Instead, this happened:

```
thread 'main' panicked at 'setting llvm.thin_lto is incompatible with download-ci-llvm.', config.rs:1351:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Building bootstrap
Build completed unsuccessfully in 0:00:21
make: *** [prepare] Error 1
```

### Meta

This fixes the problem?
```diff
diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
index c2fd2e3a91a..fd50df94515 100644
--- a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
+++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
@@ -76,7 +76,6 @@ ENV RUST_CONFIGURE_ARGS \
       --set target.x86_64-unknown-linux-gnu.linker=clang \
       --set target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
       --set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
-      --set llvm.thin-lto=true \
       --set llvm.ninja=false \
       --set rust.jemalloc \
       --set rust.use-lld=true \
```
Repository: pytorch
Issue: [dynamo] Diffusers - Graph break on OrderedDict 
Labels: triaged,module: dynamo,dynamo-must-fix,dynamo-dataclasses,dynamo-dicts

UPDATE - There are simpler repros to fix in the comments below. The one in the first post requires more interaction because of how dataclass and OrderedDict works.

~~~
import diffusers
from diffusers.utils import BaseOutput
import dataclasses
from dataclasses import dataclass
import torch

@dataclass
class Transformer2DModelOutput(BaseOutput):
    """
    Args:
        sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete):
            Hidden states conditioned on `encoder_hidden_states` input. If discrete, returns probability distributions
            for the unnoised latent pixels.
    """

    sample: torch.FloatTensor



def fn(x):
    return Transformer2DModelOutput(sample=x)


x = torch.randn(4)
ref = fn(x)

opt_fn = torch.compile(fn, backend="eager", fullgraph=True)
res = opt_fn(x)
~~~




cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @aakhundov @Xia-Weiwen @ipiszy