sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [webview_flutter] I want to be able to clone the NavigationDelegate
Labels: c: new feature,p: webview,package,team-ecosystem,P2,p: requires breaking change,triaged-ecosystem

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

The `NavigationDelegate` cannot be cloned because the `onUrlChange` of the parameters is not exposed.

```dart
  @override
  Future<void> setNavigationDelegate(
    NavigationDelegate delegate,
  ) {
    final onPageFinished = delegate.onPageFinished;
    final result = NavigationDelegate(
      onNavigationRequest: delegate.onNavigationRequest,
      onPageStarted: delegate.onPageStarted,
      onPageFinished: (url) {
        onPageFinished?.call(url);
        runJavaScript(
          'window.addEventListener("message", (event) => BeansApp.postMessage(event.data), false);',
        );
      },
      onWebResourceError: delegate.onWebResourceError,
      onProgress: delegate.onProgress,
      onUrlChange: delegate.onUrlChange, // delegate.onUrlChange is not exposed
    );
    super.setNavigationDelegate(result);
  }
}
```



### Proposal

Exposing the `onUrlChange` so I can make a clone of the `NavigationDelegate` and inject some custom code.
Repository: vscode
Issue: `code new_file.ipynb` and then saving does not always honour the path of the new file
Labels: bug,notebook-serialization

<!-- ⚠️⚠️ 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. -->
I tried searching for duplicates by googling `github vscode jupyter issues save new file created from terminal wrong path` and looking through the first few pages of search results.
<!-- 🧪 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 (I tried with `code --disable-extensions new_file.ipynb`)

- VS Code Version: 1.81.1
- OS Version: Ubuntu 22.04.2

Steps to Reproduce:

1. navigate a shell to some directory A
2. run `code --disable-extensions new_file.ipynb`
3. quit VS Code without saving
4. navigate the same shell to some directory B
5. run `code --disable-extensions new_file.ipynb`
6. check that the path of the file is anchored to the cwd of the shell that ran the previous command when the command was run by running `File: Copy Path of Active File` in the command palette
7. save the file
8. observe in the breadcrumbs that the file is _no longer_ anchored to that directory, but was saved to some other location.

For me, that location is my user home directory.

This behaviour was brought to my attention by [this Stack Overflow question](https://stackoverflow.com/q/76917125/11107541), which is technically a duplicate of [this older Stack Overflow question](https://stackoverflow.com/q/71924488/11107541).
Repository: deno
Issue: npm:mongoose not working on dev environment
Labels: bug,node compat

Hey there, 

I'm building a simple web application using an npm module called `mongoose`. it works well when I'm running the `deno task preview` command. But when I'm running the `deno task start` command,  the error occurred: 

```
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prototype')
    at file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/mongoose/7.4.3/lib/types/buffer.js:156:17
    at Object.exports.each (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/mongoose/7.4.3/lib/utils.js:957:5)
    at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/mongoose/7.4.3/lib/types/buffer.js:145:7)
    at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/mongoose/7.4.3/lib/types/buffer.js:279:4)
    at Module._compile (node:module:731:36)
    at Object.Module._extensions..js (node:module:745:12)
    at Module.load (node:module:656:34)
    at Function.Module._load (node:module:539:16)
    at Module.require (node:module:675:23)
    at require (node:module:789:20)
``` 


When im using different version of mongoose as declared on [deno doc](https://deno.land/manual@v1.36.1/node/how_to_with_npm/mongoose) such as npm:mongoose@^6.7, a different error occurred:

```
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'browser')
    at detectRandomBytes (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/bson/4.7.2/lib/parser/utils.js:29:17)
    at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/bson/4.7.2/lib/parser/utils.js:55:23)
    at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/bson/4.7.2/lib/parser/utils.js:116:4)
    at Module._compile (node:module:731:36)
    at Object.Module._extensions..js (node:module:745:12)
    at Module.load (node:module:656:34)
    at Function.Module._load (node:module:539:16)
    at Module.require (node:module:675:23)
    at require (node:module:789:20)
    at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/deno/npm/registry.npmjs.org/bson/4.7.2/lib/ensure_buffer.js:6:15)
```
 
For the both case, it works well on `deno task preview` 

Thanks
Repository: flutter
Issue: [flutter_tools] `flutter update-packages --force-upgrade` should warn when run with terminal attached (and fail on non-development channels)
Labels: P2,team-tool,triaged-tool

Now that we have the pub autoroller bot, most users should never run this command. We should warn when run with a terminal attached that you should only run this if you are flutter SDK maintainer, intending to roll a pub dependency that cannot be autorolled.
Repository: rust
Issue: async fn lifetime eliding satisfies HRTB where explicit does not
Labels: A-lifetimes,T-compiler,C-bug,A-async-await,AsyncAwait-Triaged,A-higher-ranked

In this code, two generators are defined. Their definitions should be equivalent. The async-fn variant where lifetimes are elided works fine, but the variant where the lifetimes are defined explicitly with an impl-trait return fails to compile against the HRTB.

[Playground with more definitions to actually build.](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a3bad794ca1601316c446d99f195ac28)
```rust
trait AsyncFnOnce<Arg> {}
impl<F, A, B, R: Future> AsyncFnOnce<(A, B, )> for F
    where
        F: FnOnce(A, B) -> R,
{}

pub unsafe trait RemitWithLifetime<T, X> {}
unsafe impl<T, X, F> RemitWithLifetime<T, (X, )> for F
    where
        F: for<'a> AsyncFnOnce<(X, Remit<'a, T>, )>,
{}

impl<T, P> Generator<T, P> {
    pub fn parameterized<'s, G, X>(
        self: Pin<&'s mut Self>,
        _gen: G,
        _parameter: X,
    ) -> GeneratorIterator<'s, T, P>
        where
            // insures fn is not implemented only for 'static
            G: RemitWithLifetime<T, (X,)>,
            // insures P is properly defined, even if it actually has a lifetime
            G: FnOnce(X, Remit<'static, T>) -> P,
    {
        unimplemented!();
    }
}

use std::pin::pin;
fn only_build() {
    let data = String::from("hi");

    /// Implicit elision works
    async fn gen_implicit(data: &str, remit: Remit<'_, usize>) {
        remit.value(data.len()).await;
        remit.value(data.len()).await;
    }
    for item in pin!(Generator::new()).parameterized(gen_implicit, &data) {
        dbg!(item);
    }
    
    /// Does not work, as explicit lifetime definitions fail HRTB.
    fn gen_explicit<'a: 'c, 'b: 'c, 'c>(data: &'a str, remit: Remit<'b, usize>) -> impl std::future::Future<Output=()> + 'c {
        async move {
            remit.value(data.len()).await;
            remit.value(data.len()).await;
        }
    }
    for item in pin!(Generator::new()).parameterized(gen_explicit, &data) {
        dbg!(item);
    }
}
```

Both `gen_implicit` and `gen_explicit` should have been able to be used successfully.

Instead, there is a compiler error:

```
error: implementation of `FnOnce` is not general enough
  --> src/lib.rs:49:17
   |
49 |     for item in pin!(Generator::new()).parameterized(gen_explicit, &data) {
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
   |
   = note: `fn(&str, Remit<'2, usize>) -> impl Future<Output = ()> + '_ {gen_explicit::<'_, '2, '_>}` must implement `FnOnce<(&str, Remit<'1, usize>)>`, for any lifetime `'1`...
   = note: ...but it actually implements `FnOnce<(&str, Remit<'2, usize>)>`, for some specific lifetime `'2`
```
Repository: godot
Issue: Mesh between attached vertices on SoftBody 3D stretch at high speeds
Labels: bug,topic:physics,topic:3d

### Godot version

4.1.stable.mono

### System information

Godot v4.1.stable.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.2824) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)

### Issue description

A SoftBody3D node attached to the body bone on my CharacterBody3D stretches when moving at high speeds, like falling from a jump. It only seems to stretch on the faces between the pinned points and the rest of the physics enabled vertices.
![image](https://github.com/godotengine/godot/assets/139650253/4df95fbc-a0c9-4baa-9668-06a905419a52)

![image](https://github.com/godotengine/godot/assets/139650253/a953a86d-a26a-4993-9695-7dd986361391)

When falling from a jump you can see the verticies stretching
![image](https://github.com/godotengine/godot/assets/139650253/81618a62-c72a-4c6f-8fb3-bab80f0f7dbf)


It looks like this issue should have been fixed back in 2020, but it seems to persist in 4.1.

https://github.com/godotengine/godot/pull/36048

From the minimal reproduction project
still
![image](https://github.com/godotengine/godot/assets/139650253/4721534f-8f41-4f61-8c50-f50c5d536f30)
speed = 30
![image](https://github.com/godotengine/godot/assets/139650253/c1e0477f-0321-4ba9-96e2-a63b6fb0c3bb)

speed = 70
![image](https://github.com/godotengine/godot/assets/139650253/b8ae6380-8022-4b10-bad2-1eee8b3d8616)


### Steps to reproduce

Create a CharacterBody 3D with an animated skeleton and then attach a softbody3D to the body bone, create a plane mesh and subdivide height and width by 5. Attach the top 7 vertexes to a bone follow 3D. fall off a ledge and see the mesh stretch.

in minimal reproduction project you can change speed values in character body script and walk or run to observe stretching

Same process as the soft body tutorial
https://docs.godotengine.org/en/stable/tutorials/physics/soft_body.html

### Minimal reproduction project

[stretchingsoftbody.zip](https://github.com/godotengine/godot/files/12373735/stretchingsoftbody.zip)
Repository: go
Issue: reflect: add TypeAssert
Labels: Performance,Proposal,Proposal-Accepted

Consider the following benchmark:
```go
func Benchmark(b *testing.B) {
	v := reflect.ValueOf(new(time.Time)).Elem()
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		_ = v.Interface().(time.Time)
	}
}
```
This currently prints:
```
Benchmark-24    	37673833	        29.74 ns/op	      24 B/op	       1 allocs/op
```
Since the underlying `time.Time` is addressable, the `Interface` method must make a copy of it.

However, one primary reason to use the `Interface` method is to then assert it to a particular concrete type.

I propose the addition of:
```go
// AssertTo is semantically equivalent to:
//    v2, ok := v.Interface().(T)
func AssertTo[T any](v reflect.Value) (T, bool)
```
which avoids the allocation since the value is never boxed in an interface.

Usage would then look like:
```go
t, ok := reflect.AssertTo[time.Time](v)
```
and naturally matches type-assertion construct in the Go language itself.

---

Ideally, this would be a method on `Value`, but we don't have #49085.
If we did, the signature would be:
```go
func (Value) AssertTo[T any]() (T, bool)
```
and usage would be more natural as:
```go
t, ok := v.AssertTo[time.Time]()
```
Repository: flutter
Issue: ☂️ [Feature request] Engine repo mono tool
Labels: c: new feature,P2,c: tech-debt,team-engine,triaged-engine

The engine is a necessarily complicated product and can be difficult to work in for contributors that do not frequently live in the engine code. Personally I have to open a wiki page or two every time I want to jump in the engine code. 

This umbrella issue is to track all work related to building out the feature request for a mono tool designed for contributor and CI to use. 

**The tool should be:** 
1. Written in dart 
    - Maximize number of contributors that have high proficiency
    - Runs on every platform we support
1. Live in the engine repo `script/tool/bin/engine.dart
    - Allows for single repo change
    - Easier to keep up to date 
    - Code reviewable 
1. Can build all targets `dart run engine.dart build --all` 
    - At 6 platforms this can be annoying to figure out 
1. Can lint all targets `dart run engine.dart lint --all` 
1. Can run all unit/(integration?) tests 
    - Building is hard enough, understanding how to run all tests few humans know how to do
1. Used by CI in pre submit
    - Ensures build/lint/test continues to work because if they fail presubmit fails 
    - Gives contributors with domain expertise the ability to enforce or exempt code as it makes sense for their area of expertise 
1. The tool itself has unit tests 
    - This lets tool contributors and reviewers be more confident in changes
    - The tool unit tests are run as part of presubmit

This is not a new concept for the Dash Team. Flutter tool offers a public implementation of something similar and the packages repo has a contributor focused version of the same principals. This feature request is asking we apply the same idea to engine.
Repository: pytorch
Issue: max_pool1d, max_pool2d, max_pool3d Integers for cpu and cuda
Labels: triaged,actionable,module: pooling

### 🚀 The feature, motivation and pitch

max_pool1d Integers cuda and cpu, max_pool2d Integers cuda, max_pool3d Integers for cuda and cpu

currently max_pool2d integer is only supported for cpu https://github.com/pytorch/pytorch/pull/104225

### Alternatives

_No response_

### Additional context
probably i will work on it within the next couple of weeks.
Repository: go
Issue: gollvm: building fails due to missing header llvm/ADT/None.h
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?
Not applicable.

### Does this issue reproduce with the latest release?
Yes.

### What operating system and processor architecture are you using (`go env`)?
- Operating system: Ubuntu Linux (kernel 5.15.0.54)
- Architecture: ARM64
- Compiler: clang 14.0.0
- cmake v3.22.1
- ninja v1.10.1

### What did you do?
I followed the directions from this page on building gollvm: https://go.googlesource.com/gollvm
I was at the step to run this command: ninja gollvm 

### What did you expect to see?
I expected all the files to be compiled successfully.

### What did you see instead?
I saw this error message:
llvm-project/llvm/tools/gollvm/passes/GoNilChecks.cpp:28:10: fatal error: 'llvm/ADT/None.h' file not found
#include "llvm/ADT/None.h"
         ^~~~~~~~~~~~~~~~~
1 error generated.

Additional info:
None.h is located here on my system: /usr/include/llvm-14/llvm/ADT/None.h
Repository: rust
Issue: cfg(doc) is not respected on cross-crate re-export
Labels: T-rustdoc,C-bug,A-cross-crate-reexports

I tried this code:

```rust
// crate a
pub struct MyStruct;
#[cfg(doc)]
impl MyStruct {
    pub fn doc_only_method() {}
}

// crate b
#[doc(inline)]
pub use a::MyStruct;
```

I expected to see this happen: I expected `doc_only_method` to appear in crate `b`

Instead, this happened: It didn't.

### Meta

This issue can be reproduced in both the stable and nightly version of the compiler.
Repository: electron
Issue: [Bug]: Fullscreen windows turn black when hidden
Labels: platform/macOS,bug :beetle:,status/confirmed,component/BrowserWindow,has-repro-gist,25-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

25.5.0

### What operating system are you using?

macOS

### Operating System Version

macOS Ventura 13.2.1

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

I expect the windows are hidden when calling `BrowserWindow::hide()`

### Actual Behavior

The window turns black if it was fullscreen when the `hide()` API was invoked.

### Testcase Gist URL

https://gist.github.com/pushkin-/b2845af91f6d55a508be667e736dadc3

### Additional Information

1. click the Open Window button
2. fullscreen that window
3. after 5 seconds, we will try to hide the window, and it will turn black.

(continuation of [this closed issue](https://github.com/electron/electron/issues/20263))
Repository: pytorch
Issue: DISABLED test_memory_format_nn_ConvTranspose1d_cuda_complex32 (__main__.TestModuleCUDA)
Labels: module: nn,triaged,module: flaky-tests,skipped

Platforms: linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_memory_format_nn_ConvTranspose1d_cuda_complex32&suite=TestModuleCUDA) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/15994731946).

Over the past 3 hours, it has been determined flaky in 3 workflow(s) with 6 failures and 3 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_memory_format_nn_ConvTranspose1d_cuda_complex32`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.


Test file path: `test_modules.py`

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: excalidraw
Issue: Request: Allow users to disable shortcuts like double-click for text
Labels: enhancement

I'd love to be able to disable the double-click for text, specifically because it's a pain when I'm using a stylus pen and I keep triggering the text instead of resizing my object. Thanks!
Repository: PowerToys
Issue: Minimizing and Maximizing FancyZone Layout
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

I am using FancyZone to create different layouts for my dual monitor setup. I use one layout for the horizontal monitor and another customized layout for the vertical monitor. Sometimes, I need to minimize the windows within the layout and then open other windows based on the task at hand. However, this process takes more time since I have to minimize each window individually and then reopen them in the layout. Instead, is it possible to group a set of windows in the layout using Alt+Tab or by clicking on a particular app in the taskbar, similar to how it's done with the default Windows Snapping feature?

### Scenario when this would be used?

During minimizing group of windows in the layout and reopening them back all at once to the same layout using Alt+Tab.

### Supporting information

_No response_
Repository: angular
Issue: can add Keyed DI services to enhance multi providers
Labels: feature,area: core,core: di,feature: insufficient votes

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

_No response_

### Description

when we use provider with multi eques ture, but somtimes we need inject special provide in provider arrays,it less some obviously method to get it;
so can we refer netcore8
`
builder.Services.AddKeyedsingleton<IMemoryCache, BigCache>("big");
builder.Services.AddKeyedSingleton<IMemoryCache, SmallCache>("small");
`

### Proposed solution

like below
{
  provider,
  useValue,
  multi:ture,
  key:'you'
 }

di
@Inject(provider,'you')  key is optional

### Alternatives considered

none
Repository: three.js
Issue: [Line2] TypeError: Cannot convert undefined or null to object 
Labels: Enhancement

### Description

When I create Line2 and export it as toJSON I get an error.

And there are also posts that have experienced the same phenomenon as me.

the post : [stackoverflow](https://stackoverflow.com/questions/75891288/threejs-line2-fails-tojson-serialization)


```
Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at extractFromCache (three.module.js:8398:5)
    at Mesh.toJSON (three.module.js:8365:23)
    at JSON.stringify (<anonymous>)
    at eval (OpenButton.tsx:64:34)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (OpenButton.tsx:17:28)
    at _next (OpenButton.tsx:35:17)
    at eval (OpenButton.tsx:40:13)
    at new Promise (<anonymous>)
    at eval (OpenButton.tsx:32:16)
```
### Reproduction steps

1. Create a Line2 mesh.
2. run toJSON
3. get Error


### Code

```js
             <Line
                ref={lineRef}
                points={[startPoint, endPoint]} 
                color={color}
                transparent={true}
                opacity={opacity}
                lineWidth={thickness}
                segments
                dashed={false}
            />
```


### Live example

* [stackoverflow](https://stackoverflow.com/questions/75891288/threejs-line2-fails-tojson-serialization)


### Screenshots

_No response_

### Version

r155

### Device

_No response_

### Browser

_No response_

### OS

_No response_
Repository: storybook
Issue: [Bug]: Load component  named with 'switch' is failed
Labels: bug,needs triage

### Describe the bug

I have create react component with this structure
switch
    -- index.less
    -- index.tsx
    -- index.stories.tsx

It's seem that storybook can't load this component, and error log is "Loading chunk components-switch-index-stories failed."

If I change the folder name as switchB, it load success
switchB
    -- index.less
    -- index.tsx
    -- index.stories.tsx


### To Reproduce

_No response_

### System

```shell
Environment Info:

  System:
    OS: macOS 11.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
  Browsers:
    Edge: 113.0.1774.35
    Safari: 14.1
  npmPackages:
    @storybook/addon-essentials: ^7.3.1 => 7.3.1 
    @storybook/addon-interactions: ^7.3.1 => 7.3.1 
    @storybook/addon-links: ^7.3.1 => 7.3.1 
    @storybook/addon-onboarding: ^1.0.8 => 1.0.8 
    @storybook/addon-styling: ^1.3.6 => 1.3.6 
    @storybook/blocks: ^7.3.1 => 7.3.1 
    @storybook/react: ^7.3.1 => 7.3.1 
    @storybook/react-webpack5: ^7.3.1 => 7.3.1 
    @storybook/testing-library: ^0.2.0 => 0.2.0
```


### Additional context

_No response_