sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: [NEXT-369] Fast refresh doesn't work when importing function with capitalized name
Labels: bug,Webpack,linear: next

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64
    Binaries:
      Node: 16.14.0
      npm: 8.3.1
      Yarn: 1.22.18
      pnpm: N/A
    Relevant packages:
      next: 12.1.1-canary.17
      react: 17.0.2
      react-dom: 17.0.2


### What browser are you using? (if relevant)

Chrome 99.0.4844.83 (Official) (x86_64)

### How are you deploying your application? (if relevant)

Not relevant

### Describe the Bug

I think that the reproduction repository I have prepared fully describes the bug so please have a look ⬇️ .

* If we change the description prop in `lowercasedEnhancePropsFunction` function HMR will properly refresh the component with the updated data.

* But If we change the title prop in `CapitalizedEnhancePropsFunction` function then nothing will change in our component.

* Issue occurs **only** if we have a function with **capitalized name**, imported from another file and that's the **only one** export existing in this file. If we export anything else from this file (i.e. export const hack = undefined) HMR will work properly.

### Expected Behavior

HMR should refresh the component with the updated data every time, no matter the name of the function we are importing.

### To Reproduce

I have created a reproduction repository:

> https://github.com/usertive/next-js-issue

1. yarn dev
2. Change description in `lowercasedEnhancePropsFunction` function - works.
3. Change title in `CapitalizedEnhancePropsFunction` function - doesn't work.

<sub>[NEXT-369](https://linear.app/vercel/issue/NEXT-369/fast-refresh-doesnt-work-when-importing-function-with-capitalized-name)</sub>
Repository: flutter
Issue: Support setting `embedderId` for `PointerEvent`s from the embedder API
Labels: c: new feature,engine,e: embedder,c: proposal,P3,has partial patch,team-engine,triaged-engine

Pointer events already contain a `embedderId` field on the dart side. This field is used by the Android embedder to tie the platform source events to a specific `PointerEvent`s on the framework-side.

In the embedder API, this is not currently exposed, and is hardcoded to 0.

## Proposal

Introduce a new `embedder_id` field in the `FlutterPointerEvent` in the embedder API which can be optionally used to pass an embedder specific piece of data through to the Dart-side.

For embedders that need it, this change would make it possible to track the identity of an individual pointer event all the way through `embedder event source -> flutter framework -> embedder event handling for platform view`.
Repository: pytorch
Issue: Can't install Pytorch
Labels: needs reproduction,module: build,triaged

### 🐛 Describe the bug

I can't install either torch and torchvision.

Commands:
```
pip cache purge
pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113
```
throws next error
```
ERROR: Exception:
Traceback (most recent call last):
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 405, in run
    installed = install_given_reqs(
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
    requirement.install(
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 769, in install
    install_wheel(
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 729, in install_wheel
    _install_wheel(
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 589, in _install_wheel
    file.save()
  File "/home/jack3-tkh/TKH/02_AD - Anomaly Detection/codes/FastFlow_models/FastFlow-AD/venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 390, in save
    shutil.copyfileobj(f, dest)
  File "/usr/lib/python3.8/shutil.py", line 205, in copyfileobj
    buf = fsrc_read(length)
  File "/usr/lib/python3.8/zipfile.py", line 940, in read
    data = self._read1(n)
  File "/usr/lib/python3.8/zipfile.py", line 1030, in _read1
    self._update_crc(data)
  File "/usr/lib/python3.8/zipfile.py", line 958, in _update_crc
    raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/libtorch_cuda_cpp.so'
```





### Versions

using pip 22.0.4

cc @malfet @seemethere
Repository: opencv
Issue: getOptimalNewCameraMatrix not available in opencv.js
Labels: question (invalid tracker),category: javascript (js)

version:
opencv.js 4.5.5 from https://docs.opencv.org/4.5.5/opencv.js
Repository: create-react-app
Issue: How to catch error like import undefined from modules?
Labels: needs triage

dependency.js:

export const foo = 42

app.js:

import {fo} from './dependency.js' // oops!
Repository: neovim
Issue: Nvim opens a [No Name] buffer when started on a directory
Labels: bug,defaults,netrw

### Neovim version (nvim -v)

NVIM v0.6.1

### Vim (not Nvim) behaves the same?

no, Works fine on Vim 8.2

### Operating system/version

macOS 12.1 Monterey

### Terminal name/version

Terminal.app 2.12

### $TERM environment variable

xterm-256color

### Installation

Homebrew

### How to reproduce the issue

```
nvim -u NORC .
```

### Expected behavior

This should start `nvim` with a single netrw buffer.
The status line should indicate the path followed by "[netrw]".

### Actual behavior

It opens 2 buffers, the netrw one and a "[No Name]" one.
The status line mixes both names and says "[No Name] [netrw]"

Essentially it seems like you see the right netrw buffer and can interact with it, except nvim kind of believe it is on the "[No Name]" buffer.

The main issue for me is that it also places the "[No Name]" buffer as the current buffer. So if I open a file in the directory listing and then press `CTRL-^`, I expect to be back on the netrw buffer. But I end up on the real "[No Name]" buffer that is empty. I say "real" because when landing, it thinks I am on "[No Name]" but what I see and interact with is really the netrw buffer.
Repository: go
Issue: go/types: considers non-identical constraint interfaces to be identical
Labels: NeedsFix

This is based on a [recent golang-nuts thread](https://groups.google.com/g/golang-nuts/c/D6TDzFi9YNQ).

The spec currently says

> A named type is always different from any other type. Otherwise, two types are identical if their underlying type literals are structurally equivalent
> […]
>  Two interface types are identical if they define the same type set.

The definition of types sets is

> - The type set of the empty interface is the set of all non-interface types.
> - The type set of a non-empty interface is the intersection of the type sets of its interface elements.
> - The type set of a method specification is the set of types whose method sets include that method.
> - The type set of a non-interface type term is the set consisting of just that type.
> - The type set of a term of the form ~T is the set of types whose underlying type is T.
> - The type set of a union of terms t1|t2|…|tn is the union of the type sets of the terms.

By these definitions, `interface{ int; m() }` and `interface{ string; m() }` both have empty type sets (`int` and `string` have no methods, so neither has a method `m()`). The empty set is identical to itself, so these two interfaces should be considered identical.

`go/types` does not consider them identical though: https://go.dev/play/p/VfVgqmumilC

IMO the culprit here is the spec - it should not use type sets to define the identity of interfaces. Either way, I think the spec and `go/types` disagree here.

In practice this isn't really much of a problem. As far as I can tell these kinds of interfaces can't be used in any place where type identity matters. But we should consider this, if we ever want to allow constraint-interfaces as types.
Repository: flutter
Issue: Consider adding checks to make sure the "filtering" layer's children is not empty.
Labels: engine,P3,c: tech-debt,team-engine,triaged-engine

Consider adding checks to make sure the "filtering" layer's children is not empty. just like what we did in opacity layer.

* ImageFilterLayer
* ColorFilterLayer
* ShaderMaskLayer

c.f.
https://github.com/flutter/engine/blob/e444009bf46b39af0b2a2aa6e7c28c668c50004c/flow/layers/opacity_layer.cc#L40
Repository: yt-dlp
Issue: [Canlitv] support
Labels: site-request

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs [violate any copyrights](https://github.com/ytdl-org/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

_No response_

### Example URLs

https://canlitv.com/canli-tv8
https://canlitv.center/tv8-canli-hd

### Description

As it use segments, I looked for master.m3u8 while inspecting, but couldn't find.
Maybe you can add this site if be possible, thanks.

### Verbose log

```shell
Not provided
```
Repository: create-react-app
Issue: DO NOT clear console on server start
Labels: needs triage,issue: bug report

This is a huge fucking hassle sometimes.
Whoever made the decision to clear the console needs to be relieved of duty.
There is no opinion at play here, this is simply wrong.
Repository: pytorch
Issue: `check_batched_forward_grad` fails for `torch.norm` and related ops
Labels: module: autograd,triaged,module: batching,module: norms and normalization

### 🐛 Describe the bug

To replicate: unskip `check_batched_forward_grad` for norm (apply https://github.com/pytorch/pytorch/pull/74205/ if it has not yet landed)

Error:
```
 torch.autograd.gradcheck.GradcheckError: While computing batched gradients, got: Could not allocate memory to change Tensor SizesAndStrides!
```

### Versions

main

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: node
Issue: Node 16.14.2 highWaterMark:0 doesn't handle backpressure
Labels: stream

### Version

16.14.2

### Platform

x64

### Subsystem

_No response_

### What steps will reproduce the bug?

```js
async function start() {
	const { Transform } = require('stream');
	const transformStream = new Transform({
		objectMode: true,
		highWaterMark: 0,

		transform(item, enc, callback) {
	  	  console.error("writing", item);
	  	  this.push(item);
	  	  callback();
	    }
	});

	transformStream.write('hello1');
	transformStream.write('hello2');
	transformStream.write('hello3');
	transformStream.write('hello4');
	transformStream.write('hello5');
	transformStream.write('hello6');
	transformStream.write('hello7');
	transformStream.write('hello8');
	transformStream.write('hello9');
        transformStream.end();

	for await (const text of transformStream) {
	  await wait();
	  console.error(text);
	}
};

async function wait() {
  return new Promise(resolve => {
	setTimeout(() => resolve(), 1000);
  });
}

start();
```

I wouldn't expect the `transform` method to be called, while the highWaterMark is already reached.

### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior?

Node 14 and older, backpressure is handled properly (even with highWaterMark: 0):

Expected output:

```console
writing hello1
writing hello2
hello1
hello2
writing hello3
hello3
writing hello4
hello4
writing hello5
hello5
writing hello6
hello6
writing hello7
hello7
writing hello8
hello8
writing hello9
hello9
```


### What do you see instead?

```console
PS > node .\backpressure.js
writing hello1
writing hello2
writing hello3
writing hello4
writing hello5
writing hello6
writing hello7
writing hello8
writing hello9
hello1
hello2
hello3
hello4
hello5
hello6
hello7
hello8
hello9
```

### Additional information

When using `highWaterMark: 1` in Node 16.x, backpressure works as expected again.
Did anything change around using `highWaterMark:0` in Node16? It doesn't seem backwards compatible.
Repository: pytorch
Issue: Embedding isn't determinstic on linux-xenial-cuda11.3-py3.7-gcc7
Labels: module: cuda,triaged,module: embedding

### 🐛 Describe the bug

See [this PR for an exact repro with the failing device](https://github.com/pytorch/pytorch/pull/74435)

This was the test added:
```
    def test_embedding(self, device):
        kwargs = {'max_norm': 1., 'padding_idx': 0}
        weight = torch.tensor([[6.8647, 5.8554, 16.9691, 2.6789, -15.6294],
                               [-14.9554, 7.7531, 12.4223, -16.0599, 15.8149],
                               [17.4140, -3.0240, 2.9351, -0.8682, -17.2839],
                               [9.9553, 17.8714, -3.2633, -5.9660, 15.1439],
                               [-0.7989, 16.1427, -11.6595, -1.4572, -7.4903]], device=device)
        idx = torch.tensor([[1, 1, 3], [0, 0, 4], [2, 1, 0]], device=device)
        weight_clone = weight.clone() # weight gets updated in place by embedding 
        self.assertEqual(weight, weight_clone)
        res1 = torch.nn.functional.embedding(idx, weight, **kwargs)
        self.assertNotEqual(weight, weight_clone)
        res2 = torch.nn.functional.embedding(idx, weight_clone, **kwargs)
        self.assertEqual(res1, res2)
```

Basically it tests that two cals to the same embedding function will produce identical results. This passes on all tested devices except for `linux-xenial-cuda11.3-py3.7-gcc7` when run on cuda. I wasn't able to reproduce this with tensors with smaller values (up to ~5) so believe it might be related to the larger values but I'm not certain.

The error message is essentially that `self.assertEqual(res1, res2)` fails, suggesting that everything else works as expected but the two calls to embedding don't produce the same results

### Versions

The CI version of `linux-xenial-cuda11.3-py3.7-gcc7`

cc @ngimel
Repository: vscode
Issue: Timeline API has no way to signal an entry should be removed
Labels: feature-request,timeline

Currently you can only emit a `onDidChange` event with `reset: true` to signal removed elements.

Extracted from https://github.com/microsoft/vscode/issues/145721#issuecomment-1077718457
Repository: godot
Issue: CharacterBody3D doesn't interact with RigidBodies due to the removal of infinite inertia
Labels: documentation,topic:physics

### Godot version

4.0 alpha5

### System information

linux

### Issue description

characterbody3d doesnt interact with rigid bodies
it treats them like kinematic bodies

### Steps to reproduce

try walking with a characterbody3d up to a dynamic rigidbody and it wont move

### Minimal reproduction project

_No response_
Repository: flutter
Issue: ColorFilter layers not working on Firefox HTML backend
Labels: engine,e: web_html,browser: firefox,P2,team-engine,triaged-engine

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      title: 'Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const Scaffold(
        body: SizedBox(
          height: 50,
          width: 50,
          child: ColorFiltered(
            colorFilter: ColorFilter.mode(Colors.red, BlendMode.srcIn),
            child: Icon(Icons.abc),
          ),
        ),
      ),
    ),
  );
}
```

On CanvasKit, this renders the `ABC` icon in red on Chrome, Firefox, and Safari. On the HTML backend, it renders it in black on Firefox. Tested on Firefox 98.0.1 and 98.0.2 on macOS, but also reported on a Linux workstation.

Framework revision info:

```
[✓] Flutter (Channel master, 2.13.0-0.0.pre.226, on macOS 12.3 21E230 darwin-x64, locale en)
    • Flutter version 2.13.0-0.0.pre.226 at /Users/dnfield/src/flutter/flutter
    • Upstream repository git@github.com:dnfield/flutter
    • Framework revision 3420b9c50e (22 hours ago), 2022-03-23 19:30:07 +0100
    • Engine revision 4fbff7a511
    • Dart version 2.17.0 (build 2.17.0-227.0.dev)
    • DevTools version 2.11.4
```

root cause of dnfield/flutter_svg#687
Repository: PowerToys
Issue: Enhancement Request: Fancy Zones: Dynamic Zone Sizing
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Toggle dynamic sizing for each zone that meets the requirements.

**The requirements are as follows:**
1. You have a zone layout with at least two zones side by side.
2. All zones must be the same height.

**Dynamic Sizing has two distinct behaviours:**
1. When you drop windows in your zones and then resize the width of one of them, the window that is starting to overlap shrinks so that the windows do not overlap. When you shrink a window, the zone next to it fills in the blanks. (Some Linux window managers exhibit similar behavior.)
2. If you drop a window in a zone and resize its width, then drop another window in an adjacent zone, the zone dynamically adjusts its width to avoid gaps or overlaps.

_If you don't want the dynamic zone sizing, either toggle off the feature of use shift in the same way as if you don't want your window to snap to fancy zones._

### Scenario when this would be used?

This feature is simple to implement in daily workflow and allows you to easily fit windows to the sizes you require if your default zones are insufficient or not as dynamic as they should or could be.
Users with larger monitors, such as TVs, 4K monitors, or Ultrawides, will benefit most from this because they will no longer need to cluster their desktop with multiple zones for the same purpose but in different sizes to accommodate for slightly different usecases.

### Supporting information

_No response_
Repository: create-react-app
Issue:  Module not found: Can't resolve 'vscode' #334 
Labels: needs triage

I have a alias like this in my webpack:
```javascript
  resolve: {
    alias: {
      '@Shared': path.resolve(__dirname, 'src/shared'),
      'vscode': require.resolve('@codingame/monaco-languageclient/lib/vscode-compatibility')
    }
}
```

however, when i went to build, the library that uses vscode, return the error:
```
./node_modules/vscode-languageclient/lib/common/client.js
Module not found: Can't resolve 'vscode' in 'C:\Users\jck\Desktop\merge\Newton\node_modules\vscode-languageclient\lib\common'
i'
```

How can I solve this?
Repository: vscode
Issue: Revisit storing entire search results in memento
Labels: debt,workbench-state,search-editor

Steps to Reproduce:

1. fresh user data dir
2. search for "Copyright" in our project
3. open as search editor
4. close VSCode

=> the workspace state DB is now 1 MB large, looks like it stores the entire search result in it

I suggest to reconsider the storage service for this use and persist to disk via file service. The storage service and mementos were more designed with simple key/value needs in mind.
Repository: PowerToys
Issue: Follow for log files (preview pane)
Labels: Idea-New PowerToy,Product-File Explorer

### Description of the new feature / enhancement

Consider `tail -f .log` 
I often find myself doing a `Get-Content -Wait .log` to _follow_ the content of a growing (log) file.

How cute would it be that this is build in the File Explorer pre view pane? Not even Directory Opus does that!

### Scenario when this would be used?

Watch a growing (log) file for new lines being added.

### Supporting information

[man](https://www.man7.org/linux/man-pages/man1/tail.1.html)
[PowerShell](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.2)
Repository: godot
Issue: Rounded corners are drawn between column titles in the Tree node in the editor
Labels: enhancement,topic:gui

### Godot version

v4.0.alpha4.official [f47097973]

### System information

Windows 10, Vulkan

### Issue description

If you look closely, you can see that rounded corners are drawn between column titles.

![image](https://user-images.githubusercontent.com/67974470/159985785-0412e0a7-d5b0-4032-a42c-f0e2b44b67b2.png)
![image](https://user-images.githubusercontent.com/67974470/159987862-364e8388-6b2f-48b0-b145-300845ee5598.png)

A fix for this is to draw the StyleBox once spanning the entire width of the Tree node instead of drawing it individually for each column. This could cause problems for projects that rely on this though, so maybe it could be made optional as a theme property?

### Steps to reproduce

1. Open the Debugger bottom tab in the editor
2. Go to the Visual Profiler, Network Profiler, Monitors, or Video RAM tab in the Debugger
3. Look closely between the column titles

### Minimal reproduction project

_No response_
Repository: terminal
Issue: Mouse cursor hide-on-type breaks if mouse recently moved
Labels: Help Wanted,Issue-Bug,Area-TerminalControl,Product-Terminal,Priority-3

### Windows Terminal version

1.13.10395.0

### Windows build number

Version 10.0.19043.1586

### Other Software

_No response_

### Steps to reproduce

When typing in windows terminal the mouse cursor hides.  However if you move the mouse cursor and then type without waiting long enough, even if you don't move the mouse cursor at all any more, the mouse cursor instead hides, and then after a couple of seconds unhides itself.

Expected behavior:


### Expected Behavior

Mouse cursor hides and stays hidden when you type.

Or (unlikely) if an earlier recent move is intended to prevent hiding, then just prevent hiding rather than hide/unhiding.

### Actual Behavior

If you type after a recent mouse move, the cursor hides itself and then after a delay unhides itself, even if there was no mouse movement after the hide.

If you type after a less recent mouse move (the threshold seems to be > 1-2 seconds), things work correctly: the cursor hides and stays hidden.