sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: [iOS] SectionList - Weird ListHeaderComponent re-render when no section data
Labels: Platform: iOS,Component: SectionList,Needs: Triage :mag:,Never gets stale

### Description

Only on iOS, when using a SectionList ListHeaderComponent, providing sections = [] will cause a weird re-render, whereas if there is any section data, this re-render does not happen.


Basically, is there any reason that the HeaderComponent should be forced to re-render when "sections" changes?


![2022-08-12 11 36 42](https://user-images.githubusercontent.com/10457353/184390081-290b8b2a-3fce-4398-841a-d64a4acf70c4.gif)

See Snack below of repro steps.

### Version

0.67.2

### Output of `npx react-native info`

System:
    OS: macOS 12.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 581.61 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
    Watchman: 2022.05.30.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: ^0.67.2 => 0.67.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

See Snack below, and follow these steps (need to load on iOS device, doesn't happen in web/android)

1. Scroll "filter pills" component to it's right-most state
2. Click "One", notice how the section list data filters to only rows with "One"
3. Deselect "One"
4. Click "Seven", notice how the "filter pills" component has jolted all the way back to the left, as there is no data found to filter by 

### Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/@tyler16cote/section-list-empty-render
Repository: godot
Issue: In enter_tree(), set_anchors_and_margins_preset() fails to set margins
Labels: bug,topic:gui

### Godot version

3.4.4.stable

### System information

Windows 10, GLES3, Radeon RX 580 (22.5.2)

### Issue description

Calling ```set_anchors_and_margins_preset``` (or similar methods) in ```_enter_tree``` doesn't correctly set the margins.


### Steps to reproduce

1. Open reproduction project.
2. Add custom node ```CustomNode``` to scene.
3. While ```set_anchors_and_margins_preset``` was called, the panel location is not correct.
4. Toggle the ```resize_trigger``` variable export on the node, running ```set_anchors_and_margins_preset``` instead within ```_process```.
5. Panel location is now correct.

### Minimal reproduction project

[Bug.zip](https://github.com/godotengine/godot/files/9322687/Bug.zip)
Repository: flutter
Issue: [plugins] Add more information to code-excerpt error message
Labels: team,p: tooling,package,team-ecosystem,P3,triaged-ecosystem

Currently the plugin tooling error message when a block doesn't have code excerpting set up says to add a `<?code-excerpt ...>` tag and make sure excerpting is configured. It turns out that if you don't do the latter (which currently doesn't fail: https://github.com/flutter/flutter/issues/109231) putting exactly that string is enough to cause the readme check to pass.

I wrote the error message assuming that it would be a reminder to people to follow the guidance they had already read in the contributor's guide, but if people haven't actually read the guide (which definitely happens, despite the PR checklist) the error message isn't sufficient. It will need to provide more detail, and/or link to the wiki.
Repository: kubernetes
Issue: imagePullPolicy to pull latest image OR use existing image if repository unavailable
Labels: sig/node,kind/feature,needs-triage

### What would you like to be added?

Add another option for a container's `imagePullPolicy`, which attempts to pull the image, and falls back to using a local cached copy if the image could not be pulled.

### Why is this needed?

In development, images are frequently updated, so it's essential to grab the latest version of the image to test against.

In production, single points of failure should be minimized, so if the image is available through the repository OR cached locally, then the container should be able to start up (i.e. neither the repo nor the local cache is a single point of failure).

Currently, `imagePullPolicy` only offers three options:
* `Always`: Only tries to pull the image; ignores cache and fails if repository is unavailable
* `IfNotPresent`: First tries to use a cached image; falls back to pulling the image
* `Never`: Only tries to use cached image; ignores repository

From these options, `Always` is the only one that grabs the latest changes, so it's the only suitable option for development, but it turns the repository into a single point of failure, so it's not suitable for production unless you're okay with everything breaking if the repository goes offline.

In addition, using the `latest` tag (or any other tag that changes, like a `v1` tag that gives the latest 1.x.y version) only works if the `imagePullPolicy` is `Always`, or the image cache on each node is cleared whenever the tag is updated, so if those tags are used in production, and you don't want the repository to be a single point of failure, then there is NO suitable option for production at all.

A fourth option, which first tries to pull the image, and falls back to using a cached copy (the inverse of `IfNotPresent`), would be well-suited to both development and production, and would fit in very nicely in between `Always` and `IfNotPresent`.

Honestly, I think this would be the only `imagePullPolicy` I would ever use for ANYTHING I do (work and personal projects) if it were available, and I don't understand why it's missing.
Repository: godot
Issue: Parse Error: [ext_resource] referenced non-loaded resource when loading a specific scene
Labels: bug,confirmed,topic:import,topic:3d

### Godot version

v4.0.alpha.mono.custom_build [67d401552]

### System information

Ubuntu 22.04

### Issue description

See the attached project for the scene in question.  You get this error when trying to load it:

```
  scene/resources/resource_format_text.cpp:177 - res://SlidingDoor/SlidingDoor.tscn:8 - Parse Error: [ext_resource] referenced non-loaded resource at: res://SlidingDoor/SlidingDoor.tscn
  scene/resources/resource_format_text.cpp:610 - res://SlidingDoor/SlidingDoor.tscn:8 - Parse Error: [ext_resource] referenced non-loaded resource at: res://SlidingDoor/SlidingDoor.tscn
  Failed loading resource: res://SlidingDoor/SlidingDoor.tscn. Make sure resources have been imported by opening the project in the editor at least once.
  editor/editor_data.cpp:530 - Index p_idx = 1 is out of bounds (edited_scene.size() = 1).
```

### Steps to reproduce

Simply open the attached project.  The default scene fails to load.

When you re-import the blend file referenced in the `SlidingDoor.tscn` file the scene will load fine, until you save the scene which breaks it again.  You can keep going round and round like that.

I believe it has something to do with this particular blend file, but I have yet to figure out what specifically is causing the issue.   Also I had this issue on previous GD4 commits, but it went away and came back again, so I think a fix may have been reverted recently.  If I find the commit where it broke, I'll update this issue.

### Minimal reproduction project

[Bug.zip](https://github.com/godotengine/godot/files/9328584/Bug.zip)
Repository: go
Issue: cmd/go: misleading error message for `go mod download` in incorrect workspace
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.19 linux/amd64
</pre>

### 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/branden/.cache/go-build"
GOENV="/home/branden/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/branden/go/pkg/mod"
GONOPROXY=(omitted)
GONOSUMDB=(omitted)
GOOS="linux"
GOPATH="/home/branden/go"
GOPRIVATE=(omitted)
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK="/home/branden/work/(omitted)/go.work"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2013897630=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

I cloned an existing module, say `git.example.com/example/example-mod`, to my filesystem at `~/work/example/example-mod`. It contains a valid go.mod file. `GOPRIVATE` is configured as `*.example.com`. I created a new workspace via `go work init` in `~/work/example`, but I forgot to add the module to it. Then, I ran `go mod download` inside the module.

### What did you expect to see?

Successfully downloaded dependencies, or an error message explaining that the current module is not in the workspace. Notably, I realized my problem because `go build` produced the latter:

```
~/work/example/example-mod$ go build
go: no modules were found in the current workspace; see 'go help work'
```

### What did you see instead?

A confusing error message about the standard library with no indication of a problem with the workspace:

```
~/work/example/example-mod$ go mod download
go: cannot match "all": go.mod file not found in current directory or any parent directory; see 'go help modules'
```

This was confusing because `all`, i.e. `std cmd`, refers to valid modules in my Go installation, and the module in which I was running this command has a go.mod.
Repository: terminal
Issue: Drop down menu of Settings->Startup->Default profile doesn't close with mouse click
Labels: Help Wanted,Issue-Bug,Product-Terminal,Priority-3,Area-SettingsUI

### Windows Terminal version

1.14.1962.0

### Windows build number

10.0.19044.1826

### Other Software

_No response_

### Steps to reproduce

- Open drop down menu of "Default profile" in Settings -> Startup
- click on any open area around the 6 Startup settings

### Expected Behavior

Drop down menu should close. It does for the other settings ("When terminal starts", "Launch mode", "New instance behavior").

### Actual Behavior

Drop down menu does not close.
Repository: vscode
Issue: Overlapping scrollbar doesn't scroll outer scrollbar
Labels: bug,splitview-widget

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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.70.0
- OS Version:  macOS 12.5 (21G72)


Steps to Reproduce:

There are overlapping scrollbars in the debugger section, in each of the section even if you reach the end of the scroll of the nested section, it does not scroll the outside scrollbar.

I believe it should scroll the outside scrollbar once you have reached the min or max scroll position in the inner scrollbar.

https://user-images.githubusercontent.com/14011001/184428389-5f4aee7a-0115-4e3c-9ca5-94bbcf47e067.mov
Repository: kubernetes
Issue: kube-proxy: log warning and/or Event if a NodePort overlaps with on-node ephemeral range
Labels: priority/backlog,sig/network,help wanted,triage/accepted

https://github.com/kubernetes/kubernetes/pull/111697 documents not to do this.  Would be good to make it visible when/if it does happen.

Something like this on each sync:
* open and parse /proc/sys/net/ipv4/ip_local_port_range
* compare all NodePorts and HCNP against this
* if overlap, log and Event

@danwinship 

Also need it in KPNG, I guess.
Repository: godot
Issue: Editor stalls and new performance regression when there are many lines of output in editor log.
Labels: bug,topic:editor,performance

### Godot version

3.5

### System information

All

### Issue description

Descriptive video of issue below (I've included audio commentary for some clarity).  When editor log has many entries (hundreds to thousands), the editor because very slow and sometime non-responsive.

https://user-images.githubusercontent.com/323868/184436039-5805145d-f332-4f30-825b-9646b65e1b5b.mov

Issue seems to be caused by cost of `RichTextLabel::_process_line()`.  

Note that the root issue in the video appears to be solely caused by cost of `RichTextLabel::_process_line()`.  We didn't have this particular issue in 3.4, and this video was taken with a build that we've already merged https://github.com/godotengine/godot/pull/64283 into.  


### Steps to reproduce

Output a few thousand lines to the editor log.... and try to resize or toggle any of the editor's control components.

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: checkpoint function is not jit compatible
Labels: oncall: jit

When I use the checkpoint function here: https://pytorch.org/docs/stable/checkpoint.html with jit in scripting mode, I got following error:

torch.jit.frontend.NotSupportedError: Compiled functions can't take variable number of arguments or use keyword-only arguments with defaults:
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/checkpoint.py", line 145
def checkpoint(function, *args, **kwargs):
                                 ~~~~~~~ <--- HERE
    r"""Checkpoint a model or part of the model
    raise NotSupportedError(ctx_range, _vararg_kwarg_err)

I rewrote the checkpoint function and removed *args and **kwargs, then I got another issue here:

Python builtin <built-in method apply of FunctionMeta object at 0x55a65def18e0> is currently not supported in Torchscript:
  File "/opt/ml/code/asr_kwoon/models/checkpoint.py", line 255
    
    #if use_reentrant:
    return CheckpointFunction.apply(function, preserve, output, pe, mask)
           ~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE

Seems like I need to rewrite all functions used by checkpoint to make it jit compatible. Is there any solution for this issue?
Repository: flutter
Issue: findAvailablePort in test.dart / service_worker_test.dart is a race condition and likely causes flaky tests
Labels: a: tests,platform-web,P2,c: flake,team-web,triaged-web

A number of tests in `service_worker_test.dart` and `test.dart` (starting with those introduced in https://github.com/flutter/flutter/pull/82307) use a very race-prone technique for finding a port that violates our style guide.

cc @yjbanov @keyonghan
Repository: godot
Issue: [3.5] draw_rulers on mac OSX causes error Invalid polygon data, triangulation failed
Labels: bug,platform:macos,topic:rendering,performance

### Godot version

3.5

### System information

Mac osx

### Issue description

In Godot 3.5, on a mac OSX, opening the editor can cause an endless print of `Invalid polygon data, triangulation failed.` which causes a massive performance degradation.

Project Settings -> HiDPI is enabled. No external monitor. Grid is enabled in the 2d editor. Initial scene is 2d.

Error is printed from this stack trace:
```
VisualServerCanvas::canvas_item_add_polygon()
VisualServerCanvas::canvas_item_add_line()
CanvasItemEditor::_draw_rulers()
```

Example points that cause this triangulation failure are:

```
Vector2(22.5, 4473933.5),
Vector2(22.5, 4473933.5),
Vector2(30.0, 4473931.5),
Vector2(30.0, 4473933.5)
```

You can see the endless printing in https://github.com/godotengine/godot/issues/64337

### Steps to reproduce

Open editor with hiDPI enabled, grid enabled, view the 2D canvas grid.

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: DDP + FSDP: Investigate behavior for nn.Module APIs
Labels: high priority,triage review,oncall: distributed,triaged,better-engineering,module: ddp,module: fsdp

### 🚀 The feature, motivation and pitch

Since DDP and FSDP are class wrappers, some nn.Module APIs may additional prefixing or otherwise not work in an equivalent fashion to local nn.Module instances due to the wrapping nature. This can cause some pain points in composing the modules together, checkpointing with `state_dict`, or any code that relies on module / parameter names / APIs such as `named_parameters`. This issue is to track what we can do for DDP / FSDP for each API. I've attempted to document current status below:

-- DDP --
- state_dict / load_state_dict: Adds `module` prefix, but this can be worked around and stripped out with a flag or env variable (needs a PR to enable). 
- named_parameters / named_buffers - Adds `module` prefix as well
- named_modules / modules() - includes DDP wrapped module as well, wrapped module is prefixed with "module"
- children() - returns wrapped module and its children, whereas we might just want to return the wrapped module's children if we want equivalence to local

-- FSDP --
- state_dict / load_state_dict: There are various ways to checkpoint, but `full_state_dict` and `sharded_state_dict` should checkpoint with original parameter names
- named_parameters / named_buffers - In `summon_full_params` context, equivalent to local module checkpoint. Otherwise, `flat_param` type info is returned. @awgu is working on exposing original parameters which may help alleviate this issue
- named_modules / modules() - same as DDP, includes wrapped module as well, and all nested FSDP wrappers.
- children() - returns wrapped module and its children, same as DDP.

Also, we should check what these APIs do when DDP / FSDP is not the top-level module and just a non-root in the module hierarchy. It is not guaranteed that these APIs would remain the same.

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @gchanan @zou3519 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @kwen2501
Repository: rust
Issue: Add git tags for beta versions?
Labels: T-release,A-meta

Hi there --

I recently found myself wanting to go back and look at the source of a Rust beta version, and found that unfortunately no tags or releases had been published for them. Wondering if it would be possible to publish tags for beta versions in the future.

I don't particularly care about publishing a GitHub Release. Just a tag is fine, some sort of reference I can go to to look at the source code for beta versions.

I was pointed to this tracker by @jyn514 :) TIA!
Repository: opencv
Issue: cv::cudacodec::createVideoReader
Labels: category: gpu/cuda (contrib),incomplete

I now have an 8k (6240*4160 resolution) camera and use cv::cudacodec::createVideoReader(fname) for gpu accelerated decoding, but the following error occurs:
```
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.0) /home/pcb/Algorithm/FallAlgorithm_Linux123/opencv-4.5.0/opencv_contrib/modules/cudacodec/src/video_decoder.cpp:106: error: (-215:Assertion failed) videoFormat.width >= decodeCaps.nMinWidth && videoFormat.height >= decodeCaps.nMinHeight && videoFormat.width <= decodeCaps.nMaxWidth && videoFormat.height <= decodeCaps.nMaxHeight in function 'create'
```
Do you have an idea to solve my problem? I thank you in advance，thanks!
Repository: vscode
Issue: Turn quick access prefixes into blocks so that they can be easily cleared
Labels: feature-request,quick-open

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

For clarification, these are the quick access prefixes I'm mentioning about 
![image](https://user-images.githubusercontent.com/70792552/184472359-1b3034ff-716f-4db1-9ffc-e3c094393251.png)

1. When we type these in, there should be some autocompletion. (there isn't currently)
2. When we are clearing these prefixes using backspace, delete them as the whole block.

My idea takes inspiration from discord search bar.
![msedge_Ec6lgJ9qey](https://user-images.githubusercontent.com/70792552/184472531-9f7958b9-499a-4a01-919b-96dccbb502e7.gif)