sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: diagnostics, print better suggestion if we forget the "fn" keyword in an impl {} block
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
impl SourceCorruption {
    print_details(&self) -> String {
        todo!()
    }
}
```

The current output is:

```
   Checking cargo-cache v0.8.1 (/home/matthias/vcs/github/cargo-cache)
error: expected one of `!` or `::`, found `(`
  --> src/verify/verifyable.rs:28:18
   |
27 | impl SourceCorruption {
   |                       - while parsing this item list starting here
28 |     print_details(&self) -> String {
   |                  ^ expected one of `!` or `::`
...
31 | }
   | - the item list ends here

```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
   Checking cargo-cache v0.8.1 (/home/matthias/vcs/github/cargo-cache)
  --> src/verify/verifyable.rs:28:18
   |
27 | impl SourceCorruption {
   |                       - while parsing this item list starting here
28 |     print_details(&self) -> String {
   |    ^ expected `fn` keyword
...
31 | }
   | - the item list ends here

```
(or somehting like that)

<!--
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: flutter
Issue: `flutter test` should fail if attempting to run a unit test in an unsupported mode.
Labels: a: tests,framework,engine,P2,team-engine,triaged-engine

Specifically, we should disallow running host unit tests where asserts are disabled or in any mode but debug.

We've had some customers run unit tests e.g. in profile mode with asserts enabled, or in any mode with asserts disabled, and this ends up causing confusing and misleading test failures (e.g. a null check fails because it was guarded by `kDebugMode` in one place and `assert` in another).

One way to do this would be to have `flutter_tester` assert that the snapshot it's runnnig was compiled such that `dart.vm.(profile|release)` is false and asserts were enabled. I'm not sure if this is possible or not today. It also would break some valid tests the engine repo runs to make sure it can handle these modes.

Another way would be to make the `flutter_test` package assert this, e.g.

```dart
  bool valid = false;
  assert(() {
    valid = kDebugMode;
    return true;
  }());
  if (!valid) {
    throw StateError('Flutter tests must be run in debug mode with asserts enabled.');
  }
```

We would want to make sure this only got applied to host unit tests though, and not to on-device integration tests (e.g. for flutter_drive or integration_test).
Repository: rust
Issue: Tracking issue for associated const equality
Labels: A-associated-items,T-lang,C-tracking-issue,A-const-generics,S-tracking-impl-incomplete,F-associated_const_equality,B-experimental

This is a tracking issue for the experimental feature *associated const equality* brought up in #70256[^1] (RFC pending).
The feature gate for the issue is `#![feature(associated_const_equality)]`.

### About experimental features

An experimental feature is one that has not yet had an RFC. The idea is to allow implementation work to proceed to better inform an upcoming RFC. Experimental features cannot be stabilized without first having an RFC. The existence of an experimental feature does not indicate lang team consensus that the feature is desirable, only that there is a problem that is worthy of being solved and that the idea has enough merit to consider exploring. See [the lang team process page][experimental] for more details.

[experimental]: https://lang-team.rust-lang.org/how_to/experiment.html

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [ ] Fully implement the feature
  - [ ] Address important open https://github.com/rust-lang/rust/labels/F-associated_const_equality issues
  - [ ] Support const projections in the next trait solver
  - [ ] Address all blocking `FIXME(associated_const_equality)`
- [ ] Write an RFC
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Formatting for new syntax has been added to the [Style Guide] ([nightly-style-procedure])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md 
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

None so far.

### Implementation history

* #87648[^2]
* #93285[^3]
* #118668
* #119385
* #121258

[^1]: Original proposal with support but no official RFC, but implementation delayed.
[^2]: Initial effort to implement which includes parsing and use of `term` throughout the codebase, but still lacking a complete implementation.
[^3]: More thorough implementation which works for basic cases. This allowed for consts to actually be bound, more than just parsing them.
Repository: excalidraw
Issue: `updateScene` doesn't restore data
Labels: bug,package:excalidraw

causing breaking changes like this one https://github.com/excalidraw/excalidraw/issues/4579#issuecomment-1011381754

/cc @zsviczian @ad1992
Repository: pytorch
Issue: [docs] nn.Sequential docs should list member functions
Labels: module: docs,triaged

### 📚 The doc issue

https://pytorch.org/docs/stable/generated/torch.nn.Sequential.html?highlight=nn%20sequential#torch.nn.Sequential

doesn't list any methods. I propose it should duplicate some generic entries, useful on a Sequential, e.g. `add_module` (at least a summary table of available methods). It may be worth adding as well that it doesn't currently support `append` (which would allow adding an item without a name). Supporting `append`/`extend` may be a good idea though.

### Suggest a potential alternative/fix

_No response_

cc @brianjo @mruberry
Repository: godot
Issue: Cannot open res:// file from directory in exported project through FileDialog
Labels: bug,topic:core,confirmed

### Godot version

v3.4.2.stable.official [45eaa2daf]

### System information

Ubuntu 21.10, Linux 5.15, GLES3, NVIDIA 495.46, GTX 2070, 

### Issue description

The `FileDialog` cannot open files from `res://` when the file is in a sub directory, when the project is exported. Files are opened fine when they are in the root of `res://`.

Not being able to open them means that a file in a sub directory cannot be 'confirmed'. The 'Open' button or double clicking simply does nothing.

This only happens when the project is exported. Running from the editor works fine. I'm assuming this has to do with reading from the `.pck` file.

### Steps to reproduce

See the attached project. Export with `*.txt` as non-resource, to include it in the export.

Run the project from the editor:
- Opening `res://text.txt` and `res://sub/text.txt` works fine.

Run the exported project:
- Opening `res://text.txt` works fine
- Opening `res://sub/text.txt` fails and does nothing

### Minimal reproduction project

[godot-res-error.zip](https://github.com/godotengine/godot/files/7858746/godot-res-error.zip)
Repository: flutter
Issue: [Desktop] Holding down a key does not repeat repeat KeyStrokes
Labels: a: text input,framework,engine,a: desktop,has reproducible steps,P2,found in release: 2.8,found in release: 2.9,team-text-input,triaged-text-input

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
Holding down a keyboard key should repeat the key similar to the web client.

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->
Repository: create-react-app
Issue: BROWSER_ARGS in .env file is not working in Chrome 90 version (MAC OS)
Labels: needs triage

I have tried the below method to start app in a web security disabled browser to avoid CORS issue.  (Added in `.env` file)

BROWSER=google chrome
BROWSER_ARGS=--user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security --disable-site-isolation-trials --ignore-certificate-errors --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --unsafely-treat-insecure-origin-as-secure=http://localhost:3000

When we do this in terminal (open chrome command with above args) - It is launching the browser with given browser args. But, BROWSER_ARGS is getting ignored if we provide inside _.env_ file. It is launching in the normal chrome browser (wit security enabled)

Please update me if you need further details from my end.
Repository: pytorch
Issue: The jit model will fail when calling the torch.autograd.functional.jacobian with multiple inputs and setting the vectorize to true.
Labels: oncall: jit,module: bootcamp,NNC

### 🐛 Describe the bug

When I try to obtain the jacobian of a jit model with vectorize set to true, I will encounter the error "Cannot access data pointer of Tensor that doesn't have storage". And if I disable the jit.script, the model can be executed in the right way. Next is the code that can reproduce the error.
```
import torch
from torch import nn
from torch.nn import Linear,Sequential,LayerNorm
from torch.autograd.functional import jacobian
class jaco_bug(torch.nn.Module):
    def __init__(self):
        super(jaco_bug,self).__init__()
        self.linear=Linear(10,10)
        self.layernorm=LayerNorm(10)
        self.linear1=Linear(10,5)
        self.silu=nn.SiLU()
        
    def forward(self,x,y):
        x=x+y
        return torch.sum(self.linear1(self.layernorm(self.silu(self.linear(x)))),dim=0)

testmodel=jaco_bug().eval()
testmodel=torch.jit.script(testmodel)

for i in range(100):
    x=torch.randn(3,10) 
    y=torch.randn(3,10) 
    hess=jacobian(lambda x: testmodel(x,y) ,x,create_graph=False,vectorize=True)
    print(hess)

```
![Uploading 捕获.JPG…]()


### Versions

Torch: 1.10
Repository: PowerToys
Issue: Mousetools - Mousemarker feature request: Shrinking outline circle on click
Labels: Idea-Enhancement,Needs-Triage,Product-Mouse Utilities

### Description of the new feature / enhancement

When Mousemarker is activated, show a highlight filled circle around the mouse cursor (like in findmymouse but without dark overlay), When left / right click is executed show an animated circle outline, shrinking from the border of the highlight circle to its center and then disapear.

### Scenario when this would be used?

In presentations or teaching calls. Ithink it a bit more undertandable compared to the current behavior (showing a filled color circle upon click). People are used to this shrinking circle from other tools and training videos on youtube.

### Supporting information

_No response_
Repository: PowerToys
Issue: [Preview Pane] Add possibility to set file size threshold to avoid showing big files
Labels: Idea-Enhancement,Help Wanted,Product-File Explorer

### Description of the new feature / enhancement

Add a field where the user can specify the maximum file size he would like to show to the Preview Pane, to avoid showing big files, which would take a lot of time/RAM to load, and in some cases would crash the File Explorer.

Adding a settable parameter (e.g. `max_size`) would be enough to solve this problem I suppose. As an example, `max_size = 1 MB` would only show to the Preview Pane files of size up to 1 MB.

### Scenario when this would be used?

When the file size too big for the available RAM size.

When the file size (e.g. an svg image in my case) is too big: the Preview Pane takes forever, consumes a lot of RAM to load it and then the File Explorer crashes.

### Supporting information

_No response_
Repository: godot
Issue: Vulkan: Reflection Probes with Shadows Enabled Render Directional Light Shadows for Culled Objects
Labels: bug,topic:rendering,topic:3d

### Godot version

v4.0.dev.20220105.official [8f6cba3a4]

### System information

Windows 11, Vulkan, Nvidia Quadro K2000 472.84

### Issue description

Objects that aren't rendered by Reflection Probes still have their Directional Shadows Re-Rendered. This doesn't happen for General Shadows.

This Massively Impacts Reflection Probe Performance When Shadows are Enabled and Directional Lights are in the Scene, as often you cull most very intense polycount objects from reflections, but their shadows end up still being processed.

Note: Only able to test Mobile renderer, as Clustered Cull is bugged for RPs.

### Steps to reproduce

Open MRP, Toggle Cull 1 in Reflection Probe and observe how Shadows remain when the Casters aren't visible anymore.

### Minimal reproduction project

[Bug.zip](https://github.com/godotengine/godot/files/7862485/Bug.zip)
Repository: pytorch
Issue: AdaptiveAvgPool2d Failed to jit script
Labels: oncall: jit

### 🐛 Describe the bug

it will failed to jit.script when  use **nn.AdaptiveAvgPool2d((None, 1))**  in model. 
it complains :
    _adaptive_avg_pool2d(Tensor input, int[2] output_size) -> (Tensor):
    Expected a value of type 'List[int]' for argument 'output_size' but instead found type 'Tuple[NoneType, int]'._

see the sample code:
```
import torch
from torch.functional import Tensor
import torch.nn as nn

class Model(nn.Module):

    def __init__(self):
        super(Model, self).__init__()
        self.AdaptiveAvgPool = nn.AdaptiveAvgPool2d((None, 1))  # Transform final (imgH/16-1) -> 1

    def forward(self, input):
        return self.AdaptiveAvgPool(input)

m = torch.jit.script(Model())

# Save to file
torch.jit.save(m, 'e:/scriptmodule.pt')
```

### Versions

PyTorch version: 1.8.0+cu111
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 专业版
GCC version: (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project) 8.1.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19042-SP0
Is CUDA available: True
CUDA runtime version: 11.4.100
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1050
Nvidia driver version: 472.39
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] Could not collect
[conda] Could not collect
Repository: flutter
Issue: [Android] Flutter tool should ask before uninstalling old version of the app
Labels: c: new feature,platform-android,tool,c: proposal,a: build,P3,team-android,triaged-android

## Use case

My application has some data synced from server in local database. Initial synchronization can take some time. If I try to run flutter in debug mode and installation fails for some reason (e.g. downgrading version, or using incorrect certificate for debug/release - easilly fixable mistakes) flutter automatically uninstalls old version and tries to install again.

```
Running Gradle task 'assembleDebug'...
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Performing Streamed Install
Error: ADB exited with exit code 1
adb: failed to install build/app/outputs/flutter-apk/app.apk:
Uninstalling old version...
Installing build/app/outputs/flutter-apk/app.apk...
```

This of course wipes all data and settings. Ability to abort installation could prevent this.

## Proposal

I think there 2 possible approaches for this.

1. Adding new run parameter (e.g. --force-installation), that will implement current behavior. IDE plugins could have checkbox for it
2. Installation should pause with yes/no question whether user wants to uninstall old version (no should be default IMHO as it is more safe)

Yes example:
```
Running Gradle task 'assembleDebug'...
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Performing Streamed Install
Error: ADB exited with exit code 1
adb: failed to install build/app/outputs/flutter-apk/app.apk:

Do you want to uninstall old version and install again? (y/N): y

Uninstalling old version...
Installing build/app/outputs/flutter-apk/app.apk...
```

No example:
```
Running Gradle task 'assembleDebug'...
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Performing Streamed Install
Error: ADB exited with exit code 1
adb: failed to install build/app/outputs/flutter-apk/app.apk:

Do you want to uninstall old version and install again? (y/N): n
Failed to install APK

```
Repository: rust
Issue: Is this a bug or just told me that the compiler can't infer generic parameter type at compile time?
Labels: A-diagnostics,A-borrow-checker,T-compiler,D-terse

I tried this code:

```rs
// can not work, because &mut do not impl 'Copy' or 'Clone'
// fn use_mut_ref_g\<T\>(_x: T) {}

// this can work
fn use_mut_ref(_x: &mut String){
    drop(_x);
}

// also this example also can work
fn use_mut_ref_other\<T\>(_x: &mut T) {}

fn main() {
    let mut x = String::from("xxx");
    let x_mut_ref = &mut x;
    // use_mut_ref_g(x_mut_ref);
    use_mut_ref(x_mut_ref);
    use_mut_ref_other(x_mut_ref);
    println!("x = {}", x_mut_ref);
}

// So the important of whether above simple code can work depend on if there the compiler
// can dectect the fn arg if it is type '&' or '&mut' ?

// do it also told us that the compiler can't dectect the first example that the type of x is '&mut String'
// at compile time ? otherwise it can do the same thing just like the second and third example
// and can work, or mean there have a bug?

// and as this point, i know the reason why the second and third example can work, because we already
// mut borrow x, and also this variable do not impl 'Sync' or 'Send', so we just in a single thread env
// and the compiler already make sure we are the only one who mut borrow x. So it can let the fn which take
// '&mut String' as param get a mut borrow through 'x_mut_ref'(which also a mut borrow to x) right?
// At this point there do exist two mut borrow to x, but it won't operation on x at one time, So it is ok.

// By the way ,in '&mut T' case the T match the '&mut String' itself, So the match after is '&mut &mut String' 
```
Repository: PowerToys
Issue: Find My Mouse Spotlight Transparency
Labels: Idea-Enhancement,Help Wanted,Product-Settings,Product-Mouse Utilities

### Description of the new feature / enhancement

This is likely already requested, but why not just make the spotlight area transparent instead of white? 

There's no setting to change the color opacity here.

We ideally are able to just make the content we want to highlight transparent and visible instead of lighter and hard to see. Let's make it transparent 🙂.



### Scenario when this would be used?

This is important to ensure that you're able to see whatever you're highlighting or focusing on in general.

### Supporting information

Just make it a slider to add color transparency, or alpha values on the color itself.
Repository: yt-dlp
Issue: add support : learn.justdjango.com
Labels: site-request,account-needed,can-share-account

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2021.12.27**. ([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)
- [X] 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

India

### Example URLs


https://learn.justdjango.com/courses/django-ecommerce/project-setup

### Description

please add support for this site/url

it provides playlist video 

video hosted on vimeo



### Verbose log

```shell
[debug] Command-line config: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-Uv', 'https://learn.justdjango.com/courses/django-ecommerce/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.07.24 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] exe versions: ffmpeg N-102564-g2261cc6d8a, ffprobe N-102564-g2261cc6d8a
[debug] Proxy map: {}
Current Build Hash 917f7ada880ca33728e445567e6ae96022cd2ffa22cd7befe1f80e0a7fb3bbf7
Updating to version 2021.12.27 ...
Updated yt-dlp to version 2021.12.27
ERROR: The program must exit for the update to complete
```