sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: angular
Issue: FormTruple - variant o FormArray that can create controls on elements based on data
Labels: area: forms

### Which @angular/* package(s) are relevant/related to the feature request?

forms

### Description

Original proposition was posted as https://github.com/angular/angular/issues/44603 and is well described there.

### Proposed solution

New class in the manner of

```
import {
  AbstractControl,
  AbstractControlOptions,
  AsyncValidatorFn,
  FormArray,
  ValidatorFn, ɵFormArrayRawValue
} from '@angular/forms';

export class FormTuple<TValue, TControl extends AbstractControl = any> extends FormArray<TControl> {
  constructor(
    private readonly controlFactory: (value: TValue) => TControl,
    validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null,
    asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null
  ) {
    super([], validatorOrOpts, asyncValidator);
  }

  override setValue(value: ɵFormArrayRawValue<TControl>, options?: { onlySelf?: boolean; emitEvent?: boolean }) {
    this.syncControls(value, options);
    super.setValue(value, options);
  }

  private syncControls(value: ɵFormArrayRawValue<TControl>, options?: { onlySelf?: boolean; emitEvent?: boolean }) {
    while (this.controls.length > 0) {
      this.removeAt(0, options);
    }
    for (const elementValue of value) {
      this.push(this.controlFactory(elementValue));
    }
  }
}
```

usage:

```
new FormGroup({
  name: new FormControl(),
  children: new FormTuple(
    (value) => new FormGroup({
      name: new FormControl(),
    })
  )
});
```

### Alternatives considered

Manually rebuilding the formGroup with and formArray before doing 

```
const receivedValue = {
  name: "Adam",
  children: [{name: "John"},{name: "Marry"}]
};
this.formGroup = // ... some big manual method to rebuild the form group based on the receivedValue 
this.formGroup.setValue(receivedValue);
```

which may be impossible if an framework to manage forms is used and somewhat defeats the point of reactive forms in my opinion
Repository: vscode
Issue: Adopt Editor Hover for "Revert Change" action
Labels: feature-request,editor-hover

When hovering over the "Revert Change" action, both the breakpoint hover and the revert action hover show.
I considered making the revert action a workbench hover, however, I think it makes more sense to make it an Editor Hover. I also think if you make it an editor hover, it will fix the two hover issue as I assume there can only be a single instance of the editor hover?

![code_-_insiders_3hjztu87cb_360](https://github.com/microsoft/vscode/assets/44439583/5a335eb5-c96c-4ce1-b2b5-5fa2b1677f0d)
Repository: flutter
Issue: SelectionArea doesn't apply to TextFields
Labels: a: text input,framework,has reproducible steps,P2,f: selection,found in release: 3.19,found in release: 3.20,team-text-input

```dart
import 'package:flutter/material.dart';

void main() => runApp(const SelectionAreaExampleApp());

class SelectionAreaExampleApp extends StatelessWidget {
  const SelectionAreaExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SelectionArea(
        child: Scaffold(
          appBar: AppBar(title: const Text('SelectionArea Sample')),
          body: const Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text('Row 1'),
                TextField(),
                Text('Row 2'),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
```

In this example I was expecting that when I start the text selection at "Row 1" and drag the cursor down to "Row 2" it would also select the text I had entered in the Textfield. However, that is not the case.

On the web (I tried it on https://www.cognitoforms.com/templates/22/contact-forms/basic-contact-form) I seem to be able to select the content of text fields this way.
Repository: flutter
Issue: [Android] emulate syncFence behavior on ImageReader's before API33
Labels: P2,team-android,triaged-android

The ImageReader itself performs no additional synchronization before returning the next Image. IF we do not have access to the syncFence API, then we can emulate the fence behavior by accessing the image bytes and forcing the image reader to synchronize it.

```
getPlanes()[0].getBuffer()
```
Repository: flutter
Issue: [Android] push ImageReader fence wait to GPU
Labels: perf: speed,P3,platform-views: tlhc,team-android,triaged-android

See also: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/libs/hwui/renderthread/VulkanManager.cpp;l=680;drc=6a2ab0c0888d9c51f89ceac700d28c50a90a2fd9
Repository: vscode
Issue: "Select Indentation" popup
Labels: bug,notebook-statusbar

Testing #205740

if I am already on spaces, then I select "convert to spaces" it gives me a weird popup on the status bar

https://github.com/microsoft/vscode/assets/26030610/85d675d0-5e3b-4559-a765-7bd33965d61d
Repository: angular
Issue: NG0911: View has already been destroyed.
Labels: area: core,core: rxjs interop

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

Yes

### Description

I recently introduced to my app `DestroyRef` to replace `@ngneat/until-destroy` and I started getting an error in automated tests: `NG0911: View has already been destroyed.`

This issue doesn't manifest while users are interacting with the app, but when I'm testing the app via automated means (where I click very fast in buttons and components are created and destroyed too quickly).

The code where the exception happened is the following (I marked which one is line 76, the one mentioned in the stack trace):

```
    ngOnInit() {
        this.myHttpClient.getCharts()
            .then(allCharts => {
                this.allCharts = allCharts;

                this.myService.getPerms$("SOME_PERM")
                    .pipe(takeUntilDestroyed(this.destroyRef))
                    .subscribe(hasPerms => this.refreshChartDetails(hasPerms)); # line 76
            })
            .catch(error => this.myErrorService.showError(error));
    }
```

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

```true
NG0911: View has already been destroyed.
    at storeLViewOnDestroy (core.mjs:2846:15)
    at NodeInjectorDestroyRef.onDestroy (core.mjs:14215:9)
    at Observable._subscribe (rxjs-interop.mjs:27:41)
    at Observable._trySubscribe (Observable.js:37:25)
    at Observable.js:31:30
    at errorContext (errorContext.js:19:9)
    at Observable.subscribe (Observable.js:22:21)
    at takeUntil.js:7:29
    at SafeSubscriber.<anonymous> (lift.js:10:28)
    at Observable.js:26:30
    at errorContext (errorContext.js:19:9)
    at AnonymousSubject.subscribe (Observable.js:22:21)
    at my-chart-component.component.ts:76:22
    at _ZoneDelegate.invoke (zone.js:368:26)
    at Object.onInvoke (core.mjs:14832:33)
```
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 17.1.2
Node: 18.13.0
Package Manager: npm 8.19.3
OS: linux x64

Angular: 17.1.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, material-moment-adapter, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1701.2
@angular-devkit/build-angular   17.1.2
@angular-devkit/core            17.1.2
@angular-devkit/schematics      17.1.2
@schematics/angular             17.1.2
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.3
```


### Anything else?

_No response_
Repository: go
Issue: runtime: TestReadMetricsCumulative failures in mayMoreStackPreempt mode
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
default <- pkg == "runtime:mayMoreStackPreempt" && test == "TestReadMetricsCumulative"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8755905195377869217)):

    === RUN   TestReadMetricsCumulative
        metrics_test.go:543: /cpu/classes/user:cpu-seconds decreased: 43.052189 < 43.056638
    --- FAIL: TestReadMetricsCumulative (0.01s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: build: build failure on gotip-darwin-amd64_12
Labels: NeedsInvestigation

```
#!watchflakes
default <- builder == "gotip-darwin-amd64_12" && repo == "go" && mode == "build"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8755631242876077441)):

    [I2024-02-19T13:01:51.614942-08:00 793 0 sink.go:276] SinkServer: warm-up started
    [I2024-02-19T13:01:51.614968-08:00 793 0 sink.go:346] SinkServer: starting HTTP server...
    [I2024-02-19T13:01:51.618743-08:00 793 0 sink.go:281] SinkServer: warm-up ended
    [I2024-02-19T13:01:51.619001-08:00 793 0 cmd_stream.go:473] rdb-stream: starting the test command - ["/Users/swarming/.swarming/w/ir/cache/tools/bin/result_adapter" "go" "-v=false" "--" "/Users/swarming/.swarming/w/ir/x/w/goroot/bin/go" "tool" "dist" "test" "-json"]
    go/printer: write /Users/swarming/.swarming/w/ir/x/t/go-build2551873552/b607/vet.cfg: device error
    go/printer_test: write /Users/swarming/.swarming/w/ir/x/t/go-build2551873552/b610/vet.cfg: device error
    # go/types
    compile: writing output: write $WORK/b583/_pkg_.a: device error
    go/scanner: write /Users/swarming/.swarming/w/ir/x/t/go-build2551873552/b611/importcfg: device error
    encoding/gob: write /Users/swarming/.swarming/w/ir/x/t/go-build2551873552/b472/vet.cfg: device error
    ...
    Warning: no '=' in invocation-link-artifacts pair: "", ignoring
    [I2024-02-19T13:02:34.400160-08:00 793 0 cmd_stream.go:469] rdb-stream: the test process terminated
    [I2024-02-19T13:02:34.401416-08:00 793 0 sink.go:371] SinkServer: shutdown started
    [I2024-02-19T13:02:34.401596-08:00 793 0 sink.go:349] SinkServer: HTTP server stopped with "http: Server closed"
    [I2024-02-19T13:02:34.401608-08:00 793 0 sink_server.go:95] SinkServer: draining TestResult channel started
    [I2024-02-19T13:02:35.301015-08:00 793 0 sink_server.go:97] SinkServer: draining TestResult channel ended
    [I2024-02-19T13:02:35.301046-08:00 793 0 sink_server.go:99] SinkServer: draining Artifact channel started
    [I2024-02-19T13:02:35.474068-08:00 793 0 sink_server.go:101] SinkServer: draining Artifact channel ended
    [I2024-02-19T13:02:35.474134-08:00 793 0 sink.go:374] SinkServer: shutdown completed successfully
    [I2024-02-19T13:02:35.474184-08:00 793 0 cmd_stream.go:401] rdb-stream: exiting with 1


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: hash/maphash:purego: TestSmhasherPermutation failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "hash/maphash:purego" && test == "TestSmhasherPermutation"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8755561929447983233)):

    === RUN   TestSmhasherPermutation
    === PAUSE TestSmhasherPermutation
    === CONT  TestSmhasherPermutation


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: vscode
Issue: Show loading icon on processing data
Labels: bug,issue-reporter

Testing #205587

1. Simulate a long task for the `data` arg of `openIssueReporter` 
2. Use the extension to file an issue + submit the issue.
3. No way to know whether the issue is pending :bug:

I would appreciate a screen or loading icon that shows that you've submitted your request and the data is processing.
Repository: ant-design
Issue: Format(i18n) pagination total number
Labels: Inactive,unconfirmed

### What problem does this feature solve?

When there is a page count <999 the number is not formatted. i.e. 1000 not 1,000

### What does the proposed API look like?

```
pagination={{total: total, displayTotal: <>{Intl.NumberFormat('en-US').format(total)}</>}}
```

https://codesandbox.io/p/sandbox/jolly-hofstadter-59qjxn?file=%2Fsrc%2FApp.js%3A17%2C2

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Further options for arrow keys in FancyZones
Labels: Idea-Enhancement,FancyZones-Settings,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Currently, options exist to move windows based on relative position using all Win+[any of the four arrow keys] or based on zone index using Win+[left or right].  Could another option be introduced that still allows Win+Up to maximize a window?

### Scenario when this would be used?

I use a small monitor and a large monitor.  When I'm onsite somewhere, I use the small monitor via ScreenConnect.  It would be nice to activate a window, Win+Left to get it on my left monitor, and then Win+Up to maximize it (my left monitor is normally split into two zones).  Currently, Win+Up moves the window away.  I like the functionality of the "Relative Position" option but would like to just use the left and right arrows for that and still have Win+Up available to maximize.  Thanks for considering!

### Supporting information

_No response_
Repository: vscode
Issue: In debug mode `findfiles2` could print out why it skipped a particular file that matched the pattern
Labels: feature-request,search

Testing #205408

When testing, I had a folder with `.gitignore` (content: `*`) which self ignores the entire folder. It was confusing to figure out why. If I knew it was getting skipped due to ignore it would have helped. In `debugpy` we have similar rules, and we describe why a file was ignored or skipped for step-into in logs when set to verbose.
Repository: go
Issue: x/build/internal/coordinator/remote: improve how work directories are set on gomote instances
Labels: Builders,NeedsInvestigation

Currently, when you SSH into a gomote, the proxy inserts a command to change into the working directory. Historically, this has caused different platforms to have different experiences when the SSH user starts their session. There should be a way of improving this experience. One possible solution is by modifying the SSH server in the buildlet to initiate the user's session in the work directory.
Repository: vscode
Issue: Opening an additional issue reporter doesn't work
Labels: bug,issue-reporter

Testing #205587

1. Open up the basic issue reporter `Help: Report Issue...`
2. Try to open up an issue reporter from extension.
3. Nothing happens :bug:

I would expect at least a warning that the issue reporter is already open. Ideally, I would like to see something like "are you sure you want to overwrite these details?" and if they want to overwrite, then it shows the details provided by the issue reporter.
Repository: vscode
Issue: Right clicking on the task bar preview does not show the maximize restore options
Labels: bug,upstream,windows,electron

Testing #205519

This issue exists on insiders as well.

This is for notepad:
![image](https://github.com/microsoft/vscode/assets/3840081/0338000f-dd81-4e45-81dd-5832442d8f74)

This is for oputlook:
![image](https://github.com/microsoft/vscode/assets/3840081/6662ea82-02ad-4670-936e-de539579abf1)

For exploration/insiders/stable nothing shows up.

The menu behind preview seems to be an OS bug.
Repository: go
Issue: cmd/compile/internal/test: TestCode failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "cmd/compile/internal/test" && test == "TestCode"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/076b7fc0d1ab0e71aec1439c958205b166d3e2f7)):

    --- FAIL: TestCode (160.82s)
        exec.go:193: test timed out while running command: /tmp/workdir/go/bin/go test -c -gcflags=-d=ssa/check/on -o /tmp/workdir/tmp/TestCode1841283356/001/code.test testdata/addressed_test.go testdata/append_test.go testdata/arithBoundary_test.go testdata/arithConst_test.go testdata/arith_test.go testdata/array_test.go testdata/assert_test.go testdata/break_test.go testdata/chan_test.go testdata/closure_test.go testdata/cmpConst_test.go testdata/cmp_test.go testdata/compound_test.go testdata/copy_test.go testdata/ctl_test.go testdata/deferNoReturn_test.go testdata/divbyzero_test.go testdata/dupLoad_test.go testdata/fp_test.go testdata/loadstore_test.go testdata/map_test.go testdata/namedReturn_test.go testdata/phi_test.go testdata/regalloc_test.go testdata/short_test.go testdata/slice_test.go testdata/sqrtConst_test.go testdata/string_test.go testdata/unsafe_test.go testdata/zero_test.go
        ssa_test.go:161: Build failed: exit status 2
            SIGQUIT: quit
            PC=0x2f0bf5a2a m=12 sigcode=0
    
            goroutine 0 gp=0xc000557880 m=12 mp=0xc000201808 [idle]:
            runtime.thrsleep(0xc000201e08, 0x3, 0x0, 0x0, 0xc000201e08)
            	runtime/sys_openbsd1.go:17 +0x2e fp=0x249545e80 sp=0x249545e60 pc=0x45c1ae
            runtime.semasleep(0x249545f10?)
    ...
            r11    0x202
            r12    0xe
            r13    0x1
            r14    0xc000557880
            r15    0x1
            rip    0x2f0bf5a2a
            rflags 0x202
            cs     0x2b
            fs     0x0
            gs     0x0


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: x/build: linux-amd64-race is taking about 5 minutes too long for pre-submit purposes
Labels: Builders,NeedsInvestigation

The trend of the linux-amd64-race builder taking approximately 20 minutes is fairly visible here, under the Run Duration column:

https://ci.chromium.org/ui/p/golang/builders/try/gotip-linux-amd64-race

We should try to get it down to 15 minutes per #17104. This is the tracking issue for that.
Repository: vscode
Issue: Notebook editor options not respected when editor options set
Labels: bug,notebook-format

Testing #205740

1. Add the following User settings
```json
"editor.insertSpaces": true,
"notebook.editorOptionsCustomizations": {
	"editor.insertSpaces": false
}
```

2. In a Jupyter notebook, create a new Python cell and write Python code with an indented section, such as a for loop or if statement.
3. :bug: The indent uses spaces rather than tabs.
Repository: next.js
Issue: next/script is run once
Labels: bug,Script (next/script)

### Link to the code that reproduces this issue

https://github.com/michaltarasiuk/next-script-fragment-hash

### To Reproduce

1. Start the application in development mode.
2. Go to page 1 (script indicator is green - script is executed)
3. Go back to home page
4. Revisit page 1 (script indicator is red - script is not executed)


### Current vs. Expected behavior

Following the steps from the previous section, I expected that script will be executed each time I visit the page. Instead it is executed only once.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 21.4.0
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.12.1
Relevant Packages:
  next: 14.1.1-canary.63 // Latest available version is detected (14.1.1-canary.63).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Script optimization (next/script)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

Related with:
- #30984

<br />

1. Script is fetched and loaded only once (current behavior)

When I first visited the page, the script executed successfully, and DOM elements were modified. The issue occured when moving from another page to the main one; the script failed to execute, leading to the page not functioning correctly.

I found that fragment of code.
```ts
const cacheKey = id || src;

// Script has already loaded
if (cacheKey && LoadCache.has(cacheKey)) {
  return;
}

// Contents of this script are already loading/loaded
if (ScriptCache.has(src)) {
  LoadCache.add(cacheKey);
  // It is possible that multiple `next/script` components all have same "src", but has different “onLoad”
  // This is to make sure the same remote script will only load once, but "onLoad" are executed in order
  ScriptCache.get(src).then(onLoad, onError);
  return;
}
```

Such caching is appropriate when the script assigns values/methods to the window object, allowing for later use by `onReady`.

2. Script is fetched once and executed every time (expected behavior)

URL fragment hash does not cause browser to refetch resource. Next.js thinks of that as the different URL so the script gets executed again, and everything works as expected.

```ts
import cryptoRandomString from "crypto-random-string";

function getScriptSrc() {
  const urlObject = new URL("script.js", "http://localhost:3000");
  urlObject.hash = cryptoRandomString({ length: 10, type: "url-safe" });
  return urlObject.toString();
}
```

This works, but it seems to not be the best solution.
Repository: pytorch
Issue: Add documention to the AT_DISPATCH functionality
Labels: module: docs,triaged

### 📚 The doc issue

When trying to write yourown CUDA kernel, we need to use the DISPATCH file in [Dispatch.h](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/Dispatch.h) in order to transform the variables. Unfortunately, there is no way to understand, which DISPATCH function needs to be used, in particular if you have tensors of mixed dtypes.

### Suggest a potential alternative/fix

While the introduction given in the [C++ and CUDA extension](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/Dispatch.h) is great, this documentation needs to be given in order to give users the opportunity to truly write their own kernels.

cc @svekars @brycebortree
Repository: deno
Issue: Acquiring more than 32 file locks prevents any other file operations
Labels: bug,ext/fs

Version: Deno 1.40.5

This code attempts to `.lock()` on a file, read/write a different file and then release the lock.
It's called `33` times all at once. All 33 correctly wait on `.lock(true)` and 1 correctly acquires the lock.
However that 1 then hangs forever on the read operation `Deno.readTextFile()` (though Deno.open here also locks).

If you change the counter from `33` to `32` then everything works perfectly. Feels like a deno bug?

Is this some sort of internal deno resource limit I'm hitting?

`ulimit -x` shows `unlimited` and nothing else from `ulimit a` is anywhere close to 32.

Run with: `deno run --allow-write --unstable-fs --allow-read lockLimitTest.js`
```js
const COUNTER_FILE_PATH = "/tmp/test.counter";
await Deno.writeTextFile(COUNTER_FILE_PATH, "0");

async function loadCounter()
{
	console.log("opening lock file");
	const lockFile = await Deno.open("/tmp/test.lock", {append : true, create : true});

	console.log("acquiring lock");
	await lockFile.lock(true);

	console.log("lock acquired, reading counter");
	const counter = +(await Deno.readTextFile(COUNTER_FILE_PATH));	// this is where it sticks

	console.log("writing counter");
	await Deno.writeTextFile(COUNTER_FILE_PATH, (counter+1).toString());

	console.log("releasing lock");
	await lockFile.unlock();

	console.log("closing lock file");
	lockFile.close();

	return counter;
}

const r = [];
for(let i=0;i<33;i++)	// if you reduce this to 32, it works fine
	r.push(loadCounter());

console.log(await Promise.all(r));
```