sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Support Parameter Groups, a new dart language feature proposal in Flutter
Labels: framework,f: material design,dependency: dart,c: proposal,team-design,triaged-design

## Use case

Handling long parameter lists either at declaration or at call/instantiation may require a lot of repeating and hard to read code. Flutter widgets are good examples where the actual parameters often just replace the default values for each instantiation:
```dart
return Column(
  crossAxisAlignment: CrossAxisAlignment.start,
    mainAxisAlignment: MainAxisAlignment.start,
  mainAxisSize: MainAxisSize.min,
  children: []
)
// or 
return Row(
  crossAxisAlignment: CrossAxisAlignment.start,
    mainAxisAlignment: MainAxisAlignment.start,
  mainAxisSize: MainAxisSize.min,
  children: []
)
```

The problem with declaration:
Current code:
```dart
class OutlinedButton extends ButtonStyleButton {
  const OutlinedButton({
    Key? key,
    required VoidCallback? onPressed,
    VoidCallback? onLongPress,
    ValueChanged<bool>? onHover,
    ValueChanged<bool>? onFocusChange,
    ButtonStyle? style,
    FocusNode? focusNode,
    bool autofocus = false,
    Clip clipBehavior = Clip.none,
    required Widget child,
  }) : super(
    key: key,
    onPressed: onPressed,
    onLongPress: onLongPress,
    onHover: onHover,
    onFocusChange: onFocusChange,
    style: style,
    focusNode: focusNode,
    autofocus: autofocus,
    clipBehavior: clipBehavior,
    child: child,
  );
}`
```
Code with the upcoming super parameters:
```dart
class OutlinedButton extends ButtonStyleButton {
  const OutlinedButton({
    super.key,
    required super.onPressed,
    super.onLongPress,
    super.onHover,
    super.onFocusChange,
    super.style,
    super.focusNode,
    super.autofocus = false,
    super.clipBehavior = Clip.none,
    required Widget super.child,
  });
}
```

## Proposal

There are two new Dart language feature proposals

- [Parameter Groups](https://github.com/dart-lang/language/issues/2245)
- [Using constructor and function parameter lists as implicit parameter groups](https://github.com/dart-lang/language/issues/2234)

Supporting them may turn the above examples into this:

```dart
const minStart = Flex.params(
    mainAxisSize: MainAxisSize.min,
    crossAxisAlignment: CrossAxisAlignment.start,
    mainAxisAlignment: MainAxisAlignment.start);

return Column(
  ...minStart,
  children: []
)
// or
return Row(
  ...minStart,
  children: []
)
```
 and this:
```dart
class Column extends Flex {
  Column({…Flex.params}) {
  }
}
```
Please consider supporting the new Dart features.
Repository: pytorch
Issue: DDP window TCP bug [socket.cpp:558] [c10d] The client socket has failed to 
Labels: oncall: distributed

### 🐛 Describe the bug

Hi   

I have two window boxes, each host has a single GPU.  Both can communicate and I disabled the firewall etc.  
Both hosts added A recond in the DNS server.  I added both while troubleshooting.  added in both host's file

Master node.  (IP address 192.168.254.230)

```python
torch.distributed.init_process_group(
            backend="gloo",
            init_method="tcp://localhost:54321"   // I tried to us 192.168.254.230 , actual hostname.  win11 , win11.mydomain_name
            world_size=2,
            rank=0)
```
Second node.
Master node.  (IP address 192.168.254.230)

```python
torch.distributed.init_process_group(
            backend="gloo",
            init_method="tcp://192.168.254.230:54321" actual hostname.  win11 , win11.mydomain_name
            world_size=2,
            rank=1)
```

Tried to use the os.env variable etc, In all cases, I see this error on the client node ( i.e rank 1)

In all cases, I see the error and both master and node never return from the init call.
Meanwhile, I run Wireshark and I see a TCP session and handshake on the same port  54321.

```
[W C:\cb\pytorch_1000000000000\work\torch\csrc\distributed\c10d\socket.cpp:558] [c10d] The client socket has failed to connect to [win11.vmwarelab.edu]:54321 (system error: 10049 - The requested address is not valid in its context.).
```

```
>>> import torch
>>> print(torch.__version__)
1.11.0
```

If you need Wireshark PCAPI can send but I seek the last packet from the master ACK 

PCAP screenshoot

<img width="839" alt="image" src="https://user-images.githubusercontent.com/11797329/168544258-d191881d-ce10-4b87-a4d9-f6d3041d7874.png">


### Versions

1.11.0


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: vscode
Issue: Git - After VSCode is updated, git@github.com: Permission denied (publickey).
Labels: bug,git

<!-- ⚠️⚠️ 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. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 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: April 2022 (version 1.67)
- OS Version: MacOS Monterey 12.3.1

Steps to Reproduce:

1. Update VSCode and restart
2. In VSCode terminal: git pull
3. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Repository: electron
Issue: [Bug]: SourceMaps over custom stream protocols give System error: net::ERR_UNEXPECTED
Labels: component/devtools,bug :beetle:,platform/all,status/confirmed,has-repro-comment,18-x-y,19-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

18

### What operating system are you using?

macOS

### Operating System Version

macOS Monterrey

### What arch are you using?

x64

### Last Known Working Electron version

16

### Expected Behavior

Loading a valid source map over a custom stream protocol ie custom:// works

### Actual Behavior

Fails in 18+ with

```
DevTools failed to load source map: Could not load content for custom://host/file.js: System error: net::ERR_UNEXPECTED
```

### Testcase Gist URL

_No response_

### Additional Information

Can provide a test if needed, but fails very consistently across all archs I've tried - only with the custom stream protocol - not with the custom string one.
Repository: rust
Issue: Feature-gating on closures is broken
Labels: A-closures,T-compiler,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

If we try to apply `#[track_caller]` on closures, like:

```rust
    pub fn expect_non_local<OtherId>(self) -> Res<OtherId> {
        self.map_id(
            #[track_caller]
            |_| panic!("unexpected `Res::Local`"),
        )
    }
```

This needs an `#![feature(closure_track_caller)]`, which is normal, but it also needs the feature attributes on the crates that have a caller of that method.

See https://github.com/rust-lang/rust/pull/96894#issuecomment-1122342316 and https://github.com/rust-lang/rust/pull/96894#issuecomment-1123191365 for more details.

TL;DR: In the above PR's situation, that method belongs to rustc_hir but we also have to add the feature attributes to rustc_resolve and librustdoc.

I expected to see this happen: *compiles fine with one feature attribute*

Instead, this happened: *compilation error*
Repository: rust
Issue: Inhibit unused_mut variables if unused_variables is also triggered
Labels: A-diagnostics,T-compiler

Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
fn main() {
    let mut s = String::from("a");
}
```

([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=0f9622ef596ee0a54b44e64f7e1579b0).)

The current output is:

```
warning: unused variable: `s`
 [--> src/main.rs:2:13
](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021#)  |
2 |     let mut s = String::from("a");
  |             ^ help: if this is intentional, prefix it with an underscore: `_s`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
 [--> src/main.rs:2:9
](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021#)  |
2 |     let mut s = String::from("a");
  |         ----^
  |         |
  |         help: remove this `mut`
  |
  = note: `#[warn(unused_mut)]` on by default

warning: `playground` (bin "playground") generated 2 warnings
```

```
warning: unused variable: `s`
 [--> src/main.rs:2:13
](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021#)  |
2 |     let mut s = String::from("a");
  |             ^ help: if this is intentional, prefix it with an underscore: `_s`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
```

It's obvious that an unused variable does not need to be declared mutable, and the extra warning puts more cognitive burden on the reader to figure out what's relevant.

Found this on 1.60.0, but also still happens on nightly.
Repository: pytorch
Issue: softmarginloss should use `log1p` and has an incorrect out= behaviour.
Labels: module: loss,triaged

### 🐛 Describe the bug

For more details see https://github.com/pytorch/pytorch/pull/77486#discussion_r873056795 and https://github.com/pytorch/pytorch/pull/77486#discussion_r873056847.

### Versions

master
Repository: next.js
Issue: import ESM module fails with custom typescript server
Labels: bug

### Verify canary release

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

### Provide environment information


    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.13.1
      npm: 8.1.2
      Yarn: 1.22.17
      pnpm: N/A
    Relevant packages:
      next: 12.1.7-canary.6
      react: 18.1.0
      react-dom: 18.1.0

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

_No response_

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

_No response_

### Describe the Bug

Hi

I try to import a custom ESM library that exports some functionality through the `exports` key of `package.json`.

When I try to import it, I get an error.

As I tried many things like
- import from `js` file
- import from `mjs` file
- import from `ts` file

### For reference

Here are related but not exactly same issues found in the repo

Existing errors
in browser
- https://github.com/vercel/next.js/issues/35633
- https://github.com/vercel/next.js/issues/30402

in server
- https://github.com/vercel/next.js/issues/34685
- https://github.com/vercel/next.js/issues/31143

### Expected Behavior

I expect to be able to import any ESM module in my typescript server file, without tweaking are being obliged to rename it as .mjs

### To Reproduce

I made a repo with everything to reproduce it https://github.com/martinratinaud/esm-nextjs-reproducable-error
Repository: godot
Issue: A question about Camera's method "unproject_position"
Labels: discussion,topic:dotnet

### Godot version

v3.4.stable.mono.win64

### System information

Windows 10

### Issue description

For some reason,I need the detailed process of the method "unproject_position",so I find out and copy the code from C++ source code to my C# project.Then I got a question in the function ` Vector3 XformInv(Vector3 p_vector, Transform t)`:
in the source code,the function is 
```
_FORCE_INLINE_ Vector3 Transform::xform_inv(const Vector3 &p_vector) const {
	Vector3 v = p_vector - origin;
	
return Vector3(
			(basis.elements[0][0] * v.x) + (basis.elements[1][0] * v.y) + (basis.elements[2][0] * v.z),
			(basis.elements[0][1] * v.x) + (basis.elements[1][1] * v.y) + (basis.elements[2][1] * v.z),
			(basis.elements[0][2] * v.x) + (basis.elements[1][2] * v.y) + (basis.elements[2][2] * v.z));
}
```

in my project,I have to use the code 
```
public Vector3 XformInv(Vector3 p_vector, Transform t)
    {

        Vector3 v = p_vector - t.origin;

        return new Vector3(
                 (t.basis[0][0] * v.x) + (t.basis[0][1] * v.y) + (t.basis[0][2] * v.z),
                (t.basis[1][0] * v.x) + (t.basis[1][1] * v.y) + (t.basis[1][2] * v.z),
                (t.basis[2][0] * v.x) + (t.basis[2][1] * v.y) + (t.basis[2][2] * v.z));
    }
```
to get the same result as the method `unproject_position` of Godot C#

So the question is when I tried to override the method "unproject_position" of Godot C# by copying the detailed code from C++ source code,I have to inverse the **basis** matrix in camera's transform to get the right result.Is this a bug or I did something wrong?

Hope someone can help me,thx.



### Steps to reproduce

Here's the demo I use

### Minimal reproduction project

[demo1.zip](https://github.com/godotengine/godot/files/8699546/demo1.zip)
Repository: PowerToys
Issue: improve behavior when switching desktop on a fullscreen app that has "show on all desktops" ticked
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

Currently when I switch desktop on a app that has "show on all desktops" ticked. On the switched desktop. It would still show this current window focused on top. But usually when I switch desktops I would want to use the last window used on that desktop, usually not this  "show on all desktops" ticked window. Is it possile to provide an option to do the focusing to other windows on newly switched to desktop work for us?

### Scenario when this would be used?

I use an OLED display thus I turn on autohide taskbar. When I switch desktop on a fullscreen app  that has "show on all desktops" ticked. It can be very confusing if I switched to the desired desktop, because the screen doesn' t seem changed at all.

### Supporting information

_No response_
Repository: neovim
Issue: Windows: :! shell tab-completion does not quote filenames with space
Labels: bug,platform:windows,bug-vim,completion

### Neovim version (nvim -v)

0.7.0

### Vim (not Nvim) behaves the same?

Yes

### Operating system/version

Windows 10.0.25115.1000

### Terminal name/version

Windows Terminal Preview 1.13.10984.0

### $TERM environment variable

xterm-256color

### Installation

winget

### How to reproduce the issue

Inside an empty directory:
```cmd
>"temp file.cmd" echo @echo Hello world
nvim --clean
```
- inside neovim: type
  ```vim
  :!.\temp
  ```
  and press <kbd>Tab</kbd>, then <kbd>Enter</kbd>.

### Expected behavior

1. After pressing <kbd>Tab</kbd>, the prompt changes to `:!".\temp file.cmd"`.
2. After pressing <kbd>Enter</kbd>, `Hello world` is printed.

### Actual behavior

1. After pressing <kbd>Tab</kbd>, the prompt changes to `:!.\temp\ file.cmd`.
2. After pressing <kbd>Enter</kbd>,
   ```none
   '.\temp\' is not recognized as an internal or external command,
   operable program or batch file.

   shell returned 1
   ```
   is printed.
Repository: create-react-app
Issue: npm run start failed with EISDIR: Illegal operation on directory
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

npm run start (of react-scripts) failed because in a parent directory (in this case the linux home directory) was a directory named package.json.
(with the error EISDIR: illegal operation on a directory).

This bug happens in the package cosmiconfig, which is a transitive dependency of fork-ts-checker-webpack-plugin

### Describe the solution you'd like

An update of fork-ts-checker-webpack-plugin to v 7.2.8 in react-dev-tools would fix the issue.

### Describe alternatives you've considered

None, updating seems reasonable.

### Additional context

The bug is fixed with version 7.0.1 of cosmiconfig (https://github.com/davidtheclark/cosmiconfig/pull/260).
fork-ts-checker-webpack-plugin already upgraded cosmiconfig (https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/698) and released a version with the fix (https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/6.5.x...v7.2.8).
Repository: godot
Issue: `Variant::get_builtin_method_hash` discards hash with argument type
Labels: bug,topic:core,topic:gdextension

### Godot version

4.0.dev+cc3ed63af

### System information

N/A

### Issue description

In `Variant::get_builtin_method_hash` the "in progress" hash gets directly overwritten by argument variant type rather than being hashed:
https://github.com/godotengine/godot/blob/c41f62c3df85fd71539ae09bd97964e5e367d897/core/variant/variant_call.cpp#L1182
which results in bad hashes as it discards all other info :/

Aside from this small issue, are there plans of keeping hashing functions stable across versions?
Exposing them to gdextension would be beneficial for runtime reflection, thanks :+1: 

### Steps to reproduce

Look at code

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: batch Kronecker product 
Labels: triaged,enhancement

### 🚀 The feature, motivation and pitch

I have two tensors that are batches of matrices:
```
x = torch.randn(100,10,10) 
y = torch.randn(100,2,2)
```

I want to parallelize the kronecker on each matrix, not doing the kronecker product of the tensors. torch.kron(x,y) gives me a tensor of size (10000, 20,20), but I want a shape out of size (100, 20, 20) that computes the kronecker product for each matrix. Is there any way to do so ?

Something like torch.kron(x,y, start_dim = 1) is what I tried but it does not seem to be implemented.

Thanks


### Alternatives

A parameter start_dim that tells form which dimension we want to do perform a kronecker product. 

### Additional context

_No response_
Repository: flutter
Issue: [camera_windows] Failed to initialize a external usb camera: camera_error: Failed to create camera
Labels: platform-windows,p: camera,package,a: desktop,P2,team-windows,triaged-windows

When I ran the example in [packages\camera\camera_windows\]:

**[Create camera]** do NOT work for **_1_ of my three** cameras.
You CAN [Switch to] it, but if you [Create camera], it says:

>Failed to initialize camera: camera_error: Failed to create camera.

(No specific ERROR info). It is a USB UVC camera.

The other 2 cameras(1 built in, 1 USB) work well.
The camera with error works well in other programs such as OBS Studio and some C++/C# camera video capture examples.
![image](https://user-images.githubusercontent.com/27002679/168597115-9986f836-8961-4d8e-a9d3-78e15f912379.png)
Repository: pytorch
Issue: Modernize LoggingTensorMode
Labels: triaged,module: __torch_dispatch__

### 🐛 Describe the bug

Now that @samdow has updated the dispatch mode API, we should make LoggingMode use it too.

### Versions

master

cc @Chillee @ezyang @zou3519 @albanD @samdow
Repository: vscode
Issue: Unify inline edit experience
Labels: debt,file-explorer,timeline,terminal-tabs

Currently we have various inline edit experience within VS Code. 


Some examples of different inline edit experiences is 
1. Timeline
2. Terminal tabs
3. Explorer


Making a unified reusable widget would allow us to enable rename in things like the outline.
Repository: storybook
Issue: 'No code available' when using CSF stories in MDX docs - Angular
Labels: bug,angular,block: source

**Describe the bug**
We are embedding CSF stories into our MDX docs. The stories render fine, but the code snippets either say "No code available" or the "Show Code" button is available, but clicking it does nothing. We are building Angular components, but I dont know if this bug exists for other frameworks. This is the case for both `inlineStories: true` and `inlineStories: false`

**To Reproduce**
I cant duplicate the repo because it is company work, but the production deployed storybook is at storybook.snagajob.com. More specifically you can here to see both "No code available" and "Show Code" not working: https://storybook.snagajob.com/?path=/story/design-system-button-docs--page

 Code repro below:

stories.ts
``` ts
import { SAJIconsModule } from '@snagajob/icons';
import { moduleMetadata, Story, Meta } from '@storybook/angular';
import { SAJButtonModule } from '..';
import { SAJButtonDirective } from './button.directive';

export default {
  title: 'Design System/Button/Stories/Primary',
  component: SAJButtonDirective,
  decorators: [
    moduleMetadata({
      imports: [
        SAJButtonModule,
        SAJIconsModule
      ],
    })
  ],
  parameters: {
    previewTabs: {
      'storybook/docs/panel': {
        hidden: true,
      }
    }
  }
} as Meta<SAJButtonDirective>;

const Template: Story<SAJButtonDirective> = (args: SAJButtonDirective) => ({
  props: args,
  template: `
    <div class="mb-8"><button sajButton [color]="color" [style]="style" [size]="size">Button</button></div>
    <div><a sajButton href="www.snagajob.com" [color]="color" [style]="style" [size]="size">Link</a></div>
  `
});

export const Filled = Template.bind({});

export const Outlined = Template.bind({});
Outlined.args = {
  style: 'outlined'
}

export const Borderless = Template.bind({});
Borderless.args = {
  style: 'borderless'
}
```

doc.mdx
```
<Canvas>
  <Story id="design-system-button-stories-primary--filled"/>
  <Story id="design-system-button-stories-primary--outlined"/>
  <Story id="design-system-button-stories-primary--borderless"/>
</Canvas>
```

**System**
```
System:
    OS: macOS 12.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 101.0.4951.64
    Firefox: 96.0
    Safari: 15.4
  npmPackages:
    @storybook/addon-a11y: ^6.4.19 => 6.4.19 
    @storybook/addon-essentials: ^6.4.22 => 6.4.22 
    @storybook/addon-interactions: ^6.4.19 => 6.4.19 
    @storybook/angular: ~6.4.22 => 6.4.22 
    @storybook/builder-webpack5: ~6.4.12 => 6.4.17 
    @storybook/manager-webpack5: ~6.4.12 => 6.4.17 
    @storybook/testing-library: ^0.0.9 => 0.0.9 
```

Thanks ahead of time @shilman :)
Repository: go
Issue: cmd/compile/internal/ssa: "panic during regalloc" on linux/ppc64*
Labels: help wanted,NeedsInvestigation,arch-ppc64x,compiler/runtime

```
#!watchflakes
post <- goarch ~ `ppc64.*` && log ~ `panic during regalloc` && log ~ `^\s*cmd/compile/internal/ssa`
```

`greplogs -l -e '(?ms)panic during regalloc .*cmd/compile/internal/ssa\.\(\*sparseSet\)\.add'`
[2022-05-13T21:33:25-4170084/linux-ppc64le-power9osu](https://build.golang.org/log/7ed8e0f9e7c444b00df7914ff6c7a830f2066c4e)

(attn @randall77 @dr2chase @cherrymui; CC @golang/ppc64)