sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Sliver garbage collect does not work in Sizedbox
Labels: framework,f: scrolling,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

```dart
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'List playground',
      home: TestPage(),
    );
  }
}

class TestPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _TestPageState();
}

class _TestPageState extends State<TestPage> {
  List<String> items = ['1', '2', '3', '4', '5'];
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: SizedBox(
          width: 44.4,
          height: 30.0,
          child: Directionality(
            textDirection: TextDirection.ltr,
            child: CustomScrollView(
              slivers: <Widget>[
                SliverFixedExtentList(
                  itemExtent: 22.2,
                  delegate: SliverChildBuilderDelegate(
                      (BuildContext context, int index) {
                      return TextWidget(
                        items[index],
                      );
                    },
                    childCount : items.length,
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
class TextWidget extends StatefulWidget {
  const TextWidget(this.data);
  final String data;


  @override
  TextWidgetState createState() => TextWidgetState();
}

class TextWidgetState extends State<TextWidget>{

  @override
  void dispose() {
    print('disposed ${widget.data}');
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Text(widget.data);
  }
}
```
When scrolling the sliver in the middle, It should disposes the elements that are not in view. Actual, it doesn't dispose them.

It turns out in RenderSliverFixedExtentBoxAdaptor.constraints.scrollOffset is always zero no matter how far you drag the scroll view, so it does not do the garbage collection to remove the widget that are not in view.
Repository: flutter
Issue: Implement alternatives to long press on desktop
Labels: framework,f: material design,c: proposal,a: desktop,P3,team-framework,triaged-framework

For `ListTile`, and `ReorderableListView`, there are handlers that support long press on mobile platforms.  These don't work well on desktop, and so they need to instead support other affordances.

These affordances will need to be designed and implemented to fit with the Material Design spec.
Repository: go
Issue: cmd/go: report an error for cmd (and std?) modules outside $GOROOT
Labels: NeedsInvestigation,modules

Trying to work on the src code of `go doc` but every time I try to compile a `./doc` binary it uses other src code, it doesn't look in the current directory am in, I have to force it `go build main.go`
```
gert@gert ~/Desktop/go/src/cmd/doc:master> go build

gert@gert ~/Desktop/go/src/cmd/doc:master> ls
dirs.go         doc             doc_test.go     main.go         pkg.go          testdata
```
I can see a doc binary getting created but its not build form the `main.go` in current directory, I deliberately put a syntax error in main?
```
gert@gert ~/Desktop/go/src/cmd/doc:master> go build main.go 
# command-line-arguments
./main.go:78:2: syntax error: unexpected --, expecting }
```
details:
```
go version devel +f938b9b33b Wed Jun 26 20:26:48 2019 +0000 darwin/amd64

GOARCH="amd64"
GOBIN="/Users/gert/bin"
GOCACHE="/Users/gert/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gert/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/gert/Desktop/go/src/cmd/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/go-build645754300=/tmp/go-build -gno-record-gcc-switches -fno-common"
```

Workaround for me was match `GOROOT` with the repo as in, `git clone` everything in `/usr/local/go` and bootstrap using a `/usr/local/go1` then I could work on `go doc` src code. 

maybe related to #32724
Repository: TypeScript
Issue: The dom.iterable lib contains many interfaces that should also be in webworker
Labels: Bug,Rescheduled

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

Many of the interfaces defined in [dom.iterable](https://github.com/microsoft/TypeScript/blob/d4765523f086cfed152b094c3b5db2b246c13233/src/lib/dom.iterable.d.ts) should also be available to web workers. These include:

- `Headers`
- `FormData`
- `URLSearchParams`

And since the `dom.iterable` library does not play well with the `webworker` library, I have to define these interfaces in my own, separate, library (instead of just including built-in libraries).

The `webworker` library should either _also_ have an "iterable" variant, or these interfaces should be abstracted to a higher level.

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.5.3, master

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
dom iterable worker

**Code**

```ts
// index.ts
const h = new Headers();

console.log([...h.entries()]);
```

```sh
const h = new Headers();

console.log([...h.entries()]);
tsc --target esnext --lib esnext,webworker index.ts
```

**Expected behavior:**

This should compile fine (as it does when using `--lib esnext,dom,dom.iterable`).

**Actual behavior:**

```txt
index.ts:3:19 - error TS2339: Property 'entries' does not exist on type 'Headers'.

3 console.log([...h.entries()]);
                    ~~~~~~~

Found 1 error.
```

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

Can't show this in the playground as I can't specify `--lib` options.

**Related Issues:** <!-- Did you find other bugs that looked similar? -->

Somewhat related to: https://github.com/microsoft/TypeScript/issues/20595
Repository: vscode
Issue: If pasting over text containing TextEditorDecorations, they are retained
Labels: feature-request,semantic-tokens

Version: 1.36.1 (user setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

If pasting over text with TextEditorDecorations applied, they are applied to the new text.

![image](https://user-images.githubusercontent.com/49173979/61338758-d1c6cd80-a7ef-11e9-9c38-511fadacb9d9.png)

Expected: Text replaced by pasting should have decorators cleared/truncated.
Repository: pytorch
Issue: Support serializing IValue to bytes (and deserialize from bytes)
Labels: oncall: jit,triaged

## 🚀 Feature
Right now, torch.save only supports saving to file. But not serialize to bytes.

Similarly, it would be great to be able to deserialize the bytes too. This should work bidirectionally between Python and CPP.


## Motivation
We want to serialize IValue to bytes to send over network. The interface right now only supports serializing to a file and then loading the bytes from the file.
Repository: pytorch
Issue: performance much worse on 2080ti than 1080ti
Labels: module: performance,module: cuda,triaged

## 🐛 Bug

I have a model that I have historically trained on 1080ti, and recently I discovered that the training speed is much worse (almost 2x slower) on 2080ti. The rest of the setup (nvidia driver  + cpu + networking) is the same between the two.

I profiled my script using `nvprof python my_script.py`, and discovered that on the 2080ti, way too much time (~70%) is spent in this function:
```void cudnn::detail::convolveNd_wgrad_engine<float, int=3, int=512, int=6, int=5, int=3, int=3, int=3, bool=1>(int, int, int, float const *, int, cudnn::detail::convolveNd_wgrad_engine<float, int=3, int=512, int=6, int=5, int=3, int=3, int=3, bool=1>*, float const , kernel_gradNd_params, int, float, int)```

Any ideas what the problem could be?
I have attached the two profiles in case they are helpful.
[1080ti.log](https://github.com/pytorch/pytorch/files/3400744/1080ti.log)
[2080ti.log](https://github.com/pytorch/pytorch/files/3400745/2080ti.log)

 - PyTorch Version (e.g., 1.0): 1.1.0
 - OS (e.g., Linux): Ubuntu 16.04
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source):
 - Python version: 3.6
 - CUDA/cuDNN version: 10.0 / 7.4
 - GPU models and configuration: 1080ti + 2080ti, nvidia driver 410.78
 - Any other relevant information:
Repository: flutter
Issue: [Google Map] InfoWindow can support a style on title and snippet? 
Labels: c: new feature,d: api docs,customer: crowd,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

google_maps_flutter: 0.5.19+2

1) Can i set the styling of the title or snippet of the InfoWindow? 
eg, Font color, Font size. 

2) can the title supports multi-line? Currently, it supports one line.
3) Will it support custom info window? For native, we can draw a bitmap for info window.
Repository: flutter
Issue: Flutter Driver: Needs to use WidgetsBinding.instance.isRootWidgetAttached because otherwise I need to use Future.Delayed before root widget is attached
Labels: c: new feature,tool,t: flutter driver,P3,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

Sometimes flutter driver tries to attach itself to root widget before it's created. Would be nice to be able to use WidgetsBinding.instance.isRootWidgetAttached because otherwise I need to use Future.Delayed, which is suboptimal

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Sometimes flutter driver tries to attach itself to root widget before it's created. Would be nice to be able to use WidgetsBinding.instance.isRootWidgetAttached because otherwise I need to use Future.Delayed, which is suboptimal
Repository: go
Issue: cmd/internal/browser: Open() shouldn’t rely on Commands()
Labels: NeedsInvestigation

`Commands()` is used as the only backend for `Open()`, but there’s OS-specific ways to open things in a browser instead. Sadly on Linux, it is complex:

1. Consult `$BROWSER` for a “:”-delimited list of executables.
2. If it’s unset or none of the executables can be found:
    1. `xdg-settings get default-web-browser` will return the .desktop file name, e.g. `firefox.desktop`
    2. Find that file in one of `${XDG_DATA_HOME-$HOME/.local/share}:${XDG_DATA_DIRS-/usr/local/share/:/usr/share/}` (subdirectory `applications`)
    3. Parse the `Exec` line in that file and replace [`%s`, `%u` and whatever](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html) with the file name/url/… to get a command line
5. Execute the command line you built from $BROWSER or the .desktop file
6. If all the above failed, fall back to `xdg-open`

As said, this is harder than it should be, but it’s the only way to do it correctly AFAIK. `xdg-open` does all this, but there’s no way to tell it “open the path/URL I give you with a *browser*”. If you e.g. want to open a SVG with a browser, you need to go the above route.
Repository: vue
Issue: Consistency in `$refs`: all children of $refs array using same format.
Labels: discussion

### What problem does this feature solve?
I know this is intended as a feature, but I encountered a lot of issues when trying to access $refs due to all the different formats:

- If `ref` is inside a `v-for`, the `$refs` element will be an array. This wouldn't be necessary since is trivial to add an unique name to the `ref` inside a loop, [as seen in this example](https://forum.vuejs.org/t/this-refs-theid-returns-an-array/31995/4)
- If `ref` is outside of a `v-for`, it will be a DOM Node.
- Except that when the referenced item is a custom component, then it will be an object and to access the DOM node you would have to read the `$el` property...

So basically, if we wanted to select a ref's node, and we wouldn't know if it's a node or a custom component, if it's in a for-loop or not, this would be the code:

```
const ref = (this.$refs.test && this.$refs.test[0] && this.$refs.test[0].$el) ? this.$refs.test[0].$el
    : (this.$refs.test && this.$refs.test.$el) ? this.$refs.test.$el
    : (this.$refs.test && this.$refs.test[0]) ? this.$refs.test[0]
    : this.$refs.test ? this.$refs.test
    : null;`
```

So far I've never encountered this case, but I did encounter:

- The case where the ref could be either a node or a custom component — I wanted to add a class and remove it with a timeout, for animation purposes. At the end, my workaround was to create a custom component to handle the "empty state" of a component, to consistently be able to reference the node using `.$el` (this was easier than refactoring all the parts where `.$el` was being referenced)-
- The case where the ref could either be a node or an array of nodes, in a case of a list that had a default value (the default value was outside of the "for loop").


My proposal is to have a consistent way of referencing a node/component inside templates.

An idea I found in [another issue of this repo](https://github.com/vuejs/vue/issues/2044) is to use a special syntax when the ref is expected to be an array:

```
<div ref:multiple="example"></div>
```

Another part of the proposed change is to be able to access the DOM Node using `$el` (__always__ and exclusively that way). 

Since this is a breaking change, it would be interesting to hear workarounds for this. For example, using a different keyword altogether.

In general, I think this would add a lot of sanity and consistency to the usage of `$refs`, and I think it's a common issue for a lot of beginners.

Note: this feature request is not compatible with [this other feature request](https://github.com/vuejs/vue/issues/4035)

### What does the proposed API look like?
``` vue-html
<!-- Refs inside loops: -->
<div v-for="...">
    <div ref:multiple="example"></div>
    (or ref:nested="example")
</div>
```

``` js
// Refs array
[
    0: { $el: <div></div> }, // simple node item
    1: { $el: <div></div>, methods, data, etc..... }, // ref in custom component
    ...
}
```

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: terminal
Issue: Plugin: add support for [XYZ]MODEM file transfers
Labels: Issue-Feature,Help Wanted,Area-Extensibility,Product-Terminal

 refer to the title
Repository: svelte
Issue: Allow binding validity on input, select and textarea elements
Labels: feature request,temp-stale

I would like to add a read-only binding for `validity` property ([ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)) on form elements.

For Example
```html
<script>
  let email;
  let emailValidity = {};
</script>

<input type="email" required bind:value={email} bind:validity={emailValidity}>

Email is valid: {emailValidity.valid}
```

I already implemented the [changes on my fork](https://github.com/sveltejs/svelte/compare/master...bbuhler:input-validity-binding?expand=1). I wanted to create a PR but there it mentions if my PR implements a new feature I should raise an issue to discuss it before. So I here it is.
Repository: terminal
Issue: Make sure MinMaxCloseControl supports FullScreen & Tablet Mode
Labels: Help Wanted,Issue-Bug,Area-UserInterface,Product-Terminal,Priority-3

Some thoughts about the Min/Max/Close buttons, and supporting FullScreen or Tablet Mode

Some properties to consider for this TitlebarControl.  This could be also be useful for the Settings UI, if it is presented in a window.
* CanMaximise
* CanMinimise
* CanRestore

Which would hide those buttons if you wanted to make a settings screen which only shows a close button.  Also consider how these TitleBar Controls will handle FullScreen/Tablet Mode

![image](https://user-images.githubusercontent.com/7389110/61311126-a2af5c80-a7ed-11e9-80cd-eab0a88b3a4b.png)
_Full Screen_

![Screenshot (17)](https://user-images.githubusercontent.com/7389110/61311203-ca9ec000-a7ed-11e9-8eea-fd6c32603de2.png)
_Tablet Mode_

_Originally posted by @mdtauk in https://github.com/microsoft/terminal/pull/1948#issuecomment-512048300_
Repository: electron
Issue: Windows: disable smooth scrolling for ALL electron apps 
Labels: enhancement :sparkles:

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
Smooth scrolling can be disabled on a per application basis using the command line switch, but users who want to disable it inside one electron app want to disable it in ALL electron apps.

### Proposed Solution
Solution a)
Add a Windows registry entry that can be written by user friendly 3rd party applications that disable smooth scrolling in all electron apps (system-wide or for current user).

Electron apps read the registry and if the key is set, they act the same as if the "--disable-smooth-scrolling" command line switch was enabled.

Solution b)
Use a settings file inside Local/Roaming AppData folders (e.g. electron/user.json).
(this might prove to be useful for other system wide electron settings later).


I don't know what the registry equivalent is on Macs but PC definitely needs this. Using the file solution might prove to be cross-platform.

### Alternatives Considered
I know about the command line switches but it'd require a 3rd party application to:
- find all electron apps and modify existing icons so all use the command line switch
- icons change with each version of the application (because of popular app-x.x.x. folder structure), so it'd need to check for those changes too
- with the rise of electron apps it is becoming an O(n) problem that has a simple O(1) solution

### Additional Information
Repository: godot
Issue: Unable to revert ParticlesMaterial's Orbit Velocity properties
Labels: bug,topic:editor,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
v3.1.1.stable.mono.official
v3.2.dev.mono.custom_build.d087a9e32


**OS/device including version:**
Windows 10


**Issue description:**
When using the Inspector to customise a ParticlesMaterial I am unable to revert the properties under the Orbit Velocity group:
![image](https://user-images.githubusercontent.com/1151394/61374880-15910400-a8d0-11e9-8545-b2a4ec408ee1.png)
Repository: opencv
Issue: Compile error building 4.1.0 with x86_64-w64-mingw32-gcc under cygwin
Labels: priority: low,category: build/install,platform: win32,category: 3rdparty

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => 4.1.0
- Operating System / Platform => Windows 64 / Cygwin
- Compiler =>  x86_64-w64-mingw32-gcc (GCC) 7.4.0

##### Detailed description

Clean install of cygwin (packages below)
Fresh download of opencv
Trying to build opencv using  `w64-ming32-gcc` gives the following error
```
opencv-4.1.0/3rdparty/openexr/IlmThread/IlmThreadMutexPosix.cpp: In constructor ‘IlmThread::Mutex::Mutex()’:
opencv-4.1.0/3rdparty/openexr/IlmThread/IlmThreadMutexPosix.cpp:55:53: error: cannot convert ‘CRITICAL_SECTION* {aka _RTL_CRITICAL_SECTION*}’ to ‘void**’
for argument ‘1’ to ‘int pthread_mutex_init(void**, const pthread_mutexattr_t*)’
     if (int error = ::pthread_mutex_init (&_mutex, 0))
                                                     ^
``` 
This is repeated a total of 4 times for `init`, `lock`, `unlock`, and `destroy`.

##### Steps to reproduce

Unzip opencv zip file (taken from github).
Using cygwin term, cd to unzip folder
```
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/dist" -DCMAKE_BUILD_TYPE=RelWithDebInfo  -DCMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc.exe -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe ../
cmake --build .
```
Cmake version
```
$ cmake --version
cmake version 3.14.5
```