sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: Proxy config works differently when switching from Webpack to Vite devserver
Labels: help wanted,good first issue,P3,area: docs

### Command

serve

### Is this a regression?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

All versions using Webpack as devserver

### Description

When using the proxy, and you have a config like this:

```js
 module.exports = {
    '/api/*': {
      target: 'localhost:4321',
    }
```

With webpack, this will work for _all_ requests starting with `/api`.
All of those work:
`/api/user`
`/api/user/settings/personal`
`/api/user/settings/admin`

With the Vite version, only the first level works.
ONLY `/api/users` will work. The other will fail silently. 
This is because Vite uses a different glob library as WebPack.
For Vite to work I have to update to:

```js
 module.exports = {
    '/api/**': {
      target: 'localhost:4321',
    }
```
> Notice the change from `*` to `**` 

This behavior change is not documented anywhere.

The CLI should have at least some documentation around this. 
Also, would it be constructive to have a way so the Vite proxy will log proxy-misses, as those are now silently ignored? 

### Minimal Reproduction

1. Set up a project
2. Add an API-server
3. add a proxy.

Then run: `ng serve` and notice the above.

### Exception or Error

```text
none
```


### Your Environment

```text
Not relevant to the issue, but here you go:

Angular CLI: 16.2.6
Node: 20.10.0 (Unsupported)
Package Manager: npm 10.2.4
OS: linux x64

Angular: 16.2.10
... animations, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1602.6
@angular-devkit/build-angular   16.2.6
@angular-devkit/core            16.2.6
@angular-devkit/schematics      16.2.6
@angular/cdk                    16.2.8
@angular/cli                    16.2.6
@angular/pwa                    16.2.6
@schematics/angular             16.2.6
rxjs                            7.8.0
typescript                      5.2.2
zone.js                         0.13.3
```


### Anything else relevant?

_No response_
Repository: node
Issue: Migration of the GitHub bot from our infra to GitHub actions
Labels: help wanted,build,meta

Maintenance of the GitHub bot has become a problem. The machine it's running on is on a quite old version of Debian that doesn't support recent versions of Node.js and we have very few people who know and work on the bot's code (https://github.com/nodejs/github-bot).

I'd like to know if collaborators would be willing to help with a migration of the bot's features to GitHub actions and/or Jenkins plugins/scripts that talk directly to GitHub.

Those features are:
- Ping code owners when a PR is opened: https://github.com/nodejs/github-bot/blob/main/scripts/node-ping-owners.js
- Update GitHub commit status or post PR comments when Jenkins jobs are started / finished: https://github.com/nodejs/github-bot/blob/main/lib/push-jenkins-update.js
- Respond to some Jenkins requests by relaying them to GitHub: https://github.com/nodejs/github-bot/blob/0cfe624c138c033f9ba2cd9f4e6e42bc8610a327/scripts/event-relay.js#L10C40-L10C40 (not sure what this is used for)

@nodejs/actions @nodejs/github-bot
Repository: go
Issue: wiki: include instructions for contribution
Labels: Documentation,NeedsInvestigation

The "contributing" section in the main page needs update. Currently it says it's open to any Go community member with a GH account, but that is not true any more.

It would be nice if each page has
 * a link to the source md file (ideally I'd like to get directed to a web-based editor like other wiki services, but that won't be a small size work)
 * last update timestamp (many pages and contents in the wiki are very outdated. timestamps may help users to guess freshness)

Independent of this, I think we may want to spend some time to scrub the main pages to delete/fix outdated contents and broken links. For example [outdated information in the "Working with Go" section of the main page](https://go.dev/wiki/#working-with-go) may mislead new users, search engine results, and AI models.
Repository: go
Issue: proposal: x/sys/windows: add various bcrypt.dll, crypt32.dll and ncrypt.dll functions
Labels: Proposal

### Proposal Details

For an application I needed a number of functions to sign data with a PKI certificate stored on a smartcard (so the private key is not accessible). I would like to contribute these functions to `x/sys/windows` so I do not have to implement them in my own code. I used the existing `x/sys/windows` code as a reference, so my code should fit in nicely. The only question I still have is whether I'm allowed to use the new `syscall.SyscallN()` function: as far as I saw it's not yet being used in `x/sys/windows` right now (but I did not search all files for it).
Repository: rust
Issue: Manifest issue with "preview" components
Labels: T-bootstrap,T-infra

I was asked to file an issue following a [Zulip question](https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/manifest.20issue.20with.20.22preview.22.20components).

I was able to install the `llvm-tools` component. Following some [confusion](https://github.com/rust-lang/rustup/pull/3578), it turns out that this should not work since it should only be installable as `llvm-tools-preview`.
Following some research, https://static.rust-lang.org/dist/2023-01-26/channel-rust-1.67.toml contains the following section (that https://static.rust-lang.org/dist/2022-12-15/channel-rust-1.66.toml did not):
```
[renames.llvm-tools]
to = "llvm-tools-preview"
```

I think the issue arose with https://github.com/rust-lang/rust/commit/a3dd94e702f2d640f5f84f9f43f25fd79dfeae95 and https://github.com/rust-lang/rust/commit/494cb47852ef7bb2cc14f1f440d77722bf0f759b where I think there was a conflation of components that *had* preview status (needing a rename section) and components that currently *have* preview status (that should not have a rename).  Looking at `pkgtype!` in https://github.com/rust-lang/rust/blob/master/src/tools/build-manifest/src/versions.rs#L41 there are I think two distinct groups of components with `preview=true`:
- `rls`, `rust-analyzer`,  `clippy` and `rustfmt` which are stable (and probably were historically previews).
-  `llvm-tools`, `miri`, `rust-docs-json` and `rustc-codegen-cranelift` which are not stable.

The main issue is that the components of the second group should currently only be added with their `-preview` suffix but currently can be added without the suffix.
Repository: vscode
Issue: Explorer: NPM when pasting a file repeatedly
Labels: bug

1. In the File Explorer press <kbd>Cmd C</kbd> to copy a file
2. Paste it with <kbd>Cmd V</kdb>
3. Hold <kbd>Cmd V</kbd> for a few seconds to try to paste it many times

🐛 💥 

https://github.com/microsoft/vscode/assets/22350/4466bc00-c13b-462d-8b51-dca80a8157de
Repository: vscode
Issue: Add avatar uri to the AuthenticationSessionAccountInformation
Labels: feature-request,api-proposal,authentication

This allows https://github.com/microsoft/vscode/issues/136889

This API proposal is about adding an `avatar: Uri` to the `AuthenticationSessionAccountInformation`.
Code pointer https://github.com/microsoft/vscode/blob/isidorn/account-avatar/src/vscode-dts/vscode.proposed.authenticationSessionAccountInformationAdditions.d.ts#L11

@jrieken I plan to bring this up to the API call in January. Do let me know If I should do something else.

fyi @TylerLeonhardt
Repository: vscode
Issue: Explorer: Expanding unmatched folders while filtering loses focus
Labels: bug,tree-widget

Type: <b>Bug</b>

The latest Insider has the #180078 changes which I originally created and have been improved by @joaomoreno prior to merging.

But it looks like this change has reintroduced #177444, meaning that when an unresolved folder in the filtered tree are navigated to (Alt+DownArrow), then resolved by expanding (RightArrow), if the resolved folder disappears (because it contains no matching files or unresolved folders) the focus appears to move to the next folder (👍 ) but we cannot use RightArrow to repeat the procedure on this 🐛 .

VS Code version: Code - Insiders 1.86.0-insider (9621add46007f7a1ab37d1fce9bcdcecca62aeb0, 2023-12-20T05:36:57.756Z)
OS version: Windows_NT x64 10.0.22621
Modes:


<!-- generated by issue reporter -->
Repository: godot
Issue: await causes a variety of errors that crash the game/and or the editor when hotsaving a script.
Labels: bug,topic:gdscript

### Tested versions

reproducible in 4.2.1
also reproducible in 4.0RC2

### System information

Windows 10, i711800H, Forward+ Vulkan, Godot 4.2.1

### Issue description

When hotsaving any script in my game, it was crashing giving me a variety of errors: Bad Adress Index, Opcode 0, Opdcode 26 .... The script editor would open on a random script at a random line often a comment, saying that was the line that caused the error. 

I could, however, triangulate that having this line `	await get_tree().create_timer(1.0).timeout` in any script that is in the scene tree is causing the problem.

### Steps to reproduce

Open MRP
Run the scene.
Re-save only scripts using hotkey

### Minimal reproduction project (MRP)

[__MRP__.zip](https://github.com/godotengine/godot/files/13729538/__MRP__.zip)
Repository: pytorch
Issue: [DCP] Native S3/object storage interface
Labels: oncall: distributed,module: distributed_checkpoint

### 🚀 The feature, motivation and pitch

I would like to save and load checkpoints using DCP in S3, but the `FileSystemReader` and `FileSystemWriter` only seem to support usage with a distributed file system. I see there's some blog posts about using it with S3FS, but I'd prefer not to have to do that either. 

I started trying to implement a S3 Reader/Writer, but it wasn't immediately clear how to handle the metadata file. Are all ranks writing the same thing to the metadata file, such that I just need to ensure that any one of them completes the upload successfully? It doesn't look like they're all trying to individually append to the same file or something, which would be problematic.

Are there any other obvious issues to implementing an object storage backend?

### Alternatives

_No response_

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @LucasLLC
Repository: terminal
Issue: Environment section in defaults completely overridden by profile-specific one
Labels: Issue-Bug,Area-Settings,Product-Terminal,this-will-be-a-breaking-change

### Windows Terminal version

1.19.3172.0

### Windows build number

10.0.22631.2861

### Other Software

_No response_

### Steps to reproduce

1. Create `environment` section inside `defaults` settings and add variable A
   `"environment": { "A": "AValue" }`
1. Create `environment` section inside a profile add variable B
   `"environment": { "B": "BValue" }`

### Expected Behavior

Both A and B are expected to be defined

### Actual Behavior

Only B is defined

The reason is probably because this section is treated just like any other setting, which when overridden by profile-specific setting it takes nothing from the default section, but this isn't the expected behavior for environment variables, as long as they have different names
Repository: go
Issue: cmd/cgo/internal/testcshared: Test(Unexported|Exported)Symbols failures with SIGSEGV on android/arm64
Labels: help wanted,OS-Android,NeedsInvestigation,arch-arm64,compiler/runtime

```
#!watchflakes
post <- goos == "android" && pkg == "cmd/cgo/internal/testcshared" && test ~ `Test(Exported|Unexported)Symbols` && `signal: segmentation fault`
``````

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/dca3742b1fb74ca803fd84e21088f8560a2746c9)):

    --- FAIL: TestExportedSymbols (17.76s)
        cshared_test.go:368: run: [/data/data/com.termux/files/home/clangwrap -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/go-build1491619758=/tmp/go-build -gno-record-gcc-switches -pie -I pkg/android_arm64 -I /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/testcshared4062456105 -o testp0 main0.c libgo.a]
        cshared_test.go:372: run: [./testp0]
        cshared_test.go:372: command failed: [./testp0]
            signal: segmentation fault


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: cmd/compile: devirtualization of interface calls with type assertions
Labels: Performance,NeedsInvestigation,FeatureRequest,compiler/runtime

Consider:
```go
h := sha256.New() // escapes to heap
h.(encoding.BinaryUnmarshaler).UnmarshalBinary(d) // not devirtualized
h.Write(d) // devirtualized
```
https://go.dev/play/p/JYPsrebi5Z5

`h` escapes to heap, because the compiler does not take the opportunity to devirtualize the `UnmarshalBinary` call.

Same thing happens with even a simpler case (`hash.Hash` always implements `io.Writer`)
```go
h := sha256.New()
h.Write(d) // devirtualized
h.(io.Writer).Write(d) // not devirtualized
```
Repository: pytorch
Issue: Refactor precision handling in test/test_optim.py
Labels: module: optimizer,triaged,better-engineering,actionable

### 🚀 The feature, motivation and pitch

Currently, there are scattered places in the optimizer tests that reduce precision (grepping for `atol` or `rtol` in the file will take you to those places).

Since optimizers are a composition of ATen ops, they reasonably require higher tolerances. Thus, we should establish a per optimizer (and perhaps per dtype) tolerance at the top level of the test file and use that everywhere.

This consolidation has (at least) two functions:
- Define an agreed upon set of expected tolerances for optimizers
- Enable ease when writing new optimizer tests that will inevitably run into the same tolerance issues.

One way to do this is to override assertEqual in the Optimizer TestCase class.

### Alternatives

Another way is to globally define them and then pass them whenever needed. This seems a more manual way to get the same results as overriding though.

### Additional context

I'm in the middle of migrating tests from test/optim/test_optim.py to test/test_optim.py. Whoever would like to work on this should jump straight to the newer file, but can take a survey of all tests.

cc @vincentqb @jbschlosser @albanD @crcrpar
Repository: PowerToys
Issue: `using global::PowerToys.GPOWrapper` namespace errors
Labels: Issue-Bug,Area-Build,Needs-Triage

### Microsoft PowerToys version

0.76 dev

### Installation method

Dev build in Visual Studio

### Steps to reproduce

Open several .cs files under **src\settings-ui\Settings.UI\ViewModels**

### ✔️ Expected Behavior

No errors

### ❌ Actual Behavior

CS0400
![image](https://github.com/microsoft/PowerToys/assets/65828559/959080a7-c50d-44b5-b2bc-5b0dd109911f)

CS0246 and CS0103
![image](https://github.com/microsoft/PowerToys/assets/65828559/f08e2d5a-4944-4b43-ad5b-7da054d4ac62)


Note: this is seen throughout most of the files in this folder.
Repository: flutter
Issue: Support for multi-select on Cards and Images using standard Flutter or a package (Re-submitted)
Labels: c: new feature,framework,f: material design,c: proposal,P2,team-design,triaged-design

### Use case

You have a group of images or cards and you want to have a multi-select UI to select sets of them. 


### Proposal

I had submitted this previously but my proposal was unclear and I missed the comment from @huycozy requesting further clarification. I'm just getting to it now. (https://github.com/flutter/flutter/issues/138562). I am clarifying and narrowing the scope of the feature request.

My proposal is a to implement multi-selection of Images or Cards in Flutter, as an out-of-the-box feature. 

This could be implemented as additional functionality added onto existing widgets to enable them to be "multi-selectable". 

Some options for implementation could be:

- a Multi-select container widget with widgets inside it, for example a set of cards or a set of images. Everything inside the widget would be multi-selectable
- a boolean property added to multi-selectable widgets, so that they could have this property turned on/off. 

I'm most familiar with this in Google Photos. On Android it looks like this, where a circular checkbox appears in the top left corner of images:

<img src="https://github.com/flutter/flutter/assets/466426/7b13a24c-4dff-4418-bb8f-ee75882560c7"  width="400">

In the browser, when you hover, a gray checkbox circle appears when items are unselected:
![image](https://github.com/flutter/flutter/assets/466426/9a979cae-2784-4a12-a5d0-2c80020d8a5e)
 
And they turn blue when selected:
![image](https://github.com/flutter/flutter/assets/466426/b6005a6e-5acb-40e1-97d8-ab8176281d3d)

In this example, these are all images, but the feature would be the same for Cards, since
It would be useful to have this to multi-select a group of Cards in the same way. It could potentially work for other items as well.
Repository: angular
Issue: Instructions to deploy on github pages are obsolete
Labels: help wanted,good first issue,P3,area: docs

### Describe the problem that you experienced

Following the steps at https://angular.io/guide/deployment#deploy-to-github-pages to deploy to github pages leads to a 404 error when trying to access the deployed application.

### Enter the URL of the topic with the problem

https://angular.io/guide/deployment#deploy-to-github-pages

### Describe what you were looking for in the documentation

A correct list of instructions to deploy to github pages

### Describe the actions that led you to experience the problem

Step 4 is incorrect since v17, because the CLI now generates the browser files to deploy under a subdirectory `browser`. So instead of having the files directly under the `docs` folder as before, the files are now located under `docs/browser`.

### Describe what you want to experience that would fix the problem

The instructions could advise to use the command

```
ng build --base-href /your_project_name/
``` 

and then to copy all the content of `dist/your_project_name/browser` into the `docs` directory.

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

_No response_
Repository: next.js
Issue: Create "with-mongodb-mongoose" in app router
Labels: examples

### 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: x64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
Binaries:
  Node: 20.8.0
  npm: 8.15.0
  Yarn: 1.22.19
  pnpm: 8.6.9
Relevant Packages:
  next: 14.0.5-canary.20
  eslint-config-next: 14.0.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which example does this report relate to?

with-mongodb-mongoose

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

Brave

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

Vercel

### Describe the Bug

Create a version with app router

### Expected Behavior

Working when using dynamic route [id], but always returns undefined even with copied code from docs

### To Reproduce

Get example "with-mongodb-mongoose" and run
Repository: flutter
Issue: [flutter_tools] delete "platforms" key from getSupportedPlatforms daemon rpc request
Labels: tool,P3,c: tech-debt,team-tool,triaged-tool

Context https://github.com/flutter/flutter/pull/140112#discussion_r1432554426

Once 12 months have passed since dart-code has shipped to stable code using the new "platformTypes" it should be safe to delete this.
Repository: deno
Issue: Deno.HttpServer leaky connection: connection closed before message completed error
Labels: bug,ext/fetch

```
deno 1.39.0 (release, x86_64-unknown-linux-gnu)
v8 12.0.267.8
typescript 5.3.3
```

I am attempting to build a http server benchmark. It does not currently seem to be possible to start/stop a `Deno.HttpServer` with the same port. The server starts without any problem, but the secondary fetch then fails with the error `connection closed before message completed`. Below is a reproduction of the bug (this problem is not `deno bench` specific) Full stacktrace is collapsed below.

```ts
const server_1 = Deno.serve({
  port: 8000,
  handler(req) {
    return new Response('hello world')
  },
})

const response_1 = await fetch('http://0.0.0.0:8000').then(r => r.text())
console.log({response_1})
await server_1.shutdown()

const server_2 = Deno.serve({
  port: 8000,
  handler(req) {
    return new Response('hello world')
  },
})
const response_2 = await fetch('http://0.0.0.0:8000').then(r => r.text())
console.log({response_2})
```

<details>
<summary>`deno run --check --unstable --allow-net repro.ts` output</summary>
<pre>
Listening on http://localhost:8000/
{ response_1: "hello world" }
Listening on http://localhost:8000/
error: Uncaught (in promise) TypeError: error sending request for url (http://0.0.0.0:8000/): connection closed before message completed
const response_2 = await fetch('http://0.0.0.0:8000').then(r => r.text())
                   ^
    at async mainFetch (ext:deno_fetch/26_fetch.js:164:12)
    at async fetch (ext:deno_fetch/26_fetch.js:385:7)
    at async file:///home/andrew/Code/scratchwork/deno-thumbnail-sqlite-benchmark/repro_reopen_closed.ts:19:20
</pre>
</details>


## related issues
Bundling a few possibly related issues, since I found a few in the repo, but none that directly lined up with my repro of starting/shutting down and starting a new http server in the same process:
- https://github.com/denoland/deno/issues/17754
- https://github.com/denoland/deno/issues/19143
- https://github.com/denoland/deno/issues/19062
- https://github.com/denoland/deno/issues/11595
Repository: next.js
Issue: next js collision in turborepo
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/vercel-next-js-reproduction-template-pages-2cz5ks

### To Reproduce

<img width="950" alt="image" src="https://github.com/vercel/next.js/assets/26209122/aaeb7577-3d4d-485e-9868-c33b83f9e9a1">


`La propiedad "[INTERNALS]" falta en el tipo "import("/Users/nicolas/Desktop/testing/carvuk-monorepo-clients/node_modules/.pnpm/next@13.4.12_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/web/spec-extension/request").NextRequest", pero es obligatoria en el tipo "import("/Users/nicolas/Desktop/testing/carvuk-monorepo-clients/node_modules/.pnpm/next@14.0.1_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/web/spec-extension/request").NextRequest".
`

From the error I could see that is conflict with different versions of next js in the same monorepo (turborepo). This is the middleware for checking auth from supabase

### Current vs. Expected behavior

Expected to not be wrong by typescript
Current is the other way around

### Verify canary release

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

### Provide environment information

```bash
no able to run it in monorepo
```


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

Middleware / Edge (API routes, runtime)

### Additional context

_No response_