sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: net/http: doc: Clarify that Server.ServeTLS enables http2, but Server.Serve does not
Labels: Documentation,NeedsInvestigation

### What version of Go are you using (`go version`)?

1.16.5

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

amd64 linux

### What did you expect to see?

I expected that `Server.Serve` would support http2 when I provided it with my customer listener. My expectation was based on this statement in the documentation:

> Starting with Go 1.6, the http package has transparent support for the HTTP/2 protocol when using HTTPS. 

After a full day of trying to debug this issue I found out that only `Server.ServeTLS` (and the functions that call it) supports http2 because it makes sure to fix the `tls.Config` by (smartly) adding the default protocols. `Server.Serve` does not, because of course it does not have access to any `tls.Config`.

For those interested, here is a one-liner workaround when creating your listener:

    tlsConfig.NextProtos = []string{"h2", "http/1.1"}

I'm not sure what the best way to fix the documentation would be! But I think it should state that: `Server.Serve` does not support http2 by default and even suggest my one-liner above as a workaround.

The above blanket statement about "transparent support" should also be modified with specifics on which codepaths enable http2.
Repository: pytorch
Issue: Failed to enable libuv
Labels: module: build,triaged

## 🐛 Bug

Whenever **USE_LIBUV** is enabled, pytorch failed to build. My **CMakeError.log** is pasted at [https://pastebin.com/xNyDBvHF](https://pastebin.com/xNyDBvHF).

## To Reproduce

Steps to reproduce the behavior:

1. Just Enable **USE_LIBUV** while configuring **pytorch**

## Expected behavior

Successfully built

## Environment

```
➜  ~ python collect_env.py 
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Clang version: 11.0.0-2~ubuntu20.04.1
CMake version: version 3.20.3
Libc version: glibc-2.31

Python version: 3.8 (64-bit runtime)
Python platform: Linux-5.8.0-55-generic-x86_64-with-glibc2.29
Is CUDA available: N/A
CUDA runtime version: 11.3.109
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 460.80
cuDNN version: Probably one of the following:
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.0
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[conda] Could not collect
```

I'm NOT using **conda**, but **pip** .

Any suggestions please?

Pei

cc @malfet @seemethere @walterddr
Repository: TypeScript
Issue: Type modifier in mapped types break `any`
Labels: Bug,Help Wanted

# Bug Report

### 🔎 Search Terms

mapped types, any, contravariance, type modifiers

### 🕗 Version & Regression Information

4.3.2

### ⏯ Playground Link

(the playground seems down for me, but I'll update the ticket when I can)

### 💻 Code

```ts
    // Adding/removing `-?` makes the `anyCallback` line flip between broken/working
    type Mapped<T> = { [K in keyof T]-?: number };
    type Callback<T> = (object: Mapped<T>) => void;
    const fn: Callback<{ firstName: string }> = () => {};
    const anyCallback: Callback<any> = fn;
```

### 🙁 Actual behavior

The `anyCallback = fn` line causes an error:

```
TS2322: Type 'Callback<{ firstName: string; }>' is not assignable to type 'Callback<any>'.
  Types of parameters 'object' and 'object' are incompatible.
    Property 'firstName' is missing in type 'Mapped<any>' but required in type 'Mapped<{ firstName: string; }>'.
```

### 🙂 Expected behavior

I expect to be able to assign `Callback<{ firstName: string} ` to `Callback<any>` because `{ firstName: string }` should be considered `any`.

If I remove the `-?` type modifier in the `Mapped` type, then this works as expected.

Which leads me to the naive assertion that "the type modifier breaks `any`".

Note it's only the required type modifier `-?`, the required modifier `+?` doesn't cause the compile error.
Repository: storybook
Issue: Show parse errors for numbers and objects
Labels: feature request,ui,addon: controls

Show errors (not just red borders) on invalid inputs for Number and Object.

Following from https://github.com/storybookjs/storybook/issues/14579 and https://github.com/storybookjs/storybook/issues/14972



┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1200539748475788/1200554257484690) by [Unito](https://www.unito.io)
Repository: vscode
Issue: Web: provide a `workbench.web.api.d.ts` for an embedder to develop against
Labels: feature-request,web

We provide an API surface for an embedder of our web UI:

https://github.com/microsoft/vscode/blob/7a83e5aa6278d27120c26dabe2b59642dcad9cf2/src/vs/workbench/workbench.web.api.ts#L238-L238

We also require some specific setup to load our web UI pieces as indicated by our `yarn web` implementation:

https://github.com/microsoft/vscode/blob/c87c95a1a04b01107328fe1987b1865b2eb367a8/src/vs/code/browser/workbench/workbench.html#L42-L42

**We should:**
* investigate to produce a `workbench.web.api.d.ts` (similar to `monaco.d.ts`) for the `workbench.web.api` for an embedder to develop against
* consider to extract the loader configuration into something reusable (`amdconfig.js`?) that an embedder can just point to
Repository: TypeScript
Issue: Inference breaks when a function returns a tuple with another function
Labels: Bug

# Bug Report

### 🔎 Search Terms

Inference, tuple, generic, callback, higher-order function

### 🕗 Version & Regression Information

v4.3.2 and below (tested down to v3.3.3)

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEEkDsDMFMCdaQMa1AI0QQwNYGdQB3ACyVGgFcUAXASwHtJRFqL5IDWAHAGzUNrVioLJHpCE5KsjqMAUHIAmsZDyyIpNBkywAKAJQAuUAG05oUAB4AKgD5d6gObHr+0AF5boa3IC6C5VV1NEotRgwbABpQAFV7LABGF2isACZjEwcXN09Y3yNYhXRdBOiTPX0TAAZffNAQZlhWdgJICgBbdAQUglgADy4ValhFOWLSkQM3BpY2DlAqHDFCJl1+wZkRkVA2zoR9OSA)

### 💻 Code

```ts
declare function a(): [
  <T>(arg: T) => T
]

declare function b<T, U>(a1: T, a2: [(a: T) => U]): U

b(1, [a()[0]]) // returns number, as expected
b(1, a()) // returns unknown (expected a number)
```
Repository: pytorch
Issue: Build Pytorch with Aten?
Labels: module: build,triaged

## 🐛 Bug

Pytorch failed to build against ATEN, please refer to [https://pastebin.com/JE7u3tPX](https://pastebin.com/JE7u3tPX). A snnipet is as follows:

```
c++: error: CMakeFiles/torch_cuda.dir/__/aten/src/THC/THCReduceApplyUtils.cu.o: No such file or directory
c++: error: CMakeFiles/torch_cuda.dir/__/aten/src/THC/THCSleep.cu.o: No such file or directory
c++: error: CMakeFiles/torch_cuda.dir/__/aten/src/THC/THCStorage.cu.o: No such file or directory
```

## To Reproduce

Steps to reproduce the behavior:

1. Just use **cmake** to build **Pytorch**, with default configuration:

## Expected behavior

Successfully built

## Environment

```
➜  ~ python collect_env.py 
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Clang version: 11.0.0-2~ubuntu20.04.1
CMake version: version 3.20.3
Libc version: glibc-2.31

Python version: 3.8 (64-bit runtime)
Python platform: Linux-5.8.0-55-generic-x86_64-with-glibc2.29
Is CUDA available: N/A
CUDA runtime version: 11.3.109
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 460.80
cuDNN version: Probably one of the following:
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.2.0
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[conda] Could not collect
```

I'm NOT using **conda**, but **pip** .

Any suggestions please?

Pei

cc @malfet @seemethere @walterddr
Repository: flutter
Issue: [flutter_tools] Tool should periodically garbage collect its own temp directories
Labels: tool,platform-windows,a: quality,P2,team-tool,triaged-tool

I have been using Flutter for over a year, but recently I have noticed that the computer's drive is being filled with temp files caused when the flutter run is called. Every few days I clear the temp folder which is around 5gb.

Flutter doctor reports no issues:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19042.985], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.56.2)
[√] Connected device (2 available)


Is this normal?

![image](https://user-images.githubusercontent.com/53974881/120978588-8d8aa080-c76c-11eb-893e-41058dd68833.png)
Repository: pytorch
Issue: max-sum operation
Labels: triaged,module: linear algebra,module: reductions

## 🚀 Feature

usual matrix operation are sum-product, could you please implement  max-sum  matrix operation?
 sum-product matirx operation means:
\sum_j ( A_{ij}*B_{jk} ) = C_{ik}
 but  max-sum matrix operation means:
\max_j ( A_{ij}+B_{jk} )=C_{ik}
 
## Motivation
In graphical model, matrix operation with sum-product are used to calculate partition fuction,  If we want to calculate the 
ground state of graphical model, we need  matrix operation with max-sum;  with this kind of operation , we can slove many optimization problems. 


## Additional context




cc @VitalyFedyunin @ngimel @heitorschueroff @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: create-react-app
Issue: Relative path for requesting static assets in dev mode
Labels: needs triage

When I do a prod build, static assets are requested from a relative path like `./static/js/bundle.js`.
When I do a dev build. static assets are requested from absolute path like `/static/js/bundle.js`.
NOTE: I have an entry of `"homepage": "."` in my package.json

I want relative paths in my dev mode also. Any leads?
Repository: flutter
Issue: There is no proper documentation for gridview.builder method
Labels: framework,f: material design,d: api docs,d: examples,team-design,triaged-design

I want to implement a grid view in my app

`GridView.builder` seems like the method to allow that

However, surprisingly there is no proper documentation or explanation for the method

This is very basic requirement and the docs must help with it
Repository: pytorch
Issue: test_batch_isend_irecv_nccl fails with NCCL 2.8.3
Labels: oncall: distributed

## 🐛 Bug

On e.g. NCCL 2.8.3 the test_batch_isend_irecv_nccl inside distributed/test_distributed_spawn and distributed/test_distributed_fork fails with a critical error.

## To Reproduce

Steps to reproduce the behavior:

1. Build with NCCL, 2.8.3, e.g. from https://github.com/pytorch/pytorch/pull/50235 or from source
2. Run `python run_test.py -i distributed/test_distributed_spawn`

Error is:

```
  File "/tmp/easybuild-tmp/eb-cDNnSX/tmpcKnJLr/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 285, in wrapper
    fn()
  File "/tmp/easybuild-tmp/eb-cDNnSX/tmpcKnJLr/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 50, in wrapper
    return func(*args, **kwargs)
  File "/tmp/easybuild-tmp/eb-cDNnSX/tmpcKnJLr/lib/python3.8/site-packages/torch/testing/_internal/distributed/distributed_test.py", line 644, in test_batch_isend_irecv_nccl
    reqs = dist.batch_isend_irecv(p2p_op_list)
  File "/tmp/easybuild-tmp/eb-cDNnSX/tmpcKnJLr/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 946, in batch_isend_irecv
    reqs.append(ret)
  File "/scratch/ws/1/s3248973-EasyBuild/easybuild-rome/software/Python/3.8.6-GCCcore-10.2.0/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/tmp/easybuild-tmp/eb-cDNnSX/tmpcKnJLr/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 896, in _batch_p2p_manager
    ProcessGroupNCCL._group_end()
RuntimeError: NCCL error in: ../torch/lib/c10d/ProcessGroupNCCL.cpp:1593, internal error, NCCL version 2.8.3
ncclInternalError: Internal check failed. This is either a bug in NCCL or due to memory corruption
exiting process with exit code: 10
```

## Environment

 - PyTorch Version (e.g., 1.0): 1.8.1
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Python version: 3.8
 - CUDA/cuDNN version: 11.1.1, NCCL 2.8.3
 - GPU models and configuration: 6x A100

## Additional context

See also the failures on https://github.com/pytorch/pytorch/pull/50235. It is possible PyTorch does something which is invalid but only crashes on newer NCCL or that NCCL has a regression. So some contact to NVIDIA might be a good idea.


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu @gcramer23
Repository: flutter
Issue: Merge semantics in the framework are not consistent for Styles and Themes
Labels: framework,f: material design,has reproducible steps,found in release: 2.2,found in release: 2.3,team-design,triaged-design

### Steps
1. Create a parent theme
2. Create a child theme that overrides only a handful of properties of the parent theme
3. Create a style theme
4. Create a child style that overrides only a handful of properties of the parent style

### Expected
- The merge semantics are exactly the same for both Styles and Themes. The developer can apply the same mental model to both cases.

### Actual
- The merge semantics are not just different - they are opposite. The developer needs to pay close attention not to introduce bugs by mixing up the two different concepts.
- To implement the above-mentioned steps for a *ButtonStyle* you need to call **childStyle.merge(parentStyle)**
- To implement the above-mentioned steps for a *TextTheme* you need to call **parentTheme.merge(childTheme)**

### Examples

ButtonStyle:

```
    var style = ButtonStyle(
            side: MaterialStateProperty.all(parentButtonStyle.side!
                .resolve(MaterialState.values.toSet())!
                .copyWith(
                    color: _hasBorder ? Colors.black : Colors.transparent)),
            textStyle: MaterialStateProperty.all(parentButtonStyle.textStyle!
                .resolve(MaterialState.values.toSet())!
                .copyWith(
                    fontWeight: _bold ? FontWeight.w900 : FontWeight.w100)))
        .merge(parentButtonStyle); // here we need to call child.merge(parent)
```

TextTheme:

```
    ThemeData parentTheme = Theme.of(context);
    data = parentTheme.copyWith(
      textTheme: parentTheme.textTheme.merge(TextTheme( // here we need to call parent.merge(child)
          bodyText1: TextStyle(
              fontFamily: BodyFont,
              fontSize: 12 * BaseFontSize,
              color: Colors.black))),
    );
```

Thank you very much for considering this feedback.
Repository: godot
Issue: Spherical KinematicBody2D gets stuck under moving platforms
Labels: bug,confirmed,topic:physics,topic:2d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
Godot 3.3.2 Stable


**OS/device including version:**
Windows 10
Ryzen 7 1700x, nvidia 1080 Ti, Driver version: 461.72
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
When using a spherical or cylindrical collider shape for the player, it seems to get stuck underneath a kinematicbody platform if the platform is descending. Check the attach video for demonstration:
https://user-images.githubusercontent.com/14933041/121013931-17a12c00-c7a2-11eb-869a-1d48bea9baf7.mp4

Using a rectangle collision shape doesn't produce this problem. I've been trying to debug it for hours and using help, and I can't figure out why it's doing this, so I suspect it's a buggy behavior.

I tried using both move_and_slide and move_and_slide with snap and they have the same problem.
I also have issues with the snap when standing on top of the platform as the jump doesn't work, but haven't debugged it a lot.
<!-- What happened, and what was expected. -->


**Steps to reproduce:**
Open the project and jump underneath the moving platform while it's descending. You will notice the player gets stuck under it during the duration of the descent.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[Another 2D Platformer - Reduced.zip](https://github.com/godotengine/godot/files/6608683/Another.2D.Platformer.-.Reduced.zip)
Repository: next.js
Issue: Webpack 5 breaks dynamic wasm import for SSR
Labels: Webpack

### What version of Next.js are you using?

10.2.3

### What version of Node.js are you using?

14.16.0

### What browser are you using?

Chrome

### What operating system are you using?

Windows

### How are you deploying your application?

Other

### Describe the Bug

Using Webpack 5 breaks dynamic import for WASM modules when using SSR.

`ENOENT: no such file or directory, open '...\.next\server\static\wasm`

I've provided a minimal reproducible example here: https://github.com/TimoWilhelm/mre-next-with-webassembly-webpack-5



### Expected Behavior

Dynamic import of WASM modules should work for SSR when using Webpack 5.

### To Reproduce

Run `npm run build`

```
info  - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5
info  - Checking validity of types
info  - Creating an optimized production build  
info  - Compiled successfully
info  - Collecting page data  
[=== ] info  - Generating static pages (0/3)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: ENOENT: no such file or directory, open 'C:\...\with-webassembly\.next\server\static\wasm\1f565eb157746630b627.wasm'
info  - Generating static pages (3/3)
```



Disabling SSR for the dynamic import fixes the issue.
```diff
 const RustComponent = dynamic({
   loader: async () => {
     // Import the wasm module
     const rustModule = await import('../add.wasm')
     // Return a React component that calls the add_one method on the wasm module
     return (props) => <div>{rustModule.add_one(props.number)}</div>
   },
+  ssr: false,
 });
```

Downgrading the Webpack version to use v4 also fixes the issue.

```diff
 module.exports = {
   future: {
-    webpack5: true,
+    webpack5: false,
   },
   webpack(config) {
-    config.experiments = { syncWebAssembly: true };
     config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
     return config;
   },
...
```
Repository: node
Issue: --prof hangs, dropping: overflow
Labels: v8 engine

* **Version**: 16.3.0, 14.17.0, 10.24.1
* **Platform**: Ubuntu 18.04.5 LTS (Linux 4.15.0-144-generic #148-Ubuntu SMP Sat May 8 02:33:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux)
* **Subsystem**: profiler

### What steps will reproduce the bug?

`node --prof fib.js`
```javascript
//fib.js
function fib(n) {
        if(n > 1){
                return fib(n-1) + fib(n-2)
        } else {
                return n;
        }
}

for(var i=0; i<40; i++){
    console.log(fib(i));
}
```

### How often does it reproduce? Is there a required condition?

I always get this issue, every time.

### What is the expected behavior?

* *fib.js* should be run (it should print to stdout)
* node should exit after
* isolate-{something}-v8.log file should be generated
* this generated file should be readable to `node --prof-process`

### What do you see instead?

* *fib.js* is never run, there is no output, even passing a file with sytax error or unexisting file, or even no filename doesn't make a difference
* node hangs, it never exists (I've waited up to 15 minutes so far)
* isolate-{something}-v8.log file is generated, but the output seems odd:

`node --prof-process isolate-0x62557e0-9113-v8.log 2>err.txt >output.txt`

output.txt:

```
Statistical profiling result from isolate-0x62557e0-9113-v8.log, (708 ticks, 0 unaccounted, 0 excluded).

 [Shared libraries]:
   ticks  total  nonlib   name
      2    0.3%          /lib/x86_64-linux-gnu/libc-2.27.so
      1    0.1%          /home/lbujakowski/.nvm/versions/node/v14.15.1/bin/node

 [JavaScript]:
   ticks  total  nonlib   name

 [C++]:
   ticks  total  nonlib   name
    702   99.2%   99.6%  __lll_lock_wait
      2    0.3%    0.3%  write
      1    0.1%    0.1%  do_futex_wait.constprop.1

 [Summary]:
   ticks  total  nonlib   name
      0    0.0%    0.0%  JavaScript
    705   99.6%  100.0%  C++
      0    0.0%    0.0%  GC
      3    0.4%          Shared libraries

 [C++ entry points]:
   ticks    cpp   total   name

 [Bottom up (heavy) profile]:
  Note: percentage shows a share of a particular caller in the total
  amount of its parent calls.
  Callers occupying less than 1.0% are not shown.

   ticks parent  name
    702   99.2%  __lll_lock_wait
```

The stderr got a lot of `dropping: overflow` errors:

`cat err.txt | uniq -c`

```
    697 dropping: overflow
```

### Additional information

I'm using nvm, so I've tried this with few versions.  
I have no issue with node 8.17.0 and 9.11.2. I get the bug on 10+ versions (I've tested with: 10.24.1, 14.17.0 and 16.3.0).
I've also tried using official node docker images, but same thing - old versions work, but 10+ don't.

I need to profile my app, but it seems I cannot profile at all. Does someone have an idea what might be the cause of this problem, or how to nail it?
Repository: TypeScript
Issue: [semantic] Add private/protected to TS semantic tokens 
Labels: Suggestion,Awaiting More Feedback

Move from https://github.com/microsoft/vscode/issues/89619

- I have a TS file with private fields
- there is no semantic information about that, e.g I cannot style private fields different

-> add semantic token modifiers private & protected