sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Web] TextPainter draws text color not as expected
Labels: engine,platform-web,c: rendering,e: web_canvaskit,has reproducible steps,P2,found in release: 3.10,team-web,triaged-web,found in release: 3.13

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Clone repo.
2. Run on all platforms.
3. Drag the slider to about 50%.
4. See the text on progress bar.

### Expected results

The text drawn should be black on blue background and be blue on black background, like on iOS and Android platforms.

### Actual results

But on MacOS and Web (not tested on Windows) platforms, the left part of text seemed to be drawn with black then drawn again with blue.

### Code sample

See my [demo](https://github.com/ArchangelXu/flutter-draw-text-issue-demo).

### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

![11](https://github.com/flutter/flutter/assets/8541162/abcb8844-5811-4808-a43e-b7cfd6735cc4)

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[+5549 ms] [✓] Flutter (Channel stable, 3.10.6, on macOS 13.3.1 22E261 darwin-x64, locale zh-Hans-CN)
[+130229 ms] [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[        ] [✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[        ] [✓] Chrome - develop for the web
[        ] [✓] Android Studio (version 2021.2)
[        ] [✓] IntelliJ IDEA Ultimate Edition (version 2023.1.1)
[        ] [!] Proxy Configuration
[        ]     ! NO_PROXY does not contain ::1
[   +1 ms] [✓] Connected device (2 available)
[        ]     ! Device adb-58a6c5e7-8uYRaX._adb-tls-connect._tcp. is offline.
[        ] [✓] Network resources
[        ] ! Doctor found issues in 1 category.
[ +584 ms] "flutter upgrade" took 313,534ms.
[ +265 ms] ensureAnalyticsSent: 252ms
[        ] Running 0 shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0


```

</details>
Repository: terminal
Issue: Accessibility is beeing sometimes lost when opening a new windows terminal window
Labels: Needs-Repro,Issue-Bug,Area-Accessibility,Product-Terminal

### Windows Terminal version

1.17.11461.0

### Windows build number

Version 22H2 (OS Build 19045.3086)

### Other Software

tested with screenreader nvda 2023.1 release and latest snapshot versions

### Steps to reproduce

Open windows terminal window;
try to enter some characters and navigate through them with arrow keys or NVDA's move by lines numpat7 and numpad9

### Expected Behavior

NVDA should read contents as expected

### Actual Behavior

sometimes nvda is not able to read contents of a windows terminal and it is needed to close and open window multiple times to restore accessibility functionality. When accessibility is lost, nvda says only word pane
Repository: stable-diffusion-webui
Issue: [Feature Request]: Support  stable-diffusion-x4-upscaler model
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 ?

Support [stable-diffusion-x4-upscaler](https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler)  model.

### Proposed workflow

1. Select this model in the checkpoint 
2. Go to "img2img" tab, input prompt and upload an image
3. Click "Generate" button and generate result

### Additional information

_No response_
Repository: rust
Issue: E0308 .`as_deref()` suggestion is asymmetric
Labels: A-diagnostics,T-compiler

### Code

```Rust
fn main() {
    let a = Some(String::from("foo"));
    let b = Some("foo");
    if a == b {
        println!("do stuff");
    }
}
```


### Current output

```Shell
error[E0308]: mismatched types
 --> src/main.rs:4:13
  |
4 |     if a == b {
  |             ^ expected `Option<String>`, found `Option<&str>`
  |
  = note: expected enum `Option<String>`
             found enum `Option<&str>`
```


### Desired output

```Shell
error[E0308]: mismatched types
 --> src/main.rs:4:13
  |
4 |     if a == b {
  |             ^ expected `Option<String>`, found `Option<&str>`
  |
  = note: expected enum `Option<String>`
             found enum `Option<&str>`
help: try using `.as_deref()` to convert `Option<String>` to `Option<&str>`
  |
4 |     if a.as_deref() == b {
  |         +++++++++++
```


### Rationale and extra context

This is an obvious suggestion that is already implemented, but only checked for when the order of `a` and `b` is swapped.

### Other cases

`.as_deref()` is suggested correctly when the order of `a` and `b` in the comparison is swapped.


### Anything else?

A fix for this would likely also fix #102063, as this issue is closely related.

@clubby789 maybe you're interested in working on this? It's related to #114050, which you fixed yesterday (thanks for that by the way).

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"mucinoab"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: PowerToys
Issue: [IMAGE RESIZER] Keep RGB channels intact when there is an Alpha Channel (PNG)
Labels: Idea-Enhancement,Product-Image Resizer,Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

### I would like an option when I resize to PNG, to keep RGB channels intact when there is an Alpha Channel.

_Lets take an exemple : I have an image with a flat grey RGB and an alpha channel with a logo. When I resize it when Power Toys Image Resizer, the alpha channel is intact, but the RGB Channels are broken. Here is a visual of what I mean with a Before => After Comparison. You can see than the RGB has been cropped to the alpha shape_
![Exemple01](https://github.com/microsoft/PowerToys/assets/952776/5c376b32-4b21-4060-a97a-58f33aa4427f)


### Scenario when this would be used?

I work in Video Games Industry, where we need to bulk resize PNG textures with or without alpha channel. Now we are using Photoshop with SuperPNG Plugin to export textures with an Alpha channel without touching at the RGB channels. When we want to resize textures (like 4096x4096 from source to 1024x1024 for our game engine), we need to resize them one by one and its very time consuming. Image Resizer let us do it way more faster when we don't have any alpha in the textures, but it broke them when we have alpha.
I did Photoshop Actions using SuperPNG to bulk resize but it would be better to have this feature directly in PowerToys Image Resizer

### Supporting information

Photoshop free plugin "SuperPNG" has the option to keep the alpha channel without breaking the RGB channels
Repository: flutter
Issue: [file_selector_android] Expose `DISPLAY_NAME` of the files selected using `openFile`
Labels: platform-android,package,team-ecosystem,P2,p: file_selector,triaged-ecosystem

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

I would like to display the name of the file that was selected by the user through the `openFile` function provided by the `file_selector` package. However, on Android, the name returned by `(await openFile(...))?.name` has no obvious relationship to the name the user saw in the selection dialog.

I briefly searched through the code of the Android implementation --- the name that should be returned [is retrieved](https://github.com/flutter/packages/blob/406eac1ad976bf9317422b1538615e03d057eb7b/packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileSelectorApiImpl.java#L305C1-L310), but then it [is dropped](https://github.com/flutter/packages/blob/406eac1ad976bf9317422b1538615e03d057eb7b/packages/file_selector/file_selector_android/lib/src/file_selector_android.dart#L64C1-L66C23) by `XFile`. The last path segment is returned instead.

(I encountered this issue when trying to migrate from `file_picker` to `file_selector`.)

### Proposal

I believe that `XFile.name` should be decoupled from `XFile.path` on Android (similarly to web).

Any other way to retrieve the `DISPLAY_NAME` of the selected files would be appreciated too.
Repository: storybook
Issue: [Bug]: runGetVersions doesn't always return an array causing errors
Labels: bug,needs triage

### Describe the bug

the code calls `constraint?(await this.runGetVersions(packageName, !0)).reverse()`, however rungetVersions does not always return an array

If there is only 1 version available (e.g. in a company npm registry) this throws the error "(intermediate value).reverse is not a function" (.reverse is a function that exists on arrays)

Workaround:
Add another older version of the packages to the registry so that runGetVersions returns an array with 2 entries

Potential fix:
runGetVersions should return an array with 1 entry 

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: TypeScript
Issue: `tsserver` feature: `importModuleSpecifierPreference: "non-relative"` but allow siblings
Labels: Suggestion,Awaiting More Feedback,Domain: Auto-import

# Suggestion


## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

importModuleSpecifierPreference
allow sibling

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Let auto-imports mirror:
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-parent-imports.md
or the old:
https://github.com/microsoft/tslint-microsoft-contrib/issues/778

New option, could be named anything, "non-relative-allow-sibling", "no-parent", "relative-iff-sibling", etc

## 📃 Motivating Example

re: "why this feature improves the language", this is not a language feature, but an IDE feature which happens to be handled by TypeScript repo:

https://github.com/microsoft/TypeScript/blob/3b45f4db12bbae97d10f62ec0e2d94858252c5ab/src/server/protocol.ts#L3487

Motivating example: When you auto-import, you want to import as `./foo` if in same directory, otherwise something like `@/utils/foo`. `shortest` doesn't necessarily work since `../foo` could be shorter than e.g. `@/modules/feature/foo`

## 💻 Use Cases

Currently using `importModuleSpecifierPreference: "non-relative"` as-is.
Repository: pytorch
Issue: DISABLED test_profiler_cuda_sync_events (__main__.TestProfiler)
Labels: module: rocm,triaged,skipped

Platforms: rocm

This test was disabled because it is failing on master ([recent examples](http://torch-ci.com/failure/profiler%2Ftest_profiler.py%3A%3ATestProfiler%3A%3Atest_profiler_cuda_sync_events)).

Introduced by https://github.com/pytorch/pytorch/pull/105187

cc @jeffdaily @sunway513 @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang
Repository: rust
Issue: Tracking Issue for `ambiguous_glob_imports` lint
Labels: A-lints,T-compiler,C-tracking-issue

This is a tracking issue for the "ambiguous_glob_imports", a lint that follows the [breaking change policy](https://github.com/rust-lang/rfcs/blob/master/text/1589-rustc-bug-fix-procedure.md).

### Problem

The name resolution algorithm in rustc does not update bindings recursively when the `(Module, Key)` already has a binding. This can result in a situation where a glob binding should be marked as ambiguous but it is not, potentially causing code that should fail to compile to pass instead.

For example(#112713):

```rs
pub fn foo() -> u32 {
    use sub::*;
    C
}

mod sub {
    mod mod1 { pub const C: u32 = 1; }
    mod mod2 { pub const C: u32 = 2; }

    pub use mod1::*;
    pub use mod2::*;
}
```

The `C` in `foo` function was referred to `(Mod(root), Key(C))`, where it should have an ambiguous binding but actually not due to the stop the update process early. 

Here are additional details regarding the update process:

| - | `importer` | `resolve_glob_import` |
| -  | - | - |
| 0  | `use sub::*`       |  nothing was defined |
| 1  | `use mod1::*`  | 1. `(root::sub, C) -> root::sub::mod1::C` without ambiguity; <br/>2. `(root, C) ->  root::sub::mod1::C ` without ambiguity.  |
| 2  | `use mod2::*` |  1. `(root::sub, C) -> root::sub::mod1::C` with ambiguity; <br/> 2. It had been **stop** update the binding of `(root, C)` due to `(root, C)` already has a binding. |

## Solve

We have relaxed the condition for update process and now treat the updated ambiguous error as a warning instead of an error. We use the `ambigous_glob_imports` lint for back compatibility.

### Steps

- [x] Implement: https://github.com/rust-lang/rust/pull/113099
- [ ] Make it as an error
Repository: godot
Issue: Godot messes up log files when running multiple intances
Labels: bug,topic:editor,needs testing

### Godot version

4.1.1-stable

### System information

Arch Linux

### Issue description

When running multiple instances (from CLI with commands like `godot4 -d --path x/y/z`) of a game that has heavy logging (maybe every frame, every 1 sec, etc.), you'll notice logs will be inconsistent in comparison to running one single instance alone. In fact it looks like the first instance will still output logs to `godot.log` after the second instance has renamed it to something like `godot2023-07-26T09.57.09.log` and created a new `godot.log` file, which is very dangerous if you're unexperienced and will most likely interpret invalid log information.

A way to at least workaround this bug would be to add a `--log-file` argument to CLI where I could give fixed names for files. (e.g. `--log-file=server.log` vs `--log-file=client.log`)

### Steps to reproduce

- Create a project
- Somehow print a lot of information (with `print()`)
- Run two instances from CLI (with `godot4 -d` maybe)
- Notice that the logs are messed up

### Minimal reproduction project

It's intermitent so very hard to catch:

Screenshot:
![image](https://github.com/godotengine/godot/assets/33421921/b82506af-00e4-4078-8a88-5ca7ca429819)

MRP:
[MRP.zip](https://github.com/godotengine/godot/files/12172900/MRP.zip)
Repository: realworld
Issue: [Bug]: Continuous modification of user information results in an error
Labels: bug

### Relevant scope

Deployed demo

### Description

When I try to modify user information for the second time consecutively, the server returns a status code of 500 and displays the following error message: “\nInvalid prisma.user.update() invocation:\n\n\nAn operation failed because it depends on one or more records that were required but not found. Record to update not found.”

<img width="1426" alt="image" src="https://github.com/gothinkster/realworld/assets/53268471/4864beb3-b652-46ec-bf94-12d4a6e2829b">
Repository: angular
Issue: Provide the ability to remove code needed only in dev mode from the production bundle
Labels: feature,area: core,feature: under consideration

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

Several NgRx libraries have features/checks that are only used in development mode (e.g. store runtime checks, component store lifecycle hooks check, store devtools, etc).



### Proposed solution

Expose the `ngDevMode`/`isNgDevMode` variable to the public API, so it can be used in Angular libraries that have dev mode-related functionalities, but also in user codebases if needed.

This feature could significantly reduce the size of production bundles in many Angular codebases.

### Alternatives considered

Currently, we can use `ngDevMode` to remove dev mode-related logic from the production bundle in the following way:

```ts
declare const ngDevMode: boolean;
const isNgDevMode = typeof ngDevMode === 'undefined' || !!ngDevMode;

// ...

if (isNgDevMode) {
  console.warn('@ngrx/store: ...');
}
```

However, this global variable is not part of the public API and it can be risky to rely on it.
Repository: TypeScript
Issue: CanvasRenderingContext2D has no reset() method
Labels: Bug,Help Wanted,Domain: lib.d.ts

# Bug Report

According to [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/reset) and [HTML Standard](https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-reset) a CanvasRenderingContext2D object should have the reset() method, but latest tsc (5.1.6) does not have it defined.

### 🔎 Search Terms

CanvasRenderingContext2D

### 🕗 Version & Regression Information

This is a crash

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYewdgzgLgBMCGYBu8IwLwwCYmAVwFsBTMKAOmACcj4oiBRAGyONIAoByBZVDgSgDcAKDZs+GAHwwA3kJhxw0BaSIAPWJm4oIZAOZEoAYXB11nAExZ+w+QEsAZjDYBCUCvXjqUPJTDC5yqbk1BAGYsIAvnzhQkA)

### 💻 Code

<!-- Please post the relevant code sample here as well. This code and the Playground code should be the same, do not use separate examples -->
```ts
const canvas = document.createElement('canvas');
(() => {
  const context = canvas.getContext('2d');
  if (!context) return;

  context.reset();
})();
```

### 🙁 Actual behavior

```
PS C:\Users\Davin\Documents\GitHub\2dCanvasTypescriptResetBug> npx tsc
index.tsx:6:11 - error TS2339: Property 'reset' does not exist on type 'CanvasRenderingContext2D'.

6   context.reset();
            ~~~~~


Found 1 error in index.tsx:6
```

### 🙂 Expected behavior

```
Found 0 errors
```
Repository: flutter
Issue: Emoji display problem in flutter web html render
Labels: engine,platform-web,e: web_html,has reproducible steps,P2,has partial patch,found in release: 3.10,team-web,triaged-web,found in release: 3.13

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1、flutter create emoji_sample
2、add code below:
Text( '🤔Can you solve the quiz?💰 🤖#AI got puzzled! 🎁\$30 for 5 each!To win:1️⃣ FL &❤️ & RT @binary_x2⃣ Fill in the blank👇 & tag 2 friends!'),
3、flutter run -d chrome --web-renderer html
<img width="1185" alt="image" src="https://github.com/flutter/flutter/assets/6874049/c037e15d-a609-4658-b471-03d1c02cf6a9">
As shown in the picture, the emoji 1️⃣  in the red frame is not correct.
1️⃣  equals  \u{0031}\u{FE0F}\u{20E3}
This emoji is actually composed of two characters: the number "1" (U+0031) and a variable selector (U+FE0F), followed by a combined closed keyboard selector (U+20E3)
<img width="1250" alt="企业微信截图_bb9811e8-8bdc-4822-8147-830882c8c553" src="https://github.com/flutter/flutter/assets/6874049/5dd064aa-5ce9-4015-aac2-9d063e27360f">

4、if run with --web-renderer canvaskit and set useColorEmoji: true when inital engine, the result is right.
<img width="1198" alt="image" src="https://github.com/flutter/flutter/assets/6874049/3f881df7-29e5-41ae-bd6e-ce90c9a1cfa4">

List of known issues emoji in flutter web html rendering:

The Unicode encoding for 1️⃣ is: U+0031 (1) + U+FE0F (️ Variation Selector-16, VS-16).
The Unicode encoding for 2⃣ is: U+0032 (2) + U+20E3 (⃣ Combining Enclosing Keycap).

@ditman 




### Expected results

![image](https://github.com/flutter/flutter/assets/6874049/f5b3d872-676c-42a1-b95a-5bdbf9ac3aec)


### Actual results

<img width="1185" alt="image" src="https://github.com/flutter/flutter/assets/6874049/c037e15d-a609-4658-b471-03d1c02cf6a9">

### Code sample

<details><summary>Code sample</summary>

```dart
Text( '🤔Can you solve the quiz?💰 🤖#AI got puzzled! 🎁\$30 for 5 each!To win:1️⃣ FL &❤️ & RT @binary_x2⃣ Fill in the blank👇 & tag 2 friends!'),
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.2, on macOS 11.6 20G165 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] Connected device (2 available)
```

</details>
Repository: vscode
Issue: Multiple Cursors across Multiple/All files
Labels: feature-request,editor-multicursor

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Here's the scenario. I have a class constructor that began like..

export class ABC {
 constructor(public name: string, public selector: string)
}

Usages
= new ABC("a","b")

I now want to change the constructor to take an object instead of multiple params..

export class ABC {
 constructor(public params: Options)
}

export interface Options{
name:string;
selector:string;
}

Thus necessitates changing usages
= new ABC({ name:"a", selector: "b"})


The problem is that this change would need to happen in a lot of files. If they were all inside 1 file I could easily use Multiple cursors and change them all at once but since this is spread across multiple files I can't use multiple cursors to change them all and Find/Replace All is too complex to do cleanly. Can we have a way to pull all Files or a select number of files into multiple cursors?