sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Not all font weights are addressable by Flutter (macOS)
Labels: c: new feature,platform-mac,a: desktop,P3,team-macos,triaged-macos

macOS uses a 16 point scale to distinguish between a font family's weights ([NSFontManager.fontWithFamily:traits:weight:size:](https://developer.apple.com/documentation/appkit/nsfontmanager/1462332-fontwithfamily?language=objc)), while Flutter uses a 9 point scale ([FontWeight](https://api.flutter.dev/flutter/dart-ui/FontWeight-class.html)). As such, many fonts that are available on the host system cannot be used in the Flutter environment.

Please consider allowing a Flutter application to reference a font by its PostScript name, or some other unique identifier.
Repository: pytorch
Issue: Dispatch Tracing/Debugging
Labels: triaged,enhancement,internals,module: dispatch

Dispatch is already complicated, and (depending on your perspective) becoming more complicated with multiple dispatch.

When I was debugging https://github.com/pytorch/pytorch/issues/26206, I really wanted something I could just trace through that said:
"I'm executing dispatch key X because parameter A has type_set AA, parameter B has type_set BB..."

etc.


cc @ezyang @gchanan @zou3519
Repository: flutter
Issue: Flutter migrate
Labels: c: new feature,tool,P3,team-tool,triaged-tool

## Use case

The platforms that Flutter supports introduce new features every year. To support these features, the Flutter tool may need to change the files in an existing project. 

Features introduced in Flutter may also require changes to the underlaying project structure.

Because developers may configure project files in ways that we don't see ahead of time, changes to the project files may cause issues that are hard to revert. Even when the files are source controlled, the developer could have unstaged changes. 

As a result, changes performed by the tool must ensure that they won't disrupt the developer's workflow.

## Proposal

Create a new subcommand: `flutter migrate` that tracks all the migrations performed to an existing project and provides an option to revert the change.

DevX:  If `flutter build apk` updated some files, the changes can be reverted by using `flutter migrate --revert`.  

There are still more details to figure out:
1. What happen if they are multiple migrations?
2. Can a migration depend on another migration?
2. Can the order of the migrations cause issues?

## Design doc

https://flutter.dev/go/flutter-migrate

## Sub-issues to track progress
Repository: PowerToys
Issue: Make fancyzones touch friendly.
Labels: Idea-Enhancement,FancyZones-Dragging&UI,Product-FancyZones

# Summary of the new feature/enhancement

People with touch inputs are unable to use the Shift key to activate zones.
While zones can always stay active if toggle is disabled, windows are the not able to be dragged without snapping.
This would be one of the solutions for usage of Fancy zones for people with only touch input available.

# Proposed technical implementation details (optional)

My suggestion is to add another toggle that will activate touch control.
Parallel to the shift key, zones are to be activated when window is dragged and another 1 finger is touching the screen (So 2 fingers 1 dragging [1st finger], 1 touching [2nd finger]).
Zones would disappear if [2nd finger] is lifted, and reappear if [2nd finger] is placed on the screen, the first finger would still be dragging the window.
Repository: flutter
Issue: Ability to hide suffix in a text field when not focused
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-text-input,triaged-text-input

Right now, I'm using an IconButton widget as my suffix for my text field. Users of my app are able to click on the suffix from another text field. That is causing numerous focus issues with my app that could be solved if the suffix could be hidden with a boolean value while configuring the form field. If so, people who want to be able to see the suffix of a text field can do so at all times while others can choose to hide it until the field is focused on.
Repository: pytorch
Issue: Default adam epsilon to 1e-7 when on fp16
Labels: module: numerical-stability,module: optimizer,triaged,enhancement,module: half

## 🚀 Feature
If you use 1e-8 as default and you use 16 bit, it will round to zero, and thus you get no stability gains.


cc @vincentqb
Repository: flutter
Issue: Use xcodebuild app thinning report in perf tests to track size of iOS apps over time
Labels: a: tests,team,platform-ios,tool,c: performance,a: size,perf: app size,P3,team-ios,triaged-ios

## Description

The perf tests currently [`tar`s the iOS ipa](https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/perf_tests.dart#L370) as a proxy for final app size.  Instead, an "app thinning report" could be generated from a xcarchive:
```
xcodebuild -exportArchive -archivePath  /path/to/xcarchive -exportPath /path/to/export/location -exportOptionsPlist ExportOptions.plist
```
See `xcrun xcodebuild -h` for the valid export options plist keys.  This was the plist I used for veggieseasons:
```
$ plutil -p ExportOptions.plist 
{
  "method" => "ad-hoc"
  "thinning" => "<thin-for-all-variants>"
}
```
(The "thinning" value should probably be a specific [hardware string](https://en.wikipedia.org/wiki/List_of_iOS_devices#In_production_and_supported) like "iPhone10,1" to trade-off for test time).

This command generates the ipas, as well as a `App Thinning Size Report.txt` and `app-thinning.plist`.

Also see "Getting app size report" in [this tutorial](https://medium.com/@ankur.s20/implementing-app-thinning-in-your-project-step-by-step-tutorial-ios-app-b3cfd139896d).
Repository: TypeScript
Issue: F12 go to definition get 2 same result
Labels: Bug,Domain: Symbol Navigation

*Template info added by @mjbvz*

**TypeScript Version**: 3.7.0-dev.20190913

**Search Terms**
- JavaScript
- Commonjs / node
- go to definition

**Repo**
1. Using the code below
1. Run `go to definition` on `m1echo` in the call  `m1.m1echo()` inside `m2.js`

*Original report below*

---

// Win10(x64) + node js 10.16.3 + npm -v 6.9.0

// Peek m1echo/m2echo definition will get **2 SAME** definitions

// index.js
```
const m1 = require('./m1.js');
const m2 = require('./m2.js');

m1.m1work();
m2.m2work();
```
// m1.js
```
module.exports = {};
const m2 = require('./m2.js');

module.exports.m1work = function () {
    console.log('m1.m2.echo = <' + m2.m2echo() + '>');
}
module.exports.m1echo = function () {
    return 'this m1.';
}
```

// m2.js
```
module.exports = {};
const m1 = require('./m1.js');

module.exports.m2work = function () {
    console.log('m2.m1.echo = <' + m1.m1echo() + '>');
}
module.exports.m2echo = function () {
    return 'this m2.';
}
```
Repository: go
Issue: cmd/go: add go doc -json 
Labels: help wanted,Proposal,Proposal-Accepted,NeedsFix

To build better language support for editors and ide's it could be helpful to have the docs as json.

For example `https://golang.org/pkg/strings.json` to get the `strings` package documentation.
Or via terminal by a flag like `go doc fmt -format json`

Then the docs can be used to generate snippets based on the documentation.
Repository: pytorch
Issue: Higher dimension support for `MultiLableSoftMarginLoss`
Labels: module: nn,module: loss,triaged,enhancement

## 🚀 Feature
In the current version, input and target shape of `MultiLableSoftMarginLoss` is (N, C), which only support  one dimension tensor for batch data. I wonder if this can support high dimension as shape of input and target can be (N, C, d1, d2, ...),  just like the `CrossEntropyLoss`.

## Motivation
Motivation comes from the sequence tagging task in NLP.   In traditional cases, if we get padding length for `P`,  batch size for `N`, classification amount for `C`. We can use `CrossEntropyLoss` for sequence tagging loss as input and target shape is (N, C, P) for batch training. However, this only works when each word belongs to ONE of the classes. If I want to train the data with multi labels for each word, I must use Multi-Label loss function such as `MultiLableSoftMarginLoss`. And in this case, I have to calculate the loss one sentence at a time as input and target shape is (P, C). Batch calculation is disabled in this case, which makes the process time-consuming.
Repository: TypeScript
Issue: Generator that never returns should have return type 'never'
Labels: Needs Investigation

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

Generator function that yields `T` but never return should return `Generator<T, never, unknown>`

```typescript
function * generator<T> (x: T) {
  while (true) yield x
}

const iter = generator(3) // expect: Generator<number, never, unknown>
```

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [ ] 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, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: node
Issue: Node Debugger Caught in Loop When Debugging Async Functions
Labels: inspector,async_hooks

<!--
Thank you for reporting a possible bug in Node.js.

Please fill in as much of the template below as you can.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**: 1.38.1
* **Platform**: MacOS
* **Subsystem**:

<!-- Please provide more details below this comment. -->

When debugging Jest tests, if there is a breakpoint in an async function stepping over the end of the function takes the debugger into a file called `async_hooks.js` where it loops through a for loop on line 168 then jumps to line 183 before returning to 168 and ending up in an infinite loop. This makes it impossible to debug NodeJS code if it uses Async Functions (pretty much any modern script).
Repository: react-native
Issue: BUG - FlatList automatically scrolls to first when data is too large in horizontal mode RTL (Android)
Labels: Component: FlatList,Bug

 - [x] Review the documentation: https://facebook.github.io/react-native

-  [x]  Search for existing issues: https://github.com/facebook/react-native/issues

- [x]  Use the latest React Native release: https://github.com/facebook/react-native/releases

## Environment
```
System:
    OS: macOS 10.15
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 448.96 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5791312
    Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.61.2 => 0.61.2
```

<!--
  Please provide a clear and concise description of what the bug is.
  Include screenshots if needed.
  Please test using the latest React Native release to make sure your issue has not already been fixed: http://facebook.github.io/react-native/docs/upgrading.html
-->

React Native version: **0.61.2**
<!--
  Run `react-native info` in your terminal and copy the results here.
-->

## Code

```
<FlatList
    style={{
        flexDirection: 'row',
        marginHorizontal: -wp('3%'),
        zIndex: 40
    }}
    initialNumToRender={10}
    data={this.state.data}
    horizontal={true}
    key={item => item.groupNo}
    keyExtractor={(item, index) => index.toString()}
    showsHorizontalScrollIndicator={false}
    showsVerticalScrollIndicator={false}
    ref={ref => (this.flatList = ref)}
    renderItem={({ item }) => (
        <GroupAyeItem item={item} />
    )}
/>

```
## Steps To Reproduce

1. Added some data to my FlatList
2. Add horizontal={true} property to flatlist
3. Set `I18nManager.allowRTL(true)`
4. Set `I18nManager.forceRTL(true)`
5. Make my renderItem component extends as PureComponent.
6. Tested with Real Android Device and Emulator

As you see below when my app is running on RTL direction `FlatList` automatically scrolls to top/first of the list but LTR direction is OK! 

**RTL:**    

![RTL_GIF](https://user-images.githubusercontent.com/24797481/64906891-03c9b280-d701-11e9-8911-923f9035dc19.gif)


**LTR:**   

![LTR_GIF](https://user-images.githubusercontent.com/24797481/64906899-0e844780-d701-11e9-91cc-de5c4f7a6ef9.gif)





**UPDATE ON THIS ISSUE ! :**    
onScroll will get called rapidly in` VirtualizedList.js:1443` when RTL is enabled without scrolling!

![flatlist](https://user-images.githubusercontent.com/24797481/66717724-19f28d80-ede9-11e9-977b-bf78699bdc61.gif)

But in LTR :    
![flatlist_ltr](https://user-images.githubusercontent.com/24797481/66717774-b2890d80-ede9-11e9-892a-d3d5d95679e9.gif)
Repository: flutter
Issue: FormField validators are invoked with incorrect/old values
Labels: a: text input,framework,f: material design,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-text-input,triaged-text-input

## Steps to Reproduce

Created a test file that explains what I get and what I expect. Can be found here: https://gist.github.com/daniel-v/f1133f3e39a5714a3774760dab3841b2

**In short**

I'd expect that when I call `FormState.validate()` in response to a `TextEditingController` notification, the validators would receive the value  of the `TextEditingController`. This isn't the case, it seems that `FormState` caches a value, which seems to be updated AFTER validators would run. FormState's value is passed to the validators, therefore validators are always receive a value that's old.

**Question**

Is that expected and is this how this should work?

**Repro**

```
flutter create repro_proj
cd repro_proj
curl https://gist.githubusercontent.com/daniel-v/f1133f3e39a5714a3774760dab3841b2/raw/f41c63228c5bfaadbd56210582613706d095856c/input_validation_test.dart -o test/form_validator_test.dart
flutter test test/form_validator_test.dart
```

## Logs

```
00:02 +0: Triggers validation with right value
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure object was thrown running a test:
  Expected: 'a'
  Actual: ''
   Which: is different. Both strings start the same, but the actual value is missing the following
trailing characters: a
```

## Doc tells me:

```
[√] Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows [Version 10.0.18362.356], locale hu-HU)
    • Flutter version 1.9.1+hotfix.2 at C:\Users\Dev\Documents\3rdParty\flutter
    • Framework revision 2d2a1ffec9 (8 days ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\Dev\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Users\Dev\Documents\3rdParty\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.
```
Repository: rust
Issue: Don't discriminate unions and structures and enums
Labels: T-rustdoc

Unions, structures and enums are all different kinds of data, but I don't think it makes any sense to discriminate them in the documentation.

Whenever I explore the documentation of a crate, I don't know if the concept I'm looking for is an enum or a structure, but I most often have a vague idea what it is named, and I don't want to look at multiple lexicographically ordered lists to find it.

I suggest we make a single list of "data items", with all structures, enums and unions lexicographically listed.
Repository: terminal
Issue: Feature Request: Allow use of named system colours, like SystemAccentColor
Labels: Issue-Feature,Help Wanted,Area-Settings,Product-Terminal

# Description of the new feature/enhancement

Allow the use of named System or Theme colours for things like **cursorColor**

# Proposed technical implementation details (optional)

ThemeResources get passed through to the rendering, when a colour name is used in place of a Hex or RGB Colour.

![image](https://user-images.githubusercontent.com/7389110/64909910-7e96cb80-d709-11e9-90d1-bbed15112adc.png)
Repository: rust
Issue: Foreign type tests not covering all operations
Labels: A-testsuite,C-enhancement,A-FFI,E-needs-test,T-compiler,requires-nightly,F-extern_types

For example foreign type pointer comparison is not tested. Also `&(*val).0` where field `0` of `*val` is a foreign type is not tested. As a last thing pointer to `*mut ForeignType` casting it not tested.

These were all cases which were mishandled in [rustc_codegen_cranelift](https://github.com/bjorn3/rustc_codegen_cranelift/). I didn't discover them until I tried to compile rustc itself using cg_clif.
Repository: flutter
Issue: /storage/emulated/0/ & /mnt/sdcard/ not accessible using Flutter
Labels: platform-android,engine,has reproducible steps,P2,team-android,triaged-android,found in release: 3.19,found in release: 3.22

There has been discussions about this all over the place, however, this still needs a definitive issue (and fix).

---

When trying to write files, create directories, etc. in `/storage/emulated/0/` on Android using Flutter, the following error is thrown:

```
OS Error: Permission denied, errno = 13
```

The only operations that work are [`exists` operations](https://api.flutter.dev/flutter/dart-io/FileSystemEntity/existsSync.html) after specifying the `WRITE_EXTERNAL_STORAGE` permission and granting it.
Repository: youtube-dl
Issue: ODC - ondemandchina please
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.09.12.1. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.09.12.1**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Playlist: https://www.ondemandchina.com/drama/the-legendary-tavern/
- Single video: https://www.ondemandchina.com/drama/the-legendary-tavern/1
- Single video: https://www.ondemandchina.com/drama/the-legendary-tavern/2


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

No accounts/credentials required.
Repository: TypeScript
Issue: jsconfig.json gives broken intellisense for js files with module.exports
Labels: Suggestion,Awaiting More Feedback

- VSCode Version: 1.38.0
- TS Version: 3.6.2
- OS Version: Ubuntu 18.04 LTS bionic beaver
- Tested with no extensions
- Can not really find a solution to this problem after a lot of searching 

I have a personal js library that I use both in browser-side and node-side for a lot of my personal projects . In fact the library itself has its own project . The js library looks like this :

```
const library = {};

library.foo = function() {/*browser code*/}

if (typeof module === 'object') {
 library.bar = function() {/*node code*/}
 module.exports = library;
}
```

For a browser project (library is used via script tag) If I try to get intellisense via jscofig.json for such a file I get broken intellisense (by typing f or b I get suggestions for foo or bar respectively , but there is no library suggestion when I type l , and even if I type library I get no suggestion about its properties ) .  
For a node project everything works fine regarding intellisense using `require` .

The issue here is with `module.exports` . If I change it to `var substitute = module; substitute.exports = library;` then I get intellisense for browser project via `jsconfig.json` but broken intellisense (as described before) for node via `require` .

How can I get intellisense to work for both `require` and `jsconfig.json` ?

Before you attempt to check intellisense you should know the following  :

> I open index.js in a project that does not have any other js file and no `jsconfig.json` file . Then I view in the same VScode session some other , completely unrelated to my project , js files . For whatever file I view I get intellisense (of the globally scoped variables that have been defined via `let` , `var` or `const`) when I am editing index.js . If the unrelated js file happens to have module.exports then the intellisense that I get in index.js for that file is broken like it has been described before  .
> I stop getting intellisense for files that I view when I create a `jsconfig.json` file file in the folder of index.js . But still there is the same broken behavior with intellisense for files that are included via `jsconfig.json` and have module.exports .

Please restart vscode to test if intellisense really works .