sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: Add lastChunkHandling ("loose", "strict", or "stop-before-partial") to base64 decoding
Labels: buffer,feature request

### What is the problem this feature will solve?

The current array buffer JavaScript proposal includes support for lastChunkHandling ("loose", "strict", or "stop-before-partial") in addition to the standard base64 and base64url format.

https://tc39.es/proposal-arraybuffer-base64/spec/#sec-frombase64

Specifically, the following syntax is considered:

```
 FromBase64 ( string, alphabet, lastChunkHandling [ , maxLength ] )
```

where alphabet is base64 or base64url and lastChunkHandling is one of the relevant values.

### What is the feature you are proposing to solve the problem?

Node buffers might want to implement this feature. Currently, one can do `Buffer.from(data, 'base64')` and it defaults on 'loose' but Node could add some way for the user to specify how the last chunk is handled. E.g., `Buffer.from(data, 'base64+strict')`.

Note that Node currently relies on simdutf for base64 decoding and as of version 5.6.0, the simdutf library has the necessary support. Thus, the implementation would not be a significant challenge.

### What alternatives have you considered?

Quite reasonably, Node could just not add this functionality.
Repository: PowerToys
Issue: Add custom HotKeys and Utilities to “Add custom action” in Advanced Paste
Labels: Idea-Enhancement,Needs-Triage,Product-Advanced Paste

### Description of the new feature / enhancement

There is merit to giving the end user their own custom functions for the **Advanced Paste** menu. I recently stumbled on #35377 and while I think the request should be implemented as a default function of the Menu, others might have other custom utilities they use and many applications implement their own paste hotkeys and functions. Adding functionality to the “custom actions” to call an external application or send a hotkey sequence, would be handy. 



### Scenario when this would be used?

With many applications defining their own hotkeys for custom paste functions. (i.e. https://exceladept.com/the-best-keyboard-shortcuts-for-pasting-values-in-excel/). It would be great if **Advanced Paste** could leverage these functions, by allowing users to enter the hotkeys for their most useful ones, as lookups in the menu for a much faster and hassle free universal pasting experience. If you combine this with integrating Advanced Paste Menu items with **PowerToys Run** (#35393) It would make accessing a multitude of pasting options via a short description, far faster and easier. 

### Supporting information

_No response_
Repository: PowerToys
Issue: Reimplement Advanced Paste as a PowerToys Run plugin
Labels: Needs-Triage

### Description of the new feature / enhancement

Advanced Paste is awesome but its functionality/workflow mimics that of Power Toys Run verbatim. It would be great if Advanced Paste were directly integrated into PowerToys Run as a plugin, allowing access to its custom paste menu items directly from an already familiar and incredibly useful tool. 

### Scenario when this would be used?

As it stands, the functionality for the Advanced Paste (AP) menu is incredibly similar to the functionality of PowerToys Run (PTR), which leverages far more intrinsic PowerToys and other dynamic functionality. Both utilities, have a hot key which pulls up a menu and allows you to type and tab your way to the specific item you wish to launch. In PTR it’s a giant host of functions and in AP it’s just paste functions. 

It would be fantastic to simplify access to the AP functions/menu items, by integrating them directly into PTR. This would allow users access to those custom menu items with a simpler and more universal HotKey (Alt+Space) and leverage either a Direct activation command for the plugin or just include in global results and type out “paste”, “plain” (text), “markdown”, JSON, etc, and receive the same context options to call those functions directly without having to open a second menu to do so or use a more cumbersome hotkey for a far smaller subset of commands. You could also just implement a “Paste” command in PTR that allowed you to tab through the various options in the same way that the folder plugin allows you to tab through options like “copy as path” or “open path in console.” PTR even gives you the shortcut tips for those direct commands in the same manner that advanced paste does, again replicating very common functionality.

### Supporting information

_No response_
Repository: react-native
Issue: Brownfield App `TextInput` not working properly on Samsung devices
Labels: Issue: Author Provided Repro,Component: TextInput,Newer Patch Available

### Description

In the midst of developing a chat app using brownfield react native app, an user reported with a video that it was not able to send a message. Upon further investigation I could scope down and reproduce the issue with the following criteria:
- Brownfield React Native App inside an Android Fragment;
- Samsung Devices:
  - Note 10;
  - S21 Ultra (Android 14 | OneUI 6.1).
  
I also tested on my Google Pixel 3a and it worked without any issues, so it must be Samsung related. Also, if the Android app opens an Activity that starts a react root view, the input also does work. 

The cases where I could make it work were when I tapped in the corner of the TextInput. Adding console logs to the TextInput, the `onPressIn` triggers anywhere on the TextInput but `onFocus` only triggers on the cases that I could make it work.

My fix is not an ideal one, but I am calling `ref.current.focus()` for every `onPressIn` in order to make the whole TextInput clickable

### Steps to reproduce

1. Create a new Android Repository;
2. Create a Fragment;
3. Embed React Native into this React Fragment;
4. Add a TextInput field;
5. Tap and add a text [ NOT WORKING]

### React Native Version

Tested on 0.74.5 and 0.75.3

### Affected Platforms

Runtime - Android

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

```text
not able to run the command
```


### Stacktrace or Logs

```text
no visible crash
```


### Reproducer

https://github.com/gmantuanrosa/brownfield-rn-fragment/tree/main

### Screenshots and Videos

This was **not** tested on the new architecture

https://github.com/user-attachments/assets/f2dfd3ba-5fec-4bfb-b187-7f4e0bdd3090
Repository: next.js
Issue: Server Action fails silently on timeout
Labels: bug

### Link to the code that reproduces this issue

https://github.com/elie222/inbox-zero/blob/main/apps/web/app/(landing)/components/TestAction.tsx

### To Reproduce

Go here and click Test Action at the bottom:
https://getinboxzero.com/components

The result is undefined.  Even though it's a timeout error.

If you check the Network tab you will see a POST with a 504 error and message: FUNCTION_INVOCATION_TIMEOUT
But the app has no way of getting this error.

### Current vs. Expected behavior

Current: timeout returns undefined
Expected: timeout should throw an error with FUNCTION_INVOCATION_TIMEOUT

### Provide environment information

```bash
All
```


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

Developer Experience

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

next dev (local), Vercel (Deployed)

### Additional context

_No response_
Repository: angular
Issue: Animations not working for ViewEncapsulation.ShadowDom.
Labels: area: animations,shadow dom

### Which @angular/* package(s) are the source of the bug?

animations

### Is this a regression?

No

### Description

# Current behavior

Animations won't work for components that has encapsulation set to ShadowDom.

# Expected behavior

Animations should work regardless of the encapsulation.

You'll see that the animations won't work. Now if you remove the encapsulation for both, you'll see that the animations works.

# Reproduce

To reproduce, make a new angular project and create this component[1]. You'll see the animations won't work. Remove the encapsulation, then it works.

[1]
```typescript
import { state, style, trigger } from '@angular/animations';
import { ChangeDetectionStrategy, Component, HostListener, signal, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-button',
  standalone: true,
  changeDetection: ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.ShadowDom,
  template: `<span>Click Me!</span>`,
  host: {
    '[@active]': 'active()',
  },
  animations: [
    trigger('active', [
      state('true', style({ backgroundColor: 'red' })),
      state('false', style({ backgroundColor: 'blue' })),
    ]),
  ],
})
export class AppButton {
  readonly active = signal(false);

  @HostListener('click')
  onClick() {
    this.active.set(!this.active());
  }
}
```


### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

Angular CLI: 18.2.6
Node: 22.9.0
Package Manager: npm 10.2.5
OS: win32 x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1802.6 (cli-only)
@angular-devkit/core         18.2.6 (cli-only)
@angular-devkit/schematics   18.2.6 (cli-only)
@schematics/angular          18.2.6 (cli-only)

### Anything else?

I see there was a similar issue, https://github.com/angular/angular/issues/25672, and it was closed. This may be related.

I really don't want to create my own animator directive that observes a signal and runs .animate on the element, but without this, I would have to.
Repository: flutter
Issue: [DisplayList] Clean up legacy "front end" code in DlOpReceiver
Labels: engine,P2,team-engine,triaged-engine

The DisplayList mechanism used to use the same interface for both recording and playback. That interface is now the DlOpReceiver interface and is only mainly used during the playback phase of DL dispatching. As such, the dispatch mechanism should only be calling the methods with all arguments (no default values needed and no "subset of arguments" overloads either). The front-facing DlCanvas interface used during recording of rendering ops is the one that should have such convenience mechanisms.

The DlOpReceiver interface class should have all overloads and argument defaults eliminated for clarity and simplicity.
Repository: rust
Issue: `failed to evaluate generic const expr` after adding more fields to struct
Labels: C-bug,F-generic_const_exprs,T-types,S-needs-repro

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I have some code which calls a function which computes the sum of numbers up to `const N: usize` (N * (N+1))/2, and use that as the size of an array.
That type is then used as a field under a struct. This compiles fine, but as I added more fields to the struct I eventually hit the error
`failed to evaluate generic const expression`.

The code is not public.

I expected to see this happen: I should at least get a bug describing why the evaluation failed, or the evaluation should succeed (the diff between when compilation succeeds and when it fails does not actually modify the field with the generic const on it)

Instead, this happened: There is a suggestion that I should enable `#![feature(generic_const_exprs)]`, which is already enabled. There are no further details.

I am aware that `generic_const_exprs` is incomplete, but it would still be helpful (and hopefully not a ton of work) to be able to identify why it failed.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.83.0-nightly (52fd99839 2024-10-10)
```

There is no backtrace.
Repository: neovim
Issue: vim.defer_fn closures appear to be retained for (too) long, increasing memory usage when capturing large data
Labels: bug,performance,event-loop,lua

### Problem

Recently I noticed that when working with projects that produce 300+ diagnostics (e.g. when refactoring something that affects pretty much the entire codebase), memory usage of Neovim can skyrocket, resulting in it becoming very sluggish (e.g. `ciw` actually visually lags). When looking at Neovim's memory usage, I was unpleasantly surprised to find it was using around 8 GiB of memory. Now if I were using VS Code then that might've been the default, but for Neovim that's at least a little suspicious.

After a bit of digging I narrowed it down to [this code](https://github.com/yorickpeterse/nvim-dd/blob/9c21ffeffbf0a99e5614f193455700f355d0951f/lua/dd/init.lua#L63-L78). In a nutshell, it uses `vim.defer_fn()` to show diagnostics after a timeout. The data in this case is _captured_ by the closure passed to `vim.defer_fn()`.

And this is what seems to be the problem: that closure isn't released for a long time, with even calls to `collectgarbage()` seemingly not doing anything to release the memory. If that captured data happens to be large, it can result in a memory leak over time. The fix was to [not capture data but refer to it indirectly](https://github.com/yorickpeterse/nvim-dd/blob/3192ee44b62c569c1f6ecb29a545614f3fa437bb/lua/dd/init.lua#L69-L88), but I suspect this won't work for every scenario.

### Steps to reproduce

Create `repro.lua` with the following contents:

```lua
local dummy = {}

for _ = 1, 100000 do
	table.insert(dummy, {
		{ "The" },
		{ "quick" },
		{ "brown" },
		{ "fox" },
		{ "jumps" },
		{ "over" },
		{ "the" },
		{ "lazy" },
		{ "dog" },
	})
end

local function schedule(data)
	return vim.defer_fn(function()
		print("size = " .. #data)
	end, 1000)
end

schedule(dummy)
```

Now open this file in Neovim using `nvim --clean repro.lua`, then run `:luafile %` 4-5 times (or more). As you do this, memory usage can go from 10-20 MiB to 200-300 MiB. More importantly, while calling `collectgarbage()` in this case does _sometimes_ reduce memory back to about 100 MiB, it doesn't always do this, and never does it seem to reduce it back to the amount from _before_ the first `:luafile` command.

Not all of the memory being released is expected in GC languages, but I _am_ surprised just how bad it can get. It's possible there's nothing Neovim can do about this, but in that case it might be worth adding a note about this to the documentation of `vim.defer_fn`.

### Expected behavior

Memory is reclaimed some reasonable amount of time after `vim.defer_fn()` finishes running the supplied callback, or at least when calling `collectgarbage()`.

### Nvim version (nvim -v)

NVIM v0.11.0-dev+921-g2377443cd

### Vim (not Nvim) behaves the same?

no

### Operating system/version

Fedora 40

### Terminal name/version

Ghostty 0.1.0-main+a503e02

### $TERM environment variable

xterm-ghostty

### Installation

Fedora copr (nvim nightly)
Repository: react
Issue: [Compiler Bug]: TypeError: Cannot read properties of undefined (reading 'length')
Labels: Type: Bug,Status: Unconfirmed,Component: Optimizing Compiler

### What kind of issue is this?

- [X] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- [ ] babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- [ ] eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- [ ] react-compiler-healthcheck (build issue installing or using the healthcheck script)

### Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhHCA7MAXABAYQgFsAHTBDPAXlwApgSYISEZsBPAXwEpcqA+ADoZcuADwATAJYA3XI2asOVYLV4D5TFm3YA6ADYUA5tgAWnAPT8QnIA

### Repro steps

1. render the component

> We do not call the property function named `property`, but the error occurs regardless (when the component is rendered).

other versions:
`babel-plugin-react-compiler`: `experimental`
`react-compiler-runtime-polyfill`: `0.x`

### How often does this bug happen?

Every time

### What version of React are you using?

18.x
Repository: flutter
Issue: All Flutter CI builds should use pinned, version-controlled CIPD versions
Labels: team-infra,P1,triaged-infra

In Flutter's .ci.yaml format, any cipd dependency that does not have an explicit version will default to the "latest" ref ([src](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipe_modules/flutter_deps/api.py#368)).

This makes builds potentially non-reproducible, and also makes it difficult/impossible to determine exactly which versions of dependencies were used to make a build for artifact attestation.

Also, without pinning and version controlling CIPD versions, if a malicious CIPD package is published, new builds would *immediately* begin using the compromised package, without further code review.

NOTE: we should pin a "tag", and not a "ref". With CIPD, refs can be moved, but tags cannot.
Repository: pytorch
Issue: Mechanism to attempt to create a VariableTracker but graph break and turn Dynamo off if we fail
Labels: triaged,enhancement,oncall: pt2,module: dynamo

We're trying to capture the following code:
```py
x = torch.randn(3)
x_ptr = x.data_ptr()
y = triton.utils.create_tma_descriptor(x_ptr)
```
In Dynamo-land, we want x.data_ptr() to return a DataPtrVariable and create_tma_descriptor to return a TMADescVariable.

If create_tma_descriptor gets passed a ConstantVariable(int) instead of a DataPtrVariable, then we want to graph break.

This graph break generates bytecode that runs the create_tma_descriptor function and then the Python interpreter runs this bytecode. Then, Dynamo turns itself back on inside the implementation of create_tma_descriptor.

Our preferred behavior is for Dynamo to never turn itself on inside the implementation of create_tma_descriptor. We have the constraint that we do not control the source code for `create_tma_descriptor` (otherwise, we could just add a torch._dynamo.disable inside of it). 

The problem with Dynamo turning itself on is because it leads to more graph breaks, some of which throw user-facing warnings. For example, there is a user warning that complains that "we're calling some pybinded C++ function inside of triton.utils.create_tma_descriptor and that the user should attempt to use custom ops", which is not a good user experience here.

## Potential solutions

1) A mechanism to "try to turn create_tma_descriptor into a Variable, but on failure disable Dynamo on the inside of create_tma_descriptor" would help here
2) Maybe we should just try not to throw the warning because it's the only undesirable part of this 🤷 

cc @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @rec
Repository: flutter
Issue: Require trusted maintainers to add a label before presubmits run on PRs
Labels: team-infra,P1,triaged-infra

Although we do our best to not allow presubmit builds to have access to anything secure, we should, as an additional security measure, require a trusted maintainer to look at code before allowing presubmits to run.

We should implement this by requiring a label to be added to a PR before presubmits run. This label would be handled by Cocoon. Cocoon would only accept the label from known, trusted maintainers. If the label adder is indeed a maintainer, pre-submit builds for the HEAD commit of the PR at the time the label was added will be scheduled, and the label will be removed. Thus, new pushes from the PR owner would require the label to be added again by a maintainer, in case the new push contains malicious code.
Repository: material-ui
Issue: [Hidden] Remove deprecated API
Labels: breaking change,component: Hidden

### Steps to reproduce

1. Open https://mui.com/material-ui/react-hidden/

### Context

#42305. This component was deprecated in v5.0.0, so on September 16, 2021. The migration path is documented in https://mui.com/material-ui/migration/v5-component-changes/#replace-deprecated-component.

Added to the v7 milestone per https://github.com/mui/material-ui/pull/42305#issuecomment-2133520181.

### Your environment

v6.1.3
Repository: godot
Issue: Option "stretch canvas_items" works differently for blank and filled LineEdit when window is resized
Labels: bug,topic:gui

### Tested versions

v4.3.stable.official [77dcf97d8]

### System information

Godot v4.3.stable - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon RX 6600 (Advanced Micro Devices, Inc.; 31.0.24033.1003) - Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 Threads)

### Issue description

If Stretch canvas_items is on, and the window has been expanded, then when I type into a blank LineEdit, the line edit box changes size.


### Steps to reproduce

Start a new project with:

```
Control
  VBoxContainer
   HBoxContainer
     Label (with text "test")
     LineEdit

Project > Project settings  > Display
   Window > Mode = maximised
   Stretch > Mode = canvas_items
```
You need a monitor bigger than the default viewport of 1152x648 (my monitor is 1680x1050)
or perhaps change the viewport to be smaller than your monitor (not tested)

Run project, click on the lineedit box and type something - the size of the box will change

### Minimal reproduction project (MRP)

[linedit-bug.zip](https://github.com/user-attachments/files/17347590/linedit-bug.zip)
Repository: PowerToys
Issue: misleading error message requires better phrasing for the 'following keys do not have assignments" warning
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

- choose remap a key, pick Alt Gr as the key to change and the right mouse/context menu key as the To send key (either by pressing on the keyboard or, if not present, by selecting it from the Keyboard Manager menu)
- save the mapping by click OK
- get an error that the Alt R key doesn't have an assignment
- ![Image](https://github.com/user-attachments/assets/771e5370-1ce3-44f0-8f14-47fb0d851d21)
- not realise that the mapping has worked because the wording is so confusing!



### ✔️ Expected Behavior

for the remapping to work and for the warning that the Alt Gr functionality is not now available by pressing a different to make it clear what the issue is!
Like "Warning: you have successfully mapped Alt Gr to Apps/Menu but the original Alt/Gr function is no longer mapped to any key"

### ❌ Actual Behavior

an error message that confuses the user into thinking their remapping failed!

### Other Software

_No response_
Repository: deno
Issue: Strange error message if you typo a remote package URL in a single-file script
Labels: bug,cli

Version: Deno 2.0.0

Detailed version info:

```
deno 2.0.0 (stable, release, aarch64-apple-darwin)
v8 12.9.202.13-rusty
typescript 5.6.2
```

---

Running `deno index.ts` with a clean cache (ran `deno clean` immediately before) in a directory containing only `index.ts` with the following contents:

```ts
import { DB } from "https://deno.land/x/sqlite@3.9.1/mod.ts"
```

(note: the `sqlite@3.9.1` instead of `sqlite@v3.9.1` is intentional; that's what triggers this strange and misleading error)

...results in the following error:

```sh
deno-experiments % deno -A index.ts
error: unrecognized subcommand

  tip: some similar subcommands exist: 'init', 'lint'
```