sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/objdump: TestDisasmCode failures with "No such file or directory" during linking on AIX
Labels: NeedsInvestigation,OS-AIX,compiler/runtime

`greplogs --dashboard -md -l -e 'FAIL: TestDisasmCode .*\n(?:\s+.*\n)*\s+ld:.*No such file or directory'`

[2021-12-01T17:01:41-8ebb8c9/aix-ppc64](https://build.golang.org/log/89d55e6c2617dc103644a8d84bd6f504a4f4af00)
[2021-10-15T17:05:16-8c99421/aix-ppc64](https://build.golang.org/log/a5423d588e1e9ec7b1bb5e3863effaa7eb43a680)
[2021-03-05T22:14:48-a829114/aix-ppc64](https://build.golang.org/log/0774273989741002dbd463e0a97a53c11b9ecd7a)

See previously #40972 (CC @Helflym).
Repository: TypeScript
Issue: Generic conditional type narrowing doesn't cascade as expected
Labels: Bug

# Bug Report

I've tried my best to search for related issues and read the documentation thoroughly but failed to find any useful information. I'm sorry if this bug turns out to be duplicate or even not a bug at all.

### 🔎 Search Terms

conditional type if undefined


### 🕗 Version & Regression Information

All versions available in the playground (http://www.typescriptlang.org/play)
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Generics and Type Guards.

### ⏯ Playground Link

[Playground link](https://www.typescriptlang.org/play?ts=4.5.2#code/C4TwDgpgBAYg9nAPAFShAHsCA7AJgZymwFcBbAIwgCcoAfKfYKgS2wHMA+KAXigG8AsACgoUAG4BDADbEIALijIA3MIC+w4aEhQAchKpU4AdxRpMOAkTKUa9Ri3Z0oxPBABmrCLi69UGLHiELrjunrhQAPxEEGLUUArwSMgcSkA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type Foo<T extends number | string> = {
  value: T;
}

type Narrow<T extends number | string | undefined> = T extends undefined ? never : Foo<T>;
//                                                                                     ^
// ERROR: Type 'string | number | undefined' is not assignable to type 'string | number'.
```

### 🙁 Actual behavior

In the above example, `T` throws an error when passed to `Foo` because the compiler believes `T` could be undefined. 

### 🙂 Expected behavior

The condition has checked if `T` extends undefined so I would expect `T`'s type to be narrowed from `string | number | undefined` to `string | number` on the right side of the ternary operator.
Repository: godot
Issue: CanvasItem Function 'draw_mesh' is not Affected by Transform or Modulation Parameters in GLES2
Labels: bug,topic:rendering,topic:2d

### Godot version

3.3 stable

### System information

Ubuntu 21.04, GLES2, Mesa Intel® UHD Graphics 630 (CFL GT2)

### Issue description

The Canvas Item function ```draw_mesh``` has four parameters but two of them, transform and modulate, do not affect the drawing of the mesh in GLES2.

### Steps to reproduce

1. Create a project in GLES2
2. Add a CanvasItem node to the scene and attach a script to it
3. In the script use ```draw_mesh```  in ```_draw()``` to draw a QuadMesh
4. Change the transform and modulate parameters of ```draw_mesh```, they should work in GLES3 but not in GLES2 

### Minimal reproduction project

[MinimumProduct.zip](https://github.com/godotengine/godot/files/7636978/MinimumProduct.zip)
Repository: pytorch
Issue: TorchScript incomptaible with non-persistent buffers
Labels: oncall: jit,Stale

Consider a module that has non-persistent buffers:

```python
class MyModule(nn.Module):
  def __init__(self):
    super().__init__()
    self.param = nn.Parameter(torch.zeros([1,2,3]))
    self.register_buffer('buffer', torch.zeros([1,2,3]), persistent=False)

  def forward(self, x):
     return x

m = MyModule()
print(m.state_dict().keys())
sm = torch.jit.script(m)
print(sm.state_dict().keys())

# output:
# odict_keys(['param'])
# odict_keys(['param', 'buffer'])
```

The `state_dict` for this module only contains `param` but when converted to a `ScriptModule`, its `state_dict` includes both `param` and `buffer`. This mismatch means that I can't take a `state_dict` from the `Module` and load it into the equivalent `ScriptModule` with `strict=True`.
Repository: flutter
Issue: Better error message when displaying a FlutterEngine that hasn't been run
Labels: platform-ios,engine,P2,team-ios,triaged-ios

The current behavior is Flutter crashing on an assertion.

```objc
-(void)viewDidAppear:(BOOL)animated {
  FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"" project:nil];
  // When the following `run` call is missing erroneously, Flutter just crashes in an assert.
  // We should provide better feedback.
  // [engine run];
  FlutterViewController* viewController = [[FlutterViewController alloc] initWithEngine:engine nibName:nil bundle:nil];
  [self presentViewController:viewController animated:NO completion:nil];
  [super viewDidAppear:animated];
}
```
Repository: flutter
Issue: Windows app crashes when pressing "Insert" key.
Labels: a: text input,engine,platform-windows,a: desktop,P2,team-windows,triaged-windows

When I run a Windows app, and press "Insert" using the master channel, it crashes the app.

When it crashes, in the (Dart) exception, it gives the key event as:

```
RawKeyDownEvent#a2ba8(logicalKey: LogicalKeyboardKey#000ff(keyId: "0x16000000ff", keyLabel: "",
debugName: "Key with ID 0x016000000ff"), physicalKey: PhysicalKeyboardKey#70053(usbHidUsage:
"0x00070053", debugName: "Num Lock")) and its data: RawKeyEventDataWindows#f7e83(keyCode: 255,
scanCode: 57413, characterCodePoint: 0, modifiers: 0)
```

Which is weird to me, since it isn't the NumLock key, it's the Insert key.

The keycode for Insert should be 0x2d, not 0xff.

It's might be crashing because it looks at "NumLock" and thinks it needs to synchronize modifiers, but no modifier flags are set (because it's not a modifier).

Reproduction steps:

1) `flutter create --platform=windows foo`
2) `cd foo`
2) `flutter run -d windows`
2) Press "Insert" key.
3) Crash.

I was able to repro this with the b865e23 master build.

cc @dkwingsmt
Repository: rust
Issue: rustdoc: Inlining a foreign public struct with private fields shows the fields as private in the current crate
Labels: T-rustdoc,A-visibility,C-bug,A-cross-crate-reexports

```rust
// inner crate
pub struct S {
  pub x: i32,
  y: i32,
}

// outer crate
pub use inner::S;
```

![image](https://user-images.githubusercontent.com/23638587/144327690-dce80280-a474-47bf-980a-2d791d8b43c4.png)

_Originally posted by @jyn514 in https://github.com/rust-lang/rust/pull/91408#discussion_r760635400_
Repository: flutter
Issue: OpacityLayer can use twice the memory as needed if its children are not stable
Labels: engine,perf: memory,P3,team-engine,triaged-engine

OpacityLayer will attempt to cache its children and render them with an alpha value as it renders from the cache. This is around the same speed as doing a saveLayer with the alpha value, which is the default fallback implementation, but it can be much faster if the children are stable and it can reuse their cache entry from the previous frame.

If the children are not stable, it should be similar in performance to saveLayer anyway, but there are a few drawbacks to our layer raster cache that make it less than ideal:

- If the children are unstable then on each frame we will cache the new children, render them with alpha from the cache, and then only delete the old cache entry at the end of the frame - thus we have 2x the memory for the children for the bulk of the work on every frame (the old cache entry and the new one). Between frame renderings there is only a single cache entry, though.
- If we reimplement the cache to make cache eviction and populate decisions in a single pass rather than split between Preroll (for populating) and a final cleanup pass (for evictions), then we would avoid having both cache items around during the rendering pass
- If we did the cache evict/populate in a single pass, we might find that we can reuse the cache entry from the previous children, but by this point the savings over a saveLayer may be minimal (would need to test to be sure).

The peephole optimizations being added in https://github.com/flutter/engine/pull/29775 may remove the need for caching or saveLayers, provided the conditions are met for the peephole validation.
Repository: pytorch
Issue: Implement reparameterized sampling for LKJCholesky distribution w.r.t. concentration parameter
Labels: module: distributions,triaged,Stale

## 🚀 Feature
Implement `LKJCholesky.rsample` to enable differentiability with respect to the `concentration` parameter.

## Motivation
As suggested by @Balandat, we use a Beta distribution in `LKJCholesky.sample` that already has `rsample` implemented. By using `beta.rsample`, it should be feasible to support reparameterization gradients for LKJCholesky w.r.t. `concentration` param.

## Additional context

I created a draft PR for this - https://github.com/pytorch/pytorch/pull/69280. While we are able to get the gradient through `rsample`, I am getting consistent disagreement between the score function and reparameterized gradient estimators and I am still debugging the source of this discrepancy. I have added a test in `test/distributions/test_reparam.py` to illustrate this issue, and will be debugging it in the coming days. Please feel free to suggest other ideas/possibilities on what could be going wrong. 

cc. @fehiepsi 


cc @fritzo @neerajprad @alicanb @nikitaved
Repository: create-react-app
Issue: Webpack settings: "IgnorePlugin(/^\.\/locale$/, /moment$/)" cost is linear with dependency count
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

React-scripts builds is unnecessarily slow for industrial projects (ex: ~50 dependencies). After analysis with SMP, **the webpack plugin to ignore Method.js huge locale files cost 40-60s for such a project (for a total build time of 1min40, it is more than 50% of performances lost)**. If you do not use Method.js, it is a total loss of build-time on each code modification.

Also, according to Moment NPM page: **_"Moment.js is a legacy project, now in maintenance mode. In most cases, you should choose a different library."_**

### Describe the solution you'd like

1. Please **just add a configuration** (ENV variable ?) **to disable this webpack plugin if we don't use Moment.js**. For ex, same as the one for disable webpack ESLint plugin.

or

2. In the webpack.config.js file, check if directory "node_modules" contains a moment sub directory before adding the ignore plugin ? With a code similar to:
```
try {
  fs.existsSync('./node_modules/moment');
  shouldAddIgnorePlugin = true;
} catch (err) {
  shouldAddIgnorePlugin = false;
}
```

### Describe alternatives you've considered

The only alternative I found for now is to use **react-app-rewired** (and optionally **customize-cra** and remove the plugin manually with the code below:

```
config.plugins = (config.plugins || []).filter(
    (plugin) =>
      !(
        // IgnorePlugin for huge local files of the popular Moment.js library
        (
          plugin instanceof webpack.IgnorePlugin &&
          plugin.resourceRegExp === /^\.\/locale$/ &&
          plugin.contextRegExp === /moment$/
        )
      )
  )
```

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

(Write your answer here.)
Repository: vscode
Issue: Move telemetry cleansing into shared process
Labels: debt,telemetry

Follow up from https://github.com/microsoft/vscode/issues/138153

We do a bunch of cleansing operations so that we lower the chances to accidentally leak PII or any other sensible data to telemetry. This currently happens in the renderer process and therefore can impact performance, esp. startup performance. I also don't know how/if we clean telemetry from other processes, like the main process. Since telemetry is send from the shared process we should do the cleansing there so that even mistakes don't impact startup performance
Repository: vscode
Issue: Dynamic scaling of codelens font size different from 90%
Labels: feature-request,code-lens

<!-- ⚠️⚠️ 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 would like a simple way of setting `editor.codeLensFontSize` as dynamic (i.e. changing with zoom). Kind of what it is like when setting to 0, but i think 90% of editor font is slightly large. Instead of adjusting this percentage, I think it would be better if there was an option to pass this. 

Suggestion: 
Let `editor.codeLensFontSize` take either absolute or percentage numbers, marked by either "%" or "0.<value>"  

* `editor.codeLensFontSize: 75%` -> 75% of `editor.fontSize`
* `editor.codeLensFontSize: 14` -> font size 14
Repository: flutter
Issue: Add space between English words and Chinese words.
Labels: framework,a: internationalization,a: fidelity,a: typography,c: proposal,P2,team-framework,triaged-framework

As I see, flutter rendered text are not as beautiful as original iOS do. The main difference is That iOS will add a special space between English words and Chinese words.
For example:
`我是abc的朋友`
In iOS,It will looks like 
`我是 abc 的朋友`
The space between English words and Chinese words is not as width as a 'space', maybe half of it. And this looks really more beautiful. As I know ,iOS add this feature since iOS13, which is really very nice. But Flutter use it's own render engine, so there is no way to get the feature.
Insert 'space' between English words and Chinese words by code may solve this , but is not as perfect looking as iOS do.
Repository: pytorch
Issue: `out=` variant for `conj` unary operator
Labels: triaged,module: complex,Stale

## 🚀 Feature

For consistency reasons, will it be worth having an `out` variant for `conj` operator in PyTorch?

## Motivation/Pitch

This came to notice while trying to implement operators for Sparse CSR layout in PyTorch. Some of the ops not having `out` variants make us do extra "specific" stuff for them, like not using the common macros and writing separate implementations. In general as well, I believe, having an `out` variant for `conj` is good for consistency reasons.

cc: @IvanYashchuk @mruberry 

cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved
Repository: pytorch
Issue: Inplace and `out` variants for `positive` operator in PyTorch
Labels: triaged,module: ux,Stale

## 🚀 Feature

Will it be worth having an inplace and `out` variant for `positive` operator? For consistency reasons, it might be worth taking a look.

## Motivation/Pitch

(Copied from [here](https://github.com/pytorch/pytorch/issues/69287)):

> This came to notice while trying to implement operators for Sparse CSR layout in PyTorch. Some of the ops not having out variants make us do extra "specific" stuff for them, like not using the common macros and writing separate implementations. In general as well, I believe, having an out variant for conj is good for consistency reasons.

cc: @IvanYashchuk @mruberry
Repository: next.js
Issue: Error page if url contains percentage, which happens on redirection with non  ascii characters in url
Labels: Navigation

### What version of Next.js are you using?

12

### What version of Node.js are you using?

12.22.0

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

next start

### Describe the Bug

we get 400 Bad request if page contains "%", we also don't get error/issue on terminal it just compiles _error
![image](https://user-images.githubusercontent.com/52538450/144402585-5b12b2e6-e6ec-4fac-9738-a6879d29e0cb.png)

This occurs because we are redirecting url's with non ascii characters, our page old-page/à becomes page/%E0
```
  return {
    redirect: {
      destination: `/page/${query?.id || ""}`,
      permanent: false,
    },
  };
```

I think while redirecting it is encoding url, so we get %. nevertheless it should not break i think

### Expected Behavior

Redirect correctly, without changing url

### To Reproduce

Open a url with %
Repository: flutter
Issue: [Android] Split apk size significantly varies with no change in code
Labels: platform-android,tool,engine,a: size,a: build,P2,team-android,triaged-android

I don't know if this is worth writing. But I just build my apk (`flutter build apk --split-per-abi`) and the output size was 10MB. But just a few commit back i was getting 20MB size. 
And i haven't added/removed anything much between those two commit. As far i can see new 10MB apk is working fine. 
But 10MB difference in size is quite huge. Is it safe to release the 10MB build for my users ? Or i did something wrong ?

What information should i put here for you guys to proceed with issue.
Repository: godot
Issue: Directory.remove() doesn't work in exported builds for files local to the game's directory
Labels: bug,topic:core

### Godot version

3.4.stable

### System information

Windows 10

### Issue description

In my game I use this code to delete the save file of a player, in case they want to start over:
```
var dir = Directory.new()
	var err = dir.remove(save_filename)
	if err != OK:
		print("file deletion failed: ", err)
	else:
		print("save deleted succesfully")
```

Where `save_filename` is a filename local to the game's folder, like `"testfile.txt"` (for smaller game jam games, I prefer to put the savefile in the game's own directory, so it won't clutter up the user's PC with residual files after finishing the game)

Unfortunately, while this *does* work when running the game in the editor, it *doesn't* work after exporting the game. In that case it prints:

`file deletion failed: 2`

...where "2" is an error code for `ERR_UNAVAILBLE`.


### Steps to reproduce

1. Open the reproduction project in the editor.
2. Run the game. It should create a file `testfile.txt` and then delete it after 3 seconds.
3. Now export the game to desktop with debug enabled, and run the exported game. It should create a file `testfile.txt` again, but it *doesn't* delete it this time and instead prints the error mentioned before.

### Minimal reproduction project

[delete_file_bug.zip](https://github.com/godotengine/godot/files/7641151/delete_file_bug.zip)
Repository: terminal
Issue: Using ConPTY with CreateProcessWithLogon and CreateProcessWithToken
Labels: Issue-Feature,Product-Conpty,Area-Server

The documentation only covers same-user scenario with `CreateProcess` function. There is no mention whether `CreatePseudoConsole` also works with `CreateProcessWithLogon`, `CreateProcessWithToken` and similar functions. 

It seems as if this scenario is not supported. `CreateProcessWithLogon` fails with `ERROR_INVALID_PARAMETER` (87) message. However, given how cryptic the message is, the underlying issue might be also elsewhere.
Repository: go
Issue: proposal: x/net/http2: support for WebSockets over HTTP/2
Labels: Proposal

### What version of Go are you using (`go version`)?

<pre>
go version go1.17.3 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes.

### What did you do?

I wanted to use Websockets over HTTP2.

### What did you expect to see?

Support for it in Go standard library.

### What did you see instead?

It does not support it yet.

See https://github.com/golang/go/issues/46319 for background.

[WebSockets over HTTP2](https://datatracker.ietf.org/doc/html/rfc8441) have been standardized as RFC 8441 and [Firefox and Chromium](https://www.chromestatus.com/feature/6251293127475200) supports that. Thus, I suggest that support is added for Websockets over HTTP2. The server should also be able to specify using HTTP/2 SETTINGS parameter that it supports Websockets over HTTP2.
Repository: PowerToys
Issue: Remove restriction (modifiers) for Hotkeys
Labels: Idea-Enhancement,Help Wanted

### Description of the new feature / enhancement

Hi,
I think it would be nice not to be forced to use WINDOWS, CTRL, SHIFT etc. in addition to the Hotkey or disable that force via checkbox.

### Scenario when this would be used?

Using a Buttonbox, Streamingdeck or extended Keyboard (e.g. F13-F20) would be more useful and faster without the system keys.

### Supporting information

_No response_
Repository: opencv
Issue: Task: split cv2.cpp compilation
Labels: feature,category: python bindings,category: build/install

Issue: weekly [valgrind build](http://pullrequest.opencv.org/buildbot/builders/master-contrib_valgrind-lin64-debug/builds/10204) is broken.

```
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
```

Additional related feature:
- dedicated binary for opencv_contrib Python bindings
Repository: angular
Issue: tick and fakeAsync doesn't work well in Angular 13 with rxjs 7 debounceTime
Labels: area: testing,area: zones,P3

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

Yes

### Description

I upgraded to angular 13 and then tried upgrading rxjs to 7. The problem is it seems rxjs has changed the way the debounceTime operator works: https://rxjs.dev/6-to-7-change-summary#debouncetime. Because of this a lot of my tests now fail because the fakeasync scope and debounceTime don't work well when the debounceTime is set up outside of a fakeAsync scope.
If you run the test in this file: https://github.com/bgerstle-quot/debounceTest/blob/master/src/app/app.component.spec.ts the first test passes and the second fails.

### Please provide a link to a minimal reproduction of the bug

https://github.com/bgerstle-quot/debounceTest/blob/master/src/app/app.component.spec.ts

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 13.0.4
Node: 16.13.0
Package Manager: yarn 1.22.5
OS: linux x64

Angular: 13.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1300.4
@angular-devkit/build-angular   13.0.4
@angular-devkit/core            13.0.4
@angular-devkit/schematics      13.0.4
@angular/cli                    13.0.4
@schematics/angular             13.0.4
rxjs                            7.4.0
typescript                      4.4.4
```


### Anything else?

_No response_
Repository: terminal
Issue: Vi mode (READ: Allow selection keys to be rebound to different keys)
Labels: Issue-Feature,Area-Settings,Product-Terminal

# Description of the new feature/enhancement

This issue suggests implementing a "Vi mode" similar to the very convenient one implemented by Alacritty, where the user can 
move the cursor around, select and copy text using the keyboard alone in a fashion familiar to most programmers and power users;

* The user presses a predefined keyboard shortcut to enter Vi mode
* Once in Vi mode, the cursor is movable in the current terminal buffer using Vi motions (h j k l)
* 'V' enters visual mode, where text can be selected and copied ('y')
* '/' and '?' enter search mode where text can be searched and then copied