sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: [Terminal]: 'Save' and 'Discard Changes' button should remain in disabled state until we don't make any changes inside Settings page.
Labels: Issue-Feature,Area-Accessibility,Product-Terminal,Priority-3,HCL-E+D,Area-SettingsUI,A11yUsable,HCL-WindowsTerminal,A11yCO

### Windows Terminal version

1.13.10336.0

### Windows build number

10.0.22543.1000

### Other Software

**Test Environment:**
OS: Windows 11 Version Dev (OS Build 22543.1000)
App: Windows Terminal Preview
Screen Reader: Narrator

### Steps to reproduce

**Repro Steps:**
1. Open Windows Terminal.
2. Open Settings page using 'Ctr+,'.
3. Observe the issue.

**User Experience:**
Users UX will not be good especially Screen Reader as nothing will happen when they activate 'Save' and 'Discard' as result they will not be able to figure out whether these buttons are actionable or not.

**Attachments:**
['Save' and 'Discard Changes' button should remain in disabled state until we don't make any changes..zip](https://github.com/microsoft/terminal/files/8021036/Save.and.Discard.Changes.button.should.remain.in.disabled.state.until.we.don.t.make.any.changes.zip)


### Expected Behavior

'Save' and 'Discard Changes' button should remain in disabled state until we don't make any changes inside Setting page.

### Actual Behavior

'Save' and 'Discard Changes' buttons are in active state even if they are not actionable inside Setting page.
Repository: opencv
Issue: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
Labels: incomplete

ubuntu 20.04 
opencv3.4.15
ffmpeg:4.4.1
Repository: flutter
Issue: flutter test needs to support `--multidex` for integration tests
Labels: a: tests,c: new feature,platform-android,tool,f: integration_test,P3,team-android,triaged-android

## Use case

integration tests will build a entire App including plugins. 
These Apps can then contain > 64k methods and installation will fail (Flutter warns about a missing `--multidex` option).

## Proposal

Extend https://github.com/flutter/flutter/pull/92049 to add the multidex flag to `flutter test`.
Repository: godot
Issue: Error creating a CollisionPolygon2D from an image: decompose_polygon_in_convex: Convex decomposing failed!
Labels: bug,topic:core,needs testing,topic:2d

### Godot version

3.4.2 stable

### System information

Linux Mint 20.2 Cinnamon 5.0.7

### Issue description

Trying to create a StaticBody2D from an image via BitMap.opaque_to_polygons().  It seems to generate invalid polygons when the pixels are in certain configurations, giving the error:

```
E 0:00:00.614   decompose_polygon_in_convex: Convex decomposing failed!
  <C++ Source>  core/math/geometry.cpp:675 @ decompose_polygon_in_convex()

```
Also, if Visible Collision Shapes in enabled, another error is generated:-
```
E 0:00:00.614   canvas_item_add_polygon: Invalid polygon data, triangulation failed.
  <C++ Error>   Condition "indices.empty()" is true.
  <C++ Source>  servers/visual/visual_server_canvas.cpp:725 @ canvas_item_add_polygon()

```

### Steps to reproduce

Run the project linked below.  The exact error and the line that produces the error is indicated.

### Minimal reproduction project

https://github.com/SteveSmith16384/ImageToCollisionShapeProblem
Repository: TypeScript
Issue: tsc won't compile newly added references in watch mode
Labels: Bug,Help Wanted

# Bug Report

tsc won't compile newly added references in watch mode, while it compiles on initial start

I don't know if this description is clear :(  
so i put an demonstration image in `Steps to reproduce` section

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

is:issue is:open references
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

Typescript version : 4.5.5
<!-- 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:
-->
### ⏯ Github repo

[https://github.com/ryanroe/tsc-references-bug](https://github.com/ryanroe/tsc-references-bug)
<!--
  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.
-->

### 💻 Steps to reproduce

1. clone the repo
```
git clone https://github.com/ryanroe/tsc-references-bug
cd tsc-references-bug
npm install
npx tsc --build ./tsconfig.json -w
```

2. open with Visual Studio Code (or any other editors) and remove the `references` field of **root tsconfig.json**
3. save
4. undo last operation (restore the `references` field)

![tsc-references-bug](https://user-images.githubusercontent.com/20389952/152952575-a912b772-aee1-429f-bc8c-3f90b35a1506.gif)

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->

tsc says the compilation is successful

```
Found 0 errors. Watching for file changes
```

### 🙂 Expected behavior

tsc should complain about the error of referenced project as initial start

```
error TS2304: Cannot find name 'a'.
```
<!-- What you expected to happen instead, and why -->




**BUT** when i removed the `files` field of **root tsconfig.json** , everything works!
Repository: pytorch
Issue: test_del (jit.test_builtins.TestBuiltins) fails due to highlight assertions
Labels: oncall: jit

### 🐛 Describe the bug

[test_del](https://github.com/pytorch/pytorch/blob/5e6f29661254e5ebc97fac3d829e5d455cda5864/test/jit/test_builtins.py#L83) in `jit.test_builtins.TestBuiltins` runs as expected but the assertion by highlight of the result fails with error message `RuntimeError: Expected to find "a"highlighted but it is not.` even though the `a` is correctly highlighted in the output.

```python
======================================================================
ERROR: test_del (jit.test_builtins.TestBuiltins)
----------------------------------------------------------------------
RuntimeError: 
undefined value a:
  File "/theia/scratch/brussel/vo/000/bvo00005/vsc10122/easybuild/install/zen2/build/PyTorch/1.10.0/foss-2021a-CUDA-11.3.1/pytorch/test/jit/test_builtins.py", line 94
                a = x ** 2
                del a
                return a
                       ~ <--- HERE


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/theia/scratch/brussel/vo/000/bvo00005/vsc10122/easybuild/install/zen2/build/PyTorch/1.10.0/foss-2021a-CUDA-11.3.1/pytorch/test/jit/test_builtins.py", line 91, in test_del
    def fn(x):
  File "/user/brussel/101/vsc10122/easybuild/install/zen2/tmp/eb-Pu4WSO/tmpOhRMcx/lib/python3.9/site-packages/torch/testing/_internal/jit_utils.py", line 92, in __exit__
    FileCheck().check_source_highlighted(self.highlight).run(str(value))
RuntimeError: Expected to find "a"highlighted but it is not.

undefined value a:
  File "/theia/scratch/brussel/vo/000/bvo00005/vsc10122/easybuild/install/zen2/build/PyTorch/1.10.0/foss-2021a-CUDA-11.3.1/pytorch/test/jit/test_builtins.py", line 94
                a = x ** 2


----------------------------------------------------------------------
```
These test do pass if `assertRaisesRegexWithHighlight()` is replaced by a regular string match with `assertRaisesRegex()`.

### Versions

```
Collecting environment information...
PyTorch version: 1.10.2
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: CentOS Linux release 7.9.2009 (Core) (x86_64)
GCC version: (GCC) 10.3.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.17

Python version: 3.9.5 (default, Sep 27 2021, 19:51:54)  [GCC 10.3.0] (64-bit runtime)
Python platform: Linux-3.10.0-1160.49.1.el7.x86_64-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 11.3.109
GPU models and configuration: 
GPU 0: NVIDIA A100-PCIE-40GB
GPU 1: NVIDIA A100-PCIE-40GB

Nvidia driver version: 470.82.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[pip3] torch==1.10.2
[conda] Could not collect
```
Repository: go
Issue: net/http: incorrect self link in package documentation
Labels: Documentation,NeedsFix

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.17.6 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes, including tip.

### Description ###

The link https://golang.org/pkg/net/http/#example_ResponseWriter_trailers is incorrect, since the html `ID` of the example is `example-ResponseWriter-Trailers`.
Repository: material-ui
Issue: [Tooltip] Component inconsistent behaviour
Labels: component: tooltip

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Tooltip component is working inconsistently when I hover and click on the trigger element compared to when I just hover over it. In case of hover and click on trigger element (for example you hover over the button - tooltip is shown - you also click on button) tooltip itself is closed as soon as you click inside tooltip, what is not happening when you don't do extra click on trigger element.

### Expected behavior 🤔

I would expect additional click (unnecessary it is, but users are still doing it sometimes for whatever reasons) to not affect closing tooltip behaviour.

### Steps to reproduce 🕹

https://mui.com/components/tooltips/

Scenario 1:
1. Hover over tooltip component trigger element
2. Tooltip is opened
3. Click inside tooltip
4. Tooltip stays open until mouse is moved out of tooltip area

Scenario 2:
1. Hover over tooltip component trigger element
2. Tooltip is opened
3. Click on the tooltip component trigger element
4. Click inside tooltip
5. Tooltip is closed

### Context 🔦

I have a link inside tooltip that is not working in scenario 2, probably because tooltip is closed and further events are not propagated. `disableFocusListener` option fixes behaviour for me so I guess this have to do something with focus listeners that are there

### Your environment 🌎

Can be reproduced on all tooltips from https://mui.com/components/tooltips/ that don't have `disableFocusListener` option
Repository: flutter
Issue: ExpandIcon: allow custom IconData
Labels: c: new feature,framework,f: material design,waiting for PR to land (fixed),team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

When using an `ExpandIcon` it would be nice to be able to use a custom icon. Currently it defaults to the material icon `Icons.expand_more` which might not fit everywhere (it is quiet fat).

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal

I would add a nullable (optional) `IconData? iconData` field but always default to `Icons.expand_more` if iconData is null inside the `IconData` property of the `IconButton` of `ExpandIcon`.

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: vscode
Issue: Adopt selection support in notebook diff / interactive editor to enable in-editor history
Labels: debt,workbench-history,notebook-diff

https://github.com/microsoft/vscode/commit/7858e237ae3cc69658ba4e8830c23a24deac2a45#diff-330f92e5612e8f9dcc91e85d694b6e10fdaa5f14c384157edfd27dfbbf0f8684 added support for selection in notebook editor to participate in history navigation by recording locations for each cell change. This is not yet adopted for these two:
* `NotebookTextDiffEditor`
* `InteractiveEditor`

Fyi for text diff editors we implemented this in a simple way by just delegating to the right hand (modified) side. This is not 100% correct because you could compare 2 different files via explorer where both sides are editable, but I have not heard complaints so far.
Repository: material-ui
Issue: [Snackbar] Snackbar crashes with error 'Cannot read properties of null (reading 'style')'
Labels: component: snackbar

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

My `CustomSnackbar` component reacts to the state of a checkbox. Sometimes the snackbar crashes after the first click on the checkbox, sometimes it takes 10 clicks on the checkbox to get the following error:
```
 Cannot read properties of null (reading 'style') at eval (uim7f.csb.app/node_modules/@mui/material/Grow/Grow.js:99:10)
 ...
 The above error occurred in the <Transition> component:
    at Transition (https://uim7f.csb.app/node_modules/react-transition-group/esm/Transition.js:35:30)
    at Grow (https://uim7f.csb.app/node_modules/@mui/material/Grow/Grow.js:36:26)
```
## [Reproduction example](https://codesandbox.io/s/snackbar-error-uim7f?file=/src/CustomSnackbar.tsx)
Browser Chrome: 98.0.4758.80
 OS: macOS 12.1

### Expected behavior 🤔

Snackbar should appear and disappear according to state changes without errors. 

### Steps to reproduce 🕹

Steps:

1. Open [reproduction example](https://codesandbox.io/s/snackbar-error-uim7f?file=/src/CustomSnackbar.tsx)
2. Click on the checkbox until the error appears

### Context 🔦

In the app I work on the checkbox sends requests to the server and informs a user whether their action was successful. 

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  System:
    OS: macOS 12.1
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: 1.22.17 - ~/node_modules/.bin/yarn
    npm: 8.3.0 - ~/node_modules/.bin/npm
  Browsers:
    Chrome: 98.0.4758.80
    Edge: Not Found
    Firefox: 95.0.2
    Safari: 15.2
  npmPackages:
    @emotion/react: ^11.7.1 => 11.7.1 
    @emotion/styled: ^11.6.0 => 11.6.0 
    @mui/base:  5.0.0-alpha.67 
    @mui/icons-material: ^5.3.1 => 5.3.1 
    @mui/material: ^5.4.0 => 5.4.0 
    @mui/private-theming:  5.3.0 
    @mui/styled-engine:  5.3.0 
    @mui/styles:  5.2.3 
    @mui/system:  5.4.0 
    @mui/types:  7.1.0 
    @mui/utils:  5.3.0 
    @types/react: ^17.0.38 => 17.0.38 
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
    typescript: ^4.5.5 => 4.5.5 
```
</details>
Repository: rust
Issue: Match and if checking for range of integer values isn't optimized to lookup table
Labels: A-LLVM,I-slow,T-compiler,C-optimization

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
#![feature(exclusive_range_pattern)]

pub fn bublik(i: i32) -> i32 {
    if i > 0 && i < 10 {
        1
    } else if i >= 10 && i < 20 {
        2
    } else if i >= 20 && i < 30 {
        3
    }
     else {
        0
    }
}

pub fn bublik_match(i: i32) -> i32 {
    match i {
        0..10 => 1,
        11..20 => 2,
        21..30 => 3,
        _ => 0,
    }
}
```
https://rust.godbolt.org/z/r9hvh6arW

I expected to see this happen: Code optimized to simple table lookup, like here https://godbolt.org/z/6snjG7EM8

Instead, this happened: Code compiled to series of conditional jumps

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.60.0-nightly (734368a20 2022-02-07)
```

</p>
</details>
Repository: godot
Issue: Garbled text on creating a method call track in the animationplayer
Labels: enhancement,topic:editor,topic:animation

### Godot version

v3.5.beta1.official [b9b23d222]

### System information

w10 64

### Issue description

When you click on "+ Add track" -> "Method Call track".
This brings up a node selection box, this box has the title "Select the node will be animated".
This is confusing. The title should be "Select the node that contains the method to call".
I am going to animate a sprite node but the node that has the script with the method that I want to call is another node, it is not that sprite node. 
If I obey the title of that panel, then I will select my Sprite node but my sprite node doesn't have the script assigned with the method I want to call.

https://user-images.githubusercontent.com/19652075/152982108-8533d702-f8ff-4ab7-a3bb-4591d58c8aee.mp4


### Steps to reproduce

See the video

### Minimal reproduction project

...
Repository: godot
Issue: Lastly placed Tilemap tile renders onto Canvaslayer with ColorRect as a child and negative Layer property
Labels: documentation,topic:2d

### Godot version

v4.0.alpha1.official [31a7ddbf8]

### System information

Windows 10, Vulkan, Intel hd 520

### Issue description

I have scene tree that looks like this:
![Snímek obrazovky 2022-02-08 125139](https://user-images.githubusercontent.com/48383258/152981706-95d9a4e8-befc-4aaf-b8c9-fd94ac5c7af3.png)
Tile that I place last will be rendered onto the CanvasLayer, that has ColorRect as a child and negative layer (in my case -1)
![image](https://user-images.githubusercontent.com/48383258/152982164-5a1f5b5c-4f59-4613-b4a5-f578cc6cf7df.png)




### Steps to reproduce

Create 2D scene with Tilemap, Player with basic movement and Camera2D, CanvasLayer with ColorRect as a child and negative layer. Place few tiles.

![image](https://user-images.githubusercontent.com/48383258/152982598-5f37d1d5-b5c3-4280-9d43-70c1c3dc05c9.png)


### Minimal reproduction project

[tilemap bug.zip](https://github.com/godotengine/godot/files/8023546/tilemap.bug.zip)
Repository: opencv
Issue: Why user builded the opencv.js can not use in html page directly.
Labels: question (invalid tracker),category: javascript (js)

I have build a javascript opencv.js for my web page.
build process is successful.
when add it script to html, onload callback debug log the cv is a promise.
But use the official link: https://docs.opencv.org/4.5.5/opencv.js, all of is OK.
Is any steps missed? the build guidance is ref from https://docs.opencv.org/4.5.5/d4/da1/tutorial_js_setup.html
Thanks very much.
Repository: godot
Issue: Collisions using PhysicsServer3D
Labels: bug,documentation,topic:physics,topic:3d

### Godot version

4.0 dev

### System information

Windows 10, Vulkan, GeForce GTX 1080 Ti

### Issue description

I am a bit stuck with a minor issue with PhysicsServer3D in a new Godot 4.0 and there's no docs yet.  I am trying to create a procedural mesh with collisions and I am calculating vertices and faces for this purpose. Here's how I format the faces:

```gdscript
var vertices : PackedVector3Array
var faces: PackedVector3Array

# Returns the meshes vertices, ordered as triangle points (a, b, c, a, b, c, …).
func calc_face_vertices():
	faces.resize(triangles.size())
	for i in triangles.size():
		# face vertex = vertices at index of current triangle point.
		faces[i] = vertices[triangles[i]]
	return faces
```

And here's how I am unsuccessfully trying to fill them into the collision shape using PhysicsServer3D:
```gdscript
var _body_rid: RID
var _shape_rid: RID

# Create a collision using PhysicsServer <- This doesn't work !!!
var data = {
"faces" : faces,
}
_body_rid  = PhysicsServer3D.body_create()
_shape_rid = PhysicsServer3D.concave_polygon_shape_create()
PhysicsServer3D.body_set_mode(_body_rid, PhysicsServer3D.BODY_MODE_STATIC)
PhysicsServer3D.shape_set_data(_shape_rid, data) # <- faces are in incorrect format
# dict with "faces" key matches the format but still won't collide
PhysicsServer3D.body_add_shape(_body_rid, _shape_rid)
PhysicsServer3D.body_set_state(_body_rid, PhysicsServer3D.BODY_STATE_TRANSFORM, global_transform)
PhysicsServer3D.body_set_collision_layer(_body_rid, 1)
PhysicsServer3D.body_set_collision_mask(_body_rid, 1)
```

I get this error for the line with comment: 
E 0:00:00:0353   _ready: Condition "!d.has("faces")" is true.
  <C++ Source>   servers/physics_3d/godot_shape_3d.cpp:1613 @ set_data()
  <Stack Trace>  [face.gd:77](http://face.gd:77/) @ gen_face()
                 [planet.gd:93](http://planet.gd:93/) @ _ready()

Any idea what am I doing wrong? Should I use ConcavePolygonShape3D somehow? 
I also tried to encapsulate the faces inside the dictionary. The error disappears, however the collisions won't work.

### Steps to reproduce

I've created a minimal example (see the attachment). There's a bool variable USE_SERVER in the declaration part. If false, the example uses the classic Body+CollisionShape approach and collisions work. However, if it's true, the PhysicsServer part is used and collisions won't work.

Maybe someone could try to make it work in the example. Help would be much appreciated ;)

### Minimal reproduction project

[min_example.zip](https://github.com/godotengine/godot/files/8024518/min_example.zip)
Repository: godot
Issue: Yield causes an error if save_on_focus_loss is true
Labels: bug,topic:gdscript,topic:editor

### Godot version

3.x

### System information

linux

### Issue description

If the Editor Setting save_on_focus_loss is true and the debug option "Synchronize Script Changes" is true then
yields that take a bit longer ( more than ~0.2s) will cause an error if the code tries to resume from the yield.

i tried it in 3.4.2.stable and the 3.5.beta1.


### Steps to reproduce

enable the Editor Setting save_on_focus_loss and the debug option "Synchronize Script Changes"
and yield() a function.

```
func _ready() -> void:
	print("first")
	yield(get_tree().create_timer(0.1), "timeout")
	print("second")
	yield(get_tree().create_timer(0.2), "timeout")#here it errored for me
	print("third")
	yield(get_tree().create_timer(0.3), "timeout")
	print("fourth")
	yield(get_tree().create_timer(0.4), "timeout")
	print("end")
```

### Minimal reproduction project

_No response_