sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: flutter_markdown: give access to children
Labels: package,c: proposal,team-ecosystem,P3,p: flutter_markdown,triaged-ecosystem

## flutter_markdown: search (and highlight) rendered text

I want to search and highlight text in the Markdown widget.

Currently, it can be done in several nonideal ways:
1. Preprocess input to Markdown(data: ..), making found text bold: `**found text**`.  Highlight by setting style: MarkdownStyleSheet(
                                strong: ...)
This approach has drawbacks of highlighting all entries with the themed tag, not only searched ones. Also, simple preprocessing without taking context into account can break syntax elements: links, tables e.t.c.

2. Create InlineSyntax, to locate searched text and insert node with a custom tag. Create MarkdownElementBuilder for the custom tag.
This approach has a drawback of losing parent element style, as described in https://github.com/flutter/flutter/issues/105571. Also, the text of elements like links seems to be unavailable for inline syntaxes and will not be found.

## Proposal

flutter_markdown builds Markdown widget out of standard Flutter widgets. Giving access to children's widgets, especially with an ability to assign TextEditingController, may help to achieve search and highlighting goals.
Repository: go
Issue: proposal: net/netip: add `UnmappedEquals(netip.AddrPort)` to `netip.AddrPort`
Labels: Proposal

In configuration and other places, IPv4 addresses are usually specified unmapped, like `1.1.1.1:53`. When dealing with `ReadFromUDPAddrPort` and `ReadMsgUDPAddrPort`, the returned `netip.AddrPort` is likely to be an IPv4-mapped IPv6 address, like `[::ffff:1.1.1.1]:53`, depending on how the UDP socket was opened.

To check whether these 2 addresses point to the same endpoint, we would have to do something like:

```go
// AddrPortMappedEqual returns whether the two addresses point to the same endpoint.
// An IPv4 address and an IPv4-mapped IPv6 address pointing to the same endpoint are considered equal.
// For example, 1.1.1.1:53 and [::ffff:1.1.1.1]:53 are considered equal.
func AddrPortMappedEqual(l, r netip.AddrPort) bool {
	if l == r {
		return true
	}
	return l.Port() == r.Port() && l.Addr().Unmap() == r.Addr().Unmap()
}
```

It'd be nice if we have a method on `netip.AddrPort` to directly compare the unexported `addr` field in `netip.Addr`. I propose we add something like:

```go
func (p AddrPort) UnmappedEquals(p1 netip.AddrPort) bool {
	return p.port == p1.port && p.ip.addr == p1.ip.addr
}
```

The method can also be called `MappedEquals` if #54365 is accepted.

/cc @bradfitz
Repository: pytorch
Issue: Expand Learning rate scheduling to any optimization hyperparameter
Labels: feature,module: optimizer,triaged,needs design,module: LrScheduler

### 🚀 The feature, motivation and pitch

I'm developing a new optimizer using the PyTorch optimizer framework. It does not depend on a learning rate, but on a KL-divergence. I would like to schedule other optimization hyperparameters (given in the optimizer config) with the PyTorch scheduler. Right now, the key `lr` is hardcoded inside the schedulers. 

I would like to have an option where you can specify the key/name of the scheduled variable when creating a scheduler. This would also unify other schedulers (for example weight decay). 

### Alternatives

I considered renaming my optimization hyperparameter `kl_div` to `lr` and use the learning rate scheduler. However, since it is not a learning rate this is not correct and may cause confusion on the user.

### Additional context

_No response_

cc @vincentqb @jbschlosser @albanD
Repository: pytorch
Issue: Optimize for mobile metal model
Labels: oncall: mobile

### 🐛 Describe the bug

Traceback (most recent call last):
  File "metal_model.py", line 15, in <module>
    script_model_metal = optimize_for_mobile(script_model, backend='metal')
  File "/anaconda3/envs/metal/lib/python3.8/site-packages/torch/utils/mobile_optimizer.py", line 69, in optimize_for_mobile
    optimized_cpp_module = torch._C._jit_pass_metal_optimize_for_mobile(script_module._c, preserved_methods_str)
RuntimeError: 0INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1623448216815/work/torch/csrc/jit/ir/alias_analysis.cpp":532, please report a bug to PyTorch. We don't have an op for metal_prepack::conv2d_prepack but it isn't a special case.  Argument types: Tensor, Tensor?, int[], int[], int[], int, NoneType, NoneType, 


### Versions

Collecting environment information...
PyTorch version: 1.10.1
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.24.0
Libc version: glibc-2.31

Python version: 3.8.13 (default, Mar 28 2022, 11:38:47)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.15.0-43-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1060 6GB
Nvidia driver version: 515.65.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.10.1
[pip3] torchaudio==0.10.1
[pip3] torchvision==0.11.2
[conda] blas                      1.0                         mkl    conda-forge
[conda] cudatoolkit               11.3.1               h2bc3f7f_2    anaconda
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h06a4308_640    anaconda
[conda] mkl-service               2.4.0            py38h7f8727e_0    anaconda
[conda] mkl_fft                   1.3.1            py38hd3c417c_0    anaconda
[conda] mkl_random                1.2.2            py38h51133e4_0    anaconda
[conda] numpy                     1.22.3           py38he7a7128_0    anaconda
[conda] numpy-base                1.22.3           py38hf524024_0    anaconda
[conda] pytorch                   1.10.1          py3.8_cuda11.3_cudnn8.2.0_0    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] torchaudio                0.10.1               py38_cu113    pytorch
[conda] torchvision               0.11.2               py38_cu113    pytorch
Repository: PowerToys
Issue: Unity windows not snapping to declared zones when in editor. 
Labels: Issue-Bug,FancyZones-Dragging&UI,Product-FancyZones,Priority-3,Area-App Compat

### Microsoft PowerToys version

0.61.1

### Running as admin

- [X] Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

When running Unity (2021.3.6f1) the windows you can detach from the editor dont want to snap to declared fancy zones. The editor itself works and so does the unity hub. Its just the regular windows like "Scene", "Game", "Inspector" and so on.

### ✔️ Expected Behavior

I´d like the windows to snap to the declared zones, so i can improve my workflow :)

### ❌ Actual Behavior

The zones dont snap.

### Other Software

Unity 2021.3.6f1 Personal
Repository: pytorch
Issue: torch.nn.functional.log_softmax  parameter '_stacklevel' undocumented
Labels: module: nn,triaged,actionable

### 📚 The doc issue

The documentation of the very popular torch.nn.functional.log_softmax doesn't explain what _stacklevel is, why it's set to 3 and what to do with it.

### Suggest a potential alternative/fix

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: excalidraw
Issue: hide line points when there's too many of them
Labels: UX/UI,arrow-redesign

In many cases when the shape is very complex, showing the points outside of line editor makes it almost impossible to move around.

I'd either 1) not show points when there are too many of them, or 2) when they're too close to each other.

![image](https://user-images.githubusercontent.com/5153846/183867118-6c696cc3-30d8-475b-82cf-c0565ccaf465.png)
Repository: pytorch
Issue: deepcopy of LazyLinear fails
Labels: module: nn,triaged,actionable

### 🐛 Describe the bug

When running 
```
l_linear = LazyLinear(10)
deepcopy(l_linear)
```
the following error is triggered
```
Exception has occurred: TypeError
empty() received an invalid combination of arguments - got (int, dtype=NoneType, device=bool), but expected one of:
 * (tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
 * (tuple of SymInts size, *, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
 * (tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
  File "/Users/ndufour/Documents/pytorch/rl/debug_deepcopy.py", line 9, in <module>
    deepcopy(l_linear)
```
This prevents making deepcopy of models before doing forward on one of them

### Versions

Collecting environment information...
PyTorch version: 1.13.0.dev20220725
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.5 (arm64)
GCC version: Could not collect
Clang version: 13.1.6 (clang-1316.0.21.2.5)
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.12 (main, Jun  1 2022, 06:34:44)  [Clang 12.0.0 ] (64-bit runtime)
Python platform: macOS-12.5-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] functorch==0.3.0a0+516a8cd
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.1
[pip3] torch==1.13.0.dev20220725
[pip3] torchrl==0.0.1a0+008bebd
[pip3] torchvision==0.14.0.dev20220725
[conda] functorch                 0.3.0a0+516a8cd          pypi_0    pypi
[conda] numpy                     1.23.1           py39h42add53_0  
[conda] numpy-base                1.23.1           py39hadd41eb_0  
[conda] pytorch                   1.13.0.dev20220725         py3.9_0    pytorch-nightly
[conda] torchrl                   0.0.1a0+008bebd           dev_0    <develop>
[conda] torchvision               0.14.0.dev20220725        py39_cpu    pytorch-nightly

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: pytorch
Issue: torch.nn.functional.softplus / torch.nn.Softplus parameter beta can be set to zero
Labels: module: nn,triaged

### 🐛 Describe the bug

According to the documentation, Softplus(x)=(1/β)∗log(1+exp(β∗x)). Beta is  the denominator. However, I found that beta can be assigned to zero. Is this reasonable?
```
import torch
results={}
arg_1 = torch.rand([], dtype=torch.float32)
results['res'] = torch.nn.functional.softplus(arg_1,beta=0,threshold=20)
```
```
import torch
results={}
arg_class = torch.nn.Softplus(beta=0)
arg_1 = torch.rand([2], dtype=torch.float32)
results['res'] = arg_class(arg_1)
```
Above code runs.

### Versions

pytorch: 1.8.1
python: 3.8.3
os: win11

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: flutter
Issue: Implement full support for variable fonts
Labels: c: new feature,framework,a: typography,c: proposal,P2,team-framework,triaged-framework

Breaking this out of a [comment](https://github.com/flutter/flutter/issues/33709#issuecomment-1076682059) by @davelab6 . Flutter now support variable fonts on all platforms (web canvaskit soon), this issue is about improving support to aid in the developer experience.

So, to implement full support for variable fonts, I recommend Flutter have those 4 things:

* a way to set variable font axes values with inheritance 
* by default, when the `opsz` axis exists in a font, set the value to the font size, and allow a ratio override, plus override via the above axis value sette. (Ideally the auto value is resolved to physical Points, 1/72nd of an inch, although I am recommending that ideal as a partisan and recognize there are other positions on what value to use; but the key idea is that it is set based on font size)
* correctly render semi-opaque text
* correctly render outline-stroked text

_Originally posted by @davelab6 in https://github.com/flutter/flutter/issues/33709#issuecomment-1076682059_

and the following comment: 

* Flutter developers and end users of flutter apps will need a easy way to know what's actually available in each VF family; that's because they will often be constructing UIs for end users to set axes values, as much as they will set axes values within the apps own code itself.

Related issues: #33709 

See go/default-opsz.
Repository: rust
Issue: closures/async blocks capture all lifetimes in scope
Labels: A-closures,T-compiler,A-impl-trait,C-bug,F-type_alias_impl_trait,T-types

This should compile, but it fails with a cryptic error message:
```rust
#![feature(type_alias_impl_trait)]

trait Trait {}

type Fut = impl Sized;

fn call<'a>() -> Fut
where
    &'a (): Trait,
{
    async {}
    //~^ ERROR the trait bound `&'<empty> (): Trait` is not satisfied
}
```

The reason for this is that the hidden type of `Fut` in the defining function is `call::<'a>::generator#0`, but because we can't reference `'a` in the hidden type, the type is converted to `call::<'empty>::generator#0` here:
https://github.com/rust-lang/rust/blob/1603a70f82240ba2d27f72f964e36614d7620ad3/compiler/rustc_borrowck/src/region_infer/opaque_types.rs#L110

The hidden type then fails WF checks because of the additional checks done in #96899 and #97183.

This now affects only type-alias-impl-trait, only because we don't WF-check the hidden type of return-position-impl-trait after borrow-checking.

@rustbot label A-impl-trait A-closures F-type_alias_impl_trait C-bug T-compiler T-types
Repository: go
Issue: cmd/go: hangs with ssh timeouts for https-hosted repo
Labels: NeedsInvestigation,Tools

gopls 0.9.1/go 1.18.4

This is not a new issue, but it appears to be a regression not seen in quite some time.

When trying to open a workspace folder containing many references to normally "unresolvable" packages, gopls gets totally stuck and unable to function while also spamming the VS Code status bar with the error message "context deadline exceeded".

The deadline is exceeded because "git ls-remote <some unresolvable url>" is unable to complete (for whatever unrelated reason). In quite a few preceding gopls versions it was not a problem (the "bad" packages will get a red squiggle and everything else just works), but 0.9.1 somehow gets very upset.
Repository: vscode
Issue: There is no color customization option for layout controls in the hover state
Labels: themes,under-discussion

<!-- ⚠️⚠️ 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.70.0
- OS Version: macOS Ventura Version 13.0 Beta (22A5295i)

Layout controls have no ways to be customized in colors. I tried to check other themes and I found no example where they were custom colored. The main colors are the title bars:

<img width="426" alt="Screenshot 1401-05-19 at 18 00 54" src="https://user-images.githubusercontent.com/2157285/183913885-acba99be-ba0b-421c-9575-6e3e4bb82b03.png">

but then there are no colors when the buttons are hovered:

<img width="455" alt="Screenshot 1401-05-19 at 18 16 06" src="https://user-images.githubusercontent.com/2157285/183917243-4cdc9711-dd7e-45a2-870f-2f9201906efe.png">
Repository: create-react-app
Issue: After upgrading to React 18 version and CRA 5 can not make a build 
Labels: needs triage,issue: bug report

My React application code compiled successfully but when hit `yarn build`  command failed with following error.


Module not found: Error: Can't resolve 'D:/projects/updateui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js' in 'D:\projects\updateui\src\components'

I have upgrade my application React 16 and CRA 4 to React 18 and CRA 5.
Any suggestion will be appreciated.
Repository: pytorch
Issue: torch.nn.GRU runs long time, when num_layers is large
Labels: module: nn,triaged,module: edge cases

### 🐛 Describe the bug

When num_layers is 100000, torch.nn.GRU runs more than 5 minutes. Program hangs and doesn't return result.
```
import torch
results={}
arg_1 = 10
arg_2 = 20
arg_3 = 100000
arg_class = torch.nn.GRU(arg_1,arg_2,arg_3,)
```

### Versions

pytorch: 1.8.1
python: 3.8.3
os: win11

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @saketh-are
Repository: godot
Issue: Ungrouped variables exported through _get_property_list() require a preceding / to avoid using a custom setter.
Labels: bug,topic:gdscript,documentation

### Godot version

3.5.stable

### System information

Windows 10

### Issue description

GDScript documentation shows uses of code such as the following to export variables to the editor:

``` gdscript
func _get_property_list():\
    var properties = []
    # Same as "export(int) var my_property"
    properties.append({
        name = "my_property",
        type = TYPE_INT
    })
    return properties
```
If we add an overridden _set():
```gdscript
func _set(property, value):
    if property == "my_property":
        my_property = value
        property_list_changed_notify()
        return true
```
The "my_property" variable here would not be updated through the overridden `_set()` function in a tool script, and subsequently never calls `property_list_changed_notify()`. A custom Setter would need to be added if you needed the editor UI to react to changes to the property without switching back and forth between nodes.

Instead, if you write it as "/my_property" it stays the same in the editor (no drawer/group) but activates the overridden _set(), allowing for code that updates the UI thanks to property_list_changed_notify() being called in the overridden _set().

If it's working as intended then the Docs should reflect the use of the preceding / to work with overridden _set() functions.

### Steps to reproduce

In the supplied project:

The "working" node allows you to use the _set() override. It updates the UI on variable change.

the "not_working" node's editor UI will only update after changing scenes and coming back to it as the _set() override is never called.

### Minimal reproduction project

[property_list.zip](https://github.com/godotengine/godot/files/9301367/property_list.zip)
Repository: vscode
Issue: three space block does not indent with tab
Labels: under-discussion,editor-indent-detection


Type: <b>Bug</b>

The middle block of the following code was only indented 3 spaces instead of the customary 4:

    if 1:
        'indents properly'
    elif 2:
       'does not indent properly'
    elif 3:
        'indents properly'

Upon selecting it and pressing Tab, the code is modified as follows: (a syntax error in Python)

        if 1:
            'indents properly'
        elif 2:
        'does not indent properly'
        elif 3:
            'indents properly'

While it was user error to have indented only three spaces instead of four in that middle block, I would still expect it to indent by adding 4 additional spaces, maintaining alignment with the surrounding code.

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:55.829Z)
OS version: Darwin x64 21.6.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)|
|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>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 3|
|Memory (System)|16.00GB (0.02GB free)|
|Process Argv|--crash-reporter-id 635151f7-7a83-46b2-837b-839361cadc54|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (12)</summary>

Extension|Author (truncated)|Version
---|---|---
gitlens|eam|12.1.2
copilot|Git|1.39.6432
python|ms-|2022.12.0
vscode-pylance|ms-|2022.8.10
jupyter|ms-|2022.7.1002181843
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.9
remote-ssh|ms-|0.84.0
remote-ssh-edit|ms-|0.80.0
cpptools|ms-|1.11.5
vsliveshare|ms-|1.0.5683
markdown-all-in-one|yzh|3.4.3


</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
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
wslgetstarted:30449410
cppdebug:30492333
pylanb8912cf:30529770
vsclangdf:30486550
c4g48928:30535728
hb751961:30543456
dsvsc012:30540252

```

</details>

<!-- generated by issue reporter -->