sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: `String.prototype.split()` with a regex containing a capturing group can return an array of `string | undefined`.
Labels: Suggestion,Awaiting More Feedback

### ⚙ Compilation target

any

### ⚙ Library

esnext, dom

### Missing / Incorrect Definition

Using split with a negative lookahead and a capturing group can return undefined. See the attached screenshot. When iterating over the array, we lose type safety and encounter runtime errors.

![Image](https://github.com/user-attachments/assets/7b57f0ac-dbf3-404a-81f9-7e238ba45806)


### Sample Code

```TypeScript
'a,b,c'.split(/,(?!(a))/) // Types as string[]
```

### Documentation Link

_No response_
Repository: tauri
Issue: [feat] Radio menu item and default menu item
Labels: type: feature request,status: upstream

### Describe the problem

I am writing a tray application under Windows. The tray menu needs to have multiple radio items and set a default item. I read the menu-related documents and did not find a way to implement this function.
It is easy to implement in traditional Window applications, and the effect is as follows:
![image](https://github.com/user-attachments/assets/00aea440-3211-4a39-b2d4-c41717c0f7cb)


### Describe the solution you'd like

**Radio item:** Checks a specified menu item and makes it a radio item. At the same time, the function clears all other menu items in the associated group and clears the radio-item type flag for those items.

**Default item:** Specifies that the menu item is the default. A menu can contain only one default menu item, which is displayed in bold.

*Win32 API* 
```CheckMenuRadioItem()```: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-checkmenuradioitem
```SetMenuDefaultItem()```: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setmenudefaultitem
```MENUITEMINFOA``` structure ```MFT_RADIOCHECK``` and ```MFS_DEFAULT```: https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-menuiteminfoa

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: AOnTop only works once before taps other windows
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.7

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Always on Top

### Steps to reproduce

one note + other apps any you would
win ctrl t -> one note(unforced),  
tap the note then tap desktop = nothing
tap the note then tap some window = be covered by others
vcr : https://github.com/user-attachments/assets/018e7187-aafa-4e19-9085-d102a202b9bd

### ✔️ Expected Behavior

on top still


### ❌ Actual Behavior

 be covered by others

### Other Software

wps
onenote
Repository: ui
Issue: [bug]: Formlabel does not close Popover of Combobox 
Labels: bug

### Describe the bug

I am using a Combobox in a Form. When the Popover is already open, clicking the Formlabel closes the Popover and opens it immediately. I would expect that clicking the Formlabel when the Popover is already open, closes the Popover.

https://github.com/user-attachments/assets/d3eb27c6-a885-44ac-9b5c-d4827705b277



### Affected component/components

Combobox, Form, Formlabel

### How to reproduce

Use the official example and click on the Formlabel two times. https://ui.shadcn.com/docs/components/combobox#form

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Google Chrome for MacOS
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: Import from package containing colon e.g. 'astro:content'
Labels: bug,node compat,node resolution

### Discussed in https://github.com/denoland/deno/discussions/27598

<div type='discussions-op-text'>

<sup>Originally posted by **thibaultleouay** January  9, 2025</sup>
I'm trying to use deno with astro, but i have one issue when importing 

```
import { defineCollection } from 'astro:content';

```
The ide is crying with this error : 

` Uncached or missing remote URL: astro:contentdeno(no-cache) ` 

How can i handle it? </div>
Repository: ollama
Issue: please add model:QVQ-Preview 72B!
Labels: model request

please add model:QVQ-Preview 72B!
Repository: tensorflow
Issue: Build iOS tensorflowLite error with iOS library
Labels: stat:awaiting response,type:bug,stale,comp:lite,TF 2.8

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

2.8

### Custom code

Yes

### OS platform and distribution

iOS 

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When i build tensorflow lite with library, i encounter error below，the error show：Undefined symbols for architecture arm64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::find(char, unsigned long) const", 

### Standalone code to reproduce the issue

```shell
Undefined symbols for architecture arm64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::find(char, unsigned long) const", referenced from:
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::rfind(char, unsigned long) const", referenced from:
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::compare(unsigned long, unsigned long, char const*) const", referenced from:
      l001 in libNeuralnet_a.a[32](TensorFlowLiteC.a)
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::compare(unsigned long, unsigned long, char const*, unsigned long) const", referenced from:
```


### Relevant log output

_No response_
Repository: storybook
Issue: [Documentation]: Specify expected preview types in TypeScript docs
Labels: documentation

### Describe the problem

https://storybook.js.org/docs/configure/integration/typescript has
```
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
 
const config: StorybookConfig = {
```
for `.storybook/main.ts`, but no equivalent for `preview.ts(x)`.

https://storybook.js.org/docs/configure#configure-story-rendering should probably include it as well.

I finally found it in https://storybook.js.org/docs/writing-stories/parameters#global-parameters.

### Additional context

_No response_
Repository: PowerToys
Issue: Fancyzones: No Layout/disable layout shortcut
Labels: Needs-Triage

### Description of the new feature / enhancement

Hello,

I would like to request a new feature for FancyZones: the ability to assign a shortcut key to switch directly to the "No Layout" mode.

Currently, if I want to disable the active layout or temporarily stop FancyZones from managing windows, I have to manually switch to the "No Layout" mode through the settings or editor. Adding a dedicated shortcut for this would greatly improve the workflow and make it easier to toggle FancyZones on or off when needed.

### Scenario when this would be used?

- When I need to temporarily work without FancyZones managing my windows, such as when dragging and resizing windows freely.
- For switching between FancyZones layouts and the default Windows window management behavior during specific tasks or workflows.
- To provide a smoother and faster way to toggle FancyZones on and off.

### Supporting information

- This feature would improve the flexibility and usability of FancyZones, especially for users who frequently need to adjust their workflows.
- Similar shortcuts already exist for switching between layouts, so adding one for "No Layout" mode would be consistent with the current functionality.
Repository: transformers
Issue: Unused kwargs: ['bnb_8bit_quant_type', 'bnb_8bit_use_double_quant', 'bnb_8bit_compute_dtype'] when using bnb quantization? These kwargs are not used in <class 'transformers.utils.quantization_config.BitsAndBytesConfig'>
Labels: bug

### System Info

OS: ubuntu 24.10
python: 3.12
ctransformers: 0.2.27

P.s. All dependencies:
```
[tool.poetry.dependencies]
python = "^3.12"
autoawq = "^0.2.7.post3"
evaluate = "^0.4.3"
rouge-score = "^0.1.2"
ctransformers = "^0.2.27"
gguf = "^0.13.0"
llama-cpp-python = "^0.3.5"
ctranslate2 = "^4.5.0"
exllamav2 = "^0.2.7"
bitsandbytes = "^0.45.0"
```

Why do I get 
```
Unused kwargs: ['bnb_8bit_quant_type', 'bnb_8bit_use_double_quant', 'bnb_8bit_compute_dtype'] when using bnb quantization? These kwargs are not used in <class 'transformers.utils.quantization_config.BitsAndBytesConfig'>.
```
although others use these parameters and everything is fine for them (see screenshot)? Are these outdated settings? If so, can you provide a link to a post with information about removing these parameters?

![image](https://github.com/user-attachments/assets/000ab512-052d-44cc-8422-c9bc33839ea2)



### Who can help?

@MekkCyber

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction
```
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig

def quantize_bnb(model_id: str, quant_config: dict) -> None:
    quantization_config = BitsAndBytesConfig(**quant_config)

    model = AutoModelForCausalLM.from_pretrained(
        model_id,
        quantization_config=quantization_config,
        torch_dtype="auto",
    )

    model.push_to_hub(
        model_id.split('/')[1] + 
        f"-BNB-{8 if ('load_in_8bit' in quant_config and quant_config['load_in_8bit'] == True) else 4}bit", 
        parent_model=model_id, tags='bnb', model_card='quantization'
    )


if __name__ == "__main__":
    model_id = "bigscience/bloom-560m"
    bnb_config = {
        "load_in_8bit": True,  # 8-bit quantization
        "bnb_8bit_quant_type": 'nf8',  # Normalized float 8
        "bnb_8bit_use_double_quant": True,  # Second quantization after the first
        "bnb_8bit_compute_dtype": 'bfloat16',  # Computation type
    }

    quantize_bnb(model_id=model_id, quant_config=bnb_config)
```

### Expected behavior

I expect not to see this warning
Repository: flutter
Issue: [Proposal] Provide a lite version of SDK for CI/CD
Labels: tool,c: proposal,P3,team-tool,triaged-tool

### Use case

I'm a DevOps-Engineer and use the Flutter SDK inside of Docker images used in CI/CD pipelines.

The normal installation process involves downloading and unzipping https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.1-stable.tar.xz, which includes a 130 MB .git directory, examples, documentation, tests and a few other things.

The directories are probably there so you can update to the latest SDK version by running `flutter channel stable`, which just pulls the latest commits from the `stable` git branch but in my case, I don't need the update functionality.

To reduce my build image size, I currently clone a specific version tag and then remove files manually.

### Proposal

Offer an additional lightweight SDK zip for CI environments and either:

- Publish it alongside the current SDK zip
- Replace the current SDK zip with the lightweight one and add instructions on how to enable the update functionality
- Replace the current SDK zip with the lightweight one and change the update functionality so it doesn't rely on git
Repository: TypeScript
Issue: Log which project is being checked.
Labels: Needs More Info

### 🔍 Search Terms

[_log which program is being checked_](https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aopen%20log%20which%20program%20is%20being%20checked)

### ✅ Viability Checklist

- [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [x] This wouldn't change the runtime behavior of existing JavaScript code
- [x] This could be implemented without emitting different JS based on the types of the expressions
- [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [x] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Log the project that is being checked. Also log something if all checks pass. E.g.:

```sh
$ tsc --build
Checking tsconfig.json
Checking packages/a/tsconfig.build.json
Checking packages/a/tsconfig.json
Checking packages/b/tsconfig.build.json
Checking packages/b/tsconfig.json
Success ✓
```

### 📃 Motivating Example

The `tsc` command now has useful logging in case of success by default.

### 💻 Use Cases

Currently `tsc` doesn’t log anything about the project it’s checking. In case of success, it logs nothing. If a command run takes longer and emits nothing, I usually get suspicious something went wrong.

A more serious use case are project references. TypeScript checks referenced projects one by one. A program may fail type checking. If it does, TypeScript will log which files failed type checking. However, it is ambiguous of which program this file was a part. It may be part of multiple programs. It may succeed type checking for one program, but fail in another. I.e. maybe one program should have excluded it. Or maybe it should have added a missing `lib`, but which program?

All of this can be debugged using `--traceResolution`, but that info is _very_ verbose and it takes a clean and second run
Repository: node
Issue: FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
Labels: child_process,c++,good first issue

### Version

v23.6.0

### Platform

```text
Linux SMP Debian 5.10.103-1 (2022-03-07) x86_64 x86_64 x86_64 GNU/Linux
```

### Subsystem

_No response_

### What steps will reproduce the bug?

Hi, 

I would like to report a bug, it can be reproduced by running the PoC below:

```javascript
const {exec} = require('child_process');

Object.defineProperty(Array.prototype, "2", {
  set: function () {},
});

(async function () {
  exec('pwd', (err, stdout, stderr) => {
    console.log(stdout);
  });
})();
```
Regards, 

AH


### How often does it reproduce? Is there a required condition?

It reproduces anytime by simply running the given PoC on the given Node.js version. 

### What is the expected behavior? Why is that the expected behavior?

It is a crash. 

### What do you see instead?

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal

### Additional information

_No response_
Repository: next.js
Issue: OpenGraph Metdata handling doesn't retain URL parameters for main page
Labels: Metadata

### Link to the code that reproduces this issue

https://github.com/CodingFabian/nextjs-og-param-issue

### To Reproduce

The issue is very straightforward. the reproduction is in the repository but is just in this code block:
```
export const metadata: Metadata = {
  metadataBase: new URL('https://nextjs.org'),
  openGraph: {
    type: "website",
    url: "./?utm=tracking",
    images: ["/images/og-image.png"],
  },
}
```

The intended use case is to put an open graph metadata containing a tracking code. but it could be any url parameter.
Above renders:
```
    <meta property="og:url" content="https://nextjs.org"/>
```

If we use any other (non empty, non-root) url, like this:
```
export const metadata: Metadata = {
  metadataBase: new URL('https://nextjs.org'),
  openGraph: {
    type: "website",
    url: "./page?utm=tracking",
    images: ["/images/og-image.png"],
  },
}
```

it works as expected:

```
    <meta property="og:url" content="https://nextjs.org/page?utm=tracking"/>
```

### Current vs. Expected behavior

expecting the url parameters passed into openGraph Metadata to be preserved.
Alternatively the behaviour should be consistent (and url params dropped for other urls as well) but I doubt that's desirable

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:45 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8112
  Available memory (MB): 8192
  Available CPU cores: 8
Binaries:
  Node: 22.9.0
  npm: 10.8.3
  Yarn: N/A
  pnpm: 9.12.2
Relevant Packages:
  next: 15.2.0-canary.2 // Latest available version is detected (15.2.0-canary.2).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3
Next.js Config:
  output: N/A
```


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

Metadata

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

next dev (local), next build (local), next start (local), Vercel (Deployed)

### Additional context

_No response_
Repository: godot
Issue: Round region and margin size of `AtlasTexture` to integer
Labels: bug,topic:core

### Tested versions

4.4dev7

### System information

Not relevant

### Issue description

`margin` and `region` size of `AtlasTexture` could be set as float value, but they always should be integer values.
`margin` and `region` position of `AtlasTexture` don't have such restriction, so Rect2I can not be used.
See comments https://github.com/godotengine/godot/pull/94365#issuecomment-2573955678 and https://github.com/godotengine/godot/pull/94365#issuecomment-2580034730

### Steps to reproduce

- Create `AtlasTexture`.
- Set region size to `(0.2, 0.2)` for example.
- Get errors (size is rounded to `(0, 0)`):
``` 
  ERROR: The Image width specified (0 pixels) must be greater than 0 pixels.
  ERROR: core/io/image.cpp:2865 - Condition "dsize == 0" is true.
```


### Minimal reproduction project (MRP)

[atlas_texturesize.zip](https://github.com/user-attachments/files/18361808/atlas_texturesize.zip)
Repository: node
Issue: Use the core module without importing or requiring it.
Labels: feature request

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

Utilize a core module directly in your application without the need for importing or requiring it.

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

direclty using its like fs.readFile etc

### What alternatives have you considered?

_No response_
Repository: angular
Issue: Docs search doesn't find page by its title (Migrations)
Labels: area: docs-infra

### Describe the problem that you experienced

I want to see this Migrations page https://angular.dev/reference/migrations on another version but the website search does not find it. Only way that page is findable is by using Google or other external search engine.  I have tried to search `migrations` and `migrate` and such but the results are not relevant at all. I would be happy if it would even give me sub pages as results. 

If I try to search "Migration to Control Flow syntax" it doesn't find any hits. 

It would be also really nice, that when you change website version, it would keep you on same page if possible. 

### Enter the URL of the topic with the problem

https://angular.dev/reference/migrations

### Describe what you were looking for in the documentation

_No response_

### Describe the actions that led you to experience the problem

_No response_

### Describe what you want to experience that would fix the problem

_No response_

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

```true

```

### If the problem is browser-specific, please specify the device, OS, browser, and version

```true

```

### Provide any additional information here in as much as detail as you can

```true

```
Repository: rust
Issue: compiletest: path normalizations are sensitive to diagnostics width, can lead to confusing failures
Labels: A-testsuite,T-compiler,T-bootstrap,C-bug,D-diagnostic-infra,A-compiletest,A-compiletest-normalizations

See discussions at https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60tests.5Cui.5Ctraits.5Cfn-pointer.5Cbare-fn-no-impl-fn-ptr-99875.2Ers.60 about tests like `tests/ui/traits/fn-pointer/bare-fn-no-impl-fn-ptr-99875.rs`.

Example:

```diff
20    --> $DIR/bare-fn-no-impl-fn-ptr-99875.rs:14:11
21     |
22  LL |     takes(|_: Argument| -> Return { todo!() });
-      |     ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
+      |     ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for closure `{closure@$DIR/bare-fn-no-impl-fn-ptr-99875.rs:14:11: 14:34}`
24     |     |
25     |     required by a bound introduced by this call
26     |

-      = help: the trait `Trait` is not implemented for closure `{closure@$DIR/bare-fn-no-impl-fn-ptr-99875.rs:14:11: 14:34}`
28     = help: the trait `Trait` is implemented for fn pointer `fn(Argument) -> Return`
29  note: required by a bound in `takes`
30    --> $DIR/bare-fn-no-impl-fn-ptr-99875.rs:9:18

Note: some mismatched output was normalized before being compared
-      |     ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for closure `{closure@F:\rust\tests\ui\traits\fn-pointer\bare-fn-no-impl-fn-ptr-99875.rs:14:11: 14:34}`
+      |     ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for closure `{closure@$DIR/bare-fn-no-impl-fn-ptr-99875.rs:14:11: 14:34}`
```

Before compiletest path normalization, the length of the parent directories leading to the test file e.g. `F:\rust\` vs `F:\Longer\rust\` can influence the specific diagnostics shown as it affects the width.
Repository: vscode
Issue: Add an option to control the default debugging terminal.
Labels: feature-request,debug

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
"debug.console.default"

- "externalTerminal"

- "integratedTerminal"

- "internalConsole"

Otherwise, I have to modify all my debugging launch file.

thank vscode
Repository: node
Issue: Expose cppgc::CppHeap::CollectStatistics() in v8 module
Labels: feature request,diag-agenda

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

Since we've been migrating things to use `CppHeap`, we have a bunch of extra GC-managed memory which has become a bit less mysterious to V8. This means we can take better advantage of V8 interfaces to get observability into this memory.

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

It would likely be an easy win to expose `CppHeap` data via [`cppgc::CppHeap::CollectStatistics()`](https://v8docs.nodesource.com/node-22.4/d9/dc4/classv8_1_1_cpp_heap.html#a3a5d09567758e608fffde50eeabc2feb) in the `v8` module.

cc @nodejs/diagnostics 

### What alternatives have you considered?

_No response_