sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: proposal: slices: CopyFunc and AppendFunc
Labels: Proposal,LibraryProposal

### Proposal Details

The `copy` and `append` builtins are well known and useful. Combining copy and append with elementwise mapping yields two useful functions that are easy to explain in existing terms:

`CopyFunc` is defined similar to `copy` but takes an additional mapping function to apply before assigning the src element to dst.
```go
func CopyFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](dst S1, src S2, f func(E2) E1) int
```

The implementation for `AppendFunc` is simple and straightforward enough that I include it in full:

```go
func AppendFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](dst S1, src S2, f func(E2) E1) S1 {
	dst = Grow(dst, len(src))
	for _, v := range src {
		dst = append(dst, f(v))
	}
	return dst
}
```

`AppendFunc` could have the signature `(dst S, f func(E2) E1, src ...E2) S`. Unlike lowercase `append`, it is always for working with a full slice—otherwise you could have just used `append(s, f(v))`. It also makes it easier to pass an anonymous mapping function when it's the last parameter.

Note that in-place map is `CopyFunc(s, s, f)` and new-slice map is `AppendFunc([]T(nil), s, f)`.

`AppendFunc` could be written with existing functions (assuming `xiter`):
```go
slices.AppendSeq(slices.Grow(dst, len(src)), xiter.Map(f, slices.Values(src)))
```
This is more awkward and unlikely to be as efficient. `CopyFunc` would require a corresponding `CopySeq` and would not be able to handle certain overlaps between dst and src correctly.
Repository: next.js
Issue: next/image fails with an Arabic phrase
Labels: Image (next/image)

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/intelligent-waterfall-5htj5v?workspaceId=ws_2L9qrGbsdQSgPmvDvdbcYv

### To Reproduce

1. go to `/og`

### Current vs. Expected behavior

1. Can render the image
2. This package hasn't any error message, the development experience is bad, next/image must report the issues it found, besides the documentation must be improved, if an image randomly fails how could we render a fallback image for example? this and all related with this module must be documented and covered

### Provide environment information

```bash
> @ info /project/workspace
> next info


Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.2.0-canary.10 // Latest available version is detected (15.2.0-canary.10).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```

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

Image (next/image)

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

next dev (local), next start (local)

### Additional context

```tsx
import { ImageResponse } from "next/og";
// import { ImageResponse } from "@vercel/og";
import { NextRequest } from "next/server";

export async function GET(request: NextRequest) {
  return new ImageResponse(
    (
      <div
        // lang='en'
        lang="ar"
        style={{
          fontSize: 128,
          background: "white",
          width: "100%",
          height: "100%",
          display: "flex",
          textAlign: "center",
          alignItems: "center",
          justifyContent: "center",
        }}
      >
        {/* Hello */}
        نطق الأسماء على المستوى
      </div>
    ),
    {
      width: 1200,
      height: 600,
    }
  );
}
```
Repository: rust
Issue: Rust 1.84 sometimes allows overlapping impls in incremental re-builds
Labels: P-low,T-compiler,regression-from-stable-to-stable,I-unsound,A-incr-comp,C-bug,A-coherence

This repro uses a bit of lexical comments trickery, but only for convenience. (Quite useful while manually testing multiple rust versions), so the whole change you need to do between incremental compilations is turning
```rust
// /* // <- uncomment this line
```
into
```rust
/* // <- uncomment this line
```

The main relevant change that this entails is
```rust
impl Trait for W {}
```
turning into
```rust
impl Trait for S<W> {}
```
which makes the `Other`-impls overlapping. As an additional effect, the code turning the overlap into UB is also uncommented. (The `const _ …` stuff only “fixes” the `*` symbols left behind by the `*/*` in the middle.)

```rust
trait Trait {}

struct S0<T>(T);

struct S<T>(T);
impl<T> Trait for S<T> where S0<T>: Trait {}

struct W;

trait Other {
    type Choose<L, R>;
}

struct A;
struct B;

// first impl
impl<T: Trait> Other for T {
    type Choose<L, R> = L;
}

// second impl
impl<T> Other for S<T> {
    type Choose<L, R> = R;
}

const _: u8 = 0

// /* // <- uncomment this line

*0;

impl Trait for W {}

pub fn transmute<L, R>(l: L) -> R {
    todo!();
}

const _: u8 = 0
*/*
0;

impl Trait for S<W> {}

fn use_first_impl<T: Trait, L, R>(l: L) -> <<T as TyEq>::To as Other>::Choose<L, R> {
    l
}

fn use_second_impl<T, L, R>(l: <S<T> as Other>::Choose<L, R>) -> R {
    l
}

trait TyEq {
    type To;
}
impl<T> TyEq for T {
    type To = T;
}

fn transmute_inner<W, T, L, R>(l: L) -> R
where
    T: Trait + TyEq<To = S<W>>,
{
    use_second_impl::<W, L, R>(use_first_impl::<T, L, R>(l))
}

pub fn transmute<L, R>(l: L) -> R {
    transmute_inner::<W, S<W>, L, R>(l)
}

const _: u8 =
// */
0;

fn main() {
    let v = vec![65_u8, 66, 67];
    let s: String = transmute(v);
    println!("{}", s);
}
```

Reproduce
```bash
cargo new repro
cd repro
…write above to src/main…
cargo run
…uncomment the line in question as described…
cargo run
```
```rust
   Compiling repro v0.1.0 (/home/frank/repro)
warning: struct `A` is never constructed
  --> src/main.rs:14:8
   |
14 | struct A;
   |        ^
   |
   = note: `#[warn(dead_code)]` on by default

warning: struct `B` is never constructed
  --> src/main.rs:15:8
   |
15 | struct B;
   |        ^

warning: `repro` (bin "repro") generated 2 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/repro`
ABC
```

Is safe code that compiles to UB, but *only* in incremental re-builds (compilation error otherwise), considered a soundness issue to be labelled `I-unsound`?

This was already fixed with #133828 (which also explains what was the underlying issue). That PR seems like a fairly small & straightforward fix to me… should it perhaps be considered for backporting to stable? cc @compiler-errors 

@rustbot label regression-from-stable-to-stable, T-compiler, A-incr-comp, A-coherence
Repository: godot
Issue: grab_focus for window is not working on macOS.
Labels: bug,platform:macos,topic:porting,needs testing

### Tested versions

godot4.3  
Xcode Version 16.1 (16B40)

### System information

2

### Issue description

1.grap_focus for window is not work on Mac OS  but it can work well on microsoft windows.
2."display/window/subwindows/embed_subwindows" for ProjectSettings is not work on Macos as well .
3 how to create independent child windows  on Mac os

### Steps to reproduce

1

### Minimal reproduction project (MRP)

2
Repository: tauri
Issue: [bug] android Failed to assemble APK: i cant`t use custom tauri plugin
Labels: type: bug,status: needs triage

### Describe the bug

i cant`t use custom tauri plugin

tauri-cli 2.2.4
create-tauri-app 4.5.9

step1: cargo create-tauri-app
step2: cargo tauri plugin new custom
step3: introduce the custom plugin and do nothing else
step4: cargo tauri android build


### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportUniversalRelease'.
> Could not resolve all dependencies for configuration ':app:universalReleaseCompileClasspath'.
   > Could not resolve project :tauri-plugin-math.
     Required by:
         project :app
      > No matching variant of project :tauri-plugin-math was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.5.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:abi' with value 'universal', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - No variants exist.

* Try:
> Creating consumable variants is explained in more detail at https://docs.gradle.org/8.9/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.
> Review the variant matching algorithm at https://docs.gradle.org/8.9/userguide/variant_attributes.html#sec:abm_algorithm.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 6s
    Error Failed to assemble APK: command ["/Users/phoenix/Desktop/gogs/tmp/aaa/src-tauri/gen/android/gradlew", "--project-dir", "/Users/phoenix/Desktop/gogs/tmp/aaa/src-tauri/gen/android"] exited with code 1:
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: deno
Issue: Deno 2.1.4 - node:http's http.request socketPath option fails in Deno, but works in Node.
Labels: node compat

## Summary:

*   Deno's `node:http` module behaves differently than Node.js's `http` module when using `http.request` with the `socketPath` option to connect to the Docker socket.
*   Instead of connecting to the Docker socket, Deno appears to attempt a TCP connection to `http://localhost/info`, resulting in an `ECONNREFUSED` error.
*   This discrepancy was discovered while troubleshooting a failure using `@testcontainers/postgresql` library and was traced down through its dependencies (`dockerode`, `docker-modem`) to this minimal reproduction.
*  The equivalent code works perfectly in node, indicating a failure in Deno.

## **Reproduction Steps:**

**1. Setup:**

*   Install Docker Desktop on macOS.
*   Ensure the Docker daemon is running and accessible via the default Unix socket: `/Users/<your_username>/.docker/run/docker.sock` (replace `<your_username>` with your actual username).
* Make sure you have "Allow the default Docker socket to be used" enabled under advanced settings in Docker.

**2. Node.js (Correct Behavior):**

Create a file named `node-test.js` with the following content:
Ensure you set `"type": "module"` in `package.json`.

```javascript
import http from "http";

const options = {
  socketPath: "/Users/<your_username>/.docker/run/docker.sock", 
  path: "/info",
  method: "GET",
};

const req = http.request(options, () => {
  console.log(`Success`);
});

req.on("error", (e) => {
  console.error(`Error: ${e.message}`);
});

req.end();
```

Run: `node node-test.js`

*   **Expected Output:** 
```
Success
```

*   **Actual Output:**
```
Success
```

**3. Deno (Incorrect Behavior):**

*   Create a file named `deno-test.ts` with the following content:

```typescript
import http from "node:http";

const options = {
  socketPath: "/Users/<your_username>/.docker/run/docker.sock", 
  path: "/info",
  method: "GET",
};

const req = http.request(options, () => {
  console.log(`Success`);
});

req.on("error", (e) => {
  console.error(`Error: ${e.message}`);
});

req.end();
```
Run `deno -A deno-test.ts`

*   **Expected Output:** 
```
Success
```

*   **Actual Output:**
```
Error: error sending request for url (http://localhost/info): client error (Connect): tcp connect error: Connection refused (os error 61): Connection refused (os error 61)
```

**Environment:**
```
deno 2.1.4 (stable, release, x86_64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2

Docker Desktop: 4.37.2 (179585)
```
Repository: ui
Issue: [bug]: Shadcn CLI doesn't realize the text-based bun lockfile "bun.lock", always use npm.(Next 15)
Labels: bug

### Describe the bug

I'm using next 15 with bun.
It worked well until I upgraded my bun to a text-based lockfile.

After I changed the archive `bun.lock` to a text-based lockfile `bun.lock` and removed `bun.lockb`, the shadcn CLI will always use **npm** instead of bun.
I tried re-adding `bun.lockb` and it worked, so I'm guessing that only `bun.lockb` is being recognized and not `bun.lock`

Before adding `bun.lockb`, only `bun.lock`
![image](https://github.com/user-attachments/assets/b08fbf71-6214-4eb6-923a-9cc5ddb69448)

After adding `bun.lockb`
![image](https://github.com/user-attachments/assets/437ed230-e52b-4d5e-8c3e-e763c01820d4)


### Affected component/components

all

### How to reproduce

1. following Bun [text-based lockfile doc](https://bun.sh/docs/install/lockfile#text-based-lockfile) to use text-based lockfile 
2. use shadcn cli to add component `bunx --bun shadcn@latest add checkbox ` in Next 15 project.
3. It will show npm error
4. copy bun.lock and rename to bun.lockb
5. add component again  `bunx --bun shadcn@latest add checkbox ` 
6. It worked, and with bun

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
OS: Mac OS 15.0.1（24A348）
Shell: zsh
Runtime: bun 1.1.43
Framework: Next 15 with react 19
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ant-design
Issue: 为什么antd Table组件不提供无缝滚动的方案？
Labels: unconfirmed

### What problem does this feature solve?

这个功能解决表格无缝滚动的问

### What does the proposed API look like?

我期望antd Table可以添加一个无缝滚动的状态 ，开启后，即可使表格循环无缝滚动

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Tracking issue for release notes of #134143: Convert `struct FromBytesWithNulError` into enum
Labels: T-libs-api,relnotes,needs-triage,relnotes-tracking-issue


This issue tracks the release notes text for #134143.

### Steps

- [ ] Proposed text is drafted by PR author (or team) making the noteworthy change.
- [ ] Issue is nominated for release team review of clarity for wider audience.
- [ ] Release team includes text in release notes/blog posts.

### Release notes text

The responsible team for the underlying change should edit this section to replace the automatically generated link with a succinct description of what changed, drawing upon text proposed by the author (either in discussion or through direct editing).

````markdown
# Category (e.g. Language, Compiler, Libraries, Compatibility notes, ...)
- [Convert `struct FromBytesWithNulError` into enum](https://github.com/rust-lang/rust/pull/134143)
````

> [!TIP]
> Use the [previous releases](https://doc.rust-lang.org/nightly/releases.html) categories to help choose which one(s) to use.
> The category will be de-duplicated with all the other ones by the release team.
>
> *More than one section can be included if needed.*

### Release blog section

If the change is notable enough for inclusion in the blog post, the responsible team should add content to this section.
*Otherwise leave it empty.*

````markdown
````

cc @nyurik, @Amanieu -- origin issue/PR authors and assignees for starting to draft text
Repository: PowerToys
Issue: Advanced Paste - Sticky Shift key
Labels: Issue-Docs,Needs-Triage

### Provide a description of requested docs changes

keys like Shift or Alt behave as they are sticky without any indication. it's definitely cased by Advanced Paste after pressing its keys combination like Win+Shift+V
Repository: flutter
Issue: Map not loaded: `PlatformException(recreating_view, trying to create an already created view, view id: '0', null)`
Labels: waiting for customer response,in triage

### Steps to reproduce

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(recreating_view, trying to create an already created view, view id: '0', null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:646:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:248:5)
<asynchronous suspension>
#3      _DarwinViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:921:36)
<asynchronous suspension>

### Expected results

Map Load on UI

### Actual results

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(recreating_view, trying to create an already created view, view id: '0', null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:646:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:248:5)
<asynchronous suspension>
#3      _DarwinViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:921:36)
<asynchronous suspension>

### Code sample

<details open><summary>Code sample</summary>

```dart
GoogleMap(
                mapType: MapType.normal,
                initialCameraPosition: _kGooglePlex,
                onMapCreated: (GoogleMapController controller) {
                  _controller.complete(controller);
                },
                markers: Set<Marker>.of(markers.values),
                myLocationEnabled : true// YOUR MARKS IN MAP
            )
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

![Image](https://github.com/user-attachments/assets/fb58a491-f5fe-4246-9bec-65a9a5c3aef8)

</details>


### Logs

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

```console
      
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(recreating_view, trying to create an already created view, view id: '0', null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:646:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:248:5)
<asynchronous suspension>
#3      _DarwinViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:921:36)
<asynchronous suspension>
```

</details>


### Flutter Doctor output

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

```console
[Paste your output here]
```

</details>
Repository: neovim
Issue: Terminal colors 16-255 are not the expected ones when using a GUI
Labels: bug,gui,terminal,ui-extensibility,highlight

### Problem

This was originally reported here https://github.com/neovide/neovide/issues/2937

This is a continuation of https://github.com/neovim/neovim/issues/7018, which was never fixed for GUI clients.

When using a GUI the terminal colors 16-255 does not match the xterm256 color palatte, which as far as I am aware is used in all modern terminal emulators, including the Windows terminal. Furthermore, it's not possible to override those colors.

Here's one example, one obvious difference is the upper right corner of the second big box.

![Image](https://github.com/user-attachments/assets/11e4cd29-6588-4a20-9b4d-ca2e1dc48d81)

### Steps to reproduce

On Windows
neovide.exe -- --clean
:terminal
type [.\AnsiColors256.ans](https://github.com/Maximus5/ConEmu/blob/master/Release/ConEmu/Addons/AnsiColors256.ans)

### Expected behavior

The default colors should match the xterm256 palette on Windows and Linux. On macOS, I'm not sure which palette is used, but it should match that. Note that Vim also uses this palette.

Alternatively, all colors should be configurable like the first 16 ones.

### Nvim version (nvim -v)

0.10.3

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

N/A

### Operating system/version

Windows 11

### Terminal name/version

Neovide 0.14.0

### $TERM environment variable

Doesn't have any effect

### Installation

Unknown
Repository: ant-design
Issue: 配置主题后，message, modal同时使用message 的loading无动画了
Labels: 🐛 Bug

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/zi-ding-yi-yang-shi-antd-5-23-1-forked-mk5m3y?workspaceId=ws_99LrLMfTCFev5anV7aEji)

### Steps to reproduce

1、示例中先点击loading按钮，再点击confirm按钮
2、看到message的loading动画停止了

### What is expected?

message的loading动画不停止

### What is actually happening?

message的loading动画停止了

| Environment | Info |
| --- | --- |
| antd | undefined |
| React | - |
| System | - |
| Browser | - |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Powertoys run is not working
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

Microsoft Store

### Running as admin

None

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

when opening the powertoys 
a pop up  showed 

```Version: 0.87.1.0
OS Version: Microsoft Windows NT 10.0.22631.0
IntPtr Length: 8
x64: True
Date: 15-01-2025 12:11:45
Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Wox.Infrastructure.Image.ImageHashGenerator.GetHashFromImage(ImageSource image, String filePath)
   at Wox.Infrastructure.Image.ImageLoader.LoadAsync(String path, Boolean generateThumbnailsFromFiles, Boolean loadFullImage)
   at Wox.Infrastructure.Image.ImageLoader.<>c.<<Initialize>b__13_1>d.MoveNext()
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()```

### ✔️ Expected Behavior

turn on the powertoys run

### ❌ Actual Behavior

showing a crash pop up

### Other Software

_No response_
Repository: ollama
Issue: ModernBERT (embeddings)
Labels: model request

One of the most downloaded models in Ollama is [nomic-embed-text](https://ollama.com/library/nomic-embed-text), an embedding model. It has more than 10M downloads.  However, it's a 10 month old model and newer version (from nomic and other teams) are already better in almost all the metrics.

Last month [AnswerAI released ModernBERT](https://huggingface.co/docs/transformers/main/en/model_doc/modernbert) and already has >4M downloads in HF. The nomic team [has a version based on it](https://huggingface.co/nomic-ai/modernbert-embed-base) too. 

I think the community would benefit quite al lot from a newer embedding version in Ollama. Not sure if we can upload it ourselves or we need to ask the team for it.
Repository: flutter
Issue: [pigeon] Support Swift enums for Dart sealed classes
Labels: package,c: proposal,team-ecosystem,p: pigeon,P2,triaged-ecosystem

### Use case

This is continuation of #153995.

I've moved it into new issue as was requested by @tarrinneal.

The support of sealed classes was added in `22.7.0` version.

However I've on `Swift` side protocols are used instead of enums which means we are not able to use exhaustive switch/case.

Kotlin code is generated with exhaustive `sealed` classes.

### Proposal

Dart input: 

```dart
sealed class A {}

class B extends A {
  final int number;

  B(this.number);
}

class C extends A {
  final bool isTrue;

  C(this.isTrue);
}
```

Swift output:

```swift
enum A {
    case B(number: Int)
    case C(isTrue: Bool)
}
```