sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [go_router] Breadcrumbs and Cupertino Back Context Menu
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/260

It would be great if we could make publicly accessible the current list of routes in the stack so it is possible to create Breadcrumbs and Cupertino Back Context Menu. The design of those components don't need to be part of this library, but it would be great if it makes it possible

https://user-images.githubusercontent.com/19904063/147133237-2352ee2f-2656-4d3f-bc91-0049f033ee2c.MP4

https://user-images.githubusercontent.com/19904063/147133293-10ef1f4e-7b8c-4db3-81e5-de5faba4b6c8.mp4

Current approach
```dart
class BackButton extends StatelessWidget {
  const BackButton({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    assert(debugCheckHasMaterialLocalizations(context));

    return GestureDetector(
      onLongPress: () async {
        final router = GoRouter.of(context);
        final navigator = Navigator.of(context);
        if (router.routerDelegate.matches.isEmpty) return;
        final location = await showMenu(
            context: context,
            position: const RelativeRect.fromLTRB(0, 0, 20, 20),
            items: <PopupMenuEntry<String>>[
              for (final match
                  in router.routerDelegate.matches.reversed.skip(1))
                PopupMenuItem<String>(
                  value: match.route.name,
                  child: Text(match.route.name ?? 'Hey'),
                ),
            ]);
        if (location != null) {
          navigator.popUntil((route) => route.settings.name == location);
        }
      },
      child: IconButton(
        icon: const BackButtonIcon(),
        onPressed: () {
          Navigator.maybePop(context);
        },
      ),
    );
  }
}
```
Repository: flutter
Issue: [go_router] GoRouter-wide pageBuilder 
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/204

Would be useful for things like different transitions per target platform (even if it's all material), making everything fade, etc. Since everything uses a core pageBuilder anyway, this wouldn't be too hard to do...
Repository: ant-design
Issue: Antd uses copy-to-clipboard which contains vulnerabilities
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Antd uses copy-to-clipboard. The latest version of copy-to-clipboard contains some vulnerabilities according to "npm audit":
16 vulnerabilities (1 low, 4 moderate, 6 high, 5 critical)

I'm certainly no expert with this but it appears that the vulnerabilities are related to packages that need upgrading to newer versions (in copy-to-clipboard). However copy-to-clipboard doesn't appear active or at least there hasn't been an updated version in well over a year. I'm wondering if there are antd plans to move to a package that is comparable to copy-to-clipboard but one that is active. My security scan doesn't like the vulnerabilities found in this package that antd uses.

### What does the proposed API look like?
No API. But hopefully the inactive copy-to-clipboard can be replaced with a project that is active.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Godot 4: variable of the object type always shows null value in the Visual Script's members window even though the value has already been set
Labels: bug,topic:editor,topic:visualscript,regression

### Godot version

v4.0.alpha3.official [256069eaf]

### System information

Windows 11, Vulkan Clustered, Intel UHD Graphics 620 v30.0.101.1340

### Issue description

The variable of the **object type** always shows a `null` value in the members' window even though the value has already been set, as shown in the screenshot below:

![Screenshot 2022-02-24 225425](https://user-images.githubusercontent.com/1403194/155639547-bb80a9e9-bf0e-4a27-a864-6eb3c5ee2b98.jpg)

Moreover, as soon as the variable is set to the object type, the console output will generate this error (as shown in the screenshot above):

`core/object/undo_redo.cpp:343 - Error calling method from signal 'set_variable_default_value': 'VisualScript::set_variable_default_value': Method expected 2 arguments, but called with 1.`

This is a regression from Godot 3.4. In Godot 3.4, this is working fine as shown in the screenshot below:

![Screenshot 2022-02-24 225656](https://user-images.githubusercontent.com/1403194/155640217-545b4e18-e98c-4518-ac62-f4bbee742d3c.jpg)


### Steps to reproduce

1. Add a variable of the object type in Visual Script.
2. Set the value. The variable will always show as `null` in the members' window.

### Minimal reproduction project

_No response_
Repository: rust
Issue: rustdoc: Links to types in other crates broken when docs inlined via re-export from another crate
Labels: T-rustdoc,C-bug,A-cross-crate-reexports

Let's say you have crates A, B, and C, where:

1. Crate A has a struct named `AType`.
2. Crate B depends on crate A, and has a struct named `BType` that has docs that link to type `AType` in crate A.
3. Crate C depends on crate B, and has a struct named `CType` that re-exports `B::BType` with `#[doc(inline)]`.

In the docs for crate C, the link to `AType` in the inlined documentation for `BType` is broken.

For a more concrete example, the crate [`aws-sdk-s3`](https://crates.io/crates/aws-sdk-s3) re-exports `aws_smithy_http::byte_stream::Bytestream`, which has a link to `futures_core::Stream` in its docs. This results in the inlined docs for `Bytestream` having a broken link to `Stream`, which can be observed [in these docs](https://docs.rs/aws-sdk-s3/0.7.0/aws_sdk_s3/types/struct.ByteStream.html) (where it says "Via impl Stream").

### Meta

Observed this with stable rustdoc 1.56.1 and rustdoc 1.61.0-nightly (4b043faba 2022-02-24).
Repository: TypeScript
Issue: Conditional type prevents assignability
Labels: Bug,Help Wanted

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

Index signature assignability, generic index signatures, conditional types

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about conditional types

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEFUGcFNQewGagC4AtYGM4DsAmBLZfHAQwBsUBPAB1gANJkAnfbAc1GgA9lo9JQAFTqhqTaADc+yASUiR8bbCQBG+MoUoA6AFAhQACTgB3SdCYAaFOlBY8hYsorIa9QZx59cAxi3Yj8WQwMaGpeXF0dXGgMMhJxWzj5UAAxODgAHkEAPlBQAG8dPLyVeIAuUF9WDm5efiFQAH5QbABXAFsVc1AKlXSyaBJsAG4dAF8dKJi4hIHkUFZorlUBirTM-IBtAGtoSgqq9gBdXv7B7DHs0ejY+Ng5lpJ26FwABSY4ajX0jPzSgC9TnABkNLqMdItuCtYABeR7PN4fajDIA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
// Use of the conditional type `string extends T` prevents assignability.
// However, the conditional type `T extends string` is accepted.

declare class Foo<T>  {
    bar: string extends T ? number : boolean;
}

declare let indexable: Foo<{[key: string]: boolean}>;
declare let namedProp: Foo<{baz: boolean}>;

indexable = namedProp;
```

### 🙁 Actual behavior

When a conditional type is present in `Foo`, I sometimes cannot assign `Foo<{a: any}>` to `Foo<[x: string]: any>`, depending on the condition.

### 🙂 Expected behavior

Regardless of the conditional type, I should be able to assign `Foo` with named properties to `Foo` with an index signature.
Repository: pytorch
Issue: Conv3D consumes lots of memory on Mac with Apple Silicon
Labels: module: convolution,triaged,module: macos

### 🐛 Describe the bug

3D convolution consumes lots of memory on a Mac with Apple Silicon. 

```python
import torch
import torch.nn as nn

device = torch.device("cpu")
image  = torch.zeros((240, 240, 240), device=device, dtype=torch.float32)
kernel = torch.zeros((62, 61, 63), device=device, dtype=torch.float32)

output = nn.functional.conv3d(image[None][None], kernel[None][None], padding="same")
```

The above code never finished on my Mac as it consumed all of the system memory (64GB) and got killed by the OS. But the code runs fine on a 1080Ti (with only 11GB of video memory) or CPU on Linux.

### Versions

```
Collecting environment information...
PyTorch version: 1.10.2
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.2.1 (arm64)
GCC version: Could not collect
Clang version: 13.0.0 (clang-1300.0.29.30)
CMake version: version 3.22.1
Libc version: N/A

Python version: 3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 05:00:30)  [Clang 11.0.1 ] (64-bit runtime)
Python platform: macOS-12.2.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.21.4
[pip3] torch==1.10.2
[pip3] torchaudio==0.10.2
[pip3] torchvision==0.11.3
[conda] numpy                     1.21.4           py39h1f3b974_0    conda-forge
[conda] torch                     1.10.2                   pypi_0    pypi
[conda] torchaudio                0.10.2                   pypi_0    pypi
[conda] torchvision               0.11.3                   pypi_0    pypi
```

cc @malfet @albanD
Repository: deno
Issue: console.timeEnd is very slow (large source file)
Labels: bug,perf

```javascript
`
...
hello world
hello world
hello worldhello world
hello world
hello world
hello world

`;

const decoder = new TextDecoder();
const encoder = new TextEncoder();
for (let i = 0; i < 1e1; i++) {  
    const encodeLabel = `Encode (${input.length} chars)`;
    console.time(encodeLabel);
    const value = Deno.core.encode(input);
    console.timeEnd(encodeLabel);
 }
```

Original benchmark file: https://gist.github.com/Jarred-Sumner/aa5ebe17d2244221f83cec3dd249d06c
Note that this is a huge source file ^

![image](https://user-images.githubusercontent.com/34997667/155645702-7fc9dc20-cf55-4341-840f-b63f83246ea5.png)

Only call invocation to `timeEnd` takes ~46ms, presumably JIT-related warmup. It makes the actual benchmark look very bad.
Repository: node
Issue: Grant triagers the ability to re-run a failed CI
Labels: meta

### What is the problem this feature will solve?

I see CI sometimes gets flaky, and the PR author has to find a collaborator to re-run it. Maybe triagers can help with that too?

Triage now can add the `request-ci` label to PRs, but it will completely re-run a CI from zero.

### What is the feature you are proposing to solve the problem?

Grant triagers the ability to the `resume build` option.

### What alternatives have you considered?

Or maybe `request-ci` label can be processed more smartly.
Repository: rust
Issue: Use mold as default linker?
Labels: A-linkage,C-feature-request

https://github.com/rui314/mold/releases/tag/v1.1

1.1 now supports LTO... is there anything else missing? Or could mold become the default linker?
Repository: flutter
Issue: windows-x64-flutter.zip uploaded twice
Labels: tool,platform-windows,a: assets,a: build,P3,team-tool,triaged-tool

windows-x64-flutter.zip is created and uploaded twice with the exact same content to the following locations:

* windows-x64/windows-x64-flutter.zip
* windows-x64-debug/windows-x64-flutter.zip
Repository: rust
Issue: `#[used(compiler)]` and `#[used(linker)]` should work on functions.
Labels: T-lang

Related to #93798
cc @cynecx since you did the implementation.
cc @Meziu and @ian-h-chamberlain

The `#[used(compiler)]` and `#[used(linker)]` should work on functions. They weren't explicitly one of the main motivating use cases brought up in #47384, but expanding them to support functions would be very beneficial. For example, in https://github.com/Meziu/pthread-3ds and https://github.com/Meziu/rust-linker-fix-3ds we have to have an empty ["init" function](https://github.com/Meziu/pthread-3ds/blob/90bd4d00e371ea5dbd8487c5a63d3d75d667f796/src/lib.rs#L8-L12) just so the exported functions don't get thrown out.

I was expecting these annotations to fix our problem, so I was excited to try them out when I heard they hit nightly. However, the following fails to compile:
```rust
#![feature(used_with_arg)]

#[used(compiler)]
#[no_mangle]
pub unsafe extern "C" fn foo() {}
```
[playground link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=517bb4501f5291162bcaae9edc89156e)

```
error: attribute must be applied to a `static` variable
 --> src/lib.rs:3:1
  |
3 | #[used(compiler)]
  | ^^^^^^^^^^^^^^^^^
```

Interestingly, changing to `#[used(linker)]` results in an extra message (Edit: fixed by #94377):
```
error: `used(compiler)` and `used(linker)` can't be used together
 --> src/lib.rs:3:1
  |
3 | #[used(linker)]
  | ^^^^^^^^^^^^^^^
4 | #[no_mangle]
  | ^^^^^^^^^^^^
```

Does `no_mangle` imply `used(compiler)`?
Repository: godot
Issue: Running an EditorScript with a Resource that passes itself to a member variable crashes after saving
Labels: bug,topic:gdscript,topic:editor

### Godot version

3.4.2

### System information

Windows 10

### Issue description

If you run an EditorScript(TestSave.gd) that instantiates an object that extends from Resource(A.gd), and that Resource has a member variable which itself has a member variable that holds the Resource after being passed it, then trying to make changes and saving that Resource script will cause Godot to crash. This is probably something to do with how the reference is being handled and freed, since it works fine if the object extended Node instead.

TestSave.gd:
```
tool extends EditorScript

func _run():
	var a = A.new()
```

A.gd:
```
extends Resource

class_name A

var b

func _init():
	b = B.new()
	b.a = self

class B:
	var a
```

### Steps to reproduce

1. Run TestSave.gd
2. Make any change to A.gd, could just be a new line
3. Save A.gd

### Minimal reproduction project

[TestSave.zip](https://github.com/godotengine/godot/files/8138812/TestSave.zip)
Repository: flutter
Issue: [MacOS] Trailing whitespace in multiline TextField overflows and doesn't go to newline.
Labels: a: text input,framework,f: material design,a: desktop,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-text-input,triaged-text-input

## Steps to Reproduce

1. Use a multiline TextField.
2. Input a lot of whitespace in the content tail.
3. Whitespace is overflow and not switch to a newline (Tap Ctrl + A to select all).

**Expected results:** Auto switch to a new line.

**Actual results:** Whitespace is overflow.

<details>
<summary>Code sample</summary>

```dart
const SizedBox(
    width: 400,
    height: 200,
    child: TextField(
      maxLines: null,
      keyboardType: TextInputType.multiline,
      decoration: InputDecoration(
        border: InputBorder.none,
        filled: true,
        fillColor: Colors.pink
      ),
      expands: true,
    ),
  )
```

</details>

<details>
  <summary>Logs</summary>
<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-arm, locale
    zh-Hans-CN)
    • Flutter version 2.8.1 at /Volumes/AOSP/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (2 months ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/jinguoyang/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • macOS (desktop) • macos    • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)    • chrome   • web-javascript • Google Chrome 98.0.4758.109

• No issues found!
```

</details>

https://user-images.githubusercontent.com/15059084/155669905-5de481ac-716f-421e-987b-f1c705a036bc.mov
Repository: next.js
Issue: [NEXT-781] strict mode error for projects that do not specify `"type": "module"`
Labels: bug,SWC

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:38 PDT 2021; root:xnu-7195.141.8~1/RELEASE_ARM64_T8101
    Binaries:
      Node: 16.13.1
      npm: 8.1.2
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 12.1.0
      react: 17.0.2
      react-dom: 17.0.2

### What browser are you using? (if relevant)

Chrome

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

In `next dev`, Non-ESM files default to `strict mode` in projects that do not specify `"type": "module"` in package.json

Therefore, the non-ESM script is trapped by the strict mode validation and an error occurs.

```js
// non-esm.js
with (Math) {
  console.log(PI);
}
```

```ts
// pages/index.tsx
import type { NextPage } from "next";
import { useEffect } from "react";

const Home: NextPage = () => {
  useEffect(() => {
    require("../non-esm.js"); // Error!!
  }, []);
  return <div>test</div>;
};

export default Home;
```

babel error:
<img width="729" alt="スクリーンショット 2022-02-25 16 43 23" src="https://user-images.githubusercontent.com/1961411/155676338-f823ef74-5bd7-4175-9b26-7258bec495d9.png">

swc error:
<img width="728" alt="スクリーンショット 2022-02-25 15 16 07" src="https://user-images.githubusercontent.com/1961411/155664492-9ea7b97e-63ef-4bb0-92e1-2be2def4ef02.png">

In the case of babel-loader, this problem can be avoided by changing the extension from `js` to `cjs`. However, for swc, this problem cannot be avoided with either extension.


This problem occurs at `next@12.1.0`. Possible causes of PR: https://github.com/vercel/next.js/pull/33637

### Expected Behavior

`next dev` works without error.　

### To Reproduce

- `npx create-next-app@latest`
- `npm run dev`
- Go to http://localhost:3000/

<sub>[NEXT-781](https://linear.app/vercel/issue/NEXT-781/strict-mode-error-for-projects-that-do-not-specify-type-module)</sub>
Repository: godot
Issue: Inconsistency when attaching script to node ?
Labels: discussion,topic:editor

### Godot version

3.4.2.stable

### System information

windows 10

### Issue description

When a child scene is attached to the main scene, we can attach the child script either inside the main scene (A), or inside the child scene (B). Functionally, it makes no difference (if the child scene will not be reused).

Inconsistency : 
If the script was attached inside the child scene, we can however remove it from inside the main scene. If we open the child scene, the script is still present. When we run the main scene, the script will no longer be functional.

Inconsistency : 
Alternatively, if we attach a script inside a child scene, we can also attach a script (same or other) from inside the main scene. However, only the script which was attached from inside the main scene will run.

![inconsistency](https://user-images.githubusercontent.com/59080934/155678535-bb17b7fc-ec92-4aa2-8433-080fe9ea4ff8.png)


### Steps to reproduce

 - 

### Minimal reproduction project

_No response_
Repository: terminal
Issue: previous tab does not receive keyboard input after closing setting tab with middle mouse button
Labels: Help Wanted,Issue-Bug,Product-Terminal,Priority-3,Area-SettingsUI

### Windows Terminal version

1.13.10395.0

### Windows build number

10.0.22000.527

### Other Software

_No response_

### Steps to reproduce

1. Open Windows Terminal Preview and get the default profile tab
2. Open setting tab from the dropdown
3. Randomly click some profiles in the Profile list
4. Close the setting tab with middle mouse button
5. The default profile tab does not receive keyboard input (as if the window not focused)
6. Have to click the tab to make it work again

### Expected Behavior

The previous tab gets automatically focused and receives keyboard input after closing the setting tab with middle mouse button

### Actual Behavior

The previous tab does not automatically get focused and receive keyboard input