sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ui
Issue: [bug]: onScroll prop should be passed to ScrollAreaPrimitive.Viewport by default
Labels: bug

### Describe the bug

All remaining props are passed from ScrollArea to ScrollAreaPrimitive.Root, however, onScroll should go on ScrollAreaPrimitive.Viewport.

Ideally, it should be passed to the Viewport by default to save people time figuring out why the onScroll prop is accepted on ScrollArea but has no effect.

For anyone running into this issue, it can be addressed by passing onScroll to ScrollAreaPrimitive.Viewport:

``` typescript
const ScrollArea = React.forwardRef<
  React.ElementRef<typeof ScrollAreaPrimitive.Root>,
  React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
>(({ className, children, onScroll, ...props }, ref) => (
  <ScrollAreaPrimitive.Root
    ref={ref}
    className={cn("relative overflow-hidden", className)}
    {...props}
  >
    <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]" onScroll={onScroll}>
      {children}
    </ScrollAreaPrimitive.Viewport>
    <ScrollBar />
    <ScrollAreaPrimitive.Corner />
  </ScrollAreaPrimitive.Root>
))
```

Related issues: #1005 #1430

### Affected component/components

ScrollArea

### How to reproduce

1. Install the ScrollArea component
2. Use it on another component, passing an onScroll handler function
3. Scrolling will not trigger the handler. The only way to get it to trigger is modifying the ScrollArea component and passing the onScroll handler to the ScrollAreaPrimitive.Viewport component.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
shadcn@0.9.2
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: ClassDB::_instantiate_internal fails at runtime if GDExtension node be used
Labels: needs testing,topic:gdextension

### Tested versions

4.3.dev 4.3.stable 4.4 beta

### System information

Windows 11 - Godot 4.3 - Forward+

### Issue description

Issue is caused by this [line of code](https://github.com/godotengine/godot/blob/08f9cba0fbf27f171dea55de6f8274928b9f0d84/core/object/class_db.cpp#L556).
All classes registered from GDExtension are marked as API_EDITOR and API_EDITOR_EXTENSION which will cause issues if you use packed scenes and instantiation at runtime.

### Steps to reproduce

When we create a node with GDExtension and register it let's say `BoxNode3D`, If it exist in a scene and we pack the scene and instantiate it using `packed_scene->instantiate()` it leads to the 
```
Class 'BoxNode3D' can only be instantiated by editor.
```
Mean while we designed this node to work inside game as well, This is a very serious issue.

Steps to Reproduce :
1. Create a GDExtension and create a simple class driven from Node3D
2. Register class using `ClassDB::register_class`
3. Add some instance of your node to scene.
4. Run a script, Get scene root and pack it to a packed scene.
5. Save it using `ResourceSaver`
6. Load it using `ResourceLoader` as a `PackedScene`
7. Instantiate packed scene.
8. You'll get the error that BoxNode3D can only be instantiated by editor

I did a test and commented check for `API_EDITOR_EXTENSION ` and it worked perfectly fine.
I think best we can do is to rename `API_EDITOR_EXTENSION ` to `API_EXTENSION` and skip the checks for extensions at runtime or extensions classes can be defined as EDITOR_ONLY, CORE_ONLY and EDITOR_AND_CORE but it requires more work and get stuff more complicated.




### Minimal reproduction project (MRP)

- No Project Needed -
Repository: godot
Issue: Accessing untyped addon scripts cause "method not present on the inferred type "Variant" with "Unsafe Methos Access" set to Error
Labels: discussion,topic:gdscript,documentation

### Tested versions

4.3.stable

### System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 31.0.15.4683) - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

### Issue description

![image](https://github.com/user-attachments/assets/53d2b197-37a4-4656-bbad-6cbcdf8ef0a4)

Accessing untyped addon scripts cause "method not present on the inferred type "Variant" with "Unsafe Method Access" set to 'Error'

This happens even though "Exclude Addons" is enabled.

We've run into this problem in our project with addons such as GUT, where we've had to either lower the warnings or try to fix the addons by making them typed.

### Steps to reproduce

Open the attached project and note the error. Note if you disable the strict "Unsafe Method Access" setting the code will run correctly. Also note I didn't actually make an addon, I just put the code in an "addons" folder as all the "Exclude Addons" setting does is exclude files in that path from checks.

### Minimal reproduction project (MRP)

[type-checking-issues-with-addons.zip](https://github.com/user-attachments/files/17558650/type-checking-issues-with-addons.zip)
Repository: tauri
Issue: [feat] Supports multiple webviews on mobile platforms
Labels: type: feature request

### Describe the problem

My mobile application needs to navigate to a third-party page (for authorizing or information reference), and I need a way to add a "return button" for user when he wants to abort that process (and return to the application page).  
Iframes doesn't work since some third-party sites use `X-FRAME-OPTIONS` or CSP header to prevent itself from loading in iframes.

With multiwebview, I can create a fixed navbar on top of the screen to gain more control over the navigation. 
 However, this is not feasible on mobile platforms since multiwebview are *available on desktop and crate feature unstable only*.

### Describe the solution you'd like

I would like to have multiwebview feature available on mobile platforms.

### Alternatives considered

Listen to `onBackPressed` on Android (snippet from https://github.com/tauri-apps/tauri/issues/8142#issuecomment-2418365660 ), but it's not applicable to iOS targets.

### Additional context

_No response_
Repository: godot
Issue: Godot Editor does not automatically connect to VCS 
Labels: topic:editor,topic:plugin,needs testing

### Tested versions

Reproducible in v4.4.dev3.official [f4af8201b]
Reproducible in v4.4.dev3.mono.official [f4af8201b]
Not reproducible in v4.3.stable.official [77dcf97d8]

### System information

Godot v4.4.dev3.mono - Ubuntu 24.04.1 LTS 24.04 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) UHD Graphics 630 (CFL GT2) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 threads)

### Issue description

Godot Git Plugin 3.1.1 https://github.com/godotengine/godot-git-plugin/commit/f6002fab42f904e6799c1574d04b7a9f825db49c

When I launch the Godot Editor, the Godot Git Plugin is not connected (Commit tab not present in right-hand-side dock), and I have to connect it with:
```
Project / Version Control / Version Control Settings... / Connect to VCS / On
```

Then the plugin works normally.

This is the content of the Output pane when the editor is launched:
```
Godot Engine v4.4.dev3.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started on port 6006 ---
--- GDScript language server started on port 6005 ---
  Cannot get class 'GitPlugin'.
  Received a nullptr VCS extension instance during construction.
export_plugin.gd/_enter_tree(), version='2024-10-29 10:51:10 -0400'
```

The project uses only GDScript. I'm using the mono edition only because I wanted to experiment with using C# in Godot. I could try the regular non-mono edition if you think that would be helpful in isolating the issue.

### Steps to reproduce

(See above)

### Minimal reproduction project (MRP)

I will attempt to provide an MRP if others cannot reproduce  this issue.
Repository: PowerToys
Issue: When you redefine the color picker shortcut (more than just color picker), the changed shortcut is not displayed in the dashboard
Labels: Issue-Bug,Help Wanted,Product-Settings,Cost-Small,Status-Reproducible

### Microsoft PowerToys version

0.85.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

ColorPicker

### Steps to reproduce

![Image](https://github.com/user-attachments/assets/f052e9ce-22f9-46ed-9be2-f5298525b69b)
<!-- Uploading "PowerToysReport_2024-10-29-23-37-16.zip"... -->


### ✔️ Expected Behavior

希望能麻烦您进行优化一下 谢谢

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: flutter
Issue: [Impeller] libImpeller: Provide guidance on text decorations.
Labels: P3,e: impeller,team-engine,triaged-engine,e: libimpeller

Underlines, strikethroughs, and such.

cc @oreflow
Repository: Python
Issue: Add ART1 algorithm in neural network
Labels: enhancement

### Feature description

### Description:
This issue aims to implement an Adaptive Resonance Theory (ART1) algorithm for binary data clustering. ART1 is well-suited for unsupervised learning with binary inputs, using a vigilance parameter to determine the clustering threshold. This model will enhance the framework's clustering capabilities, allowing for pattern recognition in binary data.

### Goals:

<li>Implement an ART1 class with training and prediction functionalities.
<li>Allow the user to specify the vigilance parameter to control cluster formation.
<li>Include a similarity calculation and weight adjustment function.

### Requirements:

<li>Initialization: ART1 class should initialize with num_features and vigilance.
<li>Training: Implement a train(data) method to cluster binary data based on the vigilance parameter.
<li>Prediction: Add a predict(x) method to classify new input into an existing cluster or mark it as a new cluster if it does not match any.
<li>Documentation: Include docstrings and usage examples to clarify the purpose of each method.
<li>Testing: Provide example usage for verification and add unit tests to confirm functionality.
Repository: pytorch
Issue: find_spec does something weird to Python Path when loading modules
Labels: triaged,module: python frontend

### 🐛 Describe the bug

I tried adding a top level logging import to torch._dynamo module. When I did this, and then I attempt to TORCH_LOGS=dynamo, I end upw ith this error:

```
(/home/ezyang/local/b/pytorch-env) [ezyang@devgpu005.nha1 ~/local/b/pytorch (9b84074e)]$ TORCH_LOGS=dynamo,dynamic,+torch._dynamo.pgo python test/dynamo/test_pgo.py 
Traceback (most recent call last):
  File "/data/users/ezyang/b/pytorch/test/dynamo/test_pgo.py", line 5, in <module>
    import torch.compiler.config
  File "/data/users/ezyang/b/pytorch/torch/__init__.py", line 2666, in <module>
    _logging._init_logs()
  File "/data/users/ezyang/b/pytorch/torch/_logging/_internal.py", line 927, in _init_logs
    _update_log_state_from_env()
  File "/data/users/ezyang/b/pytorch/torch/_logging/_internal.py", line 737, in _update_log_state_from_env
    log_state = _parse_log_settings(log_setting)
  File "/data/users/ezyang/b/pytorch/torch/_logging/_internal.py", line 716, in _parse_log_settings
    elif _is_valid_module(name):
  File "/data/users/ezyang/b/pytorch/torch/_logging/_internal.py", line 729, in _is_valid_module
    spec = importlib.util.find_spec(qname)
  File "/home/ezyang/local/b/pytorch-env/lib/python3.10/importlib/util.py", line 94, in find_spec
    parent = __import__(parent_name, fromlist=['__path__'])
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/__init__.py", line 45, in <module>
    log = logging.getLogger(__name__)
AttributeError: module 'torch._dynamo.logging' has no attribute 'getLogger'. Did you mean: 'get_loggers'?
```

Somehow, the logging import got pointed to torch._dynamo.logging instead of top level logging module.

### Versions

main

cc @albanD
Repository: ui
Issue: [bug]: SidebarMenuSubItem Sidebar menu action button distorts other components
Labels: enhancement,component: sidebar

### Describe the bug

I am trying to add context buttons to SidebarMenuSubItem but they distort other components.
<img width="253" alt="Bildschirmfoto 2024-10-29 um 17 26 13" src="https://github.com/user-attachments/assets/ba8c6f2e-7e1c-4f40-92e2-d0302453dc6c">


### Affected component/components

Sidebar

### How to reproduce

Add this to your sidebar:
```

<CollapsibleContent>
	<SidebarMenuSub>
			<SidebarMenuSubItem key={subIndex}>
				<SidebarMenuSubButton asChild>
					<a href={subItem.url}>
						<span>{subItem.title}</span>
					</a>
				</SidebarMenuSubButton>
				<DropdownMenu>
					<DropdownMenuTrigger asChild>
						<SidebarMenuAction>
							<MoreHorizontal />
						</SidebarMenuAction>
					</DropdownMenuTrigger>
					<DropdownMenuContent side="right" align="start">
						<DropdownMenuItem>
							<span>Edit Project</span>
						</DropdownMenuItem>
						<DropdownMenuItem>
							<span>Delete Project</span>
						</DropdownMenuItem>
					</DropdownMenuContent>
				</DropdownMenu>
			</SidebarMenuSubItem>
	</SidebarMenuSub>
</CollapsibleContent>

```



### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
MacOS, ARC, React & NextJS
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: Python
Issue: Add Radial Basis Function Neural Network (RBFNN) 
Labels: enhancement

### Feature description

Radial Basis Function Neural Networks (RBFNNs) are a type of neural network that combines elements of clustering and function approximation, making them powerful for both regression and classification tasks. RBFNNs can efficiently model non-linear relationships with fewer parameters than traditional multilayer perceptrons, thanks to their unique architecture that uses radial basis functions (typically Gaussian) in the hidden layer. 

This structure allows RBFNNs to approximate functions and decision boundaries with high accuracy while maintaining a relatively simple network structure. 

Goals:
<li>Implement an RBFNN class with train and predict functionalities.
<li>Use Gaussian radial basis functions as hidden layer activations.
<li>Include KMeans clustering for initializing RBF centers and least-squares fitting for output weights.

Requirements:
<li>Initialization: RBFNN class should initialize with num_centers and gamma for Gaussian spread.
<li>Training: Add a train(x_data, y_data) method to:
<li>Find RBF centers using KMeans.
<li>Compute RBF activations for each input.
<li>Calculate output weights through least-squares fitting.
<li>Prediction: Implement a predict(x) method to calculate and return predictions based on learned weights.
Repository: flutter
Issue: Breaking: DiagnosticsNode.toStringDeep added wrapWidth parameter
Labels: c: regression,framework,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.27

PR https://github.com/flutter/flutter/pull/154752 adds a new parameter to the `toStringDeep` method in [3.27.0-0.0.pre](https://github.com/flutter/flutter/releases/tag/3.27.0-0.0.pre)

```diff
  String toStringDeep({
    String prefixLineOne = '',
    String? prefixOtherLines,
    DiagnosticLevel minLevel = DiagnosticLevel.debug,
+   int wrapWidth = 65,
  }) {
```

This breakes existing Widgets that override `toStringDeep` like this in current state `Flutter 3.24.4`:

```dart
class BetterContainer extends Container {
  @override
  String toStringDeep({
    String prefixLineOne = '',
    String? prefixOtherLines,
    DiagnosticLevel minLevel = DiagnosticLevel.debug,
  }) {
    return "Custom toStringDeep Representation";
  }
}
```

```
'BetterContainer. toStringDeep' ('String Function({DiagnosticLevel minLevel, String prefixLineOne, String? prefixOtherLines})') isn't a valid override of 'DiagnosticableTree. toStringDeep' ('String Function({DiagnosticLevel minLevel, String prefixLineOne, String? prefixOtherLines, int wrapWidth})'). (Documentation) 
The member being overridden (diagnostics.dart:366).
```

Open source packages affected by this change:
- https://github.com/ethanblake4/flutter_eval/blob/master/lib/src/widgets/text.dart#L83
- https://github.com/passsy/spot/blob/main/lib/src/spot/text/any_text.dart#L227

Unfortunately, I couldn't come up with any workaround that would allow supporting the new and old version at the same time.
Repository: pytorch
Issue: First run lint on just the changes in the PR before running it over the entire PR
Labels: module: ci,triaged

Goal: Usually lint errors are introduced by the dev's own changes. This can let the devs get a red signal on their PR significantly faster

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: flutter
Issue: Cocoon cipd package build flakes on homebrew reinstallation permission issue
Labels: team-infra,P2,c: flake,triaged-infra

In PR https://github.com/flutter/cocoon/pull/3992 the `Mac_arm64 ruby` build that packages Ruby and related gems failed:
```
Error: Could not rename m4 keg! Check/fix its permissions:
  sudo chown -R swarming /opt/homebrew/Cellar/m4/1.4.19
```
https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20ruby/35/overview

However I ran it again and it passed https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20ruby/36/overview

The passing one succeeded at the same place:
```
🍺  /opt/homebrew/Cellar/m4/1.4.19: 40 files, 889.2KB, built in 47 seconds
==> Running `brew cleanup m4`...
```

Both the passing and failing builds ran on the same bot flutter-devicelab-mac-38.
Repository: flutter
Issue: [et] start forwarding compilation errors to et from BuildRunner
Labels: P3,team-engine,triaged-engine,e: engine-tool

For context see https://github.com/flutter/engine/pull/56177#discussion_r1820991182
Repository: svelte
Issue: [docs] Snippet docs doesn't mention `direct/explicit` method
Labels: documentation

### TLDR

https://svelte.dev/docs/svelte/snippet#Passing-snippets-to-components

Would like to add a section to explain the `direct/explicit` method

```ts
let { foo } = $props();

{@render foo()}
```

### Explanation

As far as i can tell there are 3 ways, and the second one `direct/explicit` doesn't seem to be mentioned at all. 

Currently is unclear what the various snippet options are in comparison to its counterpart `{#if...}` and `{#each...}`

- direct/implcicit
```ts
// Parent.svelte
<Child>
  <h1>Title!</h1>
</Child>

// Child.svelte
<script>
  let { children } = $props();
</script>

{@render children()}
```
- direct/explicit
```ts
// Parent.svelte
<Child>
  {#snippet foo()}
    <h1>Title!</h1>
  {/snippet}
</Child>

// Child.svelte
<script>
  let { foo } = $props();
</script>

{@render foo()}
```
- indirect/explicit
```ts
// Parent.svelte
{#snippet foo()}
  <h1>Title!</h1>
{/snippet}

<Child {foo} />

// Child.svelte
<script>
  let { foo } = $props();
</script>

{@render foo()}
```

### Reference
https://discord.com/channels/457912077277855764/1300850418728960000

### Severity

annoyance
Repository: ui
Issue: [bug]: Add webkit optimizations to global CSS configuration
Labels: bug

### Describe the bug

## Overview
The current global CSS configuration would benefit from additional webkit-specific optimizations to enhance cross-browser compatibility, mobile device support, and overall rendering quality.

## Suggested Changes
Add the following webkit and cross-browser optimizations to the base layer of the global CSS configuration:

```css
@layer base {
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }
  
  input, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
}
```

## Benefits
1. **Improved Text Rendering**
   - Better font smoothing across browsers
   - Optimized legibility for all text elements

2. **Enhanced Mobile Experience**
   - Proper text sizing on mobile devices
   - Improved touch scrolling behavior
   - Removed default tap highlights
   - Better form element appearance on iOS

3. **Better Cross-Browser Consistency**
   - Normalized appearance across different browsers
   - Consistent form element styling

## Implementation
This can be added to the existing `globals.css` template that's generated when initializing a new project. These changes are purely additive and won't affect existing functionality.

## Additional Context
These optimizations are commonly used in production applications and follow best practices for cross-browser compatibility. They address common issues with text rendering and mobile device interactions.

## Related Resources
- [Apple's -webkit-font-smoothing documentation](https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-_webkit_font_smoothing)
- [MDN text-rendering documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering)

### Affected component/components

config

### How to reproduce

:)

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
mobile
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: flutter
Issue: focusColor does not work in InkWell on mobile platforms (Android, iOS)
Labels: framework,f: material design,has reproducible steps,P2,team-design,triaged-design,found in release: 3.24,found in release: 3.27

### Steps to reproduce

1. launched the application (Code sample)

### Expected results

After the screen is displayed, index 0 should be focusColor

### Actual results

In android, focusColor is not applied, it is displayed after changing the focus or tap.
In windows and web app, everything works correctly.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListView.builder(
          itemCount: 15,
          itemBuilder: (context, index) {
            return ListTile(
              autofocus: index == 0,
              onTap: () {},
              focusColor: Colors.red,
              title: Text('Item $index'),
            );
          },
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

![Screenshot_1730224736](https://github.com/user-attachments/assets/30d07c68-276f-4586-8b57-1c121a80da63)

</details>


### Logs

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


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.19045.5011], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.1)
[√] Android Studio (version 2024.1)
[√] IntelliJ IDEA Community Edition (version 2023.3)
[√] VS Code (version 1.94.0)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

```

</details>