sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Add SliverPrototypeExtentGridView
Labels: c: new feature,framework,f: scrolling,would be a good package,c: proposal,P3,team-framework,triaged-framework


## Use case

Let's suppose you have a `Card` Widget in your app that displays information about a product. Its price, name, picture, and much more. If you want to display this widget in a GridView you have to manually calculate the dimensions of the `Card` (it most cases minimum Height and width) and create an SliverGridDelegate based on the dimensions.

With a `SliverPrototypeExtentGridView` (similar to [SliverPrototypeExtentList](https://api.flutter.dev/flutter/widgets/SliverPrototypeExtentList-class.html) you would be able to use a prototype item and the SliverGridDelegate is calculated for you.

## Proposal

Add a `SliverPrototypeExtentGridView` that has a similar API to [SliverPrototypeExtentList](https://api.flutter.dev/flutter/widgets/SliverPrototypeExtentList-class.html). The `SliverPrototypeExtentGridView` would obtain the size of the GridItems based on the prototype.


Sorry if there's already another solution / widget. I was unable to find one.
Repository: rust
Issue: Feature : rustc args check on mir-dump
Labels: C-enhancement,T-compiler

In rustc args,`-Zdump-mir-dataflow` (`dump-mir-dataflow`, `dump-mir-spanview` ...) only works if `-Zdump-mir` is provided.
If we provide `dump-mir-graphviz` without `dump-mir`, nothing happens. 
rustc doesn't warn or emit an error.
So I suggest rustc should make an early args check about it.
Repository: flutter
Issue: [iOS]TextField can't delete or insert charactor in the middle of pinyin 
Labels: a: text input,platform-ios,framework,f: material design,a: internationalization,a: typography,has reproducible steps,P2,found in release: 2.4,team-design,triaged-design

**Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (2 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4**

**iphone 11    ios14.5**

```
import 'package:flutter/material.dart';

void main() {
  runApp(FlutterView());
}

class FlutterView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter View',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  void initState() {
    super.initState();
  }

  final TextEditingController _textEditingController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: TextField(
          controller: _textEditingController,
        ),
      ),
    );
  }
}
```


https://user-images.githubusercontent.com/7564843/125759418-07e38eb6-4ba8-419e-b3b9-dfd3dc0e0847.MP4
Repository: TypeScript
Issue: Auto importing should choose the nearest one where same symbol name is exported from multiple files
Labels: Suggestion,Awaiting More Feedback

Auto importing should choose the nearest one where same symbol name is exported from multiple files

## 🔍 Search Terms
auto import
same symbol name

## ✅ Viability Checklist
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## 💻 Use Cases
When .vscode/settings.json  "typescript.preferences.importModuleSpecifier": "shortest",
The following auto importing behavior is very strange:
```
// src/app1/config.ts
export const LogLevel=1

// src/app1/main.ts
import {LogLevel} from "src/app2/config"
console.log(LogLevel)

// src/app2/config.ts
export const LogLevel=2

// src/app2/main.ts
import {LogLevel} from "src/app1/config"
console.log(LogLevel)
```
I think it should auto imports the nearest one, but it auto imports the other one.

When .vscode/settings.json "typescript.preferences.importModuleSpecifier": "relative",
The auto importing behavior is OK:
```
// src/app1/config.ts
export const LogLevel=1

// src/app1/main.ts
import {LogLevel} from "./config"
console.log(LogLevel)

// src/app2/config.ts
export const LogLevel=2

// src/app2/main.ts
import {LogLevel} from "./config"
console.log(LogLevel)
```
Repository: TypeScript
Issue: Allow `infer function return type` refactor when return type are not imported
Labels: Suggestion,Awaiting More Feedback

# Suggestion

## 🔍 Search Terms

"infer function return type"

refactor

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Infer function treturn type require all types used in return type are imported. 
It takes a while to find which field is using a not imported type when returning many values as a object.

I want this refactor allowed by:

a. Auto import missing types
b. Show a message that tell user what is missing
c. Replace not imported type with `unknown` .

## 📃 Motivating Example

`infer function return type` refactor works when there is missing imports

## 💻 Use Cases

I'm extracting vue code to use composition api,  with eslint rule `@typescript-eslint/explicit-module-boundary-types` enabled.
so i want use this refactor.

But `infer function return type` is not avaiable because some type not imported.

![image](https://user-images.githubusercontent.com/21083014/125759155-9e073c90-e4b1-4c3c-9283-f1215b95fa20.png)

And i can not view all types because there is too many.

![image](https://user-images.githubusercontent.com/21083014/125759033-9c1cd6e3-d22f-4387-aca7-cf5554fc809a.png)
Repository: youtube-dl
Issue: [request] Change project name to yt-dl
Labels: request

Please, change project name to yt-dl.
Thanks
Repository: pytorch
Issue: [pytorch android] use Vulkan backend crash
Labels: module: android,oncall: mobile,module: vulkan

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

1. build Android aar library from source
2. export jit model: 
`script_model = torch.jit.script(model)`
`script_model_vulkan = optimize_for_mobile(script_model, backend='Vulkan')`
`torch.jit.save(script_model_vulkan, "model-vulkan.pt")`
3. load model-vukan.pt on Android mobile devices:
`model = Module.load( "model-vulkan.pt", null, Device.VULKAN);`

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
expect inference success

<!-- A clear and concise description of what you expected to happen. -->
but app crash when load model.

> 07-15 17:43:37.885  3366  3366 E InputEventReceiver: Exception dispatching input event.
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception com.facebook.jni.CppException: supported devices include CPU and CUDA, however got VULKAN
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570] Exception raised from readInstruction at ../torch/csrc/jit/serialization/unpickler.cpp:451 (most recent call first):
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570] (no backtrace available)
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570] (Throwable with no stack trace)
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570] 
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570]     in call to CallVoidMethodV
07-15 17:43:37.885  3366  3366 F .asr.transduce: java_vm_ext.cc:570]     from void android.os.MessageQueue.nativePollOnce(long, int)

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.9):
 - OS (e.g., Linux):
 - How you installed PyTorch ( source):
 - Build command you used (if compiling from source): USE_VULKAN=1 sh ./scripts/build_pytorch_android.sh
 - Python version:
 - CUDA/cuDNN version:
 - GPU models and configuration:
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->
Repository: vscode
Issue: Enable ESLint Rule to Detect Unawaited Promises
Labels: editor-core,engineering

It happened several times by now that we forgot to await a promise.

This usually causes hard to debug bugs.

I suggest to setup an ESLint rule that ensures that there are no floating promises.

FYI @jrieken
Repository: rust
Issue: Tracking Issue for `Iterator::map_windows` (feature `iter_map_windows`)
Labels: T-libs-api,C-tracking-issue

<!--
Thank you for creating a tracking issue!

Tracking issues are for tracking a feature from implementation to stabilization.

Make sure to include the relevant RFC for the feature if it has one.

If the new feature is small, it may be fine to skip the RFC process. In that
case, you can use use `issue = "none"` in your initial implementation PR. The
reviewer will ask you to open a tracking issue if they agree your feature can be
added without an RFC.
-->

Feature gate: `#![feature(iter_map_windows)]`

This is a tracking issue for `Iterator::map_windows`:

> Calls the given function `f` for each contiguous window of size `N` over `self` and returns an iterator over the outputs of `f`.
>
> In the following example, the closure is called three times with the arguments `&['a', 'b']`, `&['b', 'c']` and `&['c', 'd']` respectively.
>
> ```
> #![feature(iter_map_windows)]
>
> let strings = "abcd".chars()
>     .map_windows(|[x, y]| format!("{}+{}", x, y))
>     .collect::<Vec<String>>();
>
> assert_eq!(strings, vec!["a+b", "b+c", "c+d"]);
> ```

### Public API

```rust
impl Iterator {
    fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
    where
        Self: Sized,
        F: FnMut(&[Self::Item; N]) -> R;
}

struct MapWindows<I: Iterator, F, const N: usize> { ... }

impl<I, F, R, const N: usize> Iterator for MapWindows<I, F, N>
where
    I: Iterator,
    F: FnMut(&[I::Item; N]) -> R;

impl<I: Iterator + fmt::Debug, F, const N: usize> fmt::Debug for MapWindows<I, F, N>;
```

### Steps / History

- [ ] ~~Implementation: #82413~~
- [x] Implementation: #94667
- [x] Optimize with buffer of size `2 * N`
- [ ] Any other iterator-related traits?
    - [ ] `DoubleEndedIterator`
    - [ ] `FusedIterator`
    - [ ] `TrustedLen`
- [ ] Compile fail on N=0, rather than panic. Blocked on a solution for compile errors in callers that are generic over `N` and would want a fallback for N=0.
- [ ] Final comment period (FCP)
- [ ] Stabilization PR

<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.

If this feature didn't go through the RFC process, a final comment period
(FCP) is always needed before stabilization. This works as follows:

A library API team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilzation PR can be opened by anyone.
-->

### Unresolved Questions

- `&[I::Item; N]` vs `ArrayView<'_, I::Item, N>` https://github.com/rust-lang/rust/issues/87155#issuecomment-1447603360
Repository: animate.css
Issue: Make sure importing source files is possible
Labels: feature request,improvement,good first issue,v5

We should make sure that it's possible to import individual source files directly from the node_modules so developers won't need to resort to custom builds which are very annoying to maintain and not very practical these days.

I think we should check/add support for at least:
- [ ] Webpack
- [ ] Rollup
- [ ] Parcel

Have a look at #1307 for more context.
Repository: vscode
Issue: DAP ContinuedEvent with allThreadsContinued=true causes selected debug session to change
Labels: debug,under-discussion

When sending a `ContinuedEvent` with `allThreadsContinued=true`, the selected debug session resets to the first one. This does not happen without `allThreadsContinued=true`.

![Jul-15-2021 12-44-08](https://user-images.githubusercontent.com/1078012/125782700-bf579204-9119-44c7-a8b0-a5a19f66c884.gif)


To repro:

- Clone MockDebug
- Add `response.body.supportsRestartRequest = true;` in `initializeRequest`
- Implement a `restartRequest` that sends a `ContinuedEvent` with `allThreadsContinued=true`:
    ```ts
    protected async restartRequest(response: DebugProtocol.RestartResponse, args: DebugProtocol.RestartArguments) {
    	this.sendResponse(response);
    	this.sendEvent(new ContinuedEvent(0, true));
    }
    ```
- Run the project
- Create a second launch config:
    ```js
    "configurations": [
    	{
    		"type": "mock",
    		"request": "launch",
    		"name": "Debug readme.md 1",
    		"program": "${workspaceFolder}/readme.md",
    		"stopOnEntry": true,
    		"trace": false
    	},
    	{
    		"type": "mock",
    		"request": "launch",
    		"name": "Debug readme.md 2",
    		"program": "${workspaceFolder}/readme.md",
    		"stopOnEntry": true,
    		"trace": false
    	}
    ]
    ```
- Start both launch configurations (this can be done one at a time)
- Select the second debug session in the debug toolbar
- Click the Restart button
- Note that the dropdown has reverted to the first session
Repository: opencv
Issue: [RFE] OpenEXR 3.x compatibility
Labels: feature,category: imgcodecs,category: 3rdparty,Hackathon

##### System information (version)
- OpenCV => 4.5.2
- Operating System / Platform => Fedora Linux
- Compiler => gcc

##### Detailed description

I am working on updating OpenEXR to 3.x on Fedora. Many of the projects do support it, but have a dependency on OpenCV which does not, thus preventing the whole stack from being able to be updated.

OpenEXR 3 has been released (3.0.5 as of this writing). Upstream has performed some extensive reorganization of the libraries.

IlmBase is no more and was pulled in the main library while Imath and Half were split out into a separate Imath library, and the IlmImf library was renamed to OpenEXR.

See the porting guide for more details:

https://github.com/AcademySoftwareFoundation/Imath/blob/master/docs/PortingGuide2-3.md

##### Issue submission checklist

 - [x] I report the issue, it's not a question
 - [x] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
 - [x] I updated to latest OpenCV version and the issue is still there
 - [N/A ] There is reproducer code and related data files: videos, images, onnx, etc
Repository: node
Issue: Punycode decoding is not working in rare cases
Labels: dns

### Version

16.5.0

### Platform

various linux distros tried

### Subsystem

_No response_

### What steps will reproduce the bug?

On some IDNs a correct punycoded domain will break `url.domainToUnicode()` and thus other parts within nodejs like `dns.lookup()` and such.

The domain in question is `xn--mgba6a0dd.com` which on its own as such works, however if there are subdomains with a combination of `.` +`_` the API returns an empty string, which should not be the case from my knowledge as well as https://www.punycoder.com/ deals with all of them correctly. 

To reproduce via the node repl:

```
> require('url').domainToUnicode('foo._bar.xn--mgba6a0dd.com')
''
> require('url').domainToUnicode('foo.bar.xn--mgba6a0dd.com')
'foo.bar.قازاق.com'
> require('url').domainToUnicode('foo_bar.xn--mgba6a0dd.com')
'foo_bar.قازاق.com'
```

### How often does it reproduce? Is there a required condition?

_No response_

### What is the expected behavior?

_No response_

### What do you see instead?

_No response_

### Additional information

_No response_
Repository: excalidraw
Issue: Persist fileHandle for all image files
Labels: enhancement,discussion

Not just those  with `embedScene` enabled. If disabled, saving back would simply re-export latest image.

### concerns

@alsuren pointed out that this may be dangerous in this scenario:

- work on a scene, then export it as json
- then export it as image separately
- the image export now overrides the json fileHandle
- next save (via `cmd+s` or otherwise) would only update the image without updating the json which you may not notice and you'll lose the edits source code 

One workaround is to persist both file handles and save to both on `cmd+s`.
Repository: tensorflow
Issue: Out of memory when using MultiWorkerMirroredStrategy
Labels: stat:awaiting tensorflower,type:bug,comp:dist-strat,TF 2.5

**System information**
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): REHEL 7.9
- TensorFlow installed from (source or binary): source
- TensorFlow version (use command below): 2.4.1
- Python version: 3.7.4
- Bazel version (if compiling from source): 3.7.1
- GCC/Compiler version (if compiling from source): 8.3.0
- CUDA/cuDNN version: 10.2
- GPU model and memory: GTX 1080Ti

**Describe the current behavior**

When running a trivial example TF starts allocation gigabytes of memory continously until it runs out of memory.
This does only happen when running on more than 2 nodes, not when running on only 1 or 2 nodes and it happens in the creation of MultiWorkerMirroredStrategy
I can also start e.g. 6 tasks on 2 nodes (3 tasks each) without problems, but 3 tasks on 3 nodes (1 task each) does not work

I also observed that it happens only one 1 of the ranks used, the other workers are fine and waiting for that one to finish init (I suppose)

**Describe the expected behavior**

It works or a reasonable error.

**Standalone code to reproduce the issue**

```

import tensorflow as tf
from mpi_cluster_resolver import MPIClusterResolver

resolver = MPIClusterResolver()
strategy = tf.distribute.MultiWorkerMirroredStrategy(cluster_resolver=resolver)
```

With 
[mpi_cluster_resolver.py.txt](https://github.com/tensorflow/tensorflow/files/6823734/mpi_cluster_resolver.py.txt)

This is so that running distributed TF is possible via SLURM/MPI on HPC clusters
Repository: node
Issue: DNS encoding should follow RFC4343 or utf8
Labels: dns

### Version

v16.4.0

### Platform

`Darwin ~.local 20.5.0 Darwin Kernel Version 20.5.0: root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64`

### Subsystem

dns

### What steps will reproduce the bug?

```javascript
dns.resolveTxt('_dnslink.t17.dnslink.dev', (err, data) => console.log({ err, data }))
```



### How often does it reproduce? Is there a required condition?

Always.

### What is the expected behavior?

Output according to [RFC4343#section-2.1](https://datatracker.ietf.org/doc/html/rfc4343#section-2.1) with `\` encoding, similar to `dig +short TXT _dnslink.t17.dnslink.dev`:
```js
{
  err: null,
  data: [
    //...
    [ 'dnslink=/dnslink/b\195\188cher' ],
    [ 'dnslink=/dnslink/cool.foo..foo/bar' ],
    [ 'dnslink=/dnslink/domain.com\194\169' ],
    [ 'dnslink=/dnslink/domain.com\239\191\189' ],
    //...
    [ 'dnslink=/dnslink/\208\191\209\128\208\181\208\183\208\184\208\180\208\181\208\189\209\130.\209\128\209\132' ],
    [ 'dnslink=/dnslink/\230\151\165\230\156\172\232\170\158.jp' ],
    [ 'dnslink=/dnslink/\239\191\189'],
    //...
  ]
}
```

_it would be also okay to get the entries at utf-8 encoded or binary data._

### What do you see instead?

```js
{
  err: null,
  data: [
    //...
    [ 'dnslink=/dnslink/bÃ¼cher' ],
    [ 'dnslink=/dnslink/cool.foo..foo/bar' ],
    [ 'dnslink=/dnslink/domain.comÂ©' ],
    [ 'dnslink=/dnslink/domain.comï¿½' ],
    //...
    [ 'dnslink=/dnslink/Ð¿Ñ\x80ÐµÐ·Ð¸Ð´ÐµÐ½Ñ\x82.Ñ\x80Ñ\x84' ],
    [ 'dnslink=/dnslink/æ\x97¥æ\x9C¬èª\x9E.jp' ],
    [ 'dnslink=/dnslink/ï¿½'],
    //...
  ]
}
```

### Additional information

I am aware it affects `resolveTxt`, but it likely also affects other parts of the dns system.
Repository: terminal
Issue: Minimized quake mode restores to the monitor with the tray
Labels: Issue-Bug,Product-Terminal,Priority-2,Area-Remoting

### Windows Terminal version (or Windows build number)

Microsoft Windows 10 Pro for Workstations 10.0.19042.1110 (2009, 20H2) WindowsTerminal: 1.10.1933.0

### Other Software

_No response_

### Steps to reproduce

Open the quake mode terminal on a monitor not containing the tray.  Minimize the quake mode terminal (Alt+Space, n ... it goes to the tray).  Restore the quake mode terminal. 

### Expected Behavior

It restores to the monitor from which it came.

### Actual Behavior

It restores to the monitor containing the tray.
Repository: excalidraw
Issue: don't mirror undo/redo buttons in RTL?
Labels: RTL

Any RTL reader who can help? I think current way of mirroring undo/redo buttons is probably wrong.

LTR:

![image](https://user-images.githubusercontent.com/5153846/125827471-ed73df2a-5424-4145-9847-32d2bdba4cba.png)

RTL:

![image](https://user-images.githubusercontent.com/5153846/125827406-48f118f9-0c8e-4814-a4c4-f4787eff1f34.png)
Repository: godot
Issue: Sounds are playing with big delay on ASUS VivoBook 14
Labels: bug,platform:windows,needs testing,topic:audio

### Godot version

3.3 stable

### System information

Windows 10, intel core i5, 8GB RAM

### Issue description

I used Godot for a year and everything was ok. But few days ago I moved to a new laptop(better than previous) and now sounds in all Godot games(debug mode and .exe files) are playing with delay like 300ms.

### Steps to reproduce

Just use AudioStreamPlayer or AudioStreamPlayer2D

### Minimal reproduction project

It happens in every project