sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: node:dns resolver ignores TTL option
Labels: good first issue,node compat

Version: Deno 2.1.5

```ts
import {resolve4} from "node:dns/promises";

resolve4("deno.com", {ttl: true}).then(console.log);
```

Expected result:
```
[{ address: '34.120.54.55', ttl: 12345 }]
```

Actual result:
```
[ "34.120.54.55" ]
```

Deno docs are aware of possible object being returned: https://docs.deno.com/api/node/dns/promises/~/resolve4

Node docs specify the behaviour for `ttl: true`: https://nodejs.org/api/dns.html#dnspromisesresolve4hostname-options

It makes `cacheable-lookup` fail because the library sets the option and expects the object to be returned:
```
error: Uncaught TypeError: Cannot create property 'family' on string '34.120.54.55'
    at CacheableLookup._resolve (file:///my_home/node_modules/cacheable-lookup/source/index.js:264:20)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async CacheableLookup.queryAndCache (file:///my_home/node_modules/cacheable-lookup/source/index.js:347:17)
    at async CacheableLookup.query (file:///my_home/node_modules/cacheable-lookup/source/index.js:235:20)
    at async CacheableLookup.lookupAsync (file:///my_home/node_modules/cacheable-lookup/source/index.js:178:18)
```
Repository: vscode
Issue: sign in problem for copilot
Labels: info-needed


Type: <b>Bug</b>

sign in button click but not respons 

VS Code version: Code 1.96.3 (91fbdddc47bc9c09064bf7acf133d22631cbf083, 2025-01-09T18:14:09.060Z)
OS version: Windows_NT x64 10.0.26100
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i5-12500H (16 x 3110)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.70GB (5.74GB free)|
|Process Argv|--crash-reporter-id 63da4b5a-e8c7-4350-a2e9-217cdaf5bcd7|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (17)</summary>

Extension|Author (truncated)|Version
---|---|---
java-run|cao|1.1.4
vscode-javac|geo|0.2.46
copilot|Git|1.257.0
copilot-chat|Git|0.23.2
debugpy|ms-|2024.14.0
python|ms-|2024.22.2
vscode-pylance|ms-|2024.12.1
jupyter-keymap|ms-|1.1.2
java|red|1.38.0
intellicode-api-usage-examples|Vis|0.2.9
vscodeintellicode|Vis|1.3.2
vscode-gradle|vsc|3.16.4
vscode-java-debug|vsc|0.58.1
vscode-java-dependency|vsc|0.24.1
vscode-java-pack|vsc|0.29.0
vscode-java-test|vsc|0.43.0
vscode-maven|vsc|0.44.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31179978
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31217127

```

</details>

<!-- generated by issue reporter -->

https://github.com/user-attachments/assets/fcde6bc5-2c57-4e12-b079-ed4b00dd30ed
Repository: flutter
Issue: Render GPU back buffer into Flutter control
Labels: waiting for customer response,in triage

### Use case

I'd like to be able to render an existing buffer from the GPU into a Flutter control. The buffer should remain on the GPU with no GPU -> CPU or CPU -> GPU copying.

### Proposal

I'd like to be able to render an existing buffer from the GPU into a Flutter control. The buffer should remain on the GPU with no GPU -> CPU or CPU -> GPU copying.
Repository: ollama
Issue: Support for llamaindex/vdr-2b-multi-v1: Multilingual Visual Document Retrieval Model
Labels: model request


vdr-2b-multi-v1 is a cutting-edge multilingual embedding model designed for visual document retrieval across various languages and domains. The model encodes document page screenshots into dense single-vector representations, allowing efficient search and querying of visually rich multilingual documents without OCR or data extraction pipelines.

https://huggingface.co/llamaindex/vdr-2b-multi-v1
https://huggingface.co/blog/vdr-2b-multilingual

Highlights:

- Multilingual Training: Trained on Italian, Spanish, English, French, and German, forming a dataset of 500k high-quality samples.
- Low VRAM and Faster Inference: 3x faster inference with only 30% of the image tokens used by its base model.
- Cross-Lingual Retrieval: Search German documents using Italian queries with superior accuracy.
- Matryoshka Representation Learning (MRL): Enables dimensional reduction while maintaining embedding quality, optimizing both retrieval speed and storage.

Why Include This Model?

- Multilingual Applications: Especially beneficial for regions like Europe, where multilingual documents are prevalent.
- Performance and Efficiency: Outperforms previous benchmarks in terms of speed, memory efficiency, and retrieval accuracy.
- Open Source Contributions: Accompanied by the largest open-source multilingual dataset for visual document retrieval (vdr-multilingual-train).
Repository: pytorch
Issue: Unable to build with ATEN_THREADING=TBB option
Labels: module: build,module: docs,triaged,module: tbb

While the doc [here](https://pytorch.org/docs/stable/notes/cpu_threading_torchscript_inference.html) says we could set the `ATEN_THREADING` build option to TBB, I encountered the following error:

```
<- omitted previous log for brevity ->
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include
-- headers outputs:
-- sources outputs:
-- declarations_yaml outputs:
-- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT
-- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT - Success
-- Using ATen parallel backend: TBB
CMake Error at caffe2/CMakeLists.txt:38 (message):
  Unknown ATen parallel backend: TBB
```

Seems the make file does not support this option yet?
https://github.com/pytorch/pytorch/blob/95b41d2aa43c606d65e127d4825c08baf9fcacd9/caffe2/CMakeLists.txt#L38

cc @malfet @seemethere @svekars @brycebortree @sekyondaMeta @AlannaBurke
Repository: flutter
Issue: TextEditingValue selection default value doesn't work as expected.
Labels: waiting for customer response,in triage

### Steps to reproduce

1) Create a `TextEditingController` on a `TextFormField` with the selection parameter being `selection: const TextSelection.collapsed(offset: -1)`

2) Enter a text in the text field.

NB: I'm using bloc for state management but that shouldn't have any effect on this ticket. You can reproduce with set state.

### Expected results

I expect no text selection to occur, to achieve this behaviour I have to use `offset: state.atSign.length`






### Actual results

My text is being replaced every time I enter a new text as shown in the video.

### Code sample

<details open><summary>Actual Results Code</summary>

```dart

// the default selection shown for clarity
controller.value =
          TextEditingValue(text: state.atSign, selection: const TextSelection.collapsed(offset: -1));
      return TextFormField(
        controller: controller,
        onChanged: (atsign) {
          if (!atsign.startsWith('@')) {
            atsign = '@$atsign';
          }
          context.read<OnboardingCubit>().setState(
                atSign: atsign,
              );
        }
       )

```

</details>


<details open><summary>Expected Results Code</summary>

```dart
controller.value =
          TextEditingValue(text: state.atSign, selection: TextSelection.collapsed(offset: state.atSign.length));
      return TextFormField(
        controller: controller,
        onChanged: (atsign) {
          if (!atsign.startsWith('@')) {
            atsign = '@$atsign';
          }
          context.read<OnboardingCubit>().setState(
                atSign: atsign,
                rootDomain: widget.options[atsign]?.rootDomain,
              );
        },
       )
```

</details>


### Screenshots or Video

<details open>
<summary>Actual Results Video</summary>

[Upload media here](https://github.com/user-attachments/assets/f008cbd0-7cdd-4aec-a4af-f688d840fe2e)



</details>

<details open>
<summary>Expected Results Video</summary>

[Upload media here](https://github.com/user-attachments/assets/eb80c34b-7d03-481f-b44d-fe0bd50a2034)

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.2, on macOS 14.6.1 23G93 darwin-arm64, locale en-GY)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: pytorch
Issue: Is it possible to remove NCCL submodule and use only nccl binaries from pypi instead ?
Labels: module: build,module: cuda,triaged,module: nccl

### 🐛 Describe the bug

Currently we do both we have submodule:
https://github.com/pytorch/pytorch/tree/main/third_party/nccl

And we use pypi nccl binaries:
https://github.com/pytorch/pytorch/blob/main/.github/scripts/generate_binary_build_matrix.py#L62

And we have a code to check if submodule version is consistent with pypi version, here:
https://github.com/pytorch/pytorch/blob/main/.github/scripts/generate_binary_build_matrix.py#L434

We also build latest nccl from source here:
https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_cuda.sh#L74

This prevents us to have different nccl binaries for different CUDA builds.  For instance latest nccl as of Jan 14 is [2.24.3 ](https://pypi.org/project/nvidia-nccl-cu12/2.24.3/) however we are still using 2.21.5 since its compatible with the CUDA 11.8.

We would prefer to keep nccl 2.21.5 for CUDA 11.8 builds but for CUDA 12.4 and 12.6 move to a newer nccl version


Hence a question what nccl submodule is used for and can we remove it and relay only on binaries ?

cc @malfet @seemethere @ptrblck @msaroufim @eqy @albanD @kwen2501 

### Versions

2.7
Repository: opencv
Issue: add support for multi-channel (>4) TIFs.
Labels: bug,category: imgproc

### System Information

[DaVinci-Resolve-Logo.tif.zip](https://github.com/user-attachments/files/18261560/DaVinci-Resolve-Logo.tif.zip)

```
[INFO] Importing image...
[ERROR:0@0.014] global loadsave.cpp:440 imread_ imread_('/Users/fractale/Downloads/DaVinci-Resolve-Logo.tif'): can't read header: OpenCV(4.9.0) /Users/fractale/.conan2/p/b/openc62c1fdd986bb3/b/src/modules/imgcodecs/src/grfmt_tiff.cpp:150: error: (-2:Unspecified error) in function 'int cv::TiffDecoder::normalizeChannelsNumber(int) const'
> Unsupported number of channels:
>     'channels >= 1 && channels <= 4'
> where
>     'channels' is 5

[ERROR] Could not open input image file: /Users/fractale/Downloads/DaVinci-Resolve-Logo.tif
```

OpenCV doesn't support multi-channel (>4) TIFs.
Repository: rust
Issue: Overload `visit_qpath` instead of using `visit_pat` in rustdoc "jump to def" implementation
Labels: C-cleanup,T-rustdoc

It's a follow-up of [this discussion](https://github.com/rust-lang/rust/pull/134216#discussion_r1882612241) where @fmease suggested an improvement to the code.

Assigning myself to do it. :)
Repository: PowerToys
Issue: FancyZones Error
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

FancyZones Editor

### Steps to reproduce

Try and resize the fancyzones

![Image](https://github.com/user-attachments/assets/c20f0da0-26bf-473b-aa42-5dba827af60e)

![Image](https://github.com/user-attachments/assets/20036fd2-53d2-416d-aa19-78606dc5da2b)

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: go
Issue: cmd/compile: intrinsify cmp.Compare on common types such as strings
Labels: Performance,NeedsInvestigation,compiler/runtime

https://github.com/golang/go/issues/61725 optimized `strings.Compare`, which is great, but it did not optimize `cmp.Compare[string]`, which is otherwise equivalent.

This is leading to users learning that they should avoid `cmp.Compare[string]` for the sake of performance, even writing linters for it like https://github.com/tklauser/lintcomparestrings, which in my opinion is really unfortunate. For the same reason, I find changes like https://go-review.googlesource.com/c/go/+/642038 unfortunate and unnecessary.

The compiler should be clever enough to optimize the generic `cmp.Compare` function just as well as specialized functions such as `strings.Compare` or any others that might exist for common comparable types such as integers. Then the developers don't have to remember facts about which one of them is faster.

Personally, I also find it pretty nice to consistently use `cmp.Compare`. Needing to mix different compare functions in an expression for the sake of performance is a bit odd.
Repository: pytorch
Issue: aot_inductor TIMM convit_base inference regression on dashboard
Labels: high priority,triaged,oncall: pt2,oncall: export,module: aotinductor,pt2-pass-rate-regression

See https://hud.pytorch.org/benchmark/timm_models/inductor_aot_inductor?dashboard=torchinductor&startTime=Tue,%2031%20Dec%202024%2015:26:32%20GMT&stopTime=Tue,%2014%20Jan%202025%2015:26:32%20GMT&granularity=hour&mode=inference&dtype=bfloat16&deviceName=cuda%20(a100)&lBranch=main&lCommit=1dab79470dbecef79ba4c7d4308d8a181091e58e&rBranch=main&rCommit=01034e963c9102c6a4a666c7666afd12aee0bfb3

The model reports a pass but the speedup numbers have gone to 0, which might imply that something went wrong in the reporting process?

cc @ezyang @gchanan @kadeng @msaroufim @chauhang @penguinwu @desertfire @chenyang78 @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @huydhn
Repository: node
Issue: The removal of TypeScript types may result in broken JavaScript code
Labels: confirmed-bug,strip-types

### Version

v23.2.0

### Platform

```text
Linux 6.12.9 Fri Dec 20 10:11:49 UTC 2024 x86_64 GNU/Linux
```

### Subsystem

_No response_

### What steps will reproduce the bug?

Run the following TypeScript script with nodejs (with the `--experimental-strip-types` option, if necessary):

```ts
function mkId() {
	return <T>
		(x: T)=>x;
}

const id = mkId();
console.log(id(5));
```

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

It always happen deterministically.

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

The script should print `5`.

### What do you see instead?

The script errors with:
```
console.log(id(5));
            ^

TypeError: id is not a function
```

### Additional information

I believe that Node strips TS types in such a way that the script I showed gets turned into the following JS code:

```js
function mkId() {
	return
		(x: T)=>x;
}

const id = mkId();
console.log(id(5));
```

And unfortunately Node interprets a `return` followed by a new line as a `return;`.

The same behavior happens with different (but similar code), for instance:

```js
function mkId() {
	return <
		T
	>(x: T)=>x;
}
```

It is somewhat common to break templates on a new line, when the generic types are complex (for instance if they have long `extend` clauses) and this issue is particularly annoying because the IDE (which understands TS) doesn't flag it as an error.
Repository: pytorch
Issue: compile time regression 1/9
Labels: high priority,triaged,oncall: pt2,module: startup-tracing-compile

[TorchInductor OSS Compile Time Dashboard](https://www.internalfb.com/intern/unidash/dashboard/?tab_id=1587385408528217)

- torchbench inference: sam_fast_dynamo_benchmark 70->84
- HF inference: BartForConditionalGeneration 32->42
- TIMM inference (a lot of models regressed)


cc @ezyang @gchanan @kadeng @msaroufim @chauhang @penguinwu @oulgen @jamesjwu @aorenste @anijain2305 @laithsakka
Repository: flutter
Issue: `HotRunner._updateDevFS`: `_TypeError: Null check operator used on a null value`
Labels: c: crash,tool,P2,team-tool,triaged-tool

This is a top 5 crasher for `3.27.1`

```
Thread 0 main thread_TypeError: Null check operator used on a null value
at HotRunner._updateDevFS(run_hot.dart:501)
at HotRunner._reloadSources(run_hot.dart:1002)
at <asynchronous gap>(async)
at HotRunner._hotReloadHelper(run_hot.dart:914)
at <asynchronous gap>(async)
at HotRunner.restart(run_hot.dart:788)
at <asynchronous gap>(async)
at TerminalHandler._commonTerminalInputHandler(resident_runner.dart:1733)
at <asynchronous gap>(async)
at TerminalHandler.processTerminalInput(resident_runner.dart:1786)
at <asynchronous gap>(async)
```
Repository: PowerToys
Issue: allow users to pin their selection of PowerToys to the Quick access panel
Labels: Needs-Triage

### Description of the new feature / enhancement

Currently the Quick access panel that pops up from the system tray has a fixed list of PowerToys; it would be helpful if this could be customised so that users could choose which PowerToys are shown here.

### Scenario when this would be used?

typically, whenever I open the Quick access panel, the PowerToy I want to use isn't shown and I have to remember how to open the full PowerToys panel to launch it; it would obviously be preferable to be able to choose the list shown here to include the ones I want to see.

### Supporting information

_No response_
Repository: flutter
Issue: Feature Request: Built-in Flavor Support Using dart-define in Flutter
Labels: waiting for customer response,in triage

### Use case


**Problems:**
Currently, Flutter developers must rely on custom setups or third-party solutions to implement flavors. While dart-define provides a convenient way to pass runtime configuration variables, there is no official built-in support for managing flavors through it. Developers often have to configure multiple scripts or make manual adjustments to support flavors consistently across environments.



### Proposal


1. **Feature Request Description:** I propose integrating built-in support for managing flavors in Flutter using dart-define. This would streamline the process of configuring and communicating flavor-specific variables, eliminating the need for third-party packages or complex configurations.

2. **Solution**

Enhance the Flutter framework to natively support flavors using dart-define. This can include:

Built-in commands: Extend the flutter build and flutter run commands to accept a --flavor parameter that automatically maps to a predefined set of dart-define variables.
Configuration files: Allow defining flavor-specific configurations in a standardized file (e.g., flavors.yaml).
Documentation and examples: Provide official guidelines and examples on using flavors with dart-define.
4. Implementation in My Project

I implemented a flavor management solution using dart-define in my project, which works seamlessly without third-party packages. I detailed the process in my Medium article: [Command-Line Magic: Automating Flutter Builds with dart-define]
[](https://medium.com/@sayem227/command-line-magic-no-third-party-packages-automating-flutter-builds-with-dart-define-and-apk-5415c1d25003)

Here's a summary of my setup:

Define environment variables using dart-define during the build process.
Access these variables in Dart code using const String.fromEnvironment.
Use a simple command-line script to automate builds for different flavors.
Repository: PowerToys
Issue: Registry Preview: allow pasting a registry key without saving it to a file
Labels: Idea-Enhancement,Cost-Small,Product-Registry Preview

### Description of the new feature / enhancement

Instead of opening a .REG file, it would be useful to be able to paste the Registry key in directly to preview it. A Paste... button next to the Open... button that popped up a window into which you could paste one or more registry keys would simplify the workflow of adding a new key.

### Scenario when this would be used?

Many sites, including Microsoft Learn, provide registry keys to change OS or application behaviour as content that can be clipped - Learn even has a Copy button to copy these keys.

![Image](https://github.com/user-attachments/assets/cdec9fca-8de2-4677-b69a-0d8abf048202)
To use the key in Registry Preview you currently have to save it to a file (remembering to add Windows Registry Editor Version 5.00 to the beginning of the file by hand) and then load it. It would be much quicker to have a Paste button and be able to preview the key without creating, saving and opening a file.

### Supporting information

_No response_
Repository: godot
Issue: 2D Pathfinding doesn't make shortest paths on tilemaps
Labels: topic:navigation

### Tested versions

v4.3.stable.official [77dcf97d8]

### System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 32.0.15.6636) - 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz (12 Threads)

### Issue description

When trying to implement pathfinding via NavigationAgent2D on NavigationLayer of TileMapLayer generated path not shortest most of the time.

![Image](https://github.com/user-attachments/assets/5f9ff337-84bd-41e2-b6e0-cd8e9f5b6a19)
Here on screenshot you can see grass and water tiles with navigation layer properly drawn on grass tiles and generated pathfinding route.

### Steps to reproduce

Use NavigationAgent2D and TileMapLayer with active Navigation Layers and drawn such layer on _walkable_ tiles. Generate path using `navigation_agent.target_position = Vector2..`


### Minimal reproduction project (MRP)

[tilemap_pathfinding.zip](https://github.com/user-attachments/files/18413183/tilemap_pathfinding.zip)