sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Uncalled function checks don't work with negation
Labels: Suggestion,In Discussion

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

`uncalled function checks`, `negation`

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?ssl=16&ssc=2&pln=1&pc=1#code/PTAEAEGcBcCcEsDG0ByBXANhgwgCwKaIDWkAXKHGvgFDUAmhGAhrPqAGZoB2y8A9l1DxIAMT58AFAEpyAI3EZ8TLgG56jFm0QCYQyAFUuDdvC746YvuQnTQAXgB8oeX0XKpoAD6hux0+bVqeHZQCWFLDwBvalBY0BAfHiYscw5uXgFQRAJiSFBk1iY6AE9QAHc+WCJy-CxQAlZqAF9aYNCAQnDxKJi4hPTkxTo0nmh+QWzCElBIXD5MYe0AN3xYClxhLKZINmhxZtaQiU6DI3wTMwtu0Gi4+LBoDbzEbbZZ+Yxhrj5oZy0+FasOgHIA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
declare function isFoo(): boolean;
declare const isUndefinedFoo: (() => boolean) | undefined;

if (isFoo) {
    // uncalled function checks already work well here
}

if (!isFoo) {
    // uncalled function checks should cover this case too
}

if (!isUndefinedFoo) {
    // this case should not be covered
}
```

### 🙁 Actual behavior

Uncalled function checks do not work with the `!` operator.

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
Unless a function may be undefined it would be very helpful to check whether it is called when it is used with the `!` operator.

I created this issue to separate a part of the implementation of #42835 resulting from issue #35584. This specific issue was inspired by https://github.com/microsoft/TypeScript/issues/35584#issuecomment-769401594.
Repository: terminal
Issue: Add option to disable the tab switcher popup while keeping tab switcher nextTab semantics
Labels: Area-UserInterface,Product-Terminal,Issue-Task

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
Having configured `"tabSwitcherMode": "mru"` I can not find an option to hide the (in my opinion distracting) tab switcher popup.   

What I want is just MRU semantics on `nextTab` (especially when/if #9330 gets fixed) and no UI popup flashing by. If that can be achieved with `"tabSwitcherMode": "disabled"` that would be preferred.

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->

Assuming the tab switcher is the only way to get MRU semantics when using `nextTab`, a new configuration key to control visibility of the tab switcher popup, e.g. `"showTabSwitcherInterface": true|false` (default: `true`).
Repository: pytorch
Issue: [bug] torch.cumsum: functional and method variant promotes all ints to Long but inplace don't
Labels: module: docs,triaged,module: type promotion

```python
>>> t = torch.randint(2, 10, (3, 2), dtype=torch.int8)
>>> t.cumsum(0).dtype
torch.int64
>>> t.cumsum_(0).dtype
torch.int8
```

It makes sense as inplace operations can't promote types. But maybe this should be documented.

Reference: https://github.com/pytorch/pytorch/pull/53240#discussion_r587476784

cc @brianjo @mruberry @nairbv
Repository: neovim
Issue: Can't execute `wqa` with terminal buffer in 0.5 version
Labels: bug-vim,terminal,has:repro

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: `NVIM v0.5.0-dev+1122-g8f4b9b8b7`
- `vim -u DEFAULTS` (version: ) nvim only
- Operating system/version: ArchLinux
- Terminal name/version:alacritty
- `$TERM`:

### Steps to reproduce using `nvim -u NORC +'terminal' +'new' +'wqa'`


### Actual behaviour
throw below error
```log
Error detected while processing command line:
E948: Job still running
E676: No matching autocommands for acwrite buffer
Press ENTER or type command to continue
```

### Expected behaviour
exit nvim like the stable version
Repository: go
Issue: cmd/go: "invalid version" error on get is unnecessarily repetitive
Labels: help wanted,NeedsFix

```
$ go version
go version devel +2217e89ba3 Fri Mar 5 09:24:34 2021 +0000 linux/amd64
$ go get -d mvdan.cc/garble@branch/with/slash
go get: mvdan.cc/garble@branch/with/slash: invalid version: version "branch/with/slash" invalid: disallowed version string
```

The error line really doesn't have to be that long, especially given how it's repeating essentially the same three times.

Plus, it doesn't tell me *why* the version is disallowed. I had this happen with a name like `feat/foo-bar` and I had to think twice about what character it was upset about.

How about:

```
go get: mvdan.cc/garble@branch/with/slash: invalid version "branch/with/slash": version strings can't contain '/'
```
Repository: create-react-app
Issue: Support for custom paths
Labels: needs triage

There is already the `react-scripts-rewired` package that allows for custom code to be added to the webpack config. 

Is there any was of changing the default paths without running `eject`.

For example changing `build` to release or changing `src` to `source`. 

The paths variable provided to `webpack.config.extend.js` is not the version used required by `build.js` so it is not modified throughout the app. Only locally.
Repository: rust
Issue: The compiler looses vector capacity information
Labels: A-LLVM,I-slow,A-codegen,T-compiler

In this example:
```Rust
pub fn test() -> Vec<u32> {
    let mut vec = Vec::with_capacity(3);
    let mut i = 0;
    while i < 3 {
        vec.push(32);
        i += 1;
    }
    vec
}
```
the compiler produces sub-optimal assembly.
https://rust.godbolt.org/z/1T3Knodn8
Repository: pytorch
Issue: Pytorch mobile Vulkan API usage
Labels: triaged,oncall: mobile

Hello,

I am Pierre Boudier, chair of the ML vulkan workgroup at khronos, responsible for developing the machine learning eco system in vulkan.

we saw the announcement that pytorch mobile was now supporting vulkan, and our group would like to make sure that we support you well in your effort. More specifically, we would like to hear about your pain points, or any other feature request that would make your solution better.

you can contact me at pboudier@nvidia.com.

thanks,
Pierre Boudier
Repository: godot
Issue: Polygon2D UV Editor issues with invalid polygon indices
Labels: bug,topic:rendering,topic:editor,confirmed,topic:2d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Windows 3.2.4 RC3

**Issue description:**
<!-- What happened, and what was expected. -->
By polygon editor I am referring to the Polygon 2D UV Editor window, not the scene editor:
- The engine crashes just from me trying to add polygon points. And seemed to always crash when I add the 3rd point. 
- When generating a polygon from a sprite, the points look fine on the UV tab, but the other tabs show the points offset.
- When I drew points, it would something stop filling in the polygon (the light blue colour) after an arbitrary number of points.
- Pressing spacebar (to pan around) would sometimes close the editor.


**Steps to reproduce:**
I am fairly sure the first two issues have something to do with generating a polygon from a Sprite node and trying to modify that polygon. The problem seemed to go away when I deleted those nodes and created new Polygon2D nodes from scratch.

1. Create sprite node
2. Add Godot icon as a texture
3. Convert the Sprite to Polygon (in the toolbar)
4. Click the "Points" tab  (and notice the points are in the wrong positions)
5. Try and draw a new polygon, it should crash when adding the 3rd point

I am unsure what is causing the other two problems.
Repository: vscode
Issue: Add "Copy Value" to the context menu in the Debug Console.
Labels: feature-request,debug

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
I'd like to be able to right click on a logged object in the Debug Console, and have a `Copy Value` option in the context menu to get the whole object as a string.

When using console.log or logpoints in the Debug Console, I can inspect an object's nested properties in the Debug Console, but right clicking the object and selecting "copy" copies the truncated description of the object instead of the value. I'd like to be able to get the underlying value, as I could by copying from variables in the debug sidebar or using copy() on an in scope variable in the debug REPL if I was paused in a breakpoint.
Repository: go
Issue: x/tools/gopls: 'fix all' code action for selected range
Labels: help wanted,FeatureRequest,gopls,Tools

This is a feature request. When working on typescript projects, I liked the 'fix all' code actions presented with other trivial code actions. 

For example, consider this case:

![Screen Shot 2021-03-05 at 11 57 02 AM](https://user-images.githubusercontent.com/4999471/110147957-3e6a5380-7daa-11eb-8e7f-1a9fcff96aaf.png)

These are trivial ones and these quick fixes can be applicable on save if I had configured
```
        "editor.codeActionsOnSave": {
            "source.fixAll": true
        }
```
But, would be nice if I could select a region and trigger fix of all errors in the selected region.
Or alternatively, like typescript or eslint extensions, present the fixAll (for the entire file) option using code action.
Repository: go
Issue: cmd/compile: register ABI bringup testcase failures (tracking issue)
Labels: NeedsInvestigation,umbrella,compiler/runtime


Note: this is not a regular bug, but instead tracking issue in which to collect testcases that cause failures with the new Go register ABI work.   

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +a2f7067233 Fri Mar 5 15:34:32 2021 +0000 linux/amd64
</pre>

### What operating system and processor architecture are you using (`go env`)?

linux/amd64

### What did you do?

First instance:

```
$ git clone https://github.com/thanm/cabi-testgen
...
$ cd cabi-testgen/cabi-testgen
$ git checkout 0779299
$ go build .
$ ./cabi-testgen -q 1 -n 1 -s 1614962541 -o /tmp/cabiTest -p cabiTest -pragma registerparams
$ cd  /tmp/cabiTest
$ go build -p 1 .

```

### What did you expect to see?

clean build

### What did you see instead?

```
testcase.go:37:6: internal compiler error: 'Test0': not lowered: v10, StringPtr PTR STRING

goroutine 19 [running]:
runtime/debug.Stack(0xf9ecc0, 0xc0000be008, 0x0)
	/w/go/src/runtime/debug/stack.go:24 +0x9f
cmd/compile/internal/base.FatalfAt(0x2506000000002, 0xc0004b1cc8, 0x8, 0xc0003ad880, 0x2, 0x2)
	/w/go/src/cmd/compile/internal/base/print.go:227 +0x1bc
cmd/compile/internal/base.Fatalf(...)
	/w/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0xc0003dd2f0, 0x2506000000002, 0xe4e7d2, 0x2, 0xc00009fcf0, 0x1, 0x1)
	/w/go/src/cmd/compile/internal/ssagen/ssa.go:7353 +0x1a7
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/w/go/src/cmd/compile/internal/ssa/func.go:656
cmd/compile/internal/ssa.checkLower(0xc00017dba0)
	/w/go/src/cmd/compile/internal/ssa/lower.go:41 +0x439
cmd/compile/internal/ssa.Compile(0xc00017dba0)
	/w/go/src/cmd/compile/internal/ssa/compile.go:96 +0x99e
cmd/compile/internal/ssagen.buildssa(0xc000100580, 0x0, 0x0)
	/w/go/src/cmd/compile/internal/ssagen/ssa.go:635 +0x18d2
cmd/compile/internal/ssagen.Compile(0xc000100580, 0x0)
	/w/go/src/cmd/compile/internal/ssagen/pgen.go:158 +0x5f
cmd/compile/internal/gc.compileFunctions.func2.1(0xc000124310, 0xc000100580, 0xc0000be700, 0xc0000bb5c0)
	/w/go/src/cmd/compile/internal/gc/compile.go:130 +0x65
created by cmd/compile/internal/gc.compileFunctions.func2
	/w/go/src/cmd/compile/internal/gc/compile.go:128 +0x8e


```
Reduced testcase attached, repro with "go tool compile -p x  testcase.go".
[testcase.go.txt](https://github.com/golang/go/files/6092163/testcase.go.txt)
Repository: go
Issue: cmd/link: binary failed to execute with "This version of %1 is not compatible with the version of Windows you're running."
Labels: OS-Windows,NeedsInvestigation,compiler/runtime

```
#!watchflakes
post <- builder ~ `windows` && `This version of %1 is not compatible`
```

[2021-03-05T06:15:22-60b500d/windows-amd64-race](https://build.golang.org/log/ec15d5ed4a4bb1d3f6059d22bc13bf903d814e31)

CC @alexbrainman @zx2c4 @jeremyfaller
Repository: go
Issue: proposal: net/http.Client should allow omitting URLs from error strings
Labels: Proposal

## Context

When using a `net/http.Client`, especially with a `context.Context` that has a deadline, it’s not uncommon for the `http.Client.Do()` method to return an error that contains the full URL used when actioning the request. Unfortunately that URL may contain sensitive query parameters, or other things that make it unsafe for directly logging or forwarding elsewhere without first sanitizing the URL or removing it entirely.

There was a Gopher who recently ran into a case where they were almost writing sensitive URLs out to log files, but they managed to catch that in a pre-production environment. They could, at each `http.Client.Do()` call site, write logic to reformat the error value to not include the URL, but there are a few problems with that approach.

The first is that you’d run the risk of forgetting to add that protection somewhere, or a code change / addition in the future could omit it. In addition if you’re mutating the error value to remove the URL, you’ve made it so that callers cannot inspect that detail of the error if they wanted to use it to decide to handle the error in a specific way.

## Proposal

Considering the above context, I’d like to propose that we extend the `net/http.Client` to optionally omit the URL from any and all errors that get generated when it tries to action a request. This would allow programmers to set the behavior on the client itself, mitigating the first risk of forgetting to filter the URL from the error at a specific call site. This would be accomplished by adding a `bool` field to the `net/http.Client` struct: `OnErrorOmitURL`. The zero value (`false`) for this field would result in the `http.Client` behaving like it does today, meaning this would not be a breaking change.

Because the errors returned from the `http.Client.Do()` method are of type `net/url.Error`, we will also need to extend that type to include a bool struct field, `OmitURL`, which results in the `Error()` method not including the URL in the error string it returns. This will address the second risk above as the URL will still be present in string form within the `url.Error.URL` field, but it won’t be implicitly included when the error value is printed or logged. Like the field on the `net/http.Client`, the zero value (`false`) will result in `url.Error` working like it does today, meaning this would also not be a breaking change.
Repository: pytorch
Issue: torch.empty_strided doesn't test if strides are negative
Labels: module: error checking,triaged

It seems like some other error checking will get you one way or another, but it would be better to just directly report that strides are illegally negative.

See also https://github.com/pytorch/pytorch/issues/39224 https://github.com/pytorch/pytorch/issues/16424
Repository: flutter
Issue: [desktop] Default build output on Windows too terse for non-Dart failures
Labels: tool,platform-windows,a: desktop,a: error message,P2,team-windows,triaged-windows

I had trouble debugging a Windows build failure because the default output from `flutter run` is too terse.

```
❯ flutter run -d windows
Launching lib\main.dart on Windows in debug mode...
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): 
error MSB8066: Custom build for 'C:\Users\duncan\git\noticias\build\windows\CMakeFiles\776e9719f5f8ecedc9c205c7760b5085\flutter_windows.dll.rule;C:\Users\duncan\git\noticias\build\windows\CMakeFiles\80ea5e8e230c9e6159bcd1e86c54b144\flutter_assemble.rule' 
exited with code 1. [C:\Users\duncan\git\noticias\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...
Exception: Build process failed.
```

Running `flutter run -v` gave me much better logs:

```
[  +11 ms]   [  +10 ms] Target debug_bundle_windows_assets failed: FileSystemException: Exists failed, path =
'C:\Users\duncan\git\noticias\assets\lib\ps\' (OS Error: The filename, directory name, or volume label syntax is
incorrect.
```

The default output can be tweaked to include better diagnostic information.
Repository: pytorch
Issue: torch.matmul doesn't handle zero-sized inputs in some cases, leading to batched grad failures
Labels: module: autograd,module: tests,triaged,module: vmap

## 🐛 Bug

I am getting the following error when running batched grad and gradgrad checks through OpInfo with empty input tensors

```
RuntimeError: While computing batched gradients, got: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
```

## Expected behavior

Batched grad and gradgrad checks should work with empty input tensors.

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @albanD @gqchen @pearu @nikitaved @soulitzer @mruberry @VitalyFedyunin @walterddr
Repository: flutter
Issue: "flutter run" should support ^R for a cold restart
Labels: c: new feature,tool,t: hot reload,P3,team-tool,triaged-tool

Watching people use "flutter run", one thing I see happen a lot is that they will add a new plugin dependency, do a hot reload, it won't work, do a hot restart, it won't work, then hit ^C and rerun flutter run (to get the plugin compiled in).

It would be neat if you could just hit ^R to do a cold restart without quitting the tool.
Repository: flutter
Issue: Proposal to add `shrinkWrap` property for platform views
Labels: c: new feature,framework,a: platform-views,c: proposal,P3,team-framework,triaged-framework

## Use case

Currently, when using a platform view, it's necessary to give it a size using a `SizedBox` or a `Container`. It'd be great if we could introduce it to the tree without needing to give it a size. For example, using the plugin [native_admob_flutter](https://pub.dev/packages/native_admob_flutter), it's necessary to give the ad a size. The same with [google_mobile_ads](https://pub.dev/packages/google_mobile_ads) with Native Ads

## Proposal

I'd like to be able to just set `shrinkWrap` to `true` in a PlatformView and insert it in the Widget tree without problems:

```dart
// For android:
AndroidView(
   shrinkWrap: true,
   viewType: widget.viewType,
   creationParamsCodec: StandardMessageCodec(),
   creationParams: widget.params,
);

// For iOS:
UiKitView(
  shrinkWrap: true,
  viewType: _viewType,
  creationParamsCodec: StandardMessageCodec(),
  creationParams: params,
)

```
Repository: godot
Issue: `AudioServer.capture_set_device()`and `AudioServer.device()` do not work on Windows
Labels: bug,platform:windows,needs testing,topic:audio

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Godot 3.2.3 64 Bit and Godot 3.2.4 RC3

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 8.1

**Issue description:**
<!-- What happened, and what was expected. -->
`AudioServer.capture_set_device("Stereo Mix")`    don't work.

`print(AudioServer.capture_get_device_list()) `
Has as output: `[Default, Stereo Mix (Realtek High Definition Audio), Microphone (Realtek High Definition Audio)] `
But `AudioServer.capture_set_device("Stereo Mix")` (or `AudioServer.capture_set_device("Stereo Mix (Realtek High Definition Audio)"))` has with `print(AudioServer.capture_get_device())` only `Default` as output. (It also won't work with Microphone.)

Maybe the documentation should be improved, if I have understood something wrong.
I haven't tested the AudioServer.device .

**Steps to reproduce:**
1. AudioServer.capture_set_device("Stereo Mix")
2. print(AudioServer.capture_get_device())

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[AudioServer.zip](https://github.com/godotengine/godot/files/6093687/AudioServer.zip) (Enable Stereo Mix in Windows AudioSettings.)