sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: implicit Deref coercion not happening
Labels: E-easy,A-docs,C-discussion

```rust
use std::path::{Path,PathBuf};

#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
pub(crate) struct PathBasedToolchain(PathBuf);

impl TryFrom<&Path> for PathBasedToolchain {
    type Error = anyhow::Error;

    fn try_from(value: &Path) -> std::result::Result<Self, Self::Error> {
                Ok(PathBasedToolchain(value.into()))
    }
}


fn main() -> anyhow::Result<()> {
    let path = PathBuf::new();
    let t =  PathBasedToolchain::try_from(&path);
    let u =  PathBasedToolchain::try_from(&path as &Path);
    
    Ok(())
}
```
(playground link)[https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=53696b2684233ffd81680129f6c076d2]

I expected to see this happen: compile with no error (because of https://doc.rust-lang.org/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods and https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-Deref-for-PathBuf ).

Instead, this happened:

```
Compiling playground v0.0.1 (/playground)
error[[E0277]](https://doc.rust-lang.org/nightly/error_codes/E0277.html): the trait bound `PathBasedToolchain: From<&PathBuf>` is not satisfied
  --> src/lib.rs:17:43
   |
17 |     let t =  PathBasedToolchain::try_from(&path);
   |              ---------------------------- ^^^^^ the trait `From<&PathBuf>` is not implemented for `PathBasedToolchain`
   |              |
   |              required by a bound introduced by this call
   |
   = help: the trait `TryFrom<&Path>` is implemented for `PathBasedToolchain`
   = note: required for `&PathBuf` to implement `Into<PathBasedToolchain>`
   = note: required for `PathBasedToolchain` to implement `TryFrom<&PathBuf>`

error[[E0277]](https://doc.rust-lang.org/nightly/error_codes/E0277.html): the trait bound `PathBasedToolchain: From<&PathBuf>` is not satisfied
  --> src/lib.rs:17:14
   |
17 |     let t =  PathBasedToolchain::try_from(&path);
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&PathBuf>` is not implemented for `PathBasedToolchain`
   |
   = help: the trait `TryFrom<&Path>` is implemented for `PathBasedToolchain`
   = note: required for `&PathBuf` to implement `Into<PathBasedToolchain>`
   = note: required for `PathBasedToolchain` to implement `TryFrom<&PathBuf>`
```

### Meta
<!--
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.
-->

`rustc --version --verbose`:
```
Nightly channel

Build using the Nightly version: 1.70.0-nightly

(2023-03-31 5e1d3299a290026b8578)
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->

This doesn't cause a backtrace from the compiler.
<details><summary>Backtrace</summary>
<p>

```
<backtrace>
```

</p>
</details>


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"Aditya-PS-05"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: stable-diffusion-webui
Issue: [Bug]: KeyError:'.' when I try to use outpanting (mk2 or poorman)
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Symphtoms looks similar to #5603
When i try to outpaint image, it can`t be saved after processing.
When status reaches 100% blurry image dissappear and i have an error in console.
![image](https://user-images.githubusercontent.com/21099918/229272857-2e6ee194-4824-475a-911f-c3de14df63e9.png)


### Steps to reproduce the problem

img2img tab, input image, select outpaint script (mk2 for example), press Generate.

### What should have happened?

Img start to process, but at the end it disappead and error appears,
it looks like python do not see any registred extensions and can`t save image

### Commit where the problem happens

checkpoint: 52c8653a97 

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

### Command Line Arguments

```Shell
--xformers
```


### List of extensions

multidiffusion-upscaler-for-automatic1111
posex
sd-webui-controlnet 
stable-diffusion-webui-composable-lora
stable-diffusion-webui-two-shot 

### Console logs

```Shell
Traceback (most recent call last):
  File "C:\SD\stable-diffusion-webui\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "C:\SD\stable-diffusion-webui\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "C:\SD\stable-diffusion-webui\modules\img2img.py", line 170, in img2img
    processed = modules.scripts.scripts_img2img.run(p, *args)
  File "C:\SD\stable-diffusion-webui\modules\scripts.py", line 407, in run
    processed = script.run(p, *script_args)
  File "C:\SD\stable-diffusion-webui\scripts\poor_mans_outpainting.py", line 141, in run
    images.save_image(combined_image, p.outpath_samples, "", initial_seed, p.prompt, opts.grid_format, info=initial_info, p=p)
  File "C:\SD\stable-diffusion-webui\modules\images.py", line 584, in save_image
    _atomically_save_image(image, fullfn_without_extension, extension)
  File "C:\SD\stable-diffusion-webui\modules\images.py", line 546, in _atomically_save_image
    image_format = Image.registered_extensions()[extension]
KeyError: '.'
```


### Additional information

_No response_
Repository: angular
Issue: Describing when property or class or feature was  introduced in which angular package version.
Labels: P4,area: docs

### Describe the problem that you experienced

JDK documentation used to have "Since" property that describes at which version on jdk this method or class was introduced. 
For example, Check this link: https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#getId--
It tells that getId method was introduced in 1.5 version of JDK.

I think similar feature can be introduced in Angular Docs as well.
For example: **setInput** method in **ComponentRef** was not available since intial angular 2 release but it was introduced in later version of angular.
So, there should be a version of package specified at properly or class or feature in Docs.
Repository: godot
Issue: Int variable without default value was incorrectly initialized with export_range  annotation.
Labels: bug,topic:gdscript,topic:editor,confirmed,topic:dotnet

### Godot version

v4.0.2.rc1.official [50f26811b]

### System information

Windows Vulkan API 1.3.217 - Forward Mobile -AMD Radeon(TM) Vega 8 Graphics

### Issue description

```gdscript
extends Node2D

@export_range(1,100) var range_int:int

func _ready() -> void:
	print(range_int)
```

If `range_int` is not set to the default value, the minimum value is shown in the inspector, but `range_int` is initialized to `0` at runtime. If you change the value in the inspector first, and then change it back to the minimum value, `range_int` changes back to `the minimum value` at runtime instead 0.

See video:

https://user-images.githubusercontent.com/45038185/229273427-3c77bba6-d2f8-4491-a884-ffe5917f0322.mp4



### Steps to reproduce

Above.

### Minimal reproduction project

MPR:[ExportRangeBug.zip](https://github.com/godotengine/godot/files/11128774/ExportRangeBug.zip)
Repository: tensorflow
Issue: A check fail can be triggered in LearnedUnigramCandidateSampler
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.12

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

binary

### Tensorflow Version

2.13.0-dev20230331

### Custom Code

No

### OS Platform and Distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

CUDA 11.8

### GPU model and memory

_No response_

### Current Behaviour?

```shell
The following code can trigger a crash in `tf.raw_ops.LearnedUnigramCandidateSampler` due to check-fail in the latest version of TensorFlow.
```


### Standalone code to reproduce the issue

```shell
import tensorflow as tf
with tf.device("GPU:0"):
    num_true = 13
    num_sampled = 48
    unique = True
    range_max = 3031324185113192368
    seed = 93
    seed2 = 11
    true_classes = tf.saturate_cast(tf.random.uniform([14, 13], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.int64)
    res = tf.raw_ops.LearnedUnigramCandidateSampler(
        num_true=num_true,
        num_sampled=num_sampled,
        unique=unique,
        range_max=range_max,
        seed=seed,
        seed2=seed2,
        true_classes=true_classes,
    )
```


### Relevant log output

```shell
2023-04-01 16:20:32.160750: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-04-01 16:20:32.211959: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-04-01 16:20:33.026789: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-04-01 16:20:34.550122: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14561 MB memory:  -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0
2023-04-01 16:20:39.689581: F tensorflow/core/kernels/range_sampler.cc:183] Check failed: range < kint32max (3031324185113192368 vs. 2147483647)
Aborted (core dumped)
```
</details>
Repository: tensorflow
Issue: A check fail can be triggered in ThreadUnsafeUnigramCandidateSampler
Labels: awaiting review,type:bug,comp:ops,TF 2.12

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

binary

### Tensorflow Version

2.13.0-dev20230331

### Custom Code

No

### OS Platform and Distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

CUDA 11.8

### GPU model and memory

_No response_

### Current Behaviour?

```shell
The following code can trigger a crash in `tf.raw_ops.ThreadUnsafeUnigramCandidateSampler` due to check-fail in the latest version of TensorFlow.
```


### Standalone code to reproduce the issue

```shell
import tensorflow as tf
with tf.device("GPU:0"):
    num_true = 11
    num_sampled = 2
    unique = False
    range_max = 7612169259283414040
    seed = -111
    seed2 = -11
    true_classes = tf.saturate_cast(tf.random.uniform([12, 11], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.int64)
    res = tf.raw_ops.ThreadUnsafeUnigramCandidateSampler(
        num_true=num_true,
        num_sampled=num_sampled,
        unique=unique,
        range_max=range_max,
        seed=seed,
        seed2=seed2,
        true_classes=true_classes,
    )
```


### Relevant log output

```shell
2023-04-01 16:33:33.009606: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-04-01 16:33:33.057487: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-04-01 16:33:33.874853: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-04-01 16:33:35.397082: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14561 MB memory:  -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0
2023-04-01 16:33:40.359234: F tensorflow/core/kernels/range_sampler.cc:183] Check failed: range < kint32max (7612169259283414040 vs. 2147483647)
Aborted (core dumped)
```
</details>
Repository: TypeScript
Issue: Error when initialising variable with generic parameter type
Labels: Bug,Help Wanted

# Bug Report

I am seeing an error when trying to initialise a variable with

```ts
const result: Partial<T> & { bar: boolean } = { bar: false };
```

where `T` is a type parameter in a generic function. The error is as follows:

```bash
4:9 - error TS2322: Type '{ bar: false; }' is not assignable to type 'Partial<T> & { bar: boolean; }'.
  Type '{ bar: false; }' is not assignable to type 'Partial<T>'.

4   const result: Partial<T> & { bar: boolean } = { bar: false };
          ~~~~~~
```

If `T` is a type that is not a generic parameter then there are no issues, and also adding an additional step as follows leads to no errors:

```ts
  const part: Partial<T> = {};
  const result: Partial<T> & { bar: boolean } = { ...part, bar: false };
```

I have included a full code snippet below.

### 🔎 Search Terms

- "is not assignable partial"
- "intersection type generic function error"

### 🕗 Version & Regression Information

- This is the behaviour in every version I tried, and I reviewed the FAQ for entries about 'Common "Bugs" That Aren't Bugs'.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=5.1.0-dev.20230401#code/C4TwDgpgBACghgJ2ASzgGwOrOACwEKIA8AKgHxQC8siK6J5AZFAN5QBGiAXOwPY9oQ4AOygBfANwAoSRAAeYHkigBjHkIDOwKBAQJFyIQHMAYgFchyylBLbZwCEIAm6qACUIqhI8KaEBwwA0UOYA1kI8AO5CpKQAFACU3PBIqJjY+ERklOTMklAqappQCBDqpmjASTSpWLgECPRWrBwI3ABm6OrQEnnFEMCmCCIlZRVSPTLyilqqGloRiiH+ZhZWNnL2Ti7unt6+-kGh4VExCVUp6LUZDVkUOb2zRWA057RojVTMPfmPWiPllWoFzSdUy5E+UAAdNDnkggi12p1ulJ8iUBkM+qNgOMpJJQJAoABZEDEcDQCFwbhCUwAWzYOjEuLkCiUvygCwQSyMK2UACYrGcgW8rvVCMTSZBwfcfoU-qUAa8aulReKyeCWOwuFAOmguozemjBsN5WNJD0gA)

### 💻 Code

```ts
type PartialWithBar<T> = Partial<T> & { bar: boolean };

export const erroringFunc = <T extends Record<string, unknown>>(): PartialWithBar<T> => {
  const result: PartialWithBar<T> = { bar: false };
  return result;
};

export const workingFunc = <T extends Record<string, unknown>>(): PartialWithBar<T> => {
  const part: Partial<T> = {};
  const result: PartialWithBar<T> = { ...part, bar: false };
  return result;
};

type MyType = { a: number };

export const workingFunc2 = (): PartialWithBar<MyType> => {
  const result: PartialWithBar<MyType> = { bar: false };
  return result;
};
```

### 🙁 Actual behavior

`erroringFunc` causes an error, while `workingFunc` does not.

### 🙂 Expected behavior

Either `errorringFunc` should not cause any errors, or `workingFunc` should cause an error - the two should be consistent.
Repository: PowerToys
Issue: New-> popup 
Labels: Needs-Triage

### Description of the new feature / enhancement

Add a hotkey shortcut to pull that new-> dropdown from windows. 


### Scenario when this would be used?

daily on using windows and creating new files

### Supporting information

_No response_
Repository: tauri
Issue: [bug] iOS cannot find staticlib due to dashes in name
Labels: type: bug,status: needs triage

### Describe the bug

The output name of a static lib will have dashes replaced by underscores.
The iOS setup does not handle this and cannot find `.a` files then.

### Reproduction

```bash
# 1.
cargo create-tauri-app
# name: test-tauri-app
# frontend: Rust - (cargo)
# UI template: Vanilla

# 2.
cargo install tauri-cli --version "^2.0.0-alpha"


cd test-tauri-app
cd src-tauri

# 3.
cargo add tauri@2.0.0-alpha.0
cargo add tauri-build@2.0.0-alpha.0 --build

# 4.
# integrate: https://next--tauri.netlify.app/next/mobile/development/integrate

# 5.
# set the code signing certificate development team ID on  the `tauri > bundle > iOS > developmentTeam` config value

# 6.
cargo tauri ios init
cargo tauri ios dev

# Error [tauri_cli] Library not found at xxx/test-tauri-app/src-tauri/target/aarch64-apple-ios/debug/libtest-tauri-app.a. Make sure your Cargo.toml file has a [lib] block with `crate-type = ["staticlib", "cdylib", "rlib"]`
# Command PhaseScriptExecution failed with a nonzero exit code
# 
# ** BUILD FAILED **
# 
# 
# The following build commands failed:
#         PhaseScriptExecution Build\ Rust\ Code xxx/Library/Developer/Xcode/DerivedData/test-tauri-app-evkhvlaukkcvxlezqdvavehwdjyn/Build/Intermediates.noindex/test-tauri-app.build/debug-iphoneos/test-tauri-app_iOS.build/Script-50749768518FADE5C0568122.sh (in target 'test-tauri-app_iOS' from project 'test-tauri-app')
# (1 failure)
#        Error command ["xcodebuild"] exited with code 65

ls target/aarch64-apple-ios/debug
# - build
# - examples
# - libtest_tauri_app.a
# - libtest_tauri_app.dylib
# - lock.ios
# - test-tauri-app.d
# - deps
# - incremental
# - libtest_tauri_app.d
# - libtest_tauri_app.rlib
# - test-tauri-app

# => libtest_tauri_app.a VS. libtest-tauri-app.a
```

### Expected behavior

Given a valid crate name should compile.

### Platform and versions

```text
Environment
  › OS: Mac OS 13.3.0 X64
  › Node.js: 19.8.1
  › npm: 9.5.1
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.25.2
  › rustc: 1.70.0-nightly
  › cargo: 1.70.0-nightly
  › Rust toolchain: nightly-x86_64-apple-darwin 

Packages
WARNING: no lock files found, defaulting to npm
  › @tauri-apps/cli [NPM]: 2.0.0-alpha.5
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 2.0.0-alpha.4,
  › tauri-build [RUST]: 2.0.0-alpha.2,
  › tao [RUST]: 0.18.3,
  › wry [RUST]: 0.27.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../src
  › devPath: ../src
package.json not found

App directory structure
  ├─ src-tauri
  ├─ .vscode
  └─ src

iOS
  › Teams: xxx (ID: xxx), xxx (ID: xxx)
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: go
Issue: proposal: crypto/ecdh: support for secp256k1 curve
Labels: Proposal,Proposal-Crypto

<!--
Please answer these questions before submitting your issue. Thanks!
-->

In prior, is there any reason to omit `secp256k1` in this package? I know it's widely used for ECDSA so I was wondering if there is specific reason to not support the curve for Diffie-Hellman

### What did you do?
I'm trying to implement a protocol that involves ecdh as key agreement in a blockchain context, precisely ethereum. `secp256k1` is the curve used natively so I'd just wanted to leverage on it to not create another set of public key with another curve that this package actually supports (`P256`, `P384`, `P521`)

### What did you expect to see?
ability to init public key from a `secp256k1` curve
```go
func DHSharedKey(pk *ecdh.PrivateKey, remoteX []byte, remoteY []byte) ([]byte, error) {
	pub, err := ecdh.S256().NewPublicKey(append([]byte{0x04}, append(remoteX, remoteY...)...))
	if err != nil {
		return nil, err
	}

	return pk.ECDH(pub)
}
```

### What did you see instead?
`unsupported curve by crypto/ecdh`
Repository: stable-diffusion-webui
Issue: [Feature Request]: Option for "create a textfile" to create the file before image generation
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

In "saving images/grids" settings if you select "Create a text file next to every image with generation parameters.":

it will create that text file after generating the image. If the image doesn't complete no file will be saved and info like Seed etc. is lost. I propose to have an option to create the text file before generation.

From what I can tell nothing in the text file depends on the image successfully generating.

### Proposed workflow

1. Go to Settings->saving images/grids
2. Under option "Create a text file next to every image with generation parameters." create a new option
3. "Save text file before generating the image"


### Additional information

_No response_
Repository: deno
Issue: hang in WebAssembly.instantiateStreaming
Labels: bug,windows,wasm

I built a ESM module by wasm-pack and imported it into a js file. I can call the function from the module properly using 'await', while something went wrong when 'Promise.then' applied. 
```javascript
import init, {add} from "./rust-lib-esm/pkg/rust_lib_esm.js";

/*init().then(wasm => {
  window.console.log(wasm)
  window.console.log(wasm.add(423, 4322))
})*/
await init()
window.console.log(add(423, 4322))
```
I found it stuck here.
```javascript
return await WebAssembly.instantiateStreaming(module, imports);
```
Both methods work well in chrome.
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="importmap">
{
  "imports": {
    "rust-lib-esm": "./rust-lib-esm/pkg/rust_lib_esm.js"
  }
}
</script>
<script type="module">
  import * as e from "rust-lib-esm";

  e.default().then(wasm => {
    window.console.log(wasm)
    console.log(e.add(2351, 53422));
  });
</script>
<script type="module">
  import * as e from "rust-lib-esm";

  await e.default()
  window.console.log(e.add(423, 4325))
</script>
</html>
```
Repository: godot
Issue: More than 25k error logs while editing tileset
Labels: bug,topic:editor,needs testing,topic:2d

### Godot version

4.0.stable.mono

### System information

MacOS

### Issue description

![image](https://user-images.githubusercontent.com/37114625/229294083-5862e1b4-2128-418e-bf5f-492f63c4f3c2.png)


### Steps to reproduce

![image](https://user-images.githubusercontent.com/37114625/229294181-0161b6d0-3bf4-474c-bc87-12d10fa4ff10.png)
The error logs will appear when I click this.

### Minimal reproduction project

[BaseTileMap.tscn.zip](https://github.com/godotengine/godot/files/11129717/BaseTileMap.tscn.zip)