sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ui
Issue: [bug]: Dropdown menu content & Dropdown menu item having properties error 
Labels: bug

### Describe the bug

Type '{ children: Element[]; align: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<never>'.
  Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes<never>'.

### Affected component/components

Dropdown Menu

### How to reproduce

1. Install the Dropdown menu component in NextJs 15 with React 19 (19.0.0-rc-66855b96-20241106) project.
2. Install the next theme and provide a theme provider.
3. Create a mode toggle given by shadcn UI library and then it show an error on Dropdown menu content and Dropdown menu item.
4. When you open "/components/ui/dropdown-menu.tsx" then it also show some other type errors.

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
│ > frontend@0.1.0 build
│ > next build
│ 
│    ▲ Next.js 15.0.3
│ 
│    Creating an optimized production build ...
│  ✓ Compiled successfully
│    Linting and checking validity of types  .Failed to comp
│ ile.
│ 
│ ./src/components/mode-toggle.tsx:27:14
│ Type error: Type '{ children: Element[]; align: string; }'
│  is not assignable to type 'IntrinsicAttributes & RefAttri
│ butes<never>'.
│   Property 'children' does not exist on type 'IntrinsicAtt
│ ributes & RefAttributes<never>'.
│ 
│   25 |                 </Button>
│   26 |             </DropdownMenuTrigger>
│ > 27 |             <DropdownMenuContent align="end">
│      |              ^
│   28 |                 <DropdownMenuItem onClick={() => se
│ tTheme("light")}>
│   29 |                     Light
│   30 |                 </DropdownMenuItem>
│ npm error Lifecycle script `build` failed with error:
│ npm error code 1
│ npm error path /Users/rohanchaudhary/Desktop/bondra/apps/f
│ rontend
│ npm error workspace frontend@0.1.0
│ npm error location /Users/rohanchaudhary/Desktop/bondra/ap
│ ps/frontend
│ npm error command failed
│ npm error command sh -c next build
│ 
│ command finished with error: command (/Users/rohanchaudhar
│ y/Desktop/bondra/apps/frontend) /opt/homebrew/bin/npm run 
│ build exited (1)
```


### System Info

```bash
Browser: Brave (Version 1.73.91)
Code Editor: Visual Studio Code (Version 1.95)
System: Mac OS Sequoia (Version 15.1)
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: svelte
Issue: Fetching an object from a SveltMap, modifying it, then setting it back does not have obvious behavior
Labels: documentation

### Describe the bug

For `$state([])` you can get an object by index, change it and then set it back and this reactively change. My assumption was that the same behavior would work for a `$state(new SvelteMap())` which does not seem to be the case.  If you get a value that is an object, modify it and then set it back no reactivity seems to happen.  If I set a new object with the same key, things to reactively change. Refer to the playground link for an example.

### Reproduction

https://svelte.dev/playground/a1144052a70346f9bced094f4d795823?version=5.2.7

### Logs

_No response_

### System Info

```shell
System:
    OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (12) arm64 unknown
    Memory: 17.04 GB / 31.17 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 18.19.1 - /usr/bin/node
    npm: 9.2.0 - /usr/bin/npm
    pnpm: 9.12.3 - ~/.local/share/pnpm/pnpm
  Browsers:
    Chromium: 130.0.6723.116
  npmPackages:
    svelte: ^5.2.7 => 5.2.7
```


### Severity

annoyance
Repository: ant-design
Issue: StyleProvider CSS 逻辑属性 降级问题？有没有办法，降级 DatePicker 弹出你们antd自带的内联样式:  inset
Labels: improvement

### What problem does this feature solve?

https://ant.design/docs/react/compatible-style-cn


### What does the proposed API look like?

import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';

// `transformers` 提供预处理功能将样式进行转换
export default () => (
  <StyleProvider transformers={[legacyLogicalPropertiesTransformer]}.  .....>
    <MyApp />
  </StyleProvider>
);

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: langchain
Issue: DOC: What is the maximum chunk size returned from SemanticChunker.split_documents()
Labels: 🤖:docs

### URL

_No response_

### Checklist

- [X] I added a very descriptive title to this issue.
- [X] I included a link to the documentation page I am referring to (if applicable).

### Issue with current documentation:

I need to know on the maximum chunk size that can be return from SemanticChunker.split_documents() for large documents.
Can it be more than 8k token as i need to send the chunk for embedding, chunk with more than 8k token will fail with Azure embedding model.
Need Help!!



### Idea or request for content:

Documentation should cleary explain this
Repository: pytorch
Issue: Implement ADOPT Optimizer into torch.optim module
Labels: module: optimizer,triaged,enhancement

### 🚀 The feature, motivation and pitch

I came across a newly published optimization method described in the paper [ADOPT: Modified Adam Can Converge with Any β2 with the Optimal Rate](https://arxiv.org/pdf/2411.02853), which demonstrates impressive performance improvements. Does the PyTorch team have any plans to integrate this method into the torch.optim module?

### Alternatives

_No response_

### Additional context

_No response_

cc @vincentqb @jbschlosser @albanD @janeyx99 @crcrpar
Repository: pytorch
Issue: [dynamo] Better support for dict subclasses
Labels: high priority,triaged,oncall: pt2,module: dynamo,dynamo-user-empathy-day,dynamo-triage-june2024

### 🐛 Describe the bug

We should go through all methods on dict, and check that they are supported with dict subclasses - https://docs.python.org/3/library/stdtypes.html#dict

For starter, lets make the following test pass. 

I am not sure if we can support mutations on dict subclasses.


```
diff --git a/test/dynamo/test_functions.py b/test/dynamo/test_functions.py
index 54342ac50e8..2840b2b124c 100644
--- a/test/dynamo/test_functions.py
+++ b/test/dynamo/test_functions.py
@@ -1290,6 +1290,48 @@ class FunctionTests(torch._dynamo.test_case.TestCase):
         res = opt_fn(x)
         self.assertEqual(ref, res)

+    def test_dict_subclass(self):
+        class MyDict(dict):
+            pass
+
+        a = {
+            "a": 3,
+            "b": 5,
+            "c": 7,
+        }
+        d = MyDict(a)
+
+        def fn(x, d):
+            # all read-only functions on dict
+            x = x * len(list(d))
+            x = x * len(d)
+            x = x * d["b"]
+            if "c" in d:
+                x = x * 3
+            if "c" not in d:
+                x = x * 5
+            x = x * len(d.copy())
+            x = x * d.get("a")
+            x = x * d.get("d", 11)
+            count = 0
+            for _ in d.keys():
+                count += 1
+            for _ in d:
+                count += 1
+            x = x * count
+            for v in d.values():
+                x = x * v
+            for _, v in d.items():  # noqa: PERF102
+                x = x * v
+            return x
+
+        x = torch.randn(4)
+
+        ref = fn(x, d)
+        opt_fn = torch.compile(fn, backend="eager", fullgraph=True)
+        res = opt_fn(x, d)
+        self.assertEqual(ref, res)
+
     def test_unpack_mutable_map(self):
         from collections.abc import MutableMapping
```

### Error logs

NA

### Versions

NA

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @amjames
Repository: flutter
Issue: Missing locales for lzh, nan, yue in 'gen_l10n_types'
Labels: tool,framework,a: internationalization,P2,team-tool,triaged-tool

### Steps to reproduce

1. Go to `packages/flutter_tools/lib/src/localizations/gen_l10n_types.dart`
2. Find `final Set<String> _iso639Languages = <String>{`
3. `lzh`, `nan`, `yue` were not listed
4. Go to [IANA Language Subtag Registry](<https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry>)
5. `lzh`, `nan`, `yue` were listed as valid language subtags from ISO 639-3
6. Go to `lib/l10n/` of repository [Losses/rune](https://github.com/Losses/rune)
7. See incorrect BCP 47 language tags in file names `intl_zh_Hant_LZH.arb`, `intl_zh_Hant_NAN.arb`, `intl_zh_Hant_YUE.arb`
8. Open these files
9. See incorrect locale codes `"@@locale": "zh_Hant_LZH"`, `"@@locale": "zh_Hant_NAN"`, `"@@locale": "zh_Hant_YUE"`, being used

### Expected results

1. Go to `packages/flutter_tools/lib/src/localizations/gen_l10n_types.dart`
2. Find `final Set<String> _iso639Languages = <String>{`
3. `lzh`, `nan`, `yue` should be listed

### Actual results

1. Go to `packages/flutter_tools/lib/src/localizations/gen_l10n_types.dart`
2. Find `final Set<String> _iso639Languages = <String>{`
3. `lzh`, `nan`, `yue` were not listed

See:
* https://github.com/Losses/rune/issues/89
* https://github.com/flutter/flutter/issues/60631

### Code sample

<details open><summary>Code sample</summary>

Create localization files

* lib/l10n/intl_lzh.arb
* lib/l10n/intl_nan_Hant.arb
* lib/l10n/intl_yue_Hant.arb

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

![lzh, nan-Hant](https://github.com/user-attachments/assets/6d767c7b-58f0-47e8-b4fc-f2c057da926c)

![yue-Hant](https://github.com/user-attachments/assets/8e4a927c-7e87-40c6-8ba7-d66e36815576)

</details>


### Logs

<details open><summary>Logs</summary>

(not provided)

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

(not provided)

</details>
Repository: pytorch
Issue: torch.nn.functional.conv2d computes incorrect output when dilation>1 and dtype=torch.float64 on Windows
Labels: high priority,module: binaries,module: windows,module: convolution,triaged,module: correctness (silent),module: intel

### 🐛 Describe the bug

On Windows builds of PyTorch >=2.4.0, there seems to be a bug in `torch.nn.functional.conv2d` when handling `dilation` together with `float64`.

Code:
```
x = torch.ones(2, 1, 8, 8)
w = torch.ones(4, 1, 3, 3)
print(torch.nn.functional.conv2d(x, w, dilation=2).max())
print(torch.nn.functional.conv2d(x.double(), w.double(), dilation=2).max())

```

Outputs:
```
tensor(9.)
tensor(81., dtype=torch.float64)  # clearly wrong
```

- It only happens on Windows builds and on CPU.
- It also depends on shapes. Seems that `C_out`  must be at least 4 and `H, W` must be more than `2*kernel_size+1`.

### Versions

Collecting environment information...
PyTorch version: 2.4.0+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Education (10.0.22631 64-bit)
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.11.10 | packaged by Anaconda, Inc. | (main, Oct  3 2024, 07:22:26) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is CUDA available: False
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4070 Ti
Nvidia driver version: 560.94
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Name: AMD Ryzen 9 7900X 12-Core Processor
Manufacturer: AuthenticAMD
Family: 107
Architecture: 9
ProcessorType: 3
DeviceID: CPU0
CurrentClockSpeed: 4701
MaxClockSpeed: 4701
L2CacheSize: 12288
L2CacheSpeed: None
Revision: 24834

Versions of relevant libraries:
[pip3] torch==2.4.0
[conda] torch                     2.4.0                    pypi_0    pypi


cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @seemethere @malfet @osalpekar @atalman @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @frank-wei @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10
Repository: PowerToys
Issue: PowerToys Run: Doesn't show container in VSCode Workspaces
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

The container doesn't show up in VSCode Workspaces
![Image](https://github.com/user-attachments/assets/75333a97-f6b0-40cd-903f-2642d3b2f41c)
Only remote server folders show up
![Image](https://github.com/user-attachments/assets/7d3422cb-cbd8-408c-bdb3-d45e5a303118)
Is it because the container on the remote server is not recognized?

### ✔️ Expected Behavior

list some containers 

### ❌ Actual Behavior

no containers show up

### Other Software

_No response_
Repository: PowerToys
Issue: [Power Toys-System Tool >Text Extractor]: Name is not defined for the Cancel icon button on Power Toy Text Extractor.
Labels: Issue-Bug,Resolution-Fix Committed,Area-Accessibility,A11yE+D,A11ySev3,A11yWCAG,Product-Text Extractor

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

TextExtractor

### Steps to reproduce

**Test Environment:**
**OS Build:** Windows 11 version Dev (OS Build 27749.1000)
**Application:** Power toys version: v0.86.0
**Screen reader:** Narrator

**Repro Steps:**
1. Open the Microsoft PowerToys app and turn on Narrator.
2. Go to the "System Tools" tab and expand it.
3. Use the down arrow key to navigate to "Text Extractor" and press Enter.
4. Toggle on the "Enable Text Extractor" option.
5. Press "Windows+Shift+T".
6. Use the Tab key to navigate to the "Cancel" button and listen for the announcement.

**Note:**
When navigating to this button with JAWS or NVDA, these screen readers only announce the role ("button") without the name.

**User experience:**
Screen reader users are unable to understand the purpose of the Cancel button as it lacks a proper accessible name. This creates usability challenges, especially for users relying on assistive technologies.

**Guideline Reference:**
https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html

### ✔️ Expected Behavior

The "Cancel" button should be announced with the name first, followed by the role.

### ❌ Actual Behavior

When navigating to the "Cancel" button, Narrator announces it as "button cancel," which seems unusual. Typically, the name of the control is announced first, followed by its role.

### Other Software

https://github.com/user-attachments/assets/dd94b751-5d89-46bd-842e-27b443c4445c
Repository: PowerToys
Issue: [Power Toys-System Tool >Text Extractor]: When navigating to the 'Select Language' combo box, the screen reader does not announce the currently selected language.
Labels: Issue-Bug,Resolution-Fix Committed,Area-Accessibility,A11yE+D,A11ySev3,A11yWCAG,Product-Text Extractor

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

TextExtractor

### Steps to reproduce

**Test Environment:**
**OS Build:** Windows 11 version Dev (OS Build 27749.1000)
**Application:** Power toys version: v0.86.0
**Screen reader:** Narrator

**Repro Steps:**

1. Open the Microsoft PowerToys app and turn on Narrator.
2. Go to the "System Tools" tab and expand it.
3. Use the down arrow key to navigate to "Text Extractor" and press Enter.
4. Toggle on the "Enable Text Extractor" option.
5. Press "Windows+Shift+T".
6. Use the Tab key to navigate to the "Select language" combo box and listen for the announcement.

**User experience:**
Screen reader users are unable to know the currently selected language when navigating to the combo box, leading to confusion and difficulty in making informed choices.

**Guideline Reference:**
https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html


### ✔️ Expected Behavior

Screen reader should announce the currently selected language in the combo box.

### ❌ Actual Behavior

When navigating to the "Select Language" combo box, the screen reader does not announce the currently selected language.

### Other Software

https://github.com/user-attachments/assets/fe02f82c-97ff-447e-86d7-af06c16ee8f9
Repository: react-native
Issue: InputAccessoryView stopped working with multiple Inputs using the same inputAccessoryViewID
Labels: Component: InputAccessoryView,Needs: Triage :mag:

### Description

After upgrading the project to Expo 52 I discovered, that the InputAccessoryView stopped working, if there are multiple TextInputs, that share the same inputAccessoryViewID.

For clarity, I reproduced the issue in the snack.expo.dev directly in the example on InputAccessoryView.

If you run the example with Expo 51 (react-native v0.74.5) everything works as expected, it doesn't matter, if I focus the first or the second TextInput.
But if I change the Expo version to 52 (react-native v0.76.2), the InputAccessoryView shows only after focusing the first TextInput.

At first I reported the issue in the expo repository https://github.com/expo/expo/issues/33069 .
But it looks like the issue is in the react-native library



### Steps to reproduce

1. Open https://snack.expo.dev/LrCtZwQpPEm0SswYOmSQn
2. In bottom right corner select Expo v52.0.0 and enable Preview
3. In upper right corner select iOS
4. When the app starts running click on the first input -> The InputAccessoryView is there
5. then click on the second input -> The InputAccessoryView dissapears

If you repeat these steps but with the Expo v51.0.0 the InputAccessoryView is visiblle for both Inputs.

### React Native Version

0.76.2

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
.
```


### Stacktrace or Logs

```text
.
```


### Reproducer

https://snack.expo.dev/LrCtZwQpPEm0SswYOmSQn

### Screenshots and Videos

_No response_
Repository: PowerToys
Issue: [Power Rename] Use Date Modified rather than Date Created
Labels: Needs-Triage

### Description of the new feature / enhancement

Use Date Modified rather than Date Created

Even better, add an option and/or regex flag to specify which date is to be used.

Date Created is the least useful of all the likely available dates in my experience. It is usually the date the file was created on the current system, not the date the file was originally created or was last modified. The only date less useful would be date accessed.

There seem to be several similar requests which have been closed for no apparent reason.

### Scenario when this would be used?

I currently use other third-party software to rename using date modified or date taken etc., but it would be nice to be able to do simple timestamp-based renaming in this tool. I find that date created is almost never useful - for example, for content copied from a mobile device to a computer date created is usually the date that the files were copied (almost never useful) whereas date modified will be the time the files were actually last modified (actually useful)

Some examples where this would be useful:

- Renaming photos taken on a phone and copied to my computer
- Renaming files created on any external non-Windows system and copied to my computer where the created date will be when they were copied (not useful) and the modified date will be when they were actually last modified (useful, and depending on the file, probably when it was actually created on its original system)

### Supporting information

_No response_
Repository: rust
Issue: Using `Release` in the `store` operation for `make_mut` just prevent out-of-thin-air value?
Labels: T-libs,C-discussion,A-atomic

In https://doc.rust-lang.org/src/alloc/sync.rs.html#2267, the `make_mut` is implemented as
````rust
if this.inner().strong.compare_exchange(1, 0, Acquire, Relaxed).is_err(){
  // ...
}else if this.inner().weak.load(Relaxed) != 1 {  // #0
 //...
}else{
  this.inner().strong.store(1, Release);  // #1
}
````
while `upgrade` is 
````rust
if self.inner()?.strong.fetch_update(Acquire, Relaxed, checked_increment).is_ok(){
   Some(...)
}else{
 None
}
````
The `Release` at `#1` concerns this case
````rust
// thread 1:
let mut_ref = Arc::make_mut(&mut my_arc);
*mut_ref = 10;

//thread 2: 
let arc = weak.upgrade().unwrap();
drop(weak);
println!("{}", *arc);
````

In this case, `upgrade` will return `Some` if it reads `#1` and `#1` is executed only `#0` reads the value written by `weak.fetch_sub(1, Release)` in `drop(weak);`, so the model can be simplified as
````
weak = 2;
strong = 0;
// thread 1:
if weak.load(Relaxed) == 1{  // #1
   strong.store(1, Relaxed) // if the Release is changed to Relaxed  // #2
}
// thread 2:
while strong.load(Relaxed) !=0{ // #3
}
weak.store(1, Relaxed); // #4
````
#1 read #4, #4 is executed only if `#3` read `#2`, `#2` is executed only if `#1` read `#4`. It depends on the out-of-thin-air value. Do we need a `release` memory order here to prevent OOTD?
Repository: langchain
Issue: DOC: Docs describe FAISS get_by_id but it isn't implementd
Labels: 🤖:docs,investigate

### URL

https://python.langchain.com/api_reference/community/vectorstores/langchain_community.vectorstores.faiss.FAISS.html#langchain_community.vectorstores.faiss.FAISS.get_by_ids

### Checklist

- [X] I added a very descriptive title to this issue.
- [X] I included a link to the documentation page I am referring to (if applicable).

### Issue with current documentation:

Docs for FAISS describe get_by_id but it doesn't seem to be implemented as yet. 

### Idea or request for content:

I suggest either implementing get_by_id or removing it from the docs.
Repository: next.js
Issue: Server action - Internal error not handled if middleware is used Server action does not finish request on file size exceeded error  
Labels: bug,Middleware,Runtime

### Link to the code that reproduces this issue

https://github.com/liri2006/next-file-upload-issue

### To Reproduce

1. Ensure app uses middleware.ts file
2. Start the app
3. Upload file > 1mb
4. Submit form
5. Check Network tab in browser

### Current vs. Expected behavior

Expected:
Error is returned to the client.

Actual:
Request is in permanent "pending" state, so form submit never ends. Error is printed in server logs though .

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32536
  Available CPU cores: 16
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.12.3
Relevant Packages:
  next: 15.0.4-canary.21 // Latest available version is detected (15.0.4-canary.21).
  eslint-config-next: N/A
  react: 19.0.0-rc-380f5d67-20241113
  react-dom: 19.0.0-rc-380f5d67-20241113
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


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

Middleware, Runtime

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

next dev (local), Vercel (Deployed)

### Additional context

Works as expected if middleware file is deleted.
Repository: excalidraw
Issue: Add additional characters to Excalifont
Labels: enhancement,font

Let's gather here characters Excalifont is missing and should be considered to be added in the future:

- Kyrgyz: https://github.com/excalidraw/excalidraw/discussions/8810
Repository: excalidraw
Issue: UI scaling
Labels: enhancement,UX/UI

I would like to have different scaling for excalidraw ui like idk maybe it happened after some update but now excalidraw ui is too big it auto scales with my obsidian ui but the thing is i have bad eyes and i need big obsidian ui so i can read but the excalidraw ui is too big and covers large area. I think we should have a feature to have separate scaling for excalidraw ui elements.

_Originally posted by @BlindAndInsane in https://github.com/excalidraw/excalidraw/discussions/8816_