sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Mention shadowed glob-imported items in mismatched types errors when possible
Labels: A-diagnostics,P-low,T-compiler

Given:

1. a large source file full of generically-named functions,
2. and one tiny glob import to get even more generically-named functions

one can arrive at a baffling error like this:

```console
error[E0308]: mismatched types
  --> src/main.rs:15:14
   |
15 |     function(CorrectType);
   |              ^^^^^^^^^^^ expected struct `OtherType`, found struct `CorrectType`
   |
   = note: expected type `OtherType`
              found type `CorrectType`
```

The issue is that the author expected to be calling the glob imported function, when in fact a function with the same name was also in local scope.

Ideally, rustc would point out there is another function with the same name for which the types match, and how to explicitly call this one. (This can be expanded to known functions that are not in scope, but having this for shadowed names will already be very useful.)

Code to reproduce above error ([playpen](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=0743af1a7a1a476fdd1687b7e618c109)):

```rust
pub struct CorrectType;
pub struct OtherType;

mod globme {
    pub fn helper(_x: i8) {}
    pub fn function(_x: super::CorrectType) {}
}

use self::globme::*;

fn function(_x: OtherType) {}

fn main() {
    helper(42);
    function(CorrectType);
}
```
Repository: TypeScript
Issue: Support `diagnostics` inside `compilerOptions` in combination with `--build`
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.

-->

## Search Terms

* diagnostics, build
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

related maybe? https://github.com/microsoft/TypeScript/issues/19725

## Suggestion

<!-- A summary of what you'd like to see added or changed -->

It would be nice if you could combine `--diagnostics` and `--build`

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

I can just `cd` into a specific sub-project and run `tsc --diagnostics` there without a problem, however it would be nice to also have `--diagnostics` for a whole monorepo / project-references build.

## 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
* [*] This wouldn't change the runtime behavior of existing JavaScript code
* [*] This could be implemented without emitting different JS based on the types of the expressions
* [*] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [*] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: storybook
Issue: How to lazy load(code splitting) stories(and respective component source)?
Labels: feature request,configuration babel / webpack

**Is your feature request related to a problem? Please describe.**
We have many components(100+) and we want to write stories for all of them, eventually replacing component development with storybook. 

The bundle size is growing enormously as we are writing stories for new components. This is affecting initial page load time as all the component JS & stories are loaded on page load.

**Describe the solution you'd like**
We would like to lazy load each story file(which imports component). so that, only JS required to render current stories are loaded. and subsequent navigation to other stories loads additional JS.

**Describe alternatives you've considered**
- Tried dynamically importing each component using `react-loadable`, but in this case the `propTypes/defaultProps/smart-knobs` are not read.
- Creating DLL using webpack and injecting it probably(Haven't tried yet, but this would solve the problem partially)

**Are you able to assist bring the feature to reality?**
May be! Not sure.

**Additional context**
none
Repository: youtube-dl
Issue: foxsportsgo.com
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.05.20. 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.05.20**
- [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
<!--
https://www.foxsports.com/watch/skip-and-shannon-undisputed-975657
https://www.foxsports.com/watch/mlb-whiparound-976182
https://www.foxsports.com/watch/the-herd-with-colin-cowherd-975777

https://www.foxsports.com/watch/the-herd-with-colin-cowherd-975777?cmpid=org=foxsports::ag=::mc=sportsdata::src=sportsdata::cmp=fsgo_foxsports&is_retargeting=true&cmpid=org=foxsports::ag=::mc=sportsdata::src=sportsdata::cmp=fsgo_foxsports&shortlink=872f1417&c=fsgo_foxsports&pid=sportsdata&af_channel=sportsdata&af_sub2=foxsports
-->

- Single video: https://www.foxsports.com/watch/skip-and-shannon-undisputed-975657
- Single video: https://www.foxsports.com/watch/mlb-whiparound-976182
- Playlist: https://www.foxsports.com/watch/the-herd-with-colin-cowherd-975777?cmpid=org=foxsports::ag=::mc=sportsdata::src=sportsdata::cmp=fsgo_foxsports&is_retargeting=true&cmpid=org=foxsports::ag=::mc=sportsdata::src=sportsdata::cmp=fsgo_foxsports&shortlink=872f1417&c=fsgo_foxsports&pid=sportsdata&af_channel=sportsdata&af_sub2=foxsports


## Description

<!--
The login I use is through my cable service provider Verizon.
-->

The login I use is through my cable service provider Verizon.

FoxSportsGo is a site where you can view replays of many Fox Sports shows and it currently has no support through YT-DL. Please, if someone could be so kind to write the support into YT-DL.
Repository: flutter
Issue: Add SliverFillRemaining with option to keep space for another follow up widget
Labels: c: new feature,framework,f: scrolling,P3,team-framework,triaged-framework

Right now, SliverFillRemaining fills all remaining space. It would be nice to have a Sliver widget that fills the space minus some configurable bottom space so that you can add a SliverList below it that is always partially visible and can be scrolled up.

<sub>Sent with <a href="http://githawk.com">GitHawk</a></sub>
Repository: go
Issue: x/sys/windows: wrong value of S_IFMT mask on Windows/plan9
Labels: OS-Windows,NeedsInvestigation,compiler/runtime

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.5 windows/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Cyco\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\projects\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Cyco\AppData\Local\Temp\go-build338162002=/tmp/go-build -gno-record-gcc-switches
</pre></details>

It seems that value of syscall.S_IFMT mask is wrong on Windows/Plan9. It is defined as 0x1f000 while it is defined as 0xf000 on other platforms.

I had previously entered an issue on the sftp package page:
https://github.com/pkg/sftp/issues/291

The code is testing the result of an SSH_FXP_STAT request on an AIX server. It tests the filemode bits with syscall.S_IFMT mask. The results should be S_IFDIR, but the mask tests an extra bit that is used as S_IFJOURNAL on AIX, hence failing to get the correst value.

```
input filemode bits are                  1 0100 0011 1111 1111‬
syscall.S_IFMT mask bits are             1 1111 0000 0000 0000
```

The different values tested are:

```
 S_IFBLK                                 0 0110 0000 0000 0000
 S_IFCHR                                 0 0010 0000 0000 0000
 S_IFDIR                                 0 0100 0000 0000 0000
 S_IFIFO                                 0 0001 0000 0000 0000
 S_IFLNK                                 0 1010 0000 0000 0000
 S_IFREG                                 0 1000 0000 0000 0000
 S_IFSOCK                                0 1100 0000 0000 0000
```

As you can see, none of the values match the input, and the leftmost bit is not used by any value.
The input would match S_IFDIR if the S_IFMT mask didn't test the leftmost bit.
Repository: svelte
Issue: simplify safe_not_equal and not_equal?
Labels: compiler

I was doing some profiling the other day and was mildly surprised to find that a lot of the time spent in Svelte — possibly even most? — was in `safe_not_equal`. It occurs to me that we might see some performance gains by changing the implementations thusly:

```diff
+function is_mutable(type) {
+	return type === 'object' || type === 'function';
+}
+
export function safe_not_equal(a, b) {
-	return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
+	return a !== b || a && is_mutable(typeof a);
}

export function not_equal(a, b) {
-	return a != a ? b == b : a !== b;
+	return a !== b;
}
```

The downside is that setting `x` to `NaN` would trigger an update if `x` was already `NaN`. But I'm pretty sure that's a small enough edge case that we needn't worry about it
Repository: bitcoin
Issue: Bitcoin Core on mainnet shows testnet3 dir as a wallet to open and allows opening it
Labels: Wallet

If you use both mainnet and testnet3 on the same machine, in default configuration `testnet3` directory is under mainnet Bitcoin datadir. If you have also testnet wallet there (`testnet3/wallet.dat` file), it will show `testnet3` directory in `bitcoin-cli listwalletdir` and "File > Open Wallet" list in GUI and actually allow to open it in mainnet. Don't think this is the expected behaviour.
Repository: go
Issue: net/http: make Transport return a net.Conn Response.Body on successful CONNECT
Labels: help wanted,NeedsFix

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version
go version go1.12.5 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/kamran.khan/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/kamran.khan/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build603500370=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

```
		req := &http.Request{
			Method: "CONNECT",
			URL: &url.URL{
				Scheme: "https",
				Host:   proxyHost,
				Opaque: addr,
			},
		}
		req.Host = proxyHost
		res, err := http.DefaultClient.Do(req)
		if err != nil {
			return errors.Annotate(err, "error connecting to https proxy")
		}
		if res.StatusCode < 200 || res.StatusCode > 299 {
			panic(fmt.Sprintf("error connecting to https proxy, status: %d", res.StatusCode))
		}
		conn, ok := res.Body.(net.Conn)
		if ok != true {
			return errors.New(fmt.Sprintf("res.Body is not a net.Conn, it has type %s", reflect.TypeOf(res.Body)))
		}
		_ = tls.Client(conn, tlsConfig)
```



### What did you expect to see?

As per #17227, `res.Body` should be a `net.Conn` after successful `CONNECT`.

### What did you see instead?

Instead it is of the type `*http.bodyEOFSignal`

@bradfitz can you please take a look?
Repository: nvm
Issue: "nvm use" gets stuck in inifinite loop causing a fork bomb
Labels: bugs,pull request wanted

<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->

- Operating system and version: 
Linux bash 4.2 terminal on web host

- `nvm debug` output:
```nvm --version: v0.34.0
$SHELL: /bin/bash
$SHLVL: 1
$HOME: /home/domainnamehere
$NVM_DIR: '$HOME/.nvm'
$PATH: /usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin:/opt/cpanel/composer/bin:$HOME/.local/bin:$HOME/bin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)'
uname -a: 'Linux 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64 #1 SMP Wed Feb 13 08:24:50 EST 2019 x86_64 x86_64 x86_64 GNU/Linux'
curl: /bin/curl, curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
wget: /bin/wget, GNU Wget 1.14 built on linux-gnu.
git: /usr/local/cpanel/3rdparty/lib/path-bin/git, git version 2.19.1
grep: alias grep='grep --color=auto'
        /bin/grep (grep --color=auto), grep (GNU grep) 2.20
awk: /bin/awk, GNU Awk 4.0.2
sed: /bin/sed, sed (GNU sed) 4.2.2
cut: /bin/cut, cut (GNU coreutils) 8.22
basename: /bin/basename, basename (GNU coreutils) 8.22
rm: /bin/rm, rm (GNU coreutils) 8.22
mkdir: /bin/mkdir, mkdir (GNU coreutils) 8.22
xargs: /bin/xargs, xargs (GNU findutils) 4.5.11
```
(Omitted the last lines as nvm is being started with --no-use)

- `nvm ls` output:
```        v12.3.1```

- How did you install `nvm`? (e.g. install script in readme, Homebrew):
Using the install script `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash`

- What steps did you perform?
 I've added --no-use to the end of my .bashrc so that I can at least access the terminal before the issue occurs, but once I have terminal access I tried calling `nvm use default` to load node 

- What happened?
the number of resources being used on the server ballooned to the point where I was only getting `bash: fork: retry: no child processes` and `bash: fork: retry: resource temporarily unavailable`

- What did you expect to happen?
nvm use node without creating a fork bomb/depleting all server resources. The issue doesn't occur when `nvm use` isn't called, or if I don't let nvm start at all

- Is there anything in any of your profile files (`.bashrc`, `.bash_profile`, `.zshrc`, etc) that modifies the `PATH`?
.bash_profile contains the following:
```
# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
```
Repository: vue-element-admin
Issue: element改为按需引入后会报错
Labels: not vue-element-admin bug


## Bug report（问题描述）
elementui改为按需引入后出现报错，
报错信息Uncaught ReferenceError: _MessageBox is not defined

#### Steps to reproduce（问题复现步骤）
1. npm i -D vue-cli-plugin-element babel-plugin-component
2. babel.config.js添加element配置
3. main.js改为按需引入

#### Screenshot or Gif（截图或动态图）
![image](https://user-images.githubusercontent.com/39074445/58454551-664a7300-8151-11e9-8db1-0bf76b67b821.png)
![image](https://user-images.githubusercontent.com/39074445/58454502-37340180-8151-11e9-9d37-351410404e86.png)
![image](https://user-images.githubusercontent.com/39074445/58454510-4450f080-8151-11e9-8382-efd0c587638c.png)
![image](https://user-images.githubusercontent.com/39074445/58454520-4e72ef00-8151-11e9-9bda-fff4e21bd8fb.png)


#### Other relevant information（格外信息）
- Your OS: window 10
- Node.js version: v10.15.3
- vue-element-admin version: v4.2.1
Repository: TypeScript
Issue: Type narrowing not working for unions of tuples with object literals
Labels: Bug,Needs Proposal,Domain: Control Flow

It's not possible to narrow unions of tuples with object literals

**TypeScript Version:**  3.4.5, 3.5.0-rc

**Search Terms:** tuple narrow object literals

**Code**:

Narrowing tuples with primitive types works as expected:

``` ts
type X = ["a", "c"] | ["b", "b"]

function bar(x: X) {
  if (x[0] === "b") {
    return x[1] === "c" // correctly narrows to "c", shows "condition always false"
  }
}
```

However, when the tuple contains object literals, narrowing doesn't work at all:

``` ts
interface A { data: "a" }
interface B { data: "b" }
interface C { data: "c" }

type Y = [A, C] | [B, B]

function foo(y: Y) {
  if (y[0].data === "b") {
    return y[1].data === "c" // incorrectly narrows to "c" | "b"
  }
}
```

**Expected behavior:**

The object literal within the tuple is correctly narrowed down to type `B`

**Actual behavior:**

The object literal is not narrowed, leaving it at type `C | B`.

**Playground Link:**  [Link](https://www.typescriptlang.org/play/#src=type%20X2%20%3D%20%5B%22a%22%2C%20%22c%22%5D%20%7C%20%5B%22b%22%2C%20%22b%22%5D%0D%0A%0D%0Afunction%20bar(x2%3A%20X2)%20%7B%0D%0A%20%20if%20(x2%5B0%5D%20%3D%3D%3D%20%22b%22)%20%7B%0D%0A%20%20%20%20return%20x2%5B1%5D%20%3D%3D%3D%20%22c%22%20%2F%2F%20correctly%20narrows%20to%20%22c%22%0D%0A%20%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20A%20%7B%20data%3A%20%22a%22%20%7D%0D%0Ainterface%20B%20%7B%20data%3A%20%22b%22%20%7D%0D%0Ainterface%20C%20%7B%20data%3A%20%22c%22%20%7D%0D%0A%0D%0Atype%20X1%20%3D%20%5BA%2C%20C%5D%20%7C%20%5BB%2C%20B%5D%0D%0A%0D%0Afunction%20foo(x1%3A%20X1)%20%7B%0D%0A%20%20if%20(x1%5B0%5D.data%20%3D%3D%3D%20%22b%22)%20%7B%0D%0A%20%20%20%20return%20x1%5B1%5D.data%20%3D%3D%3D%20%22c%22%20%2F%2F%20incorrectly%20narrows%20to%20%22c%22%20%7C%20%22b%22%0D%0A%20%20%7D%0D%0A%7D%0D%0A)

**Related Issues:**
#26323
#24120
#10530
Repository: youtube-dl
Issue: Site Support Request: videos.tennis.com
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.05.20. 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.05.20**
- [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.
-->

- Single video: http://videos.tennis.com/m/moGwp0EJ/a-kerber-first-round-loss?list=PYT1u8U8
- Single video: http://videos.tennis.com/m/JCxuKRot/n-djokovic-pre-tournament?list=PYT1u8U8
Repository: flutter
Issue: Would like to be able to pass configuration from flutter build to gradle
Labels: c: new feature,tool,t: gradle,P3,team-tool,triaged-tool

Is it possible to do a custom parameter in yaml and get it out of gradle