sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: The client component cannot get the type attribute of the child component.
Labels: bug

### Link to the code that reproduces this issue

https://stackblitz.com/edit/stackblitz-starters-26sp4h

### To Reproduce



```tsx
// Item.tsx
'use client';

function Item({ children }) {
  return <div>{children}</div>;
}
export default Item;
```

```tsx
//List.tsx
import Item from './item';

function List({ children }) {
  const items = React.Children.map(children, (child) => {

    // The child.type obtained here is an anonymous function. 
    // But I need to do something based on the type of the child component.
    console.log(child.type);

    return child;
  });

  return <div>{items}</div>;
}
```

```tsx
// App.tsx

import List from './List';
import Item from './Item';

function App() {
  return (
    <List>
      <Item />
      <Item />
    </List>
  );
}
```


### Current vs. Expected behavior

The Item and List in the above reproduction example may be components of material-ui or rsuite. These components declare `use client` in the file when exporting. As a result, when using server-side component rendering in Nextjs, the type of the component is an anonymous function, and the type of the component cannot be determined by type.

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: Ubuntu 20.04.0 LTS Tue Jul 23 2024 13:31:56 GMT+0800 (中国标准时间)
    Binaries:
      Node: 18.20.3
      npm: 10.2.3
      Yarn: 1.22.19
      pnpm: 8.15.6
    Relevant Packages:
      next: 13.5.1
      eslint-config-next: 13.5.1
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.2.2
    Next.js Config:
      output: N/A
```


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

Not sure

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

next dev (local), Other (Deployed)

### Additional context

_No response_
Repository: ant-design
Issue: TreeSelect 组件 treeTitleRender，node 会有 3 种不同的数据格式，而非 1 种固定的数据格式
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/issue-treetitlerender-qg6jwd)

### Steps to reproduce

1. 给 TreeSelect 增加 treeData 属性，内容为：
```ts
[
  { value: "1", label: "1", extra: "extra1" },
  { value: "2", label: "2", extra: "extra2" },
]
```

2. 给 TreeSelect 增加 treeTitleRender 属性，在函数中 console.log(node) 查看 node 内容

### What is expected?

和 Tree 组件 titleRender 相同，应返回唯一一种 node 数据格式，{ value: "1", label: "1", extra: "extra1" }

### What is actually happening?

会返回3种不同的数据格式：

在受控组件下：
1. treeData node，如 { value: "1", label: "1", extra: "extra1" }。
2. value node，如 {value: '1'}。

在非受控组件下：
1. treeData node，如 { value: "1", label: "1", extra: "extra1" }。
2. 经过处理的 treeData node，如 {label: 'extra1', value: '1', halfChecked: undefined , disabled:  undefined}。

如图所示：
![image](https://github.com/user-attachments/assets/d15286db-0d5b-45f2-873c-7d5207e48ca1)

| Environment | Info |
| --- | --- |
| antd | 5.19.3 |
| React | 18.2.0 |
| System | macOS |
| Browser | Microsoft Edge Version 126.0.2592.113 (Official build) (arm64) |

---
需求场景：需要根据原始的 treeData node，自定义渲染树的节点。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Performance troubles in editor with 3D gizmos.
Labels: bug,topic:editor,topic:3d,performance

### Tested versions

- Reproducible in 4.2.2

### System information

Windows 11; Editor; 13th Gen Intel(R) Core(TM) i5-13600K   3.50 GHz; nvidia 4070

### Issue description

I'm working on a 2.5D isometric map editor with my team.  
This is done by using 2D nodes and a topological graph.  
We also add 3D collision so we can manage physics in 3D:
![image](https://github.com/user-attachments/assets/bf7ff61a-33fa-4800-9786-2ade13bec177)
![image](https://github.com/user-attachments/assets/9ebf87b4-4feb-4ce3-8e3b-0527f9e409b6)

We experience slow map opening and closing when it's big (we have an example with more than 10000 tiles), but only in editor mode. We have no troubles when running game.  
Here are screenshots of a map example being slow on opening and closing in editor:  
![image](https://github.com/user-attachments/assets/4e8c37bf-482e-4175-b014-d7654b5c11ae)
Tiles in this maps have `StaticBody3D` with `CollisionShape3D`:  
![image](https://github.com/user-attachments/assets/7d1f93d7-cf91-496e-a433-0032eebc8424)

I ran a profiler (windows performance recorder) when closing the map to understand the reason of those slow opening and closing in editor.  
It seems `remove_child` method is taking too much time:  
![image](https://github.com/user-attachments/assets/5a5d9cf7-46e6-437c-ae4b-fc11f2ce8d0e)
When zooming in this method it appears that destroying the `EditorNode3DGizmo` is taking a lot of time:  
![image](https://github.com/user-attachments/assets/b1d93b26-b451-4d19-b985-d4a9f993d25c)

I find this a bit a shame as godot does not have any problem to instantiate and destroying more than 10k nodes (all works perfectly in game mode), but it has troubles with editor gizmos, which as far as I understand should be really simpler than complex nodes with physics.

### Steps to reproduce

Create a scene with 10k nodes using cubic collision shapes, then open and close in editor.

### Minimal reproduction project (MRP)

You can checkout `dojobigmap.tscn` from our module demo project (with engine compiled with this module): https://github.com/utopia-rise/IsometricMapModule/tree/master/demo/maps
Repository: ui
Issue: [bug]: Documentation Website Not Functioning Properly
Labels: bug

### Describe the bug

It seems the documentation website works fine on macOS, but it does not function correctly on Windows. 
Here are the details:

### Desktop Screen Size
![bug_report_2](https://github.com/user-attachments/assets/a3bca2fd-c5ce-4a6a-85c5-04964e8aba29)


### Mobile View
![bug_report_1](https://github.com/user-attachments/assets/5c4e50c0-73fa-4038-949a-d179127b2beb)


In the desktop environment, the example components are not visible at all. In the mobile view, the example components appear as images.

### Affected component/components

homepage

### How to reproduce

Go to [Homepage](https://ui.shadcn.com/)

### Codesandbox/StackBlitz link

https://ui.shadcn.com/

### Logs

_No response_

### System Info

```bash
OS: Windows 10 Pro for Workstations version 22H2
Chrome: v126.0.6478.182
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: PowerToys
Issue: [Future] Background Applications Auto Mute
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Automatically mute audio playback when it is not in focus.


### Scenario when this would be used?

Automatically control some apps that you might only use with sound when in the foreground, such as when checking some information or at other times.
Although this program was originally designed to automatically mute games, I think it could be useful in other work situations as well. I'm not a C++ programmer, though, so I probably can't help with the programming.

### Supporting information

Use Windows' built-in volume synthesizer to adjust the process volume.
Program exmaple (python):
https://github.com/wuyilingwei/AutoMuteBG
Repository: vscode
Issue: Improve Auto Update All (From Publisher) action experience
Labels: feature-request,extensions

Testing #223091

`Auto Update All (From Publisher)` is grayed out and has a check mark although the extension has Auto Update disabled:

![Image](https://github.com/user-attachments/assets/7e99708b-431d-4ad6-bbdd-8177aedf982e)
Repository: ollama
Issue: `Error: file does not exist` but it exists
Labels: bug

### What is the issue?

Hello, I want to push my model to ollama but I got the error 

`retrieving manifest`
`Error: file does not exist `

but the problem is that I have the file, specifically "C:\Users\User\.ollama\models\manifests\registry.ollama.ai\_\mymodel\latest"

and my username is _ (link: [https://ollama.com/_](https://ollama.com/_ ) ), so and I can't change my username

"""
D:\ollama> ollama create _/mymodel:latest -f Modelfile              
transferring model data
using existing layer sha256:617ba424eabae67d228cf4598d2b18d9656b73c1f8f5bfa974ead81485dad2a5
using existing layer sha256:f5dc666b38fce911ccd916bcb13ea78a8002803fd11d5bb6486c4dd76ab8223f
using existing layer sha256:3dddcbf82aec37d515d388e1141900e1530f74f20c5091f64567609a56fe8f43
using existing layer sha256:023c31c9015bbf14d78183c19eec819c3142e791c857bbc3989e53250f00561d
using existing layer sha256:c50ad1ef7469cb081d31e4c321e73562e1e657e890a325b4d7214f8988fd1678
using existing layer sha256:6a6636a5d2ef8c1f29444967fb0f17930369d2c53117d39bd3926760d1062230
writing manifest
success

D:\ollama> ollama list               
NAME                            ID              SIZE    MODIFIED       
_/mymodel:latest                  37dad3f2b9d3    13 GB   18 seconds ago
mymodel:latest                    37dad3f2b9d3    13 GB   23 minutes ago

D:\ollama> ollama push _/mymodel:latest
retrieving manifest
Error: file does not exist
"""

### OS

Windows, WSL2

### GPU

Nvidia, Intel

### CPU

Intel

### Ollama version

0.2.7
Repository: vscode
Issue: When are Enable / Disable Auto Update for All Extensions available?
Labels: feature-request,extensions

Testing #223091

The command palette and the Extensions menu always only show one of the two commands. Would it make sense to show both when some extensions have Auto Update enabled and some disabled? Alternatively always show both.
Repository: excalidraw
Issue: [BUG]: Lagging issues on large canvas
Labels: performance ⚡️

Hello, 
When working on not-so-big canvas (~100 elements), my browser happens to freeze my entire computer.
A quick analyse led me to understand that `canvas.toBlob()` function call is taking forever.
![image](https://github.com/user-attachments/assets/864775a8-4ecb-4054-8a50-701ffed558cd)

 I am using Brave browser, version v1.67.134 --> Chromium 126.0.6478.186
Don't have that issue with Firefox; but overall experience is but laggy and not so confortable. 
Any help welcome, as excalidraw is currently unusable with chromium-based browsers on my side.
Repository: pytorch
Issue: Make torch.compile support inter-op parallelism
Labels: oncall: distributed,feature,triaged

### 🚀 The feature, motivation and pitch

In Recommender model, there are usually thousands of input feature. And all these features have their own preprocess methods, which are able to be paralleled.

### Alternatives

Truely, TorchScript support inter-op parallelism. But it's hard to use.

### Additional context

Relative discussion in torch forums:
https://discuss.pytorch.org/t/does-torch-compile-support-inter-op-parallelism/188850/1
But nobody answered.

cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @ezyang @chauhang @penguinwu @anijain2305
Repository: vscode
Issue: Potentially FATAL: Invalid `editor.language.brackets` or `editor.language.colorizedBracketPairs`
Labels: bug,editor-core

<!-- ⚠️⚠️ 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. -->

Version: 1.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 22.6.0
OS Version: macOS Ventura 13.6.6

The bug causes the Text Editor to stop functioning. It appears that all the other features still work as normal. This action is reversible.

When the bug is active, VSCode will either show an error message, or not render any text. This prevents the user from editing the `settings.json` file to fix it.

(Note that it can be fixed by either fixing, moving, or deleting the `settings.json` file.)

> [!caution]
> This bug causes the text editor to __stop functioning__.

Steps to Reproduce:

1. Enable bracket matching / colourising.
2. Set the `editor.language.brackets` or the `editor.language.colorizedBracketPairs` to an invalid value.

For example:

```jsonc
{
    "editor.language.brackets": [["<", [">"]]]
}
```

or

```jsonc
{
    "editor.language.colorizedBracketPairs": [
        ["{", "}"],
        ["[", "]"],

        // The following is faulty
        [["${"], "}"]
    ]
}
```

To fix the file, you need to revert it back to a previous working state (e.g. using the Timeline, or an external Text Editor).
Repository: pytorch
Issue: JIT load traced model with "Expression of type" error
Labels: oncall: jit

### 🐛 Describe the bug

Hello, I am converting huggingface model to jit traced model, i can export trace model file successfully, but when load pt file, will report error，looking like the dash symbol resulting the error, is this a bug?
"traced_model = torch.jit.load(model_file, map_location=device)
Expression of type - cannot be used in a type expression:
__torch__.transformers_modules.THUDM.chatglm2-6b.7fabe56db91e085c9c027f56f1c654d137bdba40.modeling_chatglm.ChatGLMForConditionalGeneration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE"

### Versions

[pip3] numpy==1.24.1
[pip3] onnx==1.16.0
[pip3] onnx-simplifier==0.4.36
[pip3] onnxruntime==1.17.1
[pip3] torch==2.3.1+cpu
[pip3] torchaudio==2.3.1+cpu
[pip3] torchvision==0.18.1+cpu

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: angular
Issue: Extended diagnostics do not run on structural directive attributes
Labels: breaking changes,area: compiler,bug,compiler: extended diagnostics

This came up while I was working on #57033. The visitor that is meant to visit every expression in a template currently skips over the `templateAttrs` ([see](https://github.com/angular/angular/blob/4ac39aeea988bd423795bac70d480620f49f2267/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.ts#L189)). This is incorrect, because the `templateAttrs` don't get copied over into the element node for something like `<div *ngIf="expr"></div>`. As a result, our current extended diagnostics haven't been checking the expressions of structural directives. In #57033 I tried fixing it, but there were a lot of failures even for the trial run so I expect a lot more for a global one.  

As a workaround in #57033, I've added a flag that allows the problematic diagnostics to retain their old behavior, but eventually we should remove the `canVisitStructuralAttributes` flag and resolve the failures.
Repository: go
Issue: cmd/compile: teach BCE about `min` builtin
Labels: Performance,NeedsInvestigation,compiler/runtime

### Go version

go version go1.22.5 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/tdakkota/.cache/go-build'
GOENV='/home/tdakkota/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/tdakkota/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/tdakkota/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/tdakkota/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.5.linux-amd64'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='go1.22.5+auto'
GOTOOLDIR='/home/tdakkota/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.5.linux-amd64/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.5'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2547774337=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

```go
for i := range min(len(keys), len(values)) {
    println(keys[i]) // Found IsInBounds
    println(values[i]) // Found IsInBounds
}
```
https://go.dev/play/p/wE9DX4D3Iga
https://go.godbolt.org/z/11PYfc6x3

### What did you see happen?

Bound checks are not eliminated.

### What did you expect to see?

Given that `min(len(x), len(y))` is non-negative and less or equal than `len(x)` and `len(y)` , `i` is always in bounds of both slices, so bounds checks could be eliminated.

Iteration patterns like this are quite common, especially in columnar data formats.
Repository: vscode
Issue: vscode.dev - does not show images hosted on user-images.githubusercontent.com
Labels: bug,web,confirmation-pending,network

Testing #223078

Not sure if this is related but I want to make sure that we track this. 
1. Open https://insiders.vscode.dev
2. Open the Extensions viewlet and search for "Microsoft"
3. Find the Microsoft To Do (Unofficial) extension and click on it
4. The image in the README will not be shown
Repository: PowerToys
Issue: search field of Peek has a delayed reaction to show up
Labels: Issue-Bug,Needs-Repro,Product-Peek

### Microsoft PowerToys version

v0.82.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Peek

### Steps to reproduce

open a longer PDF from the file explorer via Ctrl SPACE and then use Ctrl F to show the search field.


### ✔️ Expected Behavior

the search field should open immediately

### ❌ Actual Behavior

the search field seems not to respond and then opens with a significant delay 

### Other Software

Windows 11 22 H2
Repository: PowerToys
Issue: win+c按键映射无效问题
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.82.1

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

![截图_2024-07-23_18-04-37](https://github.com/user-attachments/assets/fcb7ecf7-f9cb-4df2-aaef-42d3c2a673df)
如图所示，我设置了微信快捷按键，但是使用按键映射去映射时，并不生效

### ✔️ Expected Behavior

重新映射win+c，使win+c在任何位置都可映射为ctrl+shift+alt+c

### ❌ Actual Behavior

依然是win+c

### Other Software

0.81.0版本
并且是管理员登陆
Repository: storybook
Issue: [Bug]: Absolute import from MDX does not work
Labels: bug,test-runner

### Describe the bug

When I import a story with an absolute path it does not work. There is _no local build error_ and the test runner doesn't catch it either. I'm pretty sure it worked in the past. (We also use eslint-plugin-storybook, so an error reported by ESLint would also be fine.)

It's _very_ likely that my configuration doesn't work anymore, but I'd love to know how I can prevent issues like this, because it got unnoticed for quite a while in our Storybook instance.

### Reproduction link

https://github.com/donaldpipowitch/storybook-mdx-import-issue

### Reproduction steps

See README in https://github.com/donaldpipowitch/storybook-mdx-import-issue.

### System

```bash
System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.1.0 - ~/Library/Caches/fnm_multishells/87624_1721729529550/bin/node
    Yarn: 1.22.22 - ~/Library/Caches/fnm_multishells/87624_1721729529550/bin/yarn
    npm: 10.2.0 - ~/Library/Caches/fnm_multishells/87624_1721729529550/bin/npm
    pnpm: 9.5.0 - ~/Library/pnpm/pnpm <----- active
  Browsers:
    Chrome: 126.0.6478.183
    Safari: 17.5
```


### Additional context

_No response_
Repository: TypeScript
Issue: Duplicate keys do not error
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms


### 🕗 Version & Regression Information

- This is a crash
- This changed between versions ___latest___ and ___latest____
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______


### ⏯ Playground Link

_No response_

### 💻 Code

```ts
export const func = (demo: string) => {
    const obj = {
        [demo]: '1',
        [demo]: '1',
    };
    console.log(obj);
};
```

### 🙁 Actual behavior

no error
![image](https://github.com/user-attachments/assets/e082387e-7ecc-42fd-aedc-5a8bce751f55)


### 🙂 Expected behavior

error

### Additional information about the issue

_No response_
Repository: ollama
Issue: finetuning model can't  runing in ollama
Labels: bug

### What is the issue?

I fine-tuned a sqlcoder model and generated a model file. When I deployed it on Ollama, there was a problem. The model could not run and the size of the Ollama file was incorrect. Has anyone encountered this problem?
![Screenshot 2024-07-23 at 6 49 50 PM](https://github.com/user-attachments/assets/6aaf3a5a-e15d-43a8-9c7d-3f2f940a0e25)
![Screenshot 2024-07-23 at 6 50 41 PM](https://github.com/user-attachments/assets/6f8595cf-7460-46c7-b094-ac9d96e936b7)
![Screenshot 2024-07-23 at 6 51 26 PM](https://github.com/user-attachments/assets/c7a12bd4-42b9-4071-82a8-fdd74f0ba854)


### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.47
Repository: vscode
Issue: Profiles editor is not accessible / usable by keyboard
Labels: bug,ux

Testing #223080

The profiles editor is not usable by keyboard (only by mouse).

I cannot put focus on this widget and use the arrow keys/tab to select an option:

![Image](https://github.com/user-attachments/assets/084032d2-f27f-46b7-b0da-4bf93570e925)
Repository: flutter
Issue: [dart:ui] convert `ColorSpace.extendedSRGB` to `ColorSpace.sRGB`
Labels: c: new feature,a: images,c: proposal,P3,team-engine,triaged-engine

### Use case

I have a ui.Image on my iPhone, it is of `ColorSpace.extendedSRGB` type, I want to convert it to `ColorSpace.sRGB`.

### Proposal

I think a function is needed to convert `extendedSRGB` to `sRGB` in Flutter.
Repository: vscode
Issue: SCM Graph - View commit action on multiple commits is showing no changed files
Labels: ux,scm,under-discussion

Testing #223106


https://github.com/user-attachments/assets/efff4839-53ff-4017-97ac-b0dd0fd552e3