sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/net/http2/h2c: h2cHandler does not respect server read/readheader/write timeouts
Labels: NeedsInvestigation

<!--
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 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes (see playground link below)


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/milesbryant/Library/Caches/go-build"
GOENV="/Users/milesbryant/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/milesbryant/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/milesbryant"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go@1.16/1.16.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go@1.16/1.16.13/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
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"
</pre></details>

### What did you do?

[Reproduction in Go playground](https://go.dev/play/p/R1kFWM3AbbF)

* Set up a http2.Server and wrap a slow handler in h2c.NewHandler. Set http.Server.WriteTimeout that we expect to hit before the handler returns
* Send a h2c request

### What did you expect to see?

An EOF error indicating that the server hit the WriteTimeout and reset the connection.
This is what we see for both plain http.Server, and http2.Server for full HTTP/2 with TLS.

### What did you see instead?

The h2c request succeeds even though the handler takes much longer than the WriteTimeout.
Repository: terminal
Issue: F6 should move focus into tab row
Labels: Issue-Feature,Help Wanted,Area-Accessibility,Product-Terminal

# Description of the new feature/enhancement

F6 is commonly used to cycle through layers of the UI tree. Windows Terminal doesn't do that. We should make Windows Terminal respect that.

# Proposed technical implementation details (optional)

1. introduce a new action called `moveRegion()` bound to <kbd>F6</kbd> by default
2. when pressed...
   - [context: terminal] move the focus to the tab row
   - [context: settings UI] move the focus to the navigation view pane (on the left), then to the tab row

This will definitely bring up issues with focus again, so keep a close eye on that when working on this.
Repository: material-ui
Issue: Tooltip followCursor for Mobile / followTouch
Labels: new feature,component: tooltip

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Right now, The Tooltip API allows you to specify `followCursor`, which makes the tooltip follow cursor. However, on mobile, if you tap on something with a tooltip, the tooltip just shows up on the top left of the screen.

I suggest adding a `followTouch` prop, that would make the tooltip open at the location where the user tapped, and if they touch and drag, the tooltip follows.

Alternatively, modify the logic of `followCursor`, so that it uses the behavior described above

### Examples 🌈

(Desired Behavior) How it works on Desktop:
![Desktop](https://user-images.githubusercontent.com/23089287/168131380-77ec3079-8cb9-4f36-855c-038acb00e49b.gif)



(Undesired Behavior) How it works on Mobile:
![Mobile](https://user-images.githubusercontent.com/23089287/168131583-3b7cd90a-3580-4ce9-a900-e57848847275.gif)



### Motivation 🔦

Better accessibility on mobile
Repository: create-react-app
Issue: A great bug, everyone has this issue "Invalid options object. Dev Server has been initialized"
Labels: needs triage,issue: bug report

reproduce.
https://github.com/bradtraversy/mern-tutorial/tree/main/frontend

I don't want to link the same issue form others. You can see everyone has the same issue. Not sure the stepup way works for me or not, but I hope there is a better way to do it..

Search it with the "Invalid options object. Dev Server has been initialized" on issue, you will see everyone has the same issue. 

I know it is caused by somekind of webpackage updated.
Repository: flutter
Issue: [pigeon] Have Objective-C `HostApi` and `FlutterApi` maintain a weak reference to `FlutterBinaryMessenger`
Labels: package,team-ecosystem,p: pigeon,P2,triaged-ecosystem

When using a `HostApi` that stores an object and the object also uses a `FlutterApi`, it creates a circular reference:

`Object`--S-->`FlutterApi`--S-->`BinaryMessenger`--S-->`HostApi`--S-->`Dictionary<int, Object>`
^-----------------------------------------------S------------------------------------------------/

I would expect that if the engine would release their reference to the `BinaryMessenger`, then the host apis and flutter apis should no longer need to handle/invoke methods. Therefore, their reference to it could be weak.
Repository: rust
Issue: Questionable suggestion to use `dyn` in UFCS syntax
Labels: A-diagnostics,T-compiler



Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
struct MyType(u32);

impl std::fmt::Display for MyType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
        <std::fmt::Octal>::fmt(&self.0, f)
    }
}
```

The current output is:

```
error[E0782]: trait objects must include the `dyn` keyword
 --> <source>:5:10
  |
5 |         <std::fmt::Octal>::fmt(&self.0, f)
  |          ^^^^^^^^^^^^^^^
  |
help: add `dyn` keyword before this trait
  |
5 |         <dyn std::fmt::Octal>::fmt(&self.0, f)
  |          +++

error[E0782]: trait objects without an explicit `dyn` are deprecated
 --> <source>:5:10
  |
5 |         <std::fmt::Octal>::fmt(&self.0, f)
  |          ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::fmt::Octal`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0782`.
Compiler returned: 1
```

This is correct, but a red herring. What the author is trying to do is `<Trait>::foo()` instead of `Trait::foo()`; because Rust expects a type in `<$ty>::foo()`, it falls back to "it's a trait object!". The _correct_ suggested remediation should be one of:
- `std::fmt::Octal::fmt(...)`
- `<_ as std::fmt::Octal>::fmt(...)`

Note that these suggestions only make sense for trait functions that take `self`; in any other case it should fall back to seeing `<Trait>::foo()` as `Trait::foo()` and emitting the relevant diagnostic.
Repository: PowerToys
Issue: FancyZones doesn't honor keyboard mapping made in Keyboard Manager
Labels: Issue-Bug,Product-FancyZones,Needs-Triage,Needs-Team-Response,Status-Reproducible

### Microsoft PowerToys version

0.58

### Running as admin

- [X] Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

Set CAPSLOCK to control
Drag window with SHIFT (preparing to snap to zone)
Hold down CAPSLOCK to 'extend to multiple zones'
Doesn't work, extension doesn't work
Try again with CONTROL key and works as expected

### ✔️ Expected Behavior

It would honor the CAPSLOCK functioning as CONTROL key

### ❌ Actual Behavior

Ignored that key (but worked with actual CONTROL key)

### Other Software

_No response_
Repository: vscode
Issue: showInputBox (and potentially others) support markdown in user visible strings
Labels: feature-request,quick-pick

<!-- ⚠️⚠️ 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. -->

Specifically I wanted to add markdown to the validation message here:
https://github.com/microsoft/vscode/blob/948711473e69ff3cca8201d7101277f95d2d4572/src/vscode-dts/vscode.d.ts#L1994

I think there are likely other spots where markdown would be useful as well. Seems like any 'string' displayed to a user would be nice to support markdown/html in it.
Repository: go
Issue: x/tools/gopls: gopls must be restarted to reflect settings changes for analyzers
Labels: gopls,Tools

In vscode, saving changes to the "analyses" section in the "gopls" settings does not affect the analyzers gopls uses, so gopls needs to be restarted.
Repository: storybook
Issue: withReactContext decorator not working as expected
Labels: bug,needs triage

**Describe the bug**
Adding the withReactContext decorator doesn't work as shown in the documentation.

**To Reproduce**

1. Create a .js file. 
2. Pass in the prop data to the Context.Provider "value" prop.
3. import Context and wrap the returned component with the Context.Provider.
4. Create an index.stories.js file and import the withReactContext decorator.
5. Add the withReactContext decorator property value to the decorators property in the "export default" object.


**System**
OS: macOS Monterey version 12.3.1
Processor: 2.4 GHz 8-core intel Core i9
Memory 32 Gb 2667 MHz DDR4

-     "@storybook/addon-actions": "^6.4.22",
-     "@storybook/addon-essentials": "^6.4.22",
-     "@storybook/addon-knobs": "^6.3.1",
-     "@storybook/addon-links": "^6.4.22",
-     "@storybook/node-logger": "^6.4.22",
-     "@storybook/preset-create-react-app": "^3.2.0",
-     "@storybook/react": "^6.4.22",
-     "storybook-react-context": "^0.6.0"


***Code***

AppContextWrapper.js
```
const Wrapper = ({
  children,
  entityData,
  siteData,
  components,
  supplemental,
  meta,
  siteEnv,
  allPages,
  appInstance,
  env,
}) => {
  const { headerComponents, pageComponents } = generateComponentLists(components);

  if (appInstance === 'int' || appInstance === 'qa') {
    console.log('entityData');
    console.log(entityData);
    console.log('siteData');
    console.log(siteData);
    console.log('components');
    console.log(components);
    console.log('supplemental');
    console.log(supplemental);
    console.log('meta');
    console.log(meta);
    console.log('allPages');
    console.log(allPages);
    console.log('env');
    console.log(env);
  }

  return (
    <AppContext.Provider value={{
      entityData,
      siteData,
      components,
      headerComponents,
      pageComponents,
      supplemental,
      meta,
      siteEnv,
      allPages,
      appInstance,
      env,
    }}>
      {children}
    </AppContext.Provider>
  );
};
```

index.stories.js
```
import { withReactContext } from 'storybook-react-context';
import AppContext from '../../../AppContext';

export default {
  title: 'Components/Footer',
  parameters: {
    component: Footer,
    decorators: [withKnobs, withReactContext({
      Context: AppContext,
      initialState: { env: 'ENV DATA' },
    }),
    ],
  },
};

export const FooterDemo = () => {
  console.log('%cAPP CONTEXT', 'font-size: 2em; color: yellow');
  console.log(AppContext);
  const { env } = useContext(AppContext);

  console.log(env);
  return (
    <SectionContainer variant='tertiary'>
      <Footer
        agent={agent}
        env={env}
        pages={allPages.Pages}
      />
    </SectionContainer>
  )

```

**Additional context**
I Also tried using the withReactContext decorator like so and it didn't work: 

```
export default {
  title: 'Components/Footer',
  parameters: {
    component: Footer,
    decorators: [withKnobs, withReactContext),
    ],
  },
};

```
Repository: vscode
Issue: Sort options directly in Explorer menu
Labels: feature-request,file-explorer

<!-- ⚠️⚠️ 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. -->

Explorer should have standard sort options and new button to set it, instead of doing it in a config which is not pragmatic and easily discoverable given that this option might be needed in certain workflows all the time.

I suggest adding button Sort order, something like this:

![image](https://user-images.githubusercontent.com/85767/168163452-1397bde6-149f-468b-9f46-ae62007fcb3e.png)

that opens menu where we can set this:

```
--- Sort Attribute ---
(o) Name
( ) Modified date 
( ) Type
( ) Size ?
--- Sort Order ---
( ) Ascending 
(o) Descending
```

This is way more practical, provides easier access to existing features and also provides new features (its not currently possible to sort by a file name descending etc.). 

One could also add here other Explorer settings related to sort order: 
<details> <summary>Explorer Sort Order Settings</summary>

![image](https://user-images.githubusercontent.com/85767/168163958-f7e33ac4-f9b7-4217-9166-8c76fbdbfc37.png)

</details>

IMO, its really strange that this is not already done so. All file managers have something like this in easy manner. 

One example of usage (of many) would be keeping notes in files that start with ISO8601 date format and wanting to see newest dates (not newest files) on the top of the list:

```
2019-04-01 Note 1.md
2022-03-22 Note 2.md
2022-05-12 Note 3.md
```

The explorer will inevitably put newer dates at the end of the list, and opening a folder will show oldest files. With sorting by modified date descending which is currently possible, this list becomes chaotic if files are stored in repository. One would prefer here to see newest dates on the top of the list. In Windows Explorer or any file manager you can easily sort by name descending by clicking File Name column.

Second example would be with larger folders when you want to find something at the end of the list. Its easier to search if files are sorted by the name descending.
Repository: pytorch
Issue: microbenchmark-style tests
Labels: module: tests,triaged

### 🚀 The feature, motivation and pitch

We can add a set of tests that are based lists of IR, like the microbenchmarks in torchbench.

Reason - a lot of the microbenchmarks have revealed non-performance issues - so it might be good to add these into the pytorch tests to catch failures, instead of waiting for torchbench failures.

### Alternatives

_No response_

### Additional context

_No response_

cc @mruberry
Repository: flutter
Issue: Dart plugin registration is being included in custom embedders
Labels: tool,P2,a: plugins,team-tool,triaged-tool

Per a discussion in Discord, running `flutter build bundle` as part of a custom embedding build flow is apparently getting (at least in debug mode) the Dart plugin registration generated. This breaks the intent that the registration is embedding-specific, driven by the embedding-specific `dartPluginClass` entries in the pubspec.

This will be problematic for custom embeddings expecting the default platform channel--including existing implementations that used to work--as we move to diverging per-package platform channels.
Repository: flutter
Issue: EditableTextState should provide deltas to use with updateEditingValueWithDeltas when the user cuts or copy/pastes text
Labels: a: text input,c: new feature,framework,a: typography,c: proposal,P3,team-framework,triaged-framework

## Use case

I'm currently experimenting with `DeltaTextInputClient` and it works wonderfully for my use case (bridging Quill's Delta format with Flutter's Editable). However, I ran into some issues during development:

- Pasting text does not trigger delta updates, therefore the `DeltaTextInputClient` has no idea that new text has been added
- Same for any action that uses `userUpdateTextEditingValue`, including cutting

Currently, as a workaround for cutting text, I've copied and pasted the source file for `EditableText` and made the method `EditableTextState._replaceText()` public, and in my `DeltaTextInputClient` I override that method and construct the delta:

```dart
@override
void replaceText(ReplaceTextIntent intent) {
  final delta = TextEditingDeltaReplacement(
    oldText: intent.currentTextEditingValue.text,
    replacementText: intent.replacementText,
    replacedRange: intent.replacementRange,
    selection: intent.currentTextEditingValue.selection,
    composing: intent.currentTextEditingValue.composing,
  );

  // Do something with [delta] and then let the super method do its things
  super.replaceText(intent);
}
```

## Proposal

`EditableTextState`'s shortcut methods should not use `userUpdateTextEditingValue` directly. If methods like `EditableTextState.insertText()` and `EditableTextState.deleteText()` were defined and public (seeing as `EditableTextState._replaceText` exists), and if the shortcuts were to use those methods, then we can construct the deltas by overriding those methods in `DeltaTextInputClient`.

Currently, cutting text calls `EditableTextState._replaceText()`. As an example, pasting text would call `insertText()`, which allows us to catch the action and create the delta.

Let me know if there is any additional info or snippets that I can provide. Thanks!
Repository: electron
Issue: [Feature Request]: Disable alt-key menu bar focus globally as user
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Hi,

I'm on Linux desktop and assign various shortcuts with alt key. Electron uses the alt key to focus on the menu bar and I don't use the menu bar that much (if at all) to find it useful, this inteferes with Electron apps whenever I use the shortcut (mainly toggle the menu bar). Aside from shorcuts, on GNOME there's the alt+click to drag windows which also trigger the menu bar every time.

The alt key is a very convenient one and I would prefer it much for my shortcuts over the menu bar which I rarely use. I know there's already a fix #12167 but I still have that problem sometimes, for example I use a shortcut <alt+F3> in vscode that focus the menu bar everytime, I ended up using the custom menu bar to disable that behaviour, but other Electron apps don't have that.

Would it be possible to allow users to disable the key globally, similar to GTK with `gtk-auto-mnemonics=0` ?

### Proposed Solution

Allow users of Electron apps to disable alt key focus menu bar behaviour

### Alternatives Considered

Not sure

### Additional Information

_No response_
Repository: vscode
Issue: Consider Reducing Contrast Ratio (within a11y bounds) on Bracket Pairing
Labels: under-discussion,bracket-pair-colorization

Thank you for the bracket pairing feature.  The high color contrast in dark theme is very extreme, to the point of distracting from reading the variables and instructions within.  Please consider strategies to reduce the color ratio without breaking a11y standards.  Thank you for considering.
Repository: rust
Issue: `format!` should be able to parse arbitrary inline expressions and provide a targeted error
Labels: A-diagnostics,A-parser,P-low,T-compiler,D-papercut

`format!` currently doesn't support inline expressions, like `format!("{binding.field}");`, but [the error it emits](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=ae8339573f024d18b9e80e9d7cd821d8) while serviceable isn't great:

```
error: invalid format string: expected `'}'`, found `'.'`
  --> src/main.rs:10:23
   |
10 |     println!("{binding.field}");
   |               -       ^ expected `}` in format string
   |               |
   |               because of this opening brace
   |
   = note: if you intended to print `{`, you can escape it using `{{`
```

It would be much better experience if we started parsing first field access expressions, potentially method calls and later arbitrary expressions and explicitly told the user "you can't do that, move the expression to its own binding". If we were to ever attempt to support this, prototyping the machinery for diagnostics first would also be informative about its limits or potential problems.

```
error: invalid format string: field access isn't supported
  --> src/main.rs:10:23
   |
10 |     println!("{binding.field}");
   |                ^^^^^^^^^^^^^ not supported
help: consider using a positional formatting argument instead
   |
10 |     println!("{}", binding.field);
   |               --   +++++++++++++
```
Repository: pytorch
Issue: Large numerical inconsistency for `torch.einsum` on RTX30 series GPU.
Labels: module: cuda,triaged,module: tf32

### 🐛 Describe the bug

```python
import torch

print(torch.__version__)

a = torch.rand(1, 8192*10, 3) * 100
b = torch.rand(1, 3, 3)

c_1 = torch.einsum('c...i,cji->c...j', a, b)
c_2 = torch.einsum('c...i,cji->c...j', a.cuda(), b.cuda())
c_3 = (a.cuda()[...,None,:] * b.cuda()[:,None,...]).sum(-1)

print((c_1 - c_2.cpu()).abs().max(), (c_1 - c_3.cpu()).abs().max())
```

Output:
```
1.11.0+cu113
tensor(0.0833), tensor(3.0518e-05)
```

The difference between c_1 and c_2 is ridiculously large. However, when I rewrote cuda einsum to `( _ * _ ).sum(-1)`, the result is normal.

I tested this short script on RTX3090, RTX3060, and they both show similar problematic results.
I also tested on RTX2070, Telsa T4 (colab), they do not have such issue.
 

### Versions

Collecting environment information...
PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.31

Python version: 3.9.7 (default, Sep 16 2021, 13:09:58)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.11.0-40-generic-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: 11.4.48
GPU models and configuration: 
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
GPU 2: NVIDIA GeForce RTX 3090
GPU 3: NVIDIA GeForce RTX 3090

Nvidia driver version: 470.82.00
cuDNN version: Probably one of the following:
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.1
/usr/local/cuda-11.4/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.1
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.11.0+cu113
[pip3] torch-ema==0.3
[pip3] torch-scatter==2.0.9
[pip3] torch-tb-profiler==0.4.0
[pip3] torchvision==0.12.0
[conda] cudatoolkit               11.1.1               h6406543_8    conda-forge
[conda] numpy                     1.22.3                   pypi_0    pypi
[conda] torch                     1.11.0+cu113             pypi_0    pypi
[conda] torch-ema                 0.3                      pypi_0    pypi
[conda] torch-scatter             2.0.9                    pypi_0    pypi
[conda] torch-tb-profiler         0.4.0                    pypi_0    pypi
[conda] torchvision               0.12.0                   pypi_0    pypi

cc @ezyang @gchanan @zou3519 @ngimel @zasdfgbnm @ptrblck