sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: langchain
Issue: [Bug] [core/indexer] PR #25754 seems like introducing bugs
Labels: 🤖:bug

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

None

### Error Message and Stack Trace (if applicable)

None

### Description

https://github.com/langchain-ai/langchain/pull/25754 seems like introducing bugs.

Let's say we have 3 records `a`, `b`, `c` with the same source_id, and someone will delete the record `c`.
The indexer should delete a record for `c` from vector database and record manager, but it won't after the PR was merged because `docs_to_index` doesn't include the source_id.


### System Info

None
Repository: go
Issue: proposal: slices: func CollectError
Labels: Proposal

### Proposal Details

Idiomatic go functions are often in the form `func (...) (T, err)`.
When creating iterators, it is equally common for the underlying functions to potentially return an error as each element in the iteration is created. For example, records might be read from a database, or requests from a client, etc.

Therefore, it will be relatively common for iterators of the form `iter.Seq2[T, error]` to be defined, as each element may produce an error. Sometimes a non-nil error will indicate a problem with that element only, but in many situations it will correspond to a termination of the iterator.

[`slices.Collect()`](https://pkg.go.dev/slices#Collect) is a helpful function to generate `[]T` from `iter.Seq[T]`. It would be helpful to have an analogue to handle `iter.Seq2[T, error]`

My proposal is to add something similar to the following to the `slices` package:

```go
func CollectError[T any](seq iter.Seq2[T, error]) ([]T, error) {
        var err error
        result := slices.Collect[T](func(yield func(t T) bool) {
                for k, v := range seq {
                        if v != nil {
                                err = v
                                return
                        }
                        if !yield(k) {
                                return
                        }
                }
        })
        return result, err
}
```

If an iteration includes a non-nil error, a slice of `[]T` will be returned including all elements up to (but not including) the erroring iteration, along with the error.
Should no error be found, it will return `([]T, nil)`.

While this is not a large or complex function, iterator syntax is a little unwieldy and this would allow gophers to more easily consume `iter.Seq2[T, err]` iterators without being exposed to `yield`.

As mentioned earlier, some `iter.Seq2[T, err]` iterators will return a non-nil error and then continue. They would not be suitable to use with `CollectError` - but it would not be encouraged to collect these elements into a slice anyway; they should be processed as they arrive instead.
Repository: ui
Issue: [feat]: add Tab Nav components
Labels: area: request

### Feature description

In addition to regular [Tabs](https://www.radix-ui.com/themes/docs/components/tabs), in Radix UI they also have a [Tab Nav](https://www.radix-ui.com/themes/docs/components/tab-nav) component for having tabs that perform navigation using links. This can be hacked together [by asChilding and using links inside triggers](https://github.com/shadcn-ui/ui/issues/414#issuecomment-2428292382), but according to Radix UI documentation this isn't how the Tabs Primitive should be used:

> Tabs should not be used for page navigation. Use Tab Nav instead, which is designed for this purpose and has equivalent styles.

I think shadcn/ui would benefit from also having this kind of component especially when used with routing solutions like Tanstack Router and React Router 6+, that allow some level of nested routes and where data loading is usually done at the route level.

### Example

Most of the times when I use `Tabs` I use it for a sub navigation on a page, so maybe for a `/settings` page I want to each of these under a tab:
- `/settings/profile`
- `/settings/notifications`
- `/settings/whatever`

I would like `/settings` to just render tabs like this:
```ts
<TabNav ...>
  ...
</TabNav>
<Outlet />
```
And then each sub page has its own concerns for data loading etc.

However, with the current tabs component I am handling each sub page's data loading at the `/settings` page because I have to render every content panel and if I want them to be actual links so I can link someone to the `/settings/notifications` page, I need to control the components and synchronize with the url state.

### Affected component/components

Tabs

### Additional Context

Radix UI components:
- [Tabs](https://www.radix-ui.com/themes/docs/components/tabs)
- [Tab Nav](https://www.radix-ui.com/themes/docs/components/tab-nav)

#414 A prior issue (question) about deep linking into a specific tab that would be made trivial by adding this feature. The proposed solutions seems to go against the reccomendation from Radix UI documentation that "Tabs should not be used for page navigation".


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: terminal
Issue: Dark overlay in response pane of Terminal Chat reduces visibility
Labels: Issue-Bug,Area-UserInterface,Needs-Tag-Fix,Priority-3,Area-Chat

### Windows Terminal version

1.23.3311.0

### Windows build number

10.0.22631.4460

### Other Software

_No response_

### Steps to reproduce

Ask the chat a question

### Expected Behavior

The response pane in Terminal Chat should display text clearly without any dark overlay obstructing visibility

### Actual Behavior

![Image](https://github.com/user-attachments/assets/35712995-82f9-443f-a124-03f0d4726eb5)
Repository: react
Issue: [Compiler Bug]: Moved breakpoint in React Native
Labels: Type: Bug,Status: Unconfirmed,Component: Optimizing Compiler

### What kind of issue is this?

- [ ] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- [x] 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://github.com/maciekstosio/CompilerRepo

### Repro steps

- Run the app
```
yarn install
yarn start 
```
- Run dev tools 
- Try to put breakpoint on `const a = 'Test Error';` - it's moved to main component
- Put breakpoint on `throw new Error(a);` - debugger don't stop on 

The debugger used with React Native (0.76.3) sometimes moves the breakpoint to other places. It sometimes doesn't stop. I can reproduce it reliably with the variable assignment and arrow functions. The problem occurs both in DevTools and Radon IDE ), so I assume this is a problem with source maps after optimization or Chrome Debugger, not the DevTools front. 

|Without Compiler|With Compiler|
|-|-|
|<video src="https://github.com/user-attachments/assets/bcb514cc-4697-4019-998f-79ca2fb1c219" />|<video src="https://github.com/user-attachments/assets/c1dbb46d-5da2-49d8-a1d3-1f4545729fe4" />| 

### How often does this bug happen?

Every time

### What version of React are you using?

18.3.1

### What version of React Compiler are you using?

19.0.0-beta-df7b47d-20241124
Repository: next.js
Issue: Next middleware with ioredis error: [TypeError]: Cannot read properties of undefined (reading 'charCodeAt')
Labels: bug,TypeScript

### Link to the code that reproduces this issue

https://github.com/KUN1007/next-middleware-ioredis-error

### To Reproduce

1. Clone the code from [the repository](https://github.com/KUN1007/next-middleware-ioredis-error) and install dependencies.
2. Run `pnpm dev` and visit [http://localhost:3000](http://localhost:3000). This will trigger the error:
<img width="736" alt="KUN_2024-12-02_19-27-33" src="https://github.com/user-attachments/assets/3c348b3c-10a0-4ee9-b661-ce734c0bec67">


### Current vs. Expected behavior

The normal access to http://localhost:3000 should not result in any errors, and the program should run properly.
However, the program crashes with an error as soon as it sends a request.
If the line `await setKv('kun', 'kun')` in auth.ts is commented out, the program works normally and displays `Hello, Next.js!` at the root page.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 16291
  Available CPU cores: 16
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.12.1
Relevant Packages:
  next: 15.0.3 // Latest available version is detected (15.0.3).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.7.2
Next.js Config:
  output: N/A
```


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

Turbopack, TypeScript

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

next dev (local)

### Additional context

I've already reviewed these issues, but the solutions mentioned there don't apply to my situation.
https://github.com/vercel/next.js/discussions/54469
https://github.com/vercel/next.js/issues/58094
btw, the canary version also has this error.
Repository: rust
Issue: `miri` is incorrectly built with jemalloc on some targets
Labels: T-bootstrap,C-bug,A-miri,O-AArch64

<!--
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 tried to run `cargo miri run` in (any) workspace on Asahi Linux (which has 16k page kernels)

I expected to see this happen: The program runs under miri similarly to how rustc works

Instead, this happened:
```
thread 'main' panicked at src/tools/miri/cargo-miri/src/phases.rs:103:9:
failed to determine underlying rustc version of Miri (MIRI_BE_RUSTC="host" "/home/pitust/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/bin/miri"):
CommandError { stdout: "", stderr: "<jemalloc>: Unsupported system page size\n<jemalloc>: Unsupported system page size\nterminate called without an active exception\n" }
stack backtrace:
   0: rust_begin_unwind
             at /rustc/5e1440ae514d98ddfcbf1607acb64d41e07ef616/library/std/src/panicking.rs:681:5
   1: core::panicking::panic_fmt
             at /rustc/5e1440ae514d98ddfcbf1607acb64d41e07ef616/library/core/src/panicking.rs:75:14
   2: cargo_miri::phases::phase_cargo_miri::<std::env::Args>
   3: cargo_miri::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```

### 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.85.0-nightly (5e1440ae5 2024-12-01)
binary: rustc
commit-hash: 5e1440ae514d98ddfcbf1607acb64d41e07ef616
commit-date: 2024-12-01
host: aarch64-unknown-linux-gnu
release: 1.85.0-nightly
LLVM version: 19.1.4
```
Repository: flutter
Issue: [in_app_purchase_storekit] Add `AppStore.showManageSubscriptions()` for StoreKit2 wrapper
Labels: c: new feature,platform-ios,p: in_app_purchase,package,c: proposal,P2,team-ios,triaged-ios

### Use case

In my app, I would like to cancel subscriptions without a server. This method is essential for enabling users to cancel subscriptions directly within the app.

According to the documentation:
> Consider using the system-provided subscription-management UI. Using StoreKit APIs lets you present a consistent experience that helps people manage or cancel their subscriptions without leaving your app. For developer guidance, see [showManageSubscriptions(in:)](https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions).

For details, see:
- [Helping people manage their subscriptions | In-app purchase | Apple Developer Documentation](https://developer.apple.com/design/human-interface-guidelines/in-app-purchase#Helping-people-manage-their-subscriptions)
- [showManageSubscriptions(in:) | Apple Developer Documentation](https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions)


### Proposal

Add showManageSubscriptions() (Wrapper for StoreKit2's [`showManageSubscriptions()`](https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions)) to [`AppStore`](https://pub.dev/documentation/in_app_purchase_storekit/latest/store_kit_2_wrappers/AppStore-class.html) class.
Repository: go
Issue: cmd/go: `go mod tidy` leaves trailing empty lines in `require` blocks
Labels: NeedsInvestigation,GoCommand

### Go version

go version go1.23.3 linux/arm64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='go1.23.3'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2955114020=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

Ran `go mod tidy` with a `go.mod` that contained a stray empty line in a `require` block

## Reproduction steps

Create a minimal module with at least one dependency

```bash
mkdir tidy && cd tidy

cat > main.go <<'EOF'
package main

import (
	"fmt"

	"golang.org/x/time/rate"
)
var Foo = rate.Limit

func main() {
	fmt.Println("hello")
}
EOF
```

Create a go.mod with  trailing empty lines in the `require` section;

```bash
cat > go.mod <<'EOF'
module tidy

go 1.23.0

require (
	"golang.org/x/time" v0.8.0




)
EOF
```

Run `go mod tidy`;

```bash
go mod tidy
```

Check the content of `go.mod`, and observe that an empty line is left behind in the `require` section;

```bash
cat go.mod
module tidy

go 1.23.0

require (
	golang.org/x/time v0.8.0

)
```







### What did you see happen?

The empty line was kept even after running `go mod tidy`

### What did you expect to see?

The empty line to be removed.
Repository: godot
Issue: c# solution ExportDebug  generate files  is deferent to default debug generate in editor
Labels: topic:dotnet

### Tested versions

v4.4.dev4.mono.official [36e6207bb]

### System information

Godot v4.4.dev4.mono - Windows 10.0.22631 - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 Laptop GPU (NVIDIA; 31.0.15.5222) - AMD Ryzen 9 5900HX with Radeon Graphics (16 threads)

### Issue description

I use .csproj file to import .targets from "Flecs.Net.Native" of "Flecs.Net" project.(https://github.com/BeanCheeseBurrito/Flecs.NET)
![Image](https://github.com/user-attachments/assets/56f35eb5-7610-44c9-8d8f-7a60dba1a712)

Click the run btn in editor will generate files likes:
![Image](https://github.com/user-attachments/assets/0054c079-7259-434e-bf85-aa5f27c9d5dd)
But "Export Debug" will generate files likes:
![Image](https://github.com/user-attachments/assets/f0953caa-d01b-4d7c-bbdf-f1949d95781e)


The dependency of project "flecs.dll" ,"libflecs.so" disappear. So When I export project for windows as well as android platform will emit "Dll not found" error。


### Steps to reproduce

Look at desc

### Minimal reproduction project (MRP)

[exportcsharptest.zip](https://github.com/user-attachments/files/17978058/exportcsharptest.zip)
Repository: rust
Issue: `cargo fix` produces incorrect code when removing last unused dependency next to `self as __` syntax
Labels: A-lints,T-compiler,C-bug,A-suggestion-diagnostics,D-invalid-suggestion,L-dead_code

I encountered incorrect code being produced by `cargo fix` command.

### Code

```Rust
mod bakery_module {
    pub struct Cheesecake;

    #[derive(Debug)]
    pub struct Cupcake;
}

use bakery_module::{self as moms_spaghetti, Cheesecake};

fn main() {
    dbg!(moms_spaghetti::Cupcake);
}
```

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=205e34f726214436ef250b91b4d025f2


### Meta


stable `rustc --version --verbose`:
```
rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: aarch64-apple-darwin
release: 1.83.0
LLVM version: 19.1.1
```

nightly `rustc --version --verbose`:
```
rustc 1.85.0-nightly (5e1440ae5 2024-12-01)
binary: rustc
commit-hash: 5e1440ae514d98ddfcbf1607acb64d41e07ef616
commit-date: 2024-12-01
host: aarch64-apple-darwin
release: 1.85.0-nightly
LLVM version: 19.1.4
```

### Error output

```
warning: `test-field` (bin "test-field") generated 2 warnings (run `cargo fix --bin "test-field"` to apply 1 suggestion)
warning: failed to automatically apply fixes suggested by rustc to crate `test_field`

after fixes were automatically applied the compiler reported errors within these files:

  * src/main.rs

<here I removed notice about making an issue into this repo>

The following errors were reported:
error[E0429]: `self` imports are only allowed within a { } list
 --> src/main.rs:8:18
  |
8 | use bakery_module::self as moms_spaghetti;
  |                  ^^^^^^
  |
help: consider importing the module directly
  |
8 - use bakery_module::self as moms_spaghetti;
8 + use bakery_module as moms_spaghetti;
  |
help: alternatively, use the multi-path `use` syntax to import `self`
  |
8 | use bakery_module::{self as moms_spaghetti};
  |                    +                      +

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0429`.
Original diagnostics will follow.

warning: `test-field` (bin "test-field" test) generated 2 warnings (2 duplicates)
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>

No backtrace

</p>
</details>
Repository: PowerToys
Issue: No text showing
Labels: Issue-Bug,Product-Settings,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

Install Machine wide - x64 edition of version 0.86.0, then run as Administrator. I just need to sit and watch the magic unfold (i.e. no text showing up)
Here are the screenshot and a bug report log included (taken not far apart in time):
![Image](https://github.com/user-attachments/assets/d0779534-33de-40a3-985e-33d2ec73d022)

> [PowerToysReport_2024-12-02-19-07-26.zip](https://github.com/user-attachments/files/17977936/PowerToysReport_2024-12-02-19-07-26.zip)

### ✔️ Expected Behavior

There **should be** text showing within PowerToys' settings and its quick settings.

### ❌ Actual Behavior

There **are no** text showing up within PowerToys' settings nor its quick settings.

### Other Software

There shouldn't be any conflict about other software, but that's because I haven't debugged this more in depth. However, I'll do when asked to do so.
Repository: tensorflow
Issue: band width calculation support for ddr5
Labels: stat:awaiting tensorflower,type:support,comp:grappler

### Issue type

Support

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

No

### Source

source

### TensorFlow version

master

### Custom code

Yes

### OS platform and distribution

_No response_

### 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?

The bandwidth is calculated by the following code
// 8 is the number of bits per byte. 2 is accounted for
// double data rate (DDR).
  device.set_bandwidth(properties.memoryBusWidth / 8 *
                       properties.memoryClockRate * 2ULL);


https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/clusters/utils.cc#L132

Similar code also exists in XLA：

if (mem_clock_khz && mem_bus_width_bits) {
      // Times 2 because HBM is DDR memory; it gets two data bits per each
      // data lane.
      auto memory_bandwidth =
          uint64_t{2} * (*mem_clock_khz) * 1000 * (*mem_bus_width_bits) / 8;
      device_plane->AddStatValue(
          *device_plane->GetOrCreateStatMetadata(
              GetStatTypeStr(StatType::kDevCapMemoryBandwidth)),
          memory_bandwidth);
    }

https://github.com/openxla/xla/blob/main/xla/backends/profiler/gpu/cupti_collector.cc#L433
https://github.com/openxla/xla/blob/main/xla/backends/profiler/gpu//rocm_collector.cc#L531

but for DDR5 should times 4, Is there any way to distinguish it and fix it?

### Standalone code to reproduce the issue

```shell
// 8 is the number of bits per byte. 2 is accounted for
// double data rate (DDR).
device.set_bandwidth(properties.memoryBusWidth / 8 *
                       properties.memoryClockRate * 2ULL);

to

// 8 is the number of bits per byte. 2 is accounted for
// double data rate (DDR).
device.set_bandwidth(properties.memoryBusWidth / 8 *
                       properties.memoryClockRate * 4ULL);


for ddr5
```


### Relevant log output

_No response_
Repository: flutter
Issue: `flutter run` doesn't display `print()` messages on web in profile/release mode
Labels: tool,platform-web,has reproducible steps,P3,team-web,triaged-web,found in release: 3.24,found in release: 3.27

`flutter run` normally prints all messages the application prints using the`print(<...>)` function. This works on the VM-based devices just fine in all modes. 

Though on the web it seems to only work in debug mode but not in profile/release mode (i.e. `flutter run -d chrome --release/--profile` doesn't forward print messages). 

(Side-Note: In debug mode on web (i.e. `flutter run -d chrome --debug`) there prints are generally printed but at the very start of the app they are sometimes dropped. It seems there's a race from the flutter tools connecting to the browser to start capturing the output and the app already running)