sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: spec: restriction on self-referential types does not match accepted proposal
Labels: NeedsInvestigation,generics,compiler/runtime

### What did you do?

Write Go programs corresponding to the interfaces illustrated in Fig. 5 and Fig. 7 of [Featherweight Go](https://dl.acm.org/doi/10.1145/3428217):

Figure 5: https://go.dev/play/p/pkXtATz0zJW?v=gotip
Figure 7: https://go.dev/play/p/w1ULe7lazaT?v=gotip


### What did you expect to see?

Behavior per the design described in https://go.dev/design/43651-type-parameters and accepted in #43651:
> A generic type can refer to itself in cases where a type can ordinarily refer to itself, but when it does so the type arguments must be the type parameters, listed in the same order. This restriction prevents infinite recursion of type instantiation.

Or, an accepted proposal modifying the design, including a discussion of the tradeoffs involved.

### What did you see instead?

`invalid recursive type` errors.

It appears that what was actually implemented (and what is described in the current spec) does not match what was accepted in the proposal. The spec text was changed to:
> Within a type parameter list of a generic type `T`, a type constraint may not (directly, or indirectly through the type parameter list of another generic type) refer to `T`.

That breaks the examples from Figure 5 and Figure 7 of the paper, and results in an implementation of type parameters weaker than what was proposed.

For comparison, if the type parameters are removed, both figures compile:
Figure 5 (parameter removed from `Eq`): https://go.dev/play/p/DKHGVraxMRX?v=gotip
Figure 7 (parameters removed from `Edge` and `Vertex`): https://go.dev/play/p/YVxG0BOQgqm?v=gotip

(CC @ianlancetaylor @griesemer)
Repository: deno
Issue: Support npm:tsx (esbuild)
Labels: bug,node compat,node API

tsx - [GitHub](https://github.com/esbuild-kit/tsx)

This compiler is used many places in peoples package.json scripts, so it would be great if deno is able to execute it, until it's replaced with i.e. deno everywhere.

**Platform**

Darwin 22.6.0 arm64 arm

**Version**

deno 1.37.0

**Repro**

```ts
// index.ts
console.log("Print this");
```

- `deno run npm:tsx index.ts`

It actually breaks even without a file provided, so just `deno run npm:tsx`;

**Expected**

`> Print this`

**Actual**

```rust
➜ deno run npm:tsx index.  
error: Uncaught TypeError: ws.WriteStream.prototype.hasColors is not a function
    at file:///Users/admin/repos/compile-with-tsx/node_modules/.deno/tsx@3.12.10/node_modules/tsx/dist/cli.js:18:332
```
Repository: PowerToys
Issue: Peek doesn't respect NeverShowExt
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response,Product-Peek

### Microsoft PowerToys version

0.73.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Peek

### Steps to reproduce

By default Explorer doesn't show some file extensions, even if show file extensions is enabled. This is controlled by the `NeverShowExt` value in the registry. This is set by default for `.lnk`, `.pif`, `.accountpicture-ms` and a bunch of others. Peek doesn't respect this setting and shows all extensions if show file extensions is enabled.

### ✔️ Expected Behavior

Peek shouldn't show file extensions for file types that have the `NeverShowExt` value set.

### ❌ Actual Behavior

Peek doesn't check if `NeverShowExt` is set.

### Other Software

_No response_
Repository: godot
Issue: Subresource loaded through ResourceFormatLoader doesn't get loaded by inspector
Labels: documentation,topic:plugin,topic:import

### Godot version

4.1.1.stable

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon R9 200 Series (Advanced Micro Devices, Inc.; 27.20.21003.8013) - AMD FX(tm)-8320 Eight-Core Processor (8 Threads)

### Issue description

When loading a resource such as a mesh or material through a ResourceFormatLoader then inspecting a MeshInstance3D with the variables set. 
It throws errors such as "Cannot open file 'res://test.res'." and "Failed loading resource: res://test.res. Make sure resources have been imported by opening the project in the editor at least once." even though they work fine in game.

### Steps to reproduce

- Run Project
- Inspect the MeshInstance3D
- Get errors

### Minimal reproduction project

[load error.zip](https://github.com/godotengine/godot/files/12691024/load.error.zip)
Repository: pytorch
Issue: ValueError: only one element tensors can be converted to Python scalars
Labels: needs reproduction,triaged,module: regression

### 🐛 Describe the bug

This used to work. Now it doesn't.

```python
import torch
from matplotlib.pyplot import contourf, axis

mesh = torch.arange(-1, 1.1, 0.1)
x, y = torch.meshgrid(mesh, mesh, indexing='xy')
z = torch.randn_like(x)

# Breaking line
contourf(x, y, z)
axis('square')
```

`math.isfinite(val)` says `ValueError: only one element tensors can be converted to Python scalars`

To fix it, one can simply run

```python
contourf(x.numpy(), y.numpy(), z)
axis('square')
```

### Versions

Latest.
Repository: flutter
Issue: Update base ref from main->master on PRs opened to flutter/flutter
Labels: c: new feature,team-infra,P3,triaged-infra

### Is there an existing issue for this?

- [X] I have searched the [existing infra issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-infra)

### Type of Request

feature request

### Infrastructure Environment

Cocoon Scheduler

### What is happening?

It would be nice if cocoon automatically detected whether you are merging to the correct default branch, and if you aren't have it automatically change to the correct one. This recently was an issue in https://github.com/flutter/flutter/pull/135097, where the base branch being merged to was `main`, which resulted in not all of the targets being run. Once we changed the base to `master`, all of the targets ran per usual.

### Steps to reproduce

1. I create a fork in `flutter/flutter`
2. I make a change in my fork and commit it
3. I open a PR, with the base set to `main`.
4. (Feature request) Cocoon recognizes that I am trying to merge to `main` and changes the base to `master`.

### Expected results

The PR I created is merging to the default branch, `master`.
Repository: TypeScript
Issue: How to jump to the definition of a template string type in VSCode?
Labels: Suggestion,Help Wanted,Experience Enhancement,Domain: Symbol Navigation

<!-- ⚠️⚠️ 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. -->

<!-- 🪓 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.82.2
- OS Version: win11

I’m using TypeScript 5.2.2 and VSCode 1.82.2, and I have a problem with jumping to the definition of a template string type.

Here is my code:
```ts
type Test<T extends object> = {
  [K in keyof T]: () => void
} & {
  [K in keyof T as `${string & K}Sync`]: () => void
}

const a = {
  getValue() {}
}

const b = {} as Test<typeof a>

b.getValueSync()
b.getValue()
```

I want to jump to the definition of the Test type, but when I press F12 on getValueSync, nothing happens. However, when I press F12 on getValue, it works fine and jumps to the definition of a.getValue.

I wonder if this is a bug or a limitation of VSCode or TypeScript, and how can I solve it. Any help or suggestion would be appreciated. Thank you.
Repository: flutter
Issue: `clang_tidy`: Errors are very noisy, gets worse with header files
Labels: engine,P3,c: tech-debt,team-engine,triaged-engine

Not potentially _blocking_ for https://github.com/flutter/flutter/issues/134969, but annoying.

At HEAD, if I enable `--lint-all`, due to existing failure in header files, this is quite difficult:

1. `clang_tidy --lint-all` produces 578k (yes, **half a million+**) lines of output.
2. `clang_tidy --lint-all | grep flutter\.\*error:` helps a bit, filtering down to 139k.
3. `clang_tidy --lint-all | grep flutter\.\*error: | sort | uniq` helps substantially, filtering down to 1595.

That begs wondering if the default behavior should be something like (3), or at the very least, as a flag.
Repository: next.js
Issue: CSS "@import <file> layer()" isn't working
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/sandbox/next-js-css-import-layer-bug-h3j5tq

### To Reproduce

1. Create a file with some CSS declarations, e.g. theme.css
2. In another CSS file used in the app (e.g. `global.css`) add  `@import './theme.css' layer(theme)`
3. Start the app if it's not already running

### Current vs. Expected behavior

Expected behaviour:
All styles from `theme.css` are applied.

Actual behaviour:
No styles from `theme.css` are applied.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.13.0
      npm: 8.19.3
      Yarn: N/A
      pnpm: N/A
    Relevant Packages:
      next: 13.5.3-canary.0
      eslint-config-next: 13.5.2
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.2.2
    Next.js Config:
      output: N/A
```


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

Not sure

### Additional context

This bug appears in both the old pages router and app router. It does not happen with a bare-bones React application created with `created-react-app`, where importing css layers works as expected.
Repository: stable-diffusion-webui
Issue: [Bug]: Create embedding error
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

Error in all cases

### Steps to reproduce the problem

1. Go to Train
2. Go to Create embedding
3. Error


### What should have happened?

create a folder

### Sysinfo

windows 11

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

Google Chrome

### Console logs

```Shell
Traceback (most recent call last):
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\modules\textual_inversion\ui.py", line 11, in create_embedding
    filename = modules.textual_inversion.textual_inversion.create_embedding(name, nvpt, overwrite_old, init_text=initialization_text)
  File "C:\Users\33666\AppData\Roaming\StabilityMatrix\Packages\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 289, in create_embedding
    cond_model = shared.sd_model.cond_stage_model
AttributeError: 'NoneType' object has no attribute 'cond_stage_model'
```


### Additional information

_No response_
Repository: next.js
Issue: NextResponse error after upgrading to version 13.5.2
Labels: bug

### Link to the code that reproduces this issue

https://github.com/Revaycolizer/minimal-repo/tree/main/app/api

### To Reproduce

1. Clone repo
2. next build
3. See type error on GET route handler

### Current vs. Expected behavior

Expected to return data but instead it throws an error stating that Promise<NextResponse<any> | undefined>" is not a valid GET return type:

### 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: 16.17.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant Packages:
      next: 13.5.2
      eslint-config-next: 13.5.2
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A
```


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

App Router

### Additional context

![nexterror](https://github.com/vercel/next.js/assets/109684996/db8994f5-ed48-4f83-90ad-32f41035facf)
I am deploying my application in vercel
Repository: vscode
Issue: Add way to set ID for a localization string?
Labels: feature-request,l10n-platform

Currently, each string is assigned an ID based on a hash of the English string and the comment. The problem with this is that any small change to a string or its comment will change the ID, requiring a new translation from scratch. It might be good to allow the user to specify an ID to use for a given English string. That way, if the user makes a small change to the English string, the ID will remain the same, and the translator will be able to use the old translation as a basis for the new translation, only changing the small part that was modified in the English string.
Repository: go
Issue: net/http: Expect: 100-continue changes behaviour if server closes request body
Labels: NeedsDecision

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel go1.21-af8f94e3c5 Tue Jul 11 21:30:51 2023 +0000 linux/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?

https://go.dev/play/p/wwvMPANaBh4

### What did you expect to see?

The same result regardless of whether the server closes the request body or not.

### What did you see instead?

When the server closes the request body, the bytes of the request body are read inappropriately, probably because the server has sent a 100 Continue response.

Although http.Handler implementations should not close the body, it's not uncommon that to happen, for example [here](https://github.com/distribution/distribution/blob/97b1d649c4938d0f608d96454d6a8326b1f96acd/registry/handlers/app.go#L639).

Replacing the `Request.Body` field (for example to replace it with a limited-size reader) has the same effect as closing it in this respect.
Repository: godot
Issue: Plugging in Arduino Joystick causes error
Labels: bug,platform:windows,needs testing,topic:input

### Godot version

4.1.1.stable.mono.official

### System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.3713) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)

### Issue description

Plugging in joystick using arduino joystick library by Matthew Heironimus causes error `core/input/input.cpp:1046 - Index (int)p_axis = 10 is out of bounds ((int)JoyAxis::MAX = 10).`
The joystick has 32 buttons.

### Steps to reproduce

Make joystick using Arduino and joystick library by Matthew Heironimus (or one with >10 buttons)
Plug it in while Godot is open
Console will get spammed with errors

### Minimal reproduction project

An empty project will work. If it doesn't just add one script.
Repository: vscode
Issue: gitlens doesn't set sideBarFocus, making sidbar keybindings difficult
Labels: bug,layout,workbench-views,context-keys

Can you help me determine if this is a gitlens bug or a vscode bug? I opened the following issue on the gitlens repo but they bounced me back here:
- https://github.com/gitkraken/vscode-gitlens/issues/2930
Repository: pytorch
Issue: Implement Copy-on-write (COW) tensors
Labels: module: internals,triaged,module: viewing and reshaping,module: copy on write

### 🚀 The feature, motivation and pitch

Copy-on-write (COW) tensor is a new kind of tensor that copies its underlying data to a new location if an operation tries to mutate the data.

COW tensors were proposed in [this document](https://docs.google.com/document/d/1kWIRUeixlgnOk1eXJSsbxOAKUKQFpmz0yzwLZUjWotg/edit?usp=sharing), which provides the full context of the idea and the problems it solves. Briefly, here's my summary of the problems, as far as I understand them at the moment:

* Currently, there are operators like `torch.reshape` which conditionally return either a copy or a view of a tensor, depending on striding. This semantic difference is an issue for the compiler, and it would be better to change these operators to always semantically return a copy. However, even if we semantically do a copy, we can use COW tensors to avoid actually doing the copy until it's absolutely necessary.

* When a user saves a tensor for backward and then an inplace operator mutates a view of that same tensor, the saved tensor no longer has the value that the user wanted to have saved. People have learned to avoid this by simply avoiding inplace operators in this case, but it would be better if users could use inplace operators without shooting themselves in the foot like this. If the saved tensor is a COW tensor, then "views" of it will actually just be copies, and the saved tensor's data will not change if the copies are mutated

Some machinery already exists in [`c10/core/impl/cow/`](https://github.com/pytorch/pytorch/tree/c789ed6e62cdee9917ae08a432ab9b6be8d59e64/c10/core/impl/cow)



### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh
Repository: godot
Issue: Android Editor on save "The following files are newer on disk".
Labels: bug,platform:android,topic:editor,confirmed

### Godot version

v4.2.dev5.official [e3e2528ba]

(Has been the case on all 4.x versions I've tried)

### System information

Godot v4.2.dev5 - Android - Vulkan (Mobile) - integrated Adreno (TM) 740 -  (8 Threads)

Samsung S23, Android 13

### Issue description

Saving script files prompts me with a "The following files are newer on disk" dialog. This happens maybe every other time I save.
I've tried granting file access permissions to the editor app through ADB and moving the project to the Documents folder, but nothing stops this dialog from popping up.
![Screenshot_20230921_172528_Godot Editor 4](https://github.com/godotengine/godot/assets/5215799/5f3452ea-3dfa-459d-8328-47e492715745)


### Steps to reproduce

Save any file using the Android editor.

### Minimal reproduction project

Just create any empty project and try saving a script a few times.
Repository: flutter
Issue: [Desktop] Add integration tests for window resizing
Labels: platform-mac,platform-windows,platform-linux,a: desktop,P2,team-macos,triaged-macos

## Background

https://github.com/flutter/engine/pull/45310 broke window resizing on Windows (see https://github.com/flutter/flutter/issues/134262). This regression was not caught by tests.

## Solution

Test:

1. Render something & verify
2. Resize the window
3. Render something & verify
Repository: next.js
Issue: Middleware run for destination path in redirects in next.config.js for client side routing
Labels: bug,Navigation,Runtime

### Link to the code that reproduces this issue

https://github.com/ArianHamdi/redirect-middleware

### To Reproduce

1. Run the project
2. Open index page (`localhost:3000/`)
3. click on the link (it navigate to the `/only-client-side` route)
4. check server log (middleware is executed for `/destination` route)

### Current vs. Expected behavior

As documentation states : 

> Redirects are not applied to client-side routing (Link, router.push), unless [Middleware](https://nextjs.org/docs/app/building-your-application/routing/middleware) is present and matches the path.

So, I excluded the redirect source path from the middleware to ensure that it won't apply the redirect rules inside `next.config.js` during client-side navigation. However, the middleware will still be called for the destination path in the redirect rule, even if it doesn't open the destination path.

**Important note : This behavior only applies when `getStaticProps` exists, and if the source path doesn't have any server-side function, the middleware won't run for the destination path.**

In my use case, I want to redirect external calls to `/test` to `/` but allow users to navigate to `/test` within client-side navigation. Additionally, I have logic inside the middleware for the `/` route to redirect logged-in users to their profile page. So, when a user goes to the `/test` page by client side navigation and the middleware runs for the destination path, which is `/`, the middleware tries to redirect the user to the profile page.

Expected behaviour : middleware shouldn't call for destination path inside redirect rules in client side routing even if `getStaticProps` is exist in source path.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020
    Binaries:
      Node: 18.17.1
      npm: 9.6.7
      Yarn: N/A
      pnpm: 8.7.4
    Relevant Packages:
      next: 13.5.2
      eslint-config-next: 13.5.1
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.2.2
    Next.js Config:
      output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware / Edge (API routes, runtime), Routing (next/router, next/navigation, next/link)

### Additional context

_No response_
Repository: ant-design
Issue: Popover shift 方向和 placement 方向一致时隐藏箭头
Labels: 💡 Feature Request,Inactive,unconfirmed



同 v4 

![image](https://github.com/ant-design/ant-design/assets/27722486/e658b50d-3e01-443a-a0f6-a82d2f9a7c52)

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->