sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Issue: Benefits of using Vite when creating a React app
Labels: issue: proposal,needs triage

#### Problem

Creating a React app can be time-consuming, especially when it comes to setting up the development environment and configuring the build tools. This can be a barrier to entry for new developers who just want to get started building their app.

#### Proposed solution

One solution to this problem is to use Vite when creating a React app. Vite is a build tool and development server that is designed to be fast, flexible, and easy to use. When you create a React app with Vite, it automatically generates the src directory and index.html file for you, and provides a fast development server that supports hot module replacement. This can help you get up and running more quickly and spend less time on setup and configuration.

#### Alternatives considered

Other alternatives to Vite when creating a React app include tools like Create React App and webpack. These tools are widely used and have a strong ecosystem of plugins and configuration options, but they can also be more complex and time-consuming to set up and configure.

#### Additional context

If you're interested in discussing the benefits of using Vite when creating a React app, please join the discussion and share your thoughts!
Repository: kubernetes
Issue: Refactor prober_manager to update the runtime state vs. API state
Labels: priority/important-soon,sig/node,kind/feature,lifecycle/rotten,needs-triage

- This is part of pre-work for sidecar KEP: https://github.com/kubernetes/enhancements/issues/753
- See also uber issue: https://github.com/kubernetes/kubernetes/issues/115934

In sidecar container KEP we plan to use the Startup probes state as a way to decide whether the next Init container need to start being initialized. Before this KEP probes results were not used in any of Pod lifecycle decisions. In order to implement this we need to have a probe status at a time we call `findNextInitContainerToRun`. This may need some refactoring on how prober_manager is initialized and used.

Today we calculate changes needed to be performed on Pod including the next init container to run. Then we apply these actions and update the Status of a Pod on API server using `convertStatusToAPIStatus` from `generateAPIPodStatus`. Once we converted the runtime status to API status, we also call `kl.probeManager.UpdatePodStatus(pod.UID, s)` passing the API status object to be updated with the probes results. Thus the probe results are not visible to the `findNextInitContainerToRun` function.

The proposal is to refactor the `prober_manager.go` to operate on `kubecontainer.PodStatus` instead of `v1.PodStatus`. This will require adding the probes status to the `kubecontainer.PodStatus`. We will also move the call into the `prober_manager.go` early in the `syncPod` execution so we know the startup probes result before we call into `findNextInitContainerToRun`.

cc @smarterclayton 

/sig node
/kind feature
/priority important-soon
Repository: pytorch
Issue: Make this ridiculously long error message more user friendly
Labels: triaged,module: infra

Via @janeyx99: "highlighting the longest merge rejection message i've seen https://github.com/pytorch/pytorch/pull/92625#issuecomment-1439109986" 

It's about 3 pages long, listing the full GQL query that failed:
![Image](https://user-images.githubusercontent.com/4468967/220470260-47c50c75-6274-4117-9e91-3e246806f89d.png)
Repository: flutter
Issue: Proposal to add z-index for column for relative positioning.
Labels: c: new feature,framework,f: material design,c: proposal,workaround available,team-design,triaged-design

It would be great we could define a `z-index` to the children of [Column](https://api.flutter.dev/flutter/widgets/Column-class.html) or other related widgets like Row, etc. For example draw the second child over the first one. In CSS you would just set `z-index`.

The following demo shows a column with an extension of the toolbar (blue, 'TOP') which provides some controls for the content below. In the list view below, the children draws background color. But regardless of it, every widget below with a color will overlay the widget above. In this case the elevation shadow is hidden.

**Demo code**
```dart
Column(
  children: [
    Material(
      elevation: 4,
      child: Container(
        width: double.infinity,
        color: Colors.blue,
        child: Text("TOP"),
      ),
    ),
    Expanded(
      child: ListView(
        children: [
          Container(
            // Change the color to `Colors.transparent` to see elevation shadow of prev widget appears.
            decoration: BoxDecoration(color: Colors.yellow),
            child: Text("BOTTOM"),
          ),
        ],
      ),
    ),
  ],
)
````

**Filled color**
![yellow](https://user-images.githubusercontent.com/53160891/220472897-1322d335-6430-4a4d-9598-7ccbc00380f4.png)
The evelation shadow is overlaid by the widgets with background color.

**Transparent**
![transparent](https://user-images.githubusercontent.com/53160891/220472968-417c76ed-14f8-4ae7-a81d-4ba5b0f6a871.png)
The evelation shadow is visible since the widgets below are transparent.

Other use cases I'm thinking about: When you click on a children (with color), then draw an evelation shadow to highlight the selected child with a popout effect (shadow around). You need to elevate the selected child too, with z-index. Otherwise the shadow is cropped/overlaid from other children around (because draw order). Or if you have a Stack of chilrean and want to draw the clicked/selected child on top. Ok, in this case you could change the order of the children list and place the selected to top. But this will not work with columns or rows, etc. Because it will change the layout. Or how would you resolve/workaround this?

Flutter stable, 3.3.10 run on Android emulator. MD2. Dev on Win 11.
Repository: kubernetes
Issue: Reuse the http request object for http probes
Labels: area/kubelet,sig/node,help wanted,good first issue,needs-triage

Today we construct the request object for every http request for the http probes. This involves concatenating some strings, setting headers, etc.

Probes are simple http get requests that are executed synchronously (for a single probe) and has no request body.

The optimization may be to reuse the request object for all probe executions. This likely save some cpu and memory for the kubelet process.

Some code references:
- [DoProbe](https://github.com/kubernetes/kubernetes/blob/4dfd2fe74d96f67c9752bbdc9ae9983a6e5f0492/pkg/probe/http/http.go#L93) is executed today on each probe execution.
- New request are [being created](https://github.com/kubernetes/kubernetes/blob/4dfd2fe74d96f67c9752bbdc9ae9983a6e5f0492/pkg/kubelet/prober/prober.go#L146) for each execution.
- New object will need to be stored in [worker](https://github.com/kubernetes/kubernetes/blob/4dfd2fe74d96f67c9752bbdc9ae9983a6e5f0492/pkg/kubelet/prober/worker.go#L40) that for http probes will hold the http request object. This object will need to encapsulate the logic of [runProbe](https://github.com/kubernetes/kubernetes/blob/4dfd2fe74d96f67c9752bbdc9ae9983a6e5f0492/pkg/kubelet/prober/prober.go#L138) method of the prober.

I'm marking this issue as a good first issue, as the issue doesn't require deep knowledge of Kubernetes. However it is not an easy issue, a few parts of code will be affected and change needs to be done very carefully.

***Please review code and make sure you understand the task before self-assigning the issue.***

Implementation notes

1. If you can send the small benchmark results on probes with and without this optimization, it will be a good starting point. Note, for the benchmark, each probe can run once a second, not more often. But the number of probes is virtually unlimited since we are not defining the limit on number of containers per Pod. Realistically we are talking about 110 pods (max) with maybe 2 containers each, with 3 probes each (660 probes).
2. Code change may be big. So make sure to help reviewers to review the code. One idea may be to split implementation into multiple commits to simplify the review. First, creating the object encapsulating the logic of `runProbe`, second storing and initializing this object in `worker`, and third, actual reusing of the request object.


/sig node
/good-first-issue
/help-wanted
/area kubelet
Repository: go
Issue: io: Copy is easy to misuse and leak goroutines blocked on reads
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

All

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

N/A

### What did you do?

Because of the way io.Copy works (and really any other solution to the same need) it is very easy to wedge a goroutine, and probably an fd along with it.

Example:

```go
pr1, _ := io.Pipe()
_, pw2 := io.Pipe()
go io.Copy(pw2, pr1)

pw2.Close()
```

In this case, the goroutine will leak once pw2 is closed because there is no way to cancel that copy without also closing pr1.
In some cases this makes sense, especially if you control both pipes.

In docker/moby this issue is a common case where we have a client connected over a unix or TCP socket, it is attached to a container's stdio streams.
If the client disconnects there is no mechanism (aside from platform specific code like epoll) to get notified that the copy operation needs to be cancelled.

I suggest an interface be added, potentially to `io` to receive close notifications from the runtime.
Example:

```go
type CloseNotifier() {
    CloseNotify() <-chan struct{}
}
```

The actual interface could be something like (maybe something that returns a context that gets cancelled?).
I'm not married to the above interface (I know there's a similarly named one in `net/http`).

`*os.File` and net.Conn implementations could implement this interface to help with the above scenario, and since the go runtime is already doing a bunch of fd notification magic it should generally be easily supported in the stdlib across platforms.
Repository: godot
Issue: Y-Sort is not taken into account for mouse events
Labels: documentation,topic:input,topic:gui

### Godot version

4 master

### System information

MacOS

### Issue description

If multiple control elements overlap and y-sort is enabled then mouse events (`_gui_input` and built-in interactions) at the overlap will go to a child based on a place in hierarchy not on y-sort.

### Steps to reproduce

In reproduction project I have such scene:
```
Main (control)
- First (button)
- Last (button)
```
"First" button is a first child but because Y-Sort is enabled the button appears on top of "Last" (based on their positions).

Hover cursor over overlap and it will be visible that the behind button ("Last") receives and reacts to events, not the one that is drawn on top.

### Minimal reproduction project

[y-sort-mouse.zip](https://github.com/godotengine/godot/files/10798665/y-sort-mouse.zip)
Repository: flutter
Issue: Build `idevicesyslog`, `idevicescreenshot`, and `iproxy` binaries and all dependent libraries with macOS  arm64 and  x86_64 architectures
Labels: platform-ios,P2,team-ios,triaged-ios,:hourglass_flowing_sand:

Building these binaries and their dependencies with both architectures will allow the binaries to run natively on either x64 or arm64 developer Macs.

`./autogen.sh` in the ios_usb_dependencies recipe is called here:
https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/ios_usb_dependencies/ios-usb-dependencies.py#276
via the resources sh scripts, like:
https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/ios_usb_dependencies/ios-usb-dependencies.resources/libimobiledevice.sh#21

I believe exporting `CFLAGS="-arch arm64 -arch x86_64"` env variables will configure and later build/make with both binaries.

See how the `libimobiledevice` GitHub action does this:
https://github.com/libimobiledevice/libimobiledevice/blob/c797c2af6f4e2e8ae93b68f1c41abab1579563db/.github/workflows/build.yml#L129-L138
https://github.com/libimobiledevice/libimobiledevice/actions/runs/4059613727/jobs/6987855555#step:9:22

Part of https://github.com/flutter/flutter/issues/69157
Repository: godot
Issue: Exported variables of tools instances always reset to the main node value
Labels: topic:editor

### Godot version

v4.0.rc3.official [7e79aead9]

### System information

Windows 10

### Issue description

When you change the value of an exported variable of a tool node, all the instances of that tool in another scenes reset this variable value to main node's.

https://user-images.githubusercontent.com/70731505/220484929-54c3cea6-4423-4b89-b255-75d5313a7bd8.mp4




In the video, I have a tool that export the variable sign. To make changes more visual, when I change the sign to plus or minus, the polygon also change.
We can see that all the instances of the tool always reset their sign value to the main's even if I locally change them.

### Steps to reproduce

1. Create a tool with an exported variable
2. Create scene which uses the tool node
3. Change the exported variable value in the main tool scene

### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/10798757/test.zip)
Repository: next.js
Issue: Caching doesn't work
Labels: examples

### Verify canary release

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

### Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.3.0: Thu Jan  5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 14.18.1
      npm: 6.14.15
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.1.6
      eslint-config-next: 13.1.6
      react: 18.2.0
      react-dom: 18.2.0

### Which example does this report relate to?

ssr-caching

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

Opera GX

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

next start

### Describe the Bug

Hi everyone, when I deploy this to Vercel it works as expected. However, when I run the production build locally, it doesn't work. Is there something I'm missing? Thanks in advance!

### Expected Behavior

I expect the html to be cached in my browser and not hit the production server running locally (with npm run build && npm start)

### To Reproduce

- npm install
- npm run build
- npm start
- visit localhost:3000
- refresh, you will see the date change
- refresh again, you will see the date change
- this happens always.
- profit
Repository: vscode
Issue: Git - Clone of ssh-style URL fails b/c path does not strip username/hostname components
Labels: bug,git

Type: <b>Bug</b>

Use the "Clone Git Repository" option from the Welcome page.

Enter a ssh-style URL:

	git@versions.somedomain.net:climate-project

This fails on both Windows and macOS. Command output is:

```
git clone git@versions.somedomain.net:climate-project c:\Users\kit\New folder\git@versions.somedomain.net:climate-project --progress
fatal: could not create work tree dir 'c:\Users\kit\New folder\git@versions.somedomain.net:climate-project': Invalid argument
```

From the shell: 

    git clone git@versions.somedomain.net:climate-project .
works fine on both platforms.



VS Code version: Code 1.75.0 (Universal) (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:24:42.903Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|1, 1, 2|
|Memory (System)|16.00GB (0.18GB free)|
|Process Argv|--crash-reporter-id 958b883d-584c-4399-803a-7a6c1cc07d59|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (2)</summary>

Extension|Author (truncated)|Version
---|---|---
live-server|ms-|0.5.2023022101
emacs-mcx|tut|0.47.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30669237
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
282f8724:30602487
pyind779cf:30662993
f6dab269:30613381
pythonsymbol12:30657548
pythonb192:30669360

```

</details>

<!-- generated by issue reporter -->
Repository: vscode
Issue: Search results come from all the folders in the workspace when the `files to include` is an aliased folder
Labels: bug,search,confirmed

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.75.1
- OS Version: 12.6.1

```
Version: 1.75.1
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:34:01.965Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
```

Steps to Reproduce:

1. Open a new VSCode Window
2. Save as a `workspace`
3. Add two folders to the workspace
4. `alias` one of the folders to another name in the `.code-workspace` file
5. In the Explorer, right-click the `aliased folder` and choose `Find in folder...`
6. Type some text in the search bar and search

**_Expect_**:
Search results are only from the specified folder

**_Actually_**:
Search results come from **all** the folders in the workspace.

<img width="1009" alt="image" src="https://user-images.githubusercontent.com/3097366/220501435-ef20906e-943b-499b-84c9-42950c761b6c.png">
Repository: go
Issue: x/net/websocket: hangs when connecting to a plain TCP socket 
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.20.1 linux/amd64
</pre>

```
golang.org/x/net v0.7.0
```

### Does this issue reproduce with the latest release?

Yes.


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

</pre></details>

### What did you do?

Given a dumb TCP server emulated by `socat STDIO TCP4-LISTEN:12345,fork`, creating a websocket client by dialing to this server locks up the "dialing routine" and I can observe 1 CPU thread use 100%.

```go
// main.go
package main

import (
	"log"
	
	"golang.org/x/net/websocket"
)

func main() {
	origin := "http://localhost/"
	url := "ws://localhost:12345"

	log.Println("Dial ...")

	websocket.Dial(url, "", origin)

	log.Println("Done")
}
```

### What did you expect to see?
* A failure in WebSocket handshake/upgrade attempt, maybe after a timeout.
* A way to control network read vi say `SetReadDeadline(...)` or alike.


### What did you see instead?
A thread lockup waiting for network read, probably.
Repository: PowerToys
Issue: Fancy Zones could display position on layout editing for easier positioning.
Labels: FancyZones-Editor,Product-FancyZones,Area-User Interface,Needs-Triage

### Description of the new feature / enhancement

When I'm editing a layout, after the size of the zone, the editor should show the top left positioning (or the distance to all edges) for that zone.

### Scenario when this would be used?

This way it would be easier to position a zone in the center in case the user whants that.

### Supporting information

![image](https://user-images.githubusercontent.com/462171/220523258-88c6cbb1-f965-4589-8c8e-f2f6645dbc8b.png)
Repository: PowerToys
Issue: 能否在powerRename中允许使用文本文档中定义的规则对文件批量重命名
Labels: Needs-Triage

### Description of the new feature / enhancement

能否在powerRename中允许使用文本文档中定义的规则对文件批量重命名

### Scenario when this would be used?

by using CMD

### Supporting information

_No response_
Repository: deno
Issue: [lsp] `deno.jsonc` option to disable `import-map-remap`
Labels: suggestion

Related
https://github.com/denoland/deno/issues/15266

I tried `// deno-lint-ignore import-map-remap`, seems not working.
Repository: godot
Issue: PackedVector2Array remove_at() not removing from array
Labels: documentation,topic:2d

### Godot version

4.0 rc3

### System information

Windows 11

### Issue description

I am trying to go through a PackedVector2Array and remove points that are too close together (redundant points). 
But, when I try to remove points with remove_at(), it doesn't affect the array at all. I expected it to at least reduce the amount of points, but the array remains the same.

### Steps to reproduce

I created a reproduction project which consists of a Line2D and a Polygon2D. At _ready(), it is supposed to remove points, but nothing happens. I output the number of points before and after calling remove_at() and there is the same amount of points.

### Minimal reproduction project

[bug_remove_at.zip](https://github.com/godotengine/godot/files/10800720/bug_remove_at.zip)
Repository: excalidraw
Issue: text ordering of "copy as text"
Labels: enhancement

It seems ordering happen by the time when element added, but expected behaviour to be selected by click number when doing ctrl+click either position when selecting with mouse area

In following example, expected to receive "1 2 3" but it shows "1 3 2" because I created "3" element first

![second22-first](https://user-images.githubusercontent.com/4569866/220543354-304984d7-f1f9-4f7a-8339-4101a23b76cf.gif)