sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Aliased optional chain calls don't narrow like their inline equivalents
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

aliased conditions control flow analysis cfa optional chain call

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.6.0-dev.20240704#code/GYVwdgxgLglg9mABAJwKYGc4BsBuqCMAFDACYBci6UyMYA5ogD6LgmrC2okCUiA3gChEiCAiqIY6AEKssXRAF4JJAPwA6WhCwg26QgCIA+gCNZXfdwDcQicETFpZnvxvDRYcVWQUvtBktJrYQBfAVCBUEhYBBQMbDwAJmJySmo-JhYwNg4wLl5BYRg7ZPVNbV0DEycLfNcRMShU7yb0gJIgxFDgoA

### 💻 Code

```ts
function resolve1(id: string | undefined) {
  const isBundled = id?.includes("_bundled");
  if (isBundled) {
    const str: string = id; // error
  }
}

function resolve2(id: string | undefined) {
  if (id?.includes("_bundled")) {
    const str: string = id; // ok
  }
}
```


### 🙁 Actual behavior

`resolve1` errors within the if block

### 🙂 Expected behavior

I'd expect it to be OK. Just like `resolve2` is OK with it here - the condition is exactly the same and TS supports [Control Flow Analysis of Aliased Conditions and Discriminant](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#control-flow-analysis-of-aliased-conditions-and-discriminants) since 4.4

### Additional information about the issue

_No response_
Repository: opencv
Issue: Why are the supported opencl related functions slower on gpu than on cpu 
Labels: question (invalid tracker),optimization

### System Information

OpenCV version: 4.10.0
Here is my output of clinfo:
Device #0
Name: Mali-G310 r0p0
Type: GPU
Version: OpenCL 3.0 
Global memory size: 15 GB 359 MB 644 kB
Local memory size: 32 kB
Max work group size: 512
Max work item sizes: (512, 512, 512)

### Detailed description

When I use OpenCL to run functions such as cvtcolor, its performance is not as good as that of the CPU. Has anyone encountered this problem?
Is it that the OCL module is not compatible with my GPU? Do I need to change any parameters or variables?

### Steps to reproduce

opencv_perf_imgproc

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: next.js
Issue: Partial suspense key not working
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/der-daniel/partial-suspense-key

### To Reproduce

1. Fire Up the Application
2. There are two search params `key1` and `key2`
3. There are two server components which are using the route in `/api`. The route simply returns the key.
4. Use the buttons on the page to either change one of the search params or both.

### Current vs. Expected behavior

Current behavior:

- If I change both keys, the suspense triggers both fallback uis for loading the api endpoint inside the server components. Everything is responsive and fast.
- If I only change one of the keys no fallback ui is triggered and the ui is blocked, i.e. the url only changes after all api requests are finished.

Expected behavior:
- If I only change one of the keys, I expect only the respective suspense component triggers the fallback ui while the other stays the same. Moreover the ui should not block and wait for the requests to finish.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 18.19.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: 9.4.0
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: 14.2.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.3
Next.js Config:
```


### Which area(s) are affected? (Select all that apply)

Navigation

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

_No response_
Repository: ant-design
Issue: DatePicker placement设置只在屏幕足够大时生效，屏幕小时会自动计算元素上下空间选择展示在上方或者下方，希望可以出个属性支持不自动计算强行根据palcement设置进行展示。
Labels: 💡 Feature Request,Inactive,unconfirmed

### What problem does this feature solve?

这个功能解决在屏幕够小时placement不生效问题。

### What does the proposed API look like?

当设置placement时，根据设置的placement展示不计算元素上下空间。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: flutter
Issue: Communication between multiple Flutter engines.
Labels: c: new feature,engine,a: existing-apps,c: proposal,P3,team-engine,triaged-engine

### Use case

I am working on a iOS native application. 
I have designed 2 separate feature using the flutter module which has separate engines.
If I need to pass the information from iOS native to specific flutter module (vice-versa) I can use method channel to do so.
But when I wanted to pass the information from one module to another another flutter module then I have to go through the native.
Passing info from module A to native iOS then iOS native to module B using the method channel.
Do we have any way to pass the information from module A to directly module B without passing to native iOS?
If yes, then do share the reference.
If no, is there any plan to achieve this goal in your roadmap? 

### Proposal

Direct communication between two flutter modules without shipping to native iOS/Android.
Repository: vscode
Issue: debugDescriptionSymbol should not be used for snapshots
Labels: debug,debt

`formatValue` is used to create snapshots of some values, but is uses `debugDescriptionSymbol`, which I don't think it should:

https://github.com/microsoft/vscode/blob/76837b663030640b32e6604a4a330411121a4cc3/src/vs/base/test/common/snapshot.ts#L123-L125

In particular, this test :

https://github.com/microsoft/vscode/blob/76837b663030640b32e6604a4a330411121a4cc3/src/vs/workbench/contrib/chat/test/common/chatModel.test.ts#L177-L183

... seems to call this code and includes the result in a snapshot:

https://github.com/microsoft/vscode/blob/76837b663030640b32e6604a4a330411121a4cc3/src/vs/base/common/uri.ts#L417-L419

---

The problem is that a utility to help debugging is now used to assert that some model logic behaves correctly. That makes tweaks to the utility difficult. The debug description should only be consumed by humans.

(This broke in https://github.com/microsoft/vscode/pull/216537)
Repository: vscode
Issue: The notebook diff editor ignores both the editor font size and the notebook font size settings
Labels: bug,notebook-diff

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.91.0
- OS Version: Win10 22H2

Steps to Reproduce:

1. Set the editor and the notebook font sizes to non-default values:
```
    "editor.fontSize": 12,
    "markdown.preview.fontSize": 12,
    "notebook.markup.fontSize": 12,
```
2. Open the notebook diff editor 
3. Observe it still using the default font size

![Screenshot](https://github.com/microsoft/vscode/assets/87073553/8201459c-d1dc-40f8-af84-860b263dc03c)
Repository: ui
Issue: [bug]: shadcn/ui web page breaks when using combobox 
Labels: bug

### Describe the bug

This is an issue that I've found on the web page of the library, I was seeing the "combobox" component and using the different examples. When I reached the "Form" section it prompted a client-side error.

This isn't a problem that affects the use of the framework, but I guess it usefull to have the web page working correctly

### Affected component/components

Combobox

### How to reproduce

1. Go to the web page
2. Access the combobox component
3. Go to the "Form" example
4. Click on the component

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
97525-01e51dd4c392194a.js:1 TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at O (69016-e46275a046c77977.js:1:8485)
    at M (69016-e46275a046c77977.js:1:7484)
    at 69016-e46275a046c77977.js:1:6256
    at 69016-e46275a046c77977.js:1:14852
    at Map.forEach (<anonymous>)
    at 69016-e46275a046c77977.js:1:14841
    at aI (eb2a38ac-8c1a930f3b668d8a.js:1:72883)
    at aU (eb2a38ac-8c1a930f3b668d8a.js:1:72943)
    at aV (eb2a38ac-8c1a930f3b668d8a.js:1:73382)
window.console.error @ 97525-01e51dd4c392194a.js:1
```


### System Info

```bash
Brave browser
Version 1.67.123 Chromium: 126.0.6478.126 (Build oficial) (64 bits)

Also tried with

Firefox
127.0.2 (64-bit)
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: `deno fmt` panics with `https://esm.sh/v131/readable-stream@2.3.8/denonext/readable-stream.mjs`
Labels: bug,deno fmt

`deno fmt` panics at `cli/tools/fmt.rs:475` when formatting `https://esm.sh/v131/readable-stream@2.3.8/denonext/readable-stream.mjs`

```sh
curl -o example.js https://esm.sh/v131/readable-stream@2.3.8/denonext/readable-stream.mjs
deno fmt example.js
```

Version: Deno 1.44.4
Repository: vscode
Issue: Multi Diff Editor: Add folding behaviour options
Labels: feature-request,multi-diff-editor

<!-- ⚠️⚠️ 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. -->

Now that the Incoming/Outgoing section of the SCM view offers a graph representation, where the only way to discover which files are involved in a commit is to click on it, I would like the multi-diff editor to open with all files collapsed when there's more than one file being displayed. At the moment I do this manually by clicking the "Collapse All Diffs" toolbar button.

I'd also like the option for accordion-style folding, where expanding one file collapses all the others. That way I can more quickly review the diffs in each file associated with a commit.
Repository: flutter
Issue: Rewrite paths for conditionally included assets
Labels: c: new feature,tool,a: assets,c: proposal,P3,team-tool,triaged-tool

### Use case

There is a [feature](https://docs.flutter.dev/deployment/flavors#conditionally-bundling-assets-based-on-flavor) in Flutter that allows you to conditionally define assets on a per-flavor basis. 

We are developing an application that needs to include different assets per flavor, but have them in the same folder structure for each flavor. 

The simplest example would be localization files (we are using easy_localization).
Our current structure is `assets/translations/{flavor}/*.json`. We then conditionally include these localization files like so:

```yaml
flutter:

  assets:
    - assets/common/
    - path: assets/translations/banana/
      flavors:
        - banana
    - path: assets/translations/apple/
      flavors:
        - apple
```

Then we change the asset path depending on the current flavor:

```dart
EasyLocalization(
      path: 'assets/translations/$appFlavor',
      ...
    ),
```

What we would like is for the assets to be available under `assets/translations/*.json` when the app is built, so that we can specify it like this, no matter which flavor is selected.

```dart
EasyLocalization(
      path: 'assets/translations/',
      ...
    ),
```

### Proposal

Add an ability to specify a rewrite for the path when bundling the assets. This can be an option only for the conditionally included assets or for all assets.

Example of the new syntax:

```yaml
flutter:

  assets:
    - assets/common/
    - path: assets/translations/banana/
      bundle_path: assets/translations/
      flavors:
        - banana
      
    - path: assets/translations/apple/
      bundle_path: assets/translations/
      flavors:
        - apple
```
Repository: react-native
Issue: Accessibility state treated incorrectly on iOS
Labels: Platform: iOS,Help Wanted :octocat:,Issue: Author Provided Repro,Accessibility

### Description

I'm seeing two strange behaviours around the disabled property and accessibilitState.disabled on iOS:
* Setting disabled={true} on a TouchableOpacity leads to Voiceover reading the label of the touchable opacity followed by "link"
   * Even if you set role="button" and accessibilityRole="button", VoiceOver will still read out "<button label> link button"
   * In the example I've included you can see once you bump the counter up and the minus button is no longer disabled, it stops getting read out as a link
* Whatever is set for accessibilityState.disabled is never read out. Other properties, like accessibilityState.selected are still read out

Both of these issues happen on iOS (I'm including a snack, my iOS version is 17.5.1 - I've not tested this on other iOS versions), but TalkBack correctly reads out the button role and accessibilityState.  

### Steps to reproduce

1. Create a <TouchableOpacity> and assign it a button role and accessibilityRole
2. Set disabled={true} on it and accessibilityState={{disabled: true}}
3. Turn on VoiceOver and focus on the TouchableOpacity

**Expected behaviour**
* The TouchableOpacity's is read out as "<label> button disabled"

**Actual behaviour**
* The TouchableOpacity is read out as "<label> link button"
    * "disabled" is never read out
    * Removing disabled={true} leads to the component no longer being read out as a link 


### React Native Version

0.74.0

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
Not applicable as developing directly in Expo Snack
```


### Stacktrace or Logs

```text
Not applicable as developing directly in Expo Snack
```


### Reproducer

https://snack.expo.dev/_f-0w64MnvIqQ65myDxPW

### Screenshots and Videos

_No response_
Repository: vscode
Issue: js debug chrome debug console dumps large error where in Chrome it's been truncated
Labels: feature-request,debug,debug-console

See an error in Chrome (via console.error):
<img width="848" alt="Screenshot 2024-07-05 at 8 32 29 PM" src="https://github.com/microsoft/vscode/assets/9585787/559b3037-20b5-4738-9256-531554c2a86a">
<img width="828" alt="Screenshot 2024-07-05 at 8 32 40 PM" src="https://github.com/microsoft/vscode/assets/9585787/d5f5c4e4-99f8-4ae9-9233-7fee7a70a954">

But in the vscode debug console, it shows as:
<img width="1356" alt="Screenshot 2024-07-05 at 8 33 13 PM" src="https://github.com/microsoft/vscode/assets/9585787/3f855e79-ad17-41d6-ab42-44ba563d5bf0">
<img width="1339" alt="Screenshot 2024-07-05 at 8 33 19 PM" src="https://github.com/microsoft/vscode/assets/9585787/d399da2b-da9a-4e07-9bde-6528d9777642">

etc etc... goes a long distance.

There is an expansion button, like so:
<img width="53" alt="Screenshot 2024-07-05 at 8 34 59 PM" src="https://github.com/microsoft/vscode/assets/9585787/a4492394-c8e4-4f1b-9405-9fab1d2f1f95">

But all that does is reveal a single line below:
<img width="1119" alt="Screenshot 2024-07-05 at 8 35 24 PM" src="https://github.com/microsoft/vscode/assets/9585787/38fdf35e-e000-4138-9700-af1e7e809a81">

So it's kind of useless. Basically, I want VSCode debug console to truncate incoming errors in a consistent way.
Repository: PowerToys
Issue: 'Highlight distance' regularly stops / disappears:
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.81.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

Highlight distance regularly stops / disappears:

Set at 120.
disappears or minimizes to 0
So, selecting two adjacent zones requires precise 'mousing' to a single pixel line between the zones.

Sometimes it comes back after a reboot.
Sometimes it comes back after locking the PC en entering the PIN, but not always.

Hope this was a clear enough bug report as this bug hampers practical use of adjacent zones a lot, which I do many times a day.

I work on 4K on a 55 inch with 100% screen zoom such that the pixels are about the same size as on FHD 28 inch.

I use 12 zones, 4 columns and 3 rows.

Thanks

### ✔️ Expected Behavior

Highlight distance regularly stops / disappears:

Set at 120.
disappears or minimizes to 0
So, selecting two adjacent zones requires precise 'mousing' to a single pixel line between the zones.

Sometimes it comes back after a reboot.
Sometimes it comes back after locking the PC en entering the PIN, but not always.

Hope this was a clear enough bug report as this bug hampers practical use of adjacent zones a lot, which I do many times a day.

I work on 4K on a 55 inch with 100% screen zoom such that the pixels are about the same size as on FHD 28 inch.

I use 12 zones, 4 columns and 3 rows.

Thanks

### ❌ Actual Behavior

Highlight distance regularly stops / disappears:

Set at 120.
disappears or minimizes to 0
So, selecting two adjacent zones requires precise 'mousing' to a single pixel line between the zones.

Sometimes it comes back after a reboot.
Sometimes it comes back after locking the PC en entering the PIN, but not always.

Hope this was a clear enough bug report as this bug hampers practical use of adjacent zones a lot, which I do many times a day.

I work on 4K on a 55 inch with 100% screen zoom such that the pixels are about the same size as on FHD 28 inch.

I use 12 zones, 4 columns and 3 rows.

Thanks

### Other Software

Just use regularly updated W11 pro with 12th gen i5 with embedded GPU, 16 GB RAM, so no issues with the hardware.
Repository: ui
Issue: [bug]: can u fix the scollbar show and hide if i use dropdown
Labels: bug

### Describe the bug

Whenever i use dropdown 
....
if dropdown is not active that is i havent clicked on it---> the scrollbar is visble
where as soon i use dropdown the scrollbar disappers 


which is not the case when i make my down dropdown

### Affected component/components

Dropdown

### How to reproduce

try to reproduce on blank repo

### Codesandbox/StackBlitz link

 please add a reproduction

### Logs

_No response_

### System Info

```bash
Browser
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: PowerToys
Issue: Change the old Segoe font to the new Segoe Variable
Labels: Help Wanted,Good first issue,Area-User Interface,Priority-3,Cost-Small

### Description of the new feature / enhancement

Currently PowerTows uses the old Segoe font (Windows 10), it would be appreciated to update it to the current Windows 11 font, Segoe Variable.

![imagen](https://github.com/microsoft/PowerToys/assets/87845044/4e438db1-4ea0-4c1d-a628-d5cd7671e829)
https://learn.microsoft.com/en-us/windows/apps/design/signature-experiences/typography

### Scenario when this would be used?

Throughout PowerToys

### Supporting information

_No response_
Repository: godot
Issue: Create new project with default "Create folder" selected, not working in Godot 4.3.*
Labels: bug,topic:editor,needs testing

### Tested versions

- Reproducible in: v4.3.dev5.official [c9c17d6ca], v4.3.dev6.official [64520fe67], v4.3.beta1.official [a4f2ea91a], v4.3.beta2.official [b75f0485b]
- Not reproducible in: previously versions (is a new attribute)



### System information

Ubuntu 22.04.4 LTS - Godot v4.3.beta2.official [b75f0485b]

### Issue description


When creating a new project, the "Create Folder" option is selected by default, but it is not working.
![New proyect](https://github.com/godotengine/godot/assets/576414/b633a1f3-314c-4451-8131-e9519378e2ce)


If I leave the option checked (as it comes) and press the CREATE AND EDIT button, it creates the project without creating a new folder with the project's name. However, if before pressing the CREATE AND EDIT button I uncheck and recheck the "Create Folder" option, in that case, it does create the folder.
[Video for new proyect](https://github.com/godotengine/godot/assets/576414/12f40372-074a-4cfc-8d95-fe1c4f9f4af1)


### Steps to reproduce

Test 1

1. Start Godot
2. Press the button to create a new project
3. If necessary, change the project's name (if a project with the default name already exists)
4. Press the Create and Edit button
5. Verify that the project was created in the "Project Path" folder and not within the "Project Name" folder.

Test 2
1. Start Godot
2. Press the button to create a new project
3. If necessary, change the project's name (if a project with the default name already exists)
4. Uncheck the "Create Folder" option
5. Recheck the "Create Folder" option
6. Press the Create and Edit button
7. Verify that the project was created in the "Project Name" folder within the "Project Path" folder (Expected behavior)

Possible fixes:

1. Have the "Create Folder" option appear unchecked by default.
2. Ensure the internal value used by the editor is set to TRUE when the screen starts.

### Minimal reproduction project (MRP)

no MRP, only video to see bug
[Grabación de pantalla desde 05-07-24 11:27:01.webm](https://github.com/godotengine/godot/assets/576414/bb286a6b-30e3-4490-ae88-d19013f53717)