sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: feat(fmt): infer config from .editorconfig
Labels: suggestion,deno fmt

Hi!

Deno could rely on [`.editorconfig`](https://editorconfig.org/) to determinate indent_style (space or tabs), indent_size, and max_line_length when they are not set in the deno's config file.

This is a [feature supported by Prettier](https://prettier.io/docs/en/configuration.html#editorconfig). Prettier supports also end_of_line and tab_width.

Note that an editorconfig file enables to change the configuration for different set of files.
Repository: deno
Issue: Add memory and object-count report for `deno bench`
Labels: suggestion,testing

Since deno can run with `--v8-flags=--expose-gc`, it would be nice if `deno bench` also report memory usage.
This feature is very handy when refactoring some code using Weak* object.

The flow would be something like
1. run bench code
2. measure speed
3. gc()
4. measure memory and count allocated object

Not sure if counting the allocated object is possible but Chrome browser has `performance.memory` API and the devtool has it [in their Heap Snapshot report](https://chromium-review.googlesource.com/c/chromium/src/+/1109438/)

#### Default console report

| benchmark | time (avg)       | memory (avg) | object count (avg)
|----------------|--------------------|--------------------|---------------------------|
| new A        | 10 ± 2 ns/iter  | 32 ± 8 B/iter    | 4 ± 2 JSObject/iter |

Some Inspiration: [`go test -bench`](https://go.googlesource.com/proposal/+/master/design/14313-benchmark-format.md)
Repository: godot
Issue: GodotPhysics: specific large ConvexPolygonShapes do not count as overlapping (chaotic, fixes itself moving 1mm)
Labels: bug,topic:physics,topic:3d

### Godot version

v4.0.alpha.custom_build [360119ffb]
3.4.4

### System information

Arch on 5.15.41-1-lts

### Issue description

Working on my RTS game, I am generating a frustum collider from a region on the screen. I noticed that collisions sometimes break when I move my mouse around.

Visual of the collider:

![image](https://user-images.githubusercontent.com/14253836/170150588-7aa74ed8-186c-4aa6-a3c4-b067cc24e3fd.png)

(Note that 3 of the points are exactly on the XY plane, although changing this does not necessarily work around the bug)

Printing the overlapping bodies gives:

```gdscript
func _physics_process(_delta: float) -> void:
	print($Area3D.get_overlapping_bodies())
```

```
[]
[]
[]
[]
[]
...
```

### Steps to reproduce

1) Run MRP, check console for collision

### Minimal reproduction project

3.4.4: [test1.zip](https://github.com/godotengine/godot/files/8766955/test1.zip)
4.x: [test3.zip](https://github.com/godotengine/godot/files/8766925/test3.zip)
Repository: go
Issue: x/tools/go/analysis/analysistest: add module-aware analyzer test runners
Labels: NeedsDecision,Tools

### What I want to achieve

I want to write tests for analyzers that utilize `packages.Module` information. 

`x/tools/go/analysis/analysistest` provides helper functions for testing `go/analysis` analyzers. 

```
// It loads the packages from the specified GOPATH-style project
// directory using golang.org/x/tools/go/packages, ...
func Run(t Testing, dir string, a *analysis.Analyzer, patterns ...string) []*Result

// RunWithSuggestedFixes behaves like Run, ...
func RunWithSuggestedFixes(t Testing, dir string, a *analysis.Analyzer, patterns ...string) []*Result
```

* `Run` and `RunWithSuggestedFixes` internally call `go/packages.Load` but explicitly [in GOPATH mode](https://cs.opensource.google/go/x/tools/+/refs/tags/v0.1.10:go/analysis/analysistest/analysistest.go;l=323).
* The `dir` is supposed to be GOPATH, which doesn't apply in module mode.
* `packages.Config` is not accepted.

These limit the utility of the package when authoring module-aware analyzers. 

### What I propose

I propose to add module-friendly test helpers. Something like:

```
func TestAnalyzer(t Testing, a *analysis.Analyzer, pkgs *[]packages.Package) []*Result
```

or

```
func TestAnalyzer(t Testing, a *analysis.Analyzer, cfg *packages.Config, patterns ...string) []*Result
```

### Alternatives to consider

GOPATH style project layout is easy and convenient. For the last half decade, nobody
complained about this issue, which indicates supporting module mode in this package is not
important. My analyzer is not a typical one.

So I considered -

1) Refactor and move the core of `x/tools/go/analysis/analysistest` to `x/tools/internal/analysisinternal/...`. Unfortunately, I see this will cause move of `x/tools/go/analysis/internal/checker` and `analysisflags`. I like containing `analysis` specific internal logic under x/tools/go/analysis/internal and am not sure about this big move.

2) Make part of `analysistest.Run` available through a var in `x/tools/internal/analysisinternal/...` that's set by analysistest init. See [CL408375](https://go-review.googlesource.com/c/tools/+/408375/1/internal/analysisinternal/testinternal/analysistest.go) This is a smaller change than 2, but documentation for the type aliased `analysistest.Testing` and `checker.TestAnalyzerResult` isn't great.


### What about `WriteFiles`

It also supports only GOPATH mode. `WriteFiles` can be potentially replaced with `go/packages/packagestest`.

```
// WriteFiles is a helper function that creates a temporary directory
// and populates it with a GOPATH-style project using filemap...
func WriteFiles(filemap map[string]string) (dir string, cleanup func(), err error)
```

But for a simple analyzer test, this is more convenient than the helpers in `go/packages/packagestest`.

cc @golang/tools-team
Repository: excalidraw
Issue: the paste/image image is not as clear as original image
Labels: bug,UX/UI

the paste image is not as clear as original image, it is blurry, as way to keep the image as original one?
Repository: TypeScript
Issue: `this` in jsxFactory
Labels: Bug

# Bug Report
I would like to create my own JSX-Factory which references `this`, for example `this.createElement`.

### 🔎 Search Terms
Custom JSX factory, this in jsx factory

### 🕗 Version & Regression Information
Tested on Version 4.7.2 and Version 4.8.0-dev.20220524 (@next).
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about JSX

### ⏯ Playground Link
Sadly, playground does not support the `jsxFactory` tsconfig field, thus this can't be shown in playground.

### 💻 Code
```json
{
    "compilerOptions": {
        "jsx": "react",
        "jsxFactory": "this.customCreateElement"
    }
}
```

```ts
class ExampleComponent {
    render() {
        return <app-example>
            <app-child></app-child>
        </app-example>;
    }

    customCreateElement(tagName: string, attributes: { [name: string]: any }, ...children: []) {
        // ... create something in the dom or whatever
    }
}
```

### 🙁 Actual behavior
TypeScripts emits the correct code with the this references (`this.customCreateElement("app-example", null, this.customCreateElement("app-child", null));`), but still throws an error:

```
index.tsx:3:17 - error TS2304: Cannot find name 'this'.
3         return <app-example>
                  ~~~~~~~~~~~

index.tsx:4:14 - error TS2304: Cannot find name 'this'.
4             <app-child></app-child>
               ~~~~~~~~~

Found 2 errors in the same file, starting at: index.tsx:3
```

### 🙂 Expected behavior
The output stays the same - but there is no error message.
Repository: flutter
Issue: Default debug creator chain clipping is too aggressive
Labels: framework,a: debugging,d: devtools,P2,team-framework,triaged-framework

When dealing with large/deeply nested widget trees, error messages that rely on `DebugCreator.toString` cut off too quickly, often not showing me enough context to see what widget(s) in the application are offending.

We should bump the default limit of 12 up to something higher. I'm not clear on the implications of this for devtools.

@kenzieschmoll WDYT?

/cc @goderbauer @chunhtai
Repository: storybook
Issue: Repro creation not working
Labels: bug,needs triage

I was told to [create a repro](https://github.com/storybookjs/storybook/issues/15574#issuecomment-1131077900), but `npx sb@next repro` fails on bootstrapping.

```
√ 🌈 Select the repro framework » react                                  
√ 📝 Select the repro base template » cra
√ Enter the output directory ... cra
🏃 Running cra into C:\Users\fbp\Desktop\storybook repro\cra

🏃 Starting for cra latest

🏗 Bootstrapping cra project (this might take a few minutes)
npm_config_user_agent=npm npx -p create-react-app@latest create-react-app cra && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env
'npm_config_user_agent' is not recognized as an internal or external command,
operable program or batch file.
An error occurred while executing: `npm_config_user_agent=npm npx -p create-react-app@latest create-react-app cra && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env`
🚨 Bootstrapping cra failed
🚨 Failed to create repro
Error: Error: command exited with code: 1:
    at repro (C:\Users\fbp\AppData\Local\npm-cache\_npx\eebb2d3a7d26a7f1\node_modules\@storybook\cli\dist\cjs\repro.js:172:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
```
**To Reproduce**

Run `npx sb@next repro`, choose react -> template cra -> output cra.
Or
Run `npx sb@next repro`, choose react -> template react -> output react.

Also after running `yarn cache clean`, the issue persists.

**System**
```
Environment Info:

  System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.53)
```
Repository: material-ui
Issue: SelectInput generates an incomplete ref input element
Labels: bug 🐛,component: select

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Select/SelectInput.js#L163
This function is returning an incomplete input dom node, which is lacking the `setCustomValidity` & `reportValidity` functions. These functions are important when trying to make use of browser native validation.
Perhaps a viable alternate implementation would be this:
```
    () => ({
      ...inputRef.current,
      focus: () => {
        displayRef.current.focus();
      },
      node: inputRef.current,
      value,
    })
```

I've initially reported an issue on `react-hook-form` (issue: https://github.com/react-hook-form/react-hook-form/issues/8400), before realising that the issue might best be fixed here.

### Expected behavior 🤔

The `setCustomValidity` & `reportValidity`  methods should be available on the ref input element.

### Steps to reproduce 🕹

Steps:

1. Open https://codesandbox.io/s/react-hook-form-v7-ts-triggervalidation-forked-4w7yqd?file=/src/index.tsx
2. Click on submit.
3. Read error message (react-hook-form is expecting the `setCustomValidity` method to be available on the element).


### Context 🔦

These functions are important when trying to make use of browser native validation.

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: kubernetes
Issue: The current use of etcd Leases in Kubernetes violates the invariants needed for watch to function correctly
Labels: kind/bug,priority/important-soon,sig/api-machinery,lifecycle/frozen,triage/accepted

We're currently (potentially) attaching the same etcd Lease to multiple objects based on the LeaseManager configuration:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/storage/etcd3/lease_manager.go#L34

However, when the lease expires in etcd, all objects that are attached to that lease are actually deleted in a single transaction:
https://github.com/etcd-io/etcd/blob/e02ac59cfc4e750f4b0a2a121e20db8e6775d5cd/server/lease/lessor.go#L338-L356

This basically means, that deletions of all of them  will have exactly the same ResourceVersion.

The above violates the invariant that we need in order to ensure that watch requests can be resumed at any point:
- let's say that a watch breaks (e.g. TCP connection gets closed or sth) in the middle of processing objects from a given transaction (which by definition all have the same RV)
- then the client will try to resume from the last receive RV
- but that would mean that the ones from that transaction that wasn't processed previously will get missed and not delivered to that client

Fortunately, the TTL function (that is what decides whether an etcd Lease will be attached to the object or not) is only configured for events:
https://github.com/kubernetes/kubernetes/blob/master/pkg/registry/core/event/storage/storage.go#L42

so we don't seem to be exposed for the bug in any core controllers.

That said we are still exposed to a bug that even when used correctly, WATCH requests for events may miss some DELETE events.

/sig api-machinery
/priority important-soon
/kind bug

@liggitt @deads2k @lavalamp @stevekuznetsov @kubernetes/sig-api-machinery-bugs 
@mm4tt @mborsz
Repository: vscode
Issue: SCM - provide state information for a repository
Labels: feature-request,scm

I really like that smartgit indicates that a repository is in "merging-state":

![image](https://user-images.githubusercontent.com/2931520/170223625-05589343-15f3-46a3-8a1f-7da7bdf0dcfc.png)

They even offer a simple mechanism to abort.

VS Code doesn't show this:

![image](https://user-images.githubusercontent.com/2931520/170223738-42688426-1c16-4d1d-aaec-4badd6b11295.png)

I think it would be a great addition.
Repository: vscode
Issue: Git -  Show More Information In Branch Picker
Labels: feature-request,git

Whenever the branch picker is shown, it would be great to have more information there.
Right now it is just the name:
![image](https://user-images.githubusercontent.com/2931520/170225388-7d4a3be3-bae1-4848-9aea-94e1569a37ba.png)

It would be handy to know:
* Which of those is the active branch? (I rarely want to merge a branch into itself)
* What is the latest commit of that branch? Maybe the latest commit message could be shown.
Repository: pytorch
Issue: `max_unpool2d` is not deterministic
Labels: module: numerical-stability,module: nn,triaged,module: determinism,module: pooling

### 🐛 Describe the bug

`max_unpool2d` is not deterministic

```python
import torch

def test():
    kernel_size = 2
    stride = 2
    unpool = torch.nn.MaxUnpool2d(kernel_size, stride=stride, )

    input0_tensor = torch.rand([1, 1, 2, 2], dtype=torch.float32)
    input1_tensor = torch.randint(-2, 8, [1, 1, 2, 2], dtype=torch.int64)

    input0 = input0_tensor.clone()
    input1 = input1_tensor.clone()
    try:
        res1 = unpool(input0, input1)
    except Exception:
        res1 = torch.tensor(0)

    input0 = input0_tensor.clone()
    input1 = input1_tensor.clone()
    try:
        res2 = unpool(input0, input1)
    except Exception:
        res2 = torch.tensor(0)

    if torch.allclose(res1, res2) == False:
        print(input0_tensor)
        print(input1_tensor)
        print(res1)
        print(res2)
        return True
    else:
        return False

for _ in range(1000):
    if test():
        break
# tensor([[[[0.8725, 0.3154],
#           [0.7132, 0.8304]]]])
# tensor([[[[1, 6],
#           [1, 5]]]])
# tensor([[[[0.0000, 0.7132, 0.0000, 0.0000],
#           [0.0000, 0.8304, 0.3154, 0.0000],
#           [0.0000, 0.0000, 0.0000, 0.0000],
#           [0.0000, 0.0000, 0.0000, 0.0000]]]])
# tensor([[[[0.0000, 0.8725, 0.0000, 0.0000],
#           [0.0000, 0.8304, 0.3154, 0.0000],
#           [0.0000, 0.0000, 0.0000, 0.0000],
#           [0.0000, 0.0000, 0.0000, 0.0000]]]])
```

### Versions

pytorch: 1.11.0

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @kurtamohler
Repository: godot
Issue: [Bullet] Area override is not applied if rigid body has more than one collision shapes
Labels: bug,topic:physics,topic:3d

### Godot version

3.x 2344bf64313114a5929907b8cc8754017b9aecdf

### System information

OS: Arch Linux, CPU: Ryzen 5, GPU: RX 6600

### Issue description

Area space overrides have no effect on rigid bodies with more than one collision shape.

### Steps to reproduce

- Create an Area with a space override to replace the default gravity.
- Add a rigid body with two or more collision shapes inside the area.


### Minimal reproduction project

In this project the default gravity is zero, the area gravity is 9.8m/s^2.

[test_area_space_override.zip](https://github.com/godotengine/godot/files/8770434/test_area_space_override.zip)
Repository: rust
Issue: cargo test linker error
Labels: I-ICE,T-compiler,C-bug,O-AArch64

### Code

```Rust
// main.rs
#![cfg_attr(not(test), no_main)]
#![cfg_attr(not(test), no_std)]

#[cfg(test)]
fn main() {
    println!("Hello, world!");
}

// lib.rs
#![no_std]

extern crate alloc;

#[derive(Debug)]
pub struct L {
    l: i32,
}

impl L {
    pub fn new(l: i32) -> Self {
        Self { l }
    }
}

// tests/basic.rs
use what_if::L;

#[test]
fn test_basic() {
    let l = L::new(0);
    println!("l = {:?}", l);
}
```


### Meta

`rustc --version --verbose`:
```
rustc 1.62.0-nightly (60e50fc1c 2022-04-04)
binary: rustc
commit-hash: 60e50fc1cfe0bb693a5f4f93eb83ef70854531e3
commit-date: 2022-04-04
host: aarch64-apple-darwin
release: 1.62.0-nightly
LLVM version: 14.0.0
```

### Error output

```
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/Users/jasonq/Documents/PlaygroundGeneral/what_if/target/debug/deps/what_if-cd76050b75f19e18.4sj6mw4vhpejdp9z.rcgu.o" "-L" "/Users/jasonq/Documents/PlaygroundGeneral/what_if/target/debug/deps" "-L" "/Users/jasonq/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jasonq/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-95a7e52c78a3fba1.rlib" "/Users/jasonq/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-dd6de681850a671c.rlib" "/Users/jasonq/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-68b99a601d9fe98d.rlib" "-L" "/Users/jasonq/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/jasonq/Documents/PlaygroundGeneral/what_if/target/debug/deps/what_if-cd76050b75f19e18" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: entry point (_main) undefined. for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

warning: `what_if` (bin "what_if") generated 1 warning
error: could not compile `what_if` due to previous error; 1 warning emitted
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

```
N/A
```

</p>
</details>
Repository: flutter
Issue: iOS TextField with TextInputType.number and AutofillHints.creditCardNumber shows the wrong keyboard
Labels: a: text input,platform-ios,engine,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-ios,triaged-ios

This produces a normal text keyboard not a numbers only.

Flutter version 3.0.1 at /Users/nikostsesmelis/Tools/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (5 days ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

```
class TestScreen extends StatelessWidget {
  const TestScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          padding: EdgeInsets.all(32),
          color: Colors.blue,
          child: TextField(
            keyboardType: TextInputType.number,
            autofillHints: [AutofillHints.creditCardNumber],
          ),
        ),
      ),
    );
  }
}

```
Repository: PowerToys
Issue: [Run] Summon existing window to current virtual desktop/display
Labels: Idea-Enhancement,Product-PowerToys Run,Status-Blocked

### Description of the new feature / enhancement

A new button in Window Walker plugin entries that moves the selected window to the display/virtual desktop from which PowerToys Run is used. 

### Scenario when this would be used?

I use virtual desktops extensively. Sometimes a window I want to use gets lost in the chaos. Window Walker plugin is what helps me find what I need, but it could be even better if it offered the option to summon the lost window to current virtual desktop (and display) in addition of allowing me to jump to it.
Right now I can obviously jump to the window, go to Task View and then drag the window to the virtual desktop I want it in and then go to that desktop, but that's two clicks and one drag-and-drop more than I would have to do if window summoning was a thing. In addition, I have to actually know which virtual desktop I am on to be able to perform this relatively swiftly and that is not always the case. 

### Supporting information

I think that my use case is more general than the one described in #6885, hence a new issue.
Repository: flutter
Issue: Document a native debugging workflow for Linux
Labels: d: api docs,platform-linux,a: desktop,P2,team-linux,triaged-linux

We should document a supported workflow for running a Linux build under a native debugger (e.g., for plugin development), especially since our build process is unusual so standard workflows from IDEs aren't going to work.

We should at least document building (via a debug `cmake install` with the right paths, or `flutter build linux --debug`) and manually running (via lldb/gdb) using the right build path, but ideally also a VS Code custom command configuration for doing it from the IDE.
Repository: pytorch
Issue: Any plan to add Noam scheduling?
Labels: triaged,module: LrScheduler

### 🚀 The feature, motivation and pitch

I found Noam scheduling(from "Attention is all you need" paper) important for training transformers.
But it's not included in torch.
Do you have plan to add it or want others to add it?

### Alternatives

_No response_

### Additional context

_No response_
Repository: terminal
Issue: Hamburger button of navigation view in settings is initially slightly cut off
Labels: Help Wanted,Issue-Bug,Product-Terminal,Priority-3,Area-SettingsUI

### Windows Terminal version

1.14.1432.0

### Windows build number

10.0.19044.1706

### Other Software

_No response_

### Steps to reproduce

Open Terminal at a size at which the NavigationView will be fully expanded
Open settings
Hover over NavigationView's expand button

### Expected Behavior

_No response_

### Actual Behavior

hover is slightly cut off.
recording: (this was done in OBS. i forgot to disable the display capture source, whoops.)

https://user-images.githubusercontent.com/51363864/170272796-3bdb1a8d-e9de-4155-8180-e936029219b6.mp4

feel free to ask for info or transfer to winui :)