sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: @deprecated strikethrough doesn't appear in many cases, such as JSX elements, const arrow functions, or properties.
Labels: Bug,Fix Available,Rescheduled

**TypeScript Version:**  4.0.0-dev.20200701
**VS Code Version:**  1.47.0-insider commit: b16b467d3e

**Search Terms:**
deprecated

**Code**

```ts
/** @deprecated */
type Props = {
  /** @deprecated */
  old: string,
  new: string,
}

/** @deprecated */
const Component = (props: Props) => <div />;

<Component old="old" new="new" />

/** @deprecated */
type Options = {
  /** @deprecated */
  old: string;
  new: string;
}

/** @deprecated */
const deprecatedFunction = (options: Options) => {}

deprecatedFunction({
  old: "",
  new: "hi",
});
```

**Expected behavior:**
All deprecated usages have strikethrough styles: `<Component>`, the `old` prop on `Component`, `deprecatedFunction`, `old`

**Actual behavior:**
Only `props` and `options` have strikethrough styles.
![Screenshot - 7_1_2020 , 9_07_19 PM](https://user-images.githubusercontent.com/1399894/86315427-f5d91580-bbde-11ea-9ba5-2e405358b809.png)

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
Strikethrough isn't visible here, but `...` is (just like stable VS Code vs. Insiders).
https://www.typescriptlang.org/play/?jsx=2&ts=4.0.0-beta&ssl=29&ssc=1&pln=1&pc=1#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgIilQ3wG4AocgegCoa4ABAEyTCLRRiSbhqvJgBPMEjgAFHGADOcALxwA3uThxa9Zq3aduvfiogAbJgC44UmFGAA7AOYAaZXCtIA7qfOXbDgL6U1jFjYkDi4ePnI0CCtzOABhXEhnK3h5AAo2CGlTCUypAEo5AD44AB4mYAA3VUKKchL48CikZLhDJll8NvwnVw7nF26qQr86AM1g7TD+IRE4AHkwGGAomXklFX8NIJCdcP0jdwtrGwoVfsPPE-JfalGtrVDdCJX4QIfuADEAVysMZas5HBUpklitTAtQdECrJigobm8JqFvr9Ial1q0DgR8A4zq5TPgABbAbHXPIUIA

**Related Issues:**
None (feature is new to 4.0)
Repository: flutter
Issue: [proposal] Pigeon should use Protobuf to share data between "HostApi" and "FlutterApi"
Labels: c: new feature,package,c: proposal,team-ecosystem,p: pigeon,P3,triaged-ecosystem

Hi all,
the following proposal is largely inspired by this great [article](https://www.freecodecamp.org/news/flutter-platform-channels-with-protobuf-e895e533dfb7/) from @truongsinh

## Use case

Common issues with platform channel data transfer:

- FlutterStandardTypedData issues
- often require to cast data
- frequent loss of type-safety
- loss of performance with List<dynamic>, Map<String,dynamic>

## Proposal

Use [protobuf](https://pub.dev/packages/protobuf) as default for [pigeon](https://pub.dev/packages/pigeon)'s platform channel communication.

## Extras

- [grpc](https://pub.dev/packages/grpc) uses `protobuf`, the proposed implementation 
would make very easy to cache data on native side from a `grpc` client

- AFAIK [flutterfire](https://github.com/FirebaseExtended/flutterfire) uses a grpc client on the native side
the proposed implementation should lead to better performance and stability

cc @gaaclarke as requested in the `feedback` tab of [pigeon readme](https://pub.dev/packages/pigeon#-readme-tab-)

Thank you
Repository: rust
Issue: Ability from the top-level of the compilation not to mark #[no_mangle] items exported from shared library
Labels: A-linkage,T-compiler

Firefox currently builds all its Rust code into a static artifact called `gkrust` which is then statically linked, with cross-language LTO, with C++ artifacts to form the shippable `libxul.so/dylib/dll`.

Upon examining the exported symbols of `libxul`, the FFI functions that are meant for internal glue between Rust and C++ show up.

This is a problem for two reasons:

1. It's a binary size issue, because cross-language LTO is supposed to inline the FFI functions into their callers. However, having them exported means also keeping those copies around. Also, unused FFI functions can't be eliminated as dead code.
2. It gives problematic third-party software more opportunities to hook into `libxul` in unsupported ways.

Since there's a variety of third-party crates that go into `libxul`, it wouldn't be practical to reannotate each FFI function. Therefore, please add a way from the top level of the Rust compilation to turn off the shared library export metadata generation for `#[no_mangle]` items.
Repository: pytorch
Issue: will you support SRU on mobile?
Labels: module: android,oncall: mobile

## ❓ Questions and Help

Now I have a nlp model contained SRU, but it seems that pytorch cannot deploy SRU on the Android.
Repository: rust
Issue: Denying a const_err lint can hide the root cause site
Labels: A-diagnostics,T-compiler,C-bug,A-const-eval

The following code snippet does not show the `T::ASSERT` site unless the `const_err` lint is allowed or set to warn only.
I'm guessing the error on `T::ASSERT` is happening during codegen.

```rust
trait ZstAssert: Sized {
    const ASSERT: () = [()][(std::mem::size_of::<Self>() != 0) as usize];
}

impl<T> ZstAssert for T {}

fn foo<T>() {
    #[allow(path_statements)]
    {
        T::ASSERT
    }
}

fn main() {
    foo::<u32>();
}
```

([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8650768cf9e123ef174e12a3973847c2))

Errors:

```
   Compiling playground v0.0.1 (/playground)
error: any use of this value will cause an error
 --> src/main.rs:2:24
  |
2 |     const ASSERT: () = [()][(std::mem::size_of::<Self>() != 0) as usize];
  |     -------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                        |
  |                        index out of bounds: the len is 1 but the index is 1
  |
  = note: `#[deny(const_err)]` on by default

error: aborting due to previous error

error: could not compile `playground`.

To learn more, run the command again with --verbose.

```
Repository: flutter
Issue: Add a Sidebar widget to Cupertino for a native look on iPadOS
Labels: c: new feature,framework,f: cupertino,P2,team-design,triaged-design

## Use case
Build iPadOS apps which look native and up-to-date regarding the new UI concept of sidebars on iPad apps

## Proposal
iPadOS 14 introduces the UI concept a toggle sidebar which is prominently used in a variety of Apple‘s own apps and surely in lots of updated 3rd party apps to make them feel native. In SwiftUI, there is already an implementation for it:

> SwiftUI will automatically take care of showing a button to slide in your bar from the side of the screen, and also collapse it with your primary view if you’re in a compact size class. If you’re presenting a list inside your sidebar, it’s a good idea to use the .listStyle() to give it the system-standard theme for sidebars, like this: .... (Source: [Hacking with Swift - How to add a sidebar for iPadOS](https://www.hackingwithswift.com/quick-start/swiftui/how-to-add-a-sidebar-for-ipados)

It would be fantastic to have the sidebar as a „native“ flutter widget in Cupertino.
Repository: excalidraw
Issue: Feature: Import data (local file and json link) to exsiting canvas
Labels: enhancement

When we load a new json file or open a json link, it will erase the existing canvas and load data.

There would be certain use cases not to erase the existing canvas and load data in addition.

----

#1861 & #1862 : Slightly related as the problem is erasing canvas without confirmation.

#1091 : Related as my original idea is to create a gallery of reusable drawings (and developed [an external tool](https://github.com/dai-shi/excalidraw-gallery)).

#1537 & #859 : Because system copy&paste is not implemented, this would be only way to merge two drawings.
Repository: pytorch
Issue: Inconsistent handling of torch.Size.__add__
Labels: oncall: jit,weeks,TSUsability,TSRootCause:PyTorchParityGap

`+ list` is allowed in JIT scripting, but not regularly.

```py
In [50]: def f(x: torch.Tensor) -> torch.Tensor:
    ...:     # `x` is known to have dim -1 of size 18
    ...:     shape = x.shape[:-1] + [6, 3]
    ...:     return x.reshape(shape)
    ...:
    ...:

In [51]: f(torch.randn(18))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-51-472433a8673d> in <module>
----> 1 f(torch.randn(18))

<ipython-input-50-0fb98040e0b1> in f(x)
      1 def f(x: torch.Tensor) -> torch.Tensor:
      2     # `x` is known to have dim -1 of size 18
----> 3     shape = x.shape[:-1] + [6, 3]
      4     return x.reshape(shape)
      5

TypeError: can only concatenate tuple (not "list") to tuple

In [53]: torch.jit.script(f)(torch.randn(18))
Out[53]:
tensor([[-0.1262, -0.7522,  1.0233],
        [ 0.2715, -1.5179,  0.1224],
        [-0.2018,  0.6756,  2.3353],
        [ 0.0312, -0.0629, -0.8199],
        [ 2.0379, -1.4921,  0.5088],
        [ 0.1909,  1.2629, -0.6989]])

```



`TypeError: can only concatenate tuple (not "list") to tuple`

cc @suo @gmagogsfm
Repository: TypeScript
Issue: unreachable code detected not work for if clause.
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 STOP 🚨 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.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.9.2

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** unreachable

**Code**

```ts
const hel2 = (x: number) => {
  switch (typeof x) {
    case 'number': return 0
  }
  x    // Unreachable code detected
}

const hel12 = (x: number) => {
  if(typeof x === 'number'){
    return 0;
  }
  x    // expect same error here!
}
```

**Expected behavior:**
in commnet

**Actual behavior:**
in commnet

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
https://www.staging-typescript.org/play?#code/MYewdgzgLgBAFgUwDYCYYF4YAoAeAuGMAVwFsAjBAJwEoMA+GAbwCgYYIB3ASymDmygBPAA4IQAMxg5aLNm2ABDCAhgByYuSqqClBFCKUwMAAysYAXzM5ml5qEixESAIxpMuAhoo16TM13EsIVEJKQx0THVSb1VqWTldfUMTAG4zSzZrSyA

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: next.js
Issue: Invalid HTML inside `dangerouslySetInnerHTML` breaks the page.
Labels: good first issue

# Bug report

## Describe the bug

If invalid HTML is added to `dangerouslySetInnerHTML`, Next.js will output a blank page without providing any feedback.  This can be hard to track when working with a CMS provider or markdown files.

## To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

1. Clone https://github.com/lfades/nextjs-inner-html-bug
2. Run `yarn && yarn dev` or `npm i && npm run dev`
3. See that `pages/index.js` is a blank page with no errors

## Expected behavior

Invalid HTML inside `dangerouslySetInnerHTML` should throw and/or let the user know that there's something wrong.

The demo also has an `index.html` and `index.js` in the root directory that shows how the same code works in React alone, it doesn't produce an error either, but it shows the content.
Repository: pytorch
Issue: Vectorized torch.eig()
Labels: module: performance,triaged,enhancement,module: vectorization

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
The **torch.eig()** function does not support vectorized calculation. It only takes a single matrix (n, n) as input.
Please make it to support vectorized(batched?) matices like (*, n, n). * is for batch.

## Motivation
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
Even though the **torch.symeig()** takes vectorized(batched?) matrices with a shape of (*, n, n), **torch.eig() does not**

## Pitch
<!-- A clear and concise description of what you want to happen. -->
If I put a tensor with shape (batch, n, n), it will outs (batch, eigenvalue_real, eigenvalue_imagery) and (batch, eigenvectors)

## Alternatives
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
I think if someone cheats the implementation of **torch.symeig()**, this request could be much easier.

## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
I added a toy example
~~~
>>> x = torch.zeros([4000,4,4])
>>> x = x + torch.eye(4)
>>> torch.symeig(x)
torch.return_types.symeig(
eigenvalues=tensor([[1., 1., 1., 1.],
        [1., 1., 1., 1.],
        [1., 1., 1., 1.],
        ...,
        [1., 1., 1., 1.],
        [1., 1., 1., 1.],
        [1., 1., 1., 1.]]),
eigenvectors=tensor([]))
>>> torch.eig(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: invalid argument 1: A should be 2 dimensional at /pytorch/aten/src/TH/generic/THTensorLapack.cpp:193
~~~

cc @VitalyFedyunin @ngimel
Repository: flutter
Issue: [tool_crash] ProcessException: The system cannot find the file specified.  Command: C:\src\flutter\flutter\bin\flutter.BAT upgrade --continue --no-version-check
Labels: c: crash,tool,platform-windows,P2,team-tool,triaged-tool

## Command
```
flutter upgrade
```

## Steps to Reproduce
1. ...
2. ...
3. ...

## Logs
ProcessException: ProcessException: The system cannot find the file specified.

  Command: C:\src\flutter\flutter\bin\flutter.BAT upgrade --continue --no-version-check
```

```
```
[✓] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18363.900], locale en-US)
    • Flutter version 1.17.4 at C:\src\flutter\flutter
    • Framework revision 1ad9baa8b9 (2 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\Pratiksha\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit visit
      https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.46.1)
    • VS Code at C:\Users\Pratiksha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.11.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

```

## Flutter Application Metadata
No pubspec in working directory.
Repository: neovim
Issue: Indent alignment lines and does not display the first-level tab character
Labels: enhancement

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.4.3 Build type: Release LuaJIT 2.0.5
- `vim -u DEFAULTS` (version: ) behaves differently? No
- Operating system/version: MacOS Catalina 10.15.5
- Terminal name/version: iTerm2
- `$TERM`: xterm-256color

I need the Indent alignment lines and does not display the first-level tab character:
```
set listchars=tab:\¦\ ,trail:■,extends:>,precedes:<,nbsp:+
set list
hi SpecialKey ctermfg=239 ctermbg=202
```
It started like this:
<img src="https://user-images.githubusercontent.com/32320149/86309990-9830e180-bc4f-11ea-89eb-86e1cd658cce.png" width="400px" alt="">

But I would like this **which does not display the first-level tab character**:
<img src="https://user-images.githubusercontent.com/32320149/86310020-a5e66700-bc4f-11ea-9f53-5c5c0dee7d05.png" width="400px" alt="">

> Why

I think It will be more reasonable, simple, and beautiful. "Radish or cabbage; each to his own delight."
I hope I explained it clearly.🌚
Repository: youtube-dl
Issue: YouTube chat replay support
Labels: incomplete

<!--

######################################################################
  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 2020.06.16.1. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar site feature 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 site feature request
- [x] I've verified that I'm running youtube-dl version **2020.06.16.1**
- [x] I've searched the bugtracker for similar site feature requests including closed ones


## Description

<!--
Provide an explanation of your site feature request in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

YouTube now has "chat replay" for recorded livestreams in the same style as Twitch, which youtube-dl already supports extraction of as a "subtitle".  It would be beneficial for youtube-dl to also support extraction as a subtitle for YouTube, as like on Twitch, chat on YouTube can form a very important part of the livestream in question.  There is no existing support for this in youtube-dl, or similar option that I can see.

There is a Python library at https://github.com/taizan-hokuto/pytchat which may be useful for the implementation of this. 
 Amongst other formats, it supports output as JSON, which could simply be passed back as the output for a new "subtitle" - the same style as the Twitch chat replay.

Use case example: The archiving of a YouTube channel, including all metadata.  At the moment the chat replay would not be saved, meaning there is no context for content in the video which may refer to it.
Repository: angular
Issue: Ivy: Animation events removed when node's position is changed
Labels: area: animations,state: confirmed,P3

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

Oh hi there! 😄

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->


# 🐞 bug report

### Affected Package
<!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->
<!-- ✍️edit: --> The issue is caused by package @angular/animations


### Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
<!-- ✍️--> Yes, without ivy animation events don't removed.


### Description

<!-- ✍️-->
Animation events is removed from `AnimationTransitionNamespace` during change node's position inside `ViewContainerRef`. This causes issue inside `mat-tab-group` when tab's order is changed because displaying content depends on animation events.
When node's index is changed a node detaches from old position and inserts into new one. During detach animation events are removed, but not added when node inserts back into new position. 

## 🔬 Minimal Reproduction
<!--
Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy
-->
<!-- ✍️-->
[StackBlitz](https://stackblitz.com/github/ghostlytalamaur/angular-rearrange-tab-bug) [GitHub Repo](https://github.com/ghostlytalamaur/angular-rearrange-tab-bug)
#### Steps to reproduce:
1. Open StackBlitz
2. Enable Ivy in settings
3. Click on rearrange button
4. Click on Tab 2. There is no content.
<!--
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
A good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem.
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.

Issues that don't have enough info and can't be reproduced will be closed.

You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue
-->
Repository: pytorch
Issue: MultiheadAttention set(-inf) cause 'Nan' in loss computing
Labels: module: nn,triaged,module: NaNs and Infs

## 🐛 Bug

I plan to reimplement a transformer variant model. I import MultiheadAttention from torch.nn.modules.activation.
In the encoder part, to be specific, the self multi-head attention part, if **the whole input is padded**, it means the key_padding_mask parameter is full of True. 

"When the value is True, the corresponding value on the attention layer will be filled with -inf."

This setting leads to **NaN** in model parameters and raises ValueError("nan loss encountered").

## To Reproduce

Steps to reproduce the behavior:

1. Initialize a MultiheadAttention.
self.self_attn= MultiheadAttention(embed_dim=embed_dim,num_heads=nhead,dropout=dropout)
2. In forward() function.
src, attn = self.self_attn(src,src,src,attn_mask=src_mask,
                              key_padding_mask=src_key_padding_mask)
3. Then pass an x. The vector src_key_padding_mask is all implemented True. The original sentence in src is \<pad\> * max_seq_length.

I use allennlp, this raises "ValueError: nan loss encountered". 
I founded that one example in a batch is full of \<pad\>, which causes this issue.

## Expected behavior
I found some descriptions of almost the same problem in fairseq.
[fairseq](https://github.com/pytorch/fairseq/blob/master/fairseq/modules/transformer_layer.py)
line 103
        # anything in original attn_mask = 1, becomes -1e8
        # anything in original attn_mask = 0, becomes 0
        # Note that we cannot use -inf here, because at some edge cases,
        # the attention weight (before softmax) for some padded element in query
        # will become -inf, which results in NaN in model parameters

Hope u can learn from their practices.

## Environment
 - PyTorch Version (e.g., 1.0): 1.5.1
 - OS (e.g., Linux): Ubuntu 16.04.6 LTS
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Python version: 3.7
 - CUDA/cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.4
 - GPU models and configuration: TITAN Xp
 - Any other relevant information:
numpy==1.18.5



cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: TypeScript
Issue: Give better errors comparing massive singleton union types
Labels: Suggestion,Needs Proposal,Domain: Error Messages

![MicrosoftTeams-image (2)](https://user-images.githubusercontent.com/972891/86400014-bd781c80-bc5c-11ea-98cd-2e178cee9f95.png)