sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: "Process using port" on windows
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

This was mentioned in [Issue #441](https://github.com/facebook/create-react-app/issues/441) and [#454](https://github.com/facebook/create-react-app/pull/454) and [pull #816](https://github.com/facebook/create-react-app/pull/816). Someone suggested windows doesn't need support for nice things, and I disagree. *mimes shaking fist at clouds*


### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Windows support would be nice! It's a tiny little thing, but it would be nice :)

[The relevant code is here](https://github.com/facebook/create-react-app/blob/c20ccecfa1cf130a47d37908dc54959c618ce8ea/packages/react-dev-utils/getProcessForPort.js#L28).

The option to support this that is most similar to the current functionality for Linux and MacOS would be to use the classic Command Line with `netstat`, or to use some fancy schmantzy powershell. [They're both shown in a stackoverflow answer](https://stackoverflow.com/a/48199/625687).

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

Alternatively, you could use the [win32 api function `GetExtendedTcpTable` in `Iphlpapi.dll`](https://docs.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getextendedtcptable). As someone with a background in C and C++, and am still one at heart, this would be my preference, but it would require much more work and code.

 
### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

Two things.

1. Is there a reason why react-scripts doesn't *automatically* just choose a different port? I assume this is a tooling thing. It would be neat if I could change an option so it switches ports by default.
2. I thought I filed an informational bug for this one a while ago, but I guess I never did. Sometimes a port will show up as NOT USED by any process on Windows 10+, but no program can open it. They will get a EACCESS error, and be confused. The cause is that the port is EXCLUDED/RESERVED, not in use. Someone should note this somewhere, because occasionally port 3001 won't work either. It's surprising. To check if the port is reserved, you need to run `netsh interface ipv4 show excludedportrange protocol=tcp`, and see if the range is in the list - Hyper-V sometimes reserves the port. The only way I know to recover from this is to reboot the system and check if its reserved again. And continue rebooting until the port is not reserved. It is annoying, and I'm sure this tidbit will help someone!
Repository: flutter
Issue: [pigeon] only generate objc helper functions if they are used
Labels: platform-ios,package,team-ecosystem,p: pigeon,P2,triaged-ecosystem

The linter is failing now if the generated code isn't using the following helper functions for objc:
```
 -> path_provider_ios (0.0.1)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | xcodebuild:  note: Build preparation complete
    - NOTE  | [iOS] xcodebuild:  note: Planning
    - NOTE  | [iOS] xcodebuild:  note: Building targets in parallel
    - NOTE  | [iOS] xcodebuild:  warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the App editor. (in target 'App' from project 'App')
    - WARN  | [iOS] xcodebuild:  /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/packages/path_provider/path_provider_ios/ios/Classes/messages.g.m:24:11: warning: unused function 'GetNullableObject' [-Wunused-function]
    - WARN  | [iOS] xcodebuild:  /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/packages/path_provider/path_provider_ios/ios/Classes/messages.g.m:28:11: warning: unused function 'GetNullableObjectAtIndex' [-Wunused-function]
```

We should only generate them if they are ever used.
Repository: rust
Issue: Confusing error message when future borrows value that is moved into map() closure 
Labels: A-diagnostics,T-compiler

When you call an async function on a borrowed function and then map() the resulting future with a closure that moves the borrowed value, the result is a confusing error message.

It took me a while to realize that even though the closure is _executed_ after the future completes, it is _constructed_ before the future runs. This is especially counter-intuitive because the equivalent non-async code works just fine (e.g. if foo returned an `Option<usize>` instead of a future).  


Playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=722ef38b9da0cc17c7945e0379d266d7

Given the following code:

```rust
use futures::FutureExt;

async fn foo(s: &str) -> usize {
    s.len()
}

fn bar() {
    let s = "".to_string();
    foo(&s).map(|len| (s, len));
}
```

The current output is:

```
error[[E0505]](https://doc.rust-lang.org/stable/error-index.html#E0505): cannot move out of `s` because it is borrowed
 --> src/lib.rs:9:17
  |
9 |     foo(&s).map(|len| (s, len));
  |         --  --- ^^^^^  - move occurs due to use in closure
  |         |   |   |
  |         |   |   move out of `s` occurs here
  |         |   borrow later used by call
  |         borrow of `s` occurs here
```

<!-- The following is not always necessary. -->
Ideally the output should look like:

Explain that the map() closure is constructed before the future completes and suggest changing the code to something like this:
```
    async move {
        let len = foo(&s).await;
        (s, len);
    };
```

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions. The output might also be
different depending on the Edition.
-->
Repository: TypeScript
Issue: Feature Request: allow change file extension of generated files from `.ts` 
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->

add something like 

```
{
  "compilerOptions": {
    "module": "nodenext",
    "targetExtension": ".cjs",
}
```

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

- when `targetExtension` is `.cjs` , all `.ts` will emit as `.cjs`, but `.mts` still is emit as `.mjs`
- when `targetExtension` is `.mjs` , all `.ts` will emit as `.mjs`, but `.cts` still is emit as `.cjs`

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: pytorch
Issue: [NVFuser] bad performance on pyhpc_equation_of_state
Labels: triaged,module: nvfuser

### 🐛 Describe the bug

pyhpc_equation_of_state is showing ~40% decrease in performance compared to NNC. Note that in this model, the entire model is fused (as far as I can tell...)

Model: https://github.com/pytorch/benchmark/blob/main/torchbenchmark/models/pyhpc_equation_of_state/eos_pytorch.py
Alternate repro: 
```
python [pytorch dir]/scripts/jit/log_extract.py ir.txt --nnc-dynamic --nvfuser
```

download ir.txt from here: https://gist.github.com/davidberard98/5c89b07e101a332653a16da6da0d431d

### Versions

A100, viable/strict (`bfaa187fb0`), torchbench main branch (`9bb0bd7066`)

cc @jjsjann123
Repository: pytorch
Issue: [NVFuser] bad performance on mobilenet_v2 and mobilenet_v3_large
Labels: triaged,module: nvfuser

### 🐛 Describe the bug

-17% on mobilenet_v2 and -9.68% on mobilenet_v3_large.

From torchbench, run:
```
[ENV_FLAG] python run.py -m jit -d cuda -t eval [MODEL_NAME]
```

* replace ENV_FLAG with either `PYTORCH_JIT_ENABLE_NVFUSER=1` (for nvfuser) or `PYTORCH_JIT_USE_NNC_NOT_NVFUSER=1` (for nnc)
* replace MODEL_NAME with either `mobilenet_v2` or `mobilenet_v3_large`

Interestingly, if you use the log_extract tool it shows good perf for all of the graphs. Repro:
```
$ PYTORCH_JIT_LOG_LEVEL=">>log_extract" PYTORCH_JIT_ENABLE_NVFUSER=1 python [torchbench]/run.py -m jit -d cuda -t eval > logs.txt 2>&1
$ python [pytorch]/scripts/jit/log_extract.py logs.txt --nnc-static --nnc-dynamic --nvfuser
```

^ all the individual fusion groups show improvement, but the model as a whole gets worse.

Not quite sure why, but here are some possibilities:
* Could be some correctness issue, e.g. returning the wrong memory format from some fusion group (which would impact the overall model performance but possibly not the individual fusion group performance)
* Could be some sort of overhead (but why would that only happen in log_extract and not in the torchbench results?)
* Could be bad benchmarking either in log_extract or in torchbench.

### Versions

viable/strict, torchbench on main, A100. Built with DEBUG=0.

cc @jjsjann123
Repository: pytorch
Issue: [BE] Generalize recursive wrapping utility
Labels: oncall: distributed,better-engineering,module: fsdp

### 🚀 The feature, motivation and pitch

The wrap utilities in `torch.distributed.fsdp.wrap` are not actually FSDP specific as they take a configurable `wrapper_cls` argument. 

As seen in https://github.com/pytorch/pytorch/pull/78704/files, it can be leveraged for activation checkpointing as well. Might be useful to generalize this utility and offer it more widely.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501
Repository: godot
Issue: ScrollContainer will scroll up when come from background to foreground on iOS devices.
Labels: bug,platform:ios,topic:porting

### Godot version

3.4.4

### System information

Mac os 12.3.1

### Issue description

ScrollContainer will scroll up automatically when come from background to foreground on iOS devices.

### Steps to reproduce

add a scrollcontainer 
add a texturerect with a image bigger than the size of scrollcontainer
run on iOS device
move the game to background
move the game back to foreground 
the image will move up a little


### Minimal reproduction project

[scroll.zip](https://github.com/godotengine/godot/files/8874875/scroll.zip)
Repository: pytorch
Issue: [NVFuser] bad performance on pyhpc_isoneutral_mixing
Labels: triaged,module: nvfuser

### 🐛 Describe the bug

-9% on pyhpc_isoneutral_mixing compared to nnc.

Repro: 
```
[ENV_VAR] python run.py -m jit -d cuda -t eval pyhpc_isoneutral_mixing
```
where ENV_VAR is either:
* PYTORCH_JIT_USE_NNC_NOT_NVFUSER=1
* PYTORCH_JIT_ENABLE_NVFUSER=1

Alternatively, run https://gist.github.com/davidberard98/53b277b57ddc8d35340fecd279a9688d to run the individual fusion groups used in this model. Run `python pyhpc_isoneutral_mixing_ir.py --id x y z ... ` with a list of graph indices. The graph indices that are performing < -10% worse than nnc are: `8 12 13 15 19 20 29`

### Versions

viable/strict, torchbench=main, A100

cc @jjsjann123
Repository: electron
Issue: [Feature Request]: Add api for change 'type' of BrowserWindow
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


I pass the type when construct a BrowserWindow, and need to change it later.
It's there any api i can do this.

<img width="769" alt="image" src="https://user-images.githubusercontent.com/6300736/172983143-793c205d-7c73-4028-b16b-d3458a820a88.png">

### Proposed Solution

none

### Alternatives Considered

none

### Additional Information

_No response_
Repository: ant-design
Issue: Segmented 默认有选中样式，切换选项后，选中项样式消失
Labels: Internet Explorer,Inactive,IE | Firefox | Safari

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-1lrrx4?file=/test.jsx)

### Steps to reproduce

切换选项后选中项没有样式

### What is expected?

切换选项后选中项有样式

### What is actually happening?

切换选项后选中项没有样式

| Environment | Info |
| --- | --- |
| antd | 4.21.0 |
| React | 17.0.2 |
| System | windows 11 |
| Browser | IE11 |

---
其他浏览器正常，ie不行

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Allow extensions to add views to the secondary side bar
Labels: feature-request,layout,workbench-auxsidebar

Now that the secondary sidebar has fully landed, it would be great if extensions could add views directly to it.

I am hoping to use the secondary sidebar for a new "Commit Details" view in GitLens, that could possibly track the current line (like the line history) and also for showing commit details when we add the ability for having a full commit graph in an editor tab,

/cc @sbatten
Repository: vscode
Issue: Inconsistent rules for `.gitignore` and `files.exclude`
Labels: bug,file-explorer

<!-- ⚠️⚠️ 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.68.0
- OS Version: macOS 12.3.1

Steps to Reproduce:

1. Update to the latest version of VSCode
2. Enable `explorer.excludeGitIgnore` in `settings.json`
3. Try to ignore files using `.gitignore`
For example, `bin` in `.gitignore` ignores the all `bin` directories, but in `files.exclude`, it only ignores the top-level `bin` directory.
4. The hidden files / folders on the explorer are different than the ones ignored by Git
Repository: opencv
Issue: dynamic batch-size onnx problem
Labels: feature,category: dnn (onnx)

##### System information (version)

- OpenCV == 4.6.0
- Operating System / Platform => Windows 64 Bit
- Compiler => python3.8


##### Detailed description

I try to use cv2.dnn.readNetFromONNX to load an onnx segmentation model, this onnx model has a dynamic batch size. when i set batch-size=1, it worked. but when i use another batch size value, i got an exception: (python and c++ opencv both have this problem)
```
[ERROR:0@0.041] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp (1171) cv::dnn::dnn4_v20220524::Net::Impl::getLayerShapesRecursively OPENCV/DNN: [Convolution]:(onnx_node!Conv_12): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=2
[ERROR:0@0.041] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp (1174) cv::dnn::dnn4_v20220524::Net::Impl::getLayerShapesRecursively     input[0] = [ 2 1 16 1 1 ]
[ERROR:0@0.041] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp (1182) cv::dnn::dnn4_v20220524::Net::Impl::getLayerShapesRecursively     blobs[0] = CV_32FC1 [ 8 16 1 1 ]
[ERROR:0@0.041] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp (1182) cv::dnn::dnn4_v20220524::Net::Impl::getLayerShapesRecursively     blobs[1] = CV_32FC1 [ 8 1 ]
[ERROR:0@0.041] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp (1184) cv::dnn::dnn4_v20220524::Net::Impl::getLayerShapesRecursively Exception message: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\convolution_layer.cpp:405: error: (-2:Unspecified error) Number of input channels should be multiple of 16 but got 1 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes'

Traceback (most recent call last):
  File "E:/01_code/AEye/deploy/opencv/cls_cv_dnn.py", line 17, in <module>
    out = net.forward()
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\convolution_layer.cpp:405: error: (-2:Unspecified error) Number of input channels should be multiple of 16 but got 1 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes'

```

##### Steps to reproduce
```python
import cv2
import numpy as np

batch_size = 2

net = cv2.dnn.readNetFromONNX("dynamic_batch_seg.onnx")
image = cv2.imread("test.bmp", -1)
images = [image]*batch_size
blob = cv2.dnn.blobFromImages(images, 1.0/255, size=(256, 256))
print(blob.shape)  # (batch_size, 1, 256, 256)
net.setInput(blob)
out = net.forward()
out = out[0].astype(np.uint8)*255
cv2.imshow("image", image)
cv2.imshow("out", out)
cv2.waitKey(0)
 ```

test onnx model and test data can be found here: https://drive.google.com/drive/folders/16XEir77vtXAXwLC4oOAywDnMiYnLH5bg?usp=sharing

##### Issue submission checklist

 - [x] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found any solution
 - [x] I updated to the latest OpenCV version and the issue is still there
 - [x] There is reproducer code and related data files: videos, images, onnx, etc
Repository: godot
Issue: SpatialMaterial color different when used in Multimeshinstance vs MeshInstance
Labels: topic:rendering,documentation,topic:3d

### Godot version

3.4.4

### System information

Xubuntu 22.04, Intel UHD 620, GLES3

### Issue description

When using default SpatialMaterial in MeshInstance and MultimeshInstance, the same albedo color shows up different.

Here both cubes are using default SpatialMaterial with only albedo color changed for MeshInstance (left) and "user vertex color as albedo" set for MultimeshInstance (right):

![instancecolortest](https://user-images.githubusercontent.com/2310335/173048468-e98b7022-007b-4d37-b120-482d6b519a85.png)

Both have albedo color set to Color(0.5, 0, 0, 1).

### Steps to reproduce

Set same albedo color for SpatialMaterial through material property in MeshInstance and through instance color in MultimeshInstance.

### Minimal reproduction project

[InstanceColorTest.tar.gz](https://github.com/godotengine/godot/files/8878170/InstanceColorTest.tar.gz)
Repository: neovim
Issue: cursor doesn't move the correct position with `whichwrap` and `virtualedit=onemore`
Labels: bug-vim,needs:vim-patch

### Neovim version (nvim -v)

0.7.0

### Vim (not Nvim) behaves the same?

yes, vim 8.2.5046

### Operating system/version

Arch Linux

### Terminal name/version

Kitty 0.25.2

### $TERM environment variable

xterm-kitty

### Installation

Pacman (system package manager of Arch Linux)

### How to reproduce the issue

For example, we have a file named "text.txt" contain:

```
aaa bbb ccc
ddd eee fff
```

We open the file `nvim --clean text.txt`

then run the following commands:

```
:set ve=onemore
:set ww=h,l,<,>,[,]
```

move the cursor to the begin of line 2 by press <kbd>j</kbd>:

```
aaa bbb ccc
█dd eee fff
```
<sub>Current cursor position: `2,1`</sub>

> _Where `█` is the cursor._

Finally press <kbd>h</kbd> or <kbd>Left</kbd>.

### Expected behavior

The cursor move to one char past the end of the first line:

```
aaa bbb ccc█
ddd eee fff
```
<sub>Current cursor position: `1,12`</sub>


### Actual behavior

The cursor move to the last column of first line:

```
aaa bbb cc█
ddd eee fff
```
<sub>Current cursor position: `1,11`</sub>
Repository: godot
Issue: AnimationTree  AnimationNodeBlendSpace2D  Index p_point = 3 or more - is out of bounds 
Labels: bug,needs testing,topic:animation

### Godot version

Godot_v3.4.2-stable_win64

### System information

W10, GLES3

### Issue description

In the animation tree, it is not possible to correctly interact with the space of the BlendSpace2D animation node if the Y-position of the nested animation node is equal to or greater than 3.

### Steps to reproduce

The problem is in this part of the code,

(https://github.com/godotengine/godot/blob/45eaa2daf1e3d2571a9f31a3421911262ec82f51/scene/animation/animation_blend_space_2d.cpp#L211)

 where instead of using the current size of the space, we set the constant 3.
And honestly speaking, I don’t quite understand why there just do so piece by piece to limit the available space.


### Minimal reproduction project
[ANIM_BUG.zip](https://github.com/godotengine/godot/files/8920655/ANIM_BUG.zip)

_No response_