sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: torch/_refs/__init__.py is not autoreloadable in bento / jupyter notebook
Labels: triaged,module: library

### 🐛 Describe the bug

When we try to reload this file, it fails with this exception:

```
 File "/mnt/xarfuse/uid-128580/66551cbc-seed-nspid4026531836_cgpid58278121-ns-4026531840/parsh/autoreload/autoreload.py", line 627, in _reload_modules
    self.superreload(m)
  File "/mnt/xarfuse/uid-128580/66551cbc-seed-nspid4026531836_cgpid58278121-ns-4026531840/parsh/autoreload/autoreload.py", line 836, in superreload
    self._superreload_helper(module)
  File "/mnt/xarfuse/uid-128580/66551cbc-seed-nspid4026531836_cgpid58278121-ns-4026531840/parsh/autoreload/autoreload.py", line 773, in _superreload_helper
    module = reload(module)
  File "/mnt/xarfuse/uid-128580/66551cbc-seed-nspid4026531836_cgpid58278121-ns-4026531840/runtime/lib/python3.10/importlib/__init__.py", line 203, in reload
    _bootstrap._exec(spec, module)
  File "<frozen importlib._bootstrap>", line 778, in _exec
  File "/mnt/xarfuse/uid-128580/66551cbc-seed-nspid4026531836_cgpid58278121-ns-4026531840/parsh/autoreload/measurements.py", line 46, in patched_exec_module
    orig_exec_module(self_, module)
  File "<frozen importlib._bootstrap_external>", line 896, in exec_module
  File "<frozen importlib._bootstrap>", line 400, in _call_with_frames_removed
  File "/data/users/ezyang/fbsource/fbcode/caffe2/torch/_refs/__init__.py", line 526, in <module>
    def abs(a):
  File "/data/users/ezyang/fbsource/fbcode/caffe2/torch/_refs/__init__.py", line 475, in inner
    aten_op = utils.get_aten_op(prim, prim.__name__)
AssertionError
]
```

The proximal cause seems to be that we are trying to reregister all of the operators, but the old registrations didn't get cleared on unload.

cc @anjali411 @zou3519 

### Versions

main
Repository: angular
Issue: Allow one time binding input
Labels: feature,area: core,core: inputs / outputs

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

We now have two options:
1. Attribute - no change watching but no binding too. Limited to only compile time strings.
2. Input - signal based and can change over time.

What's missing is the in between. A way to pass an input but without change watching.

The idea came from inputs I can't or don't want to handle when they change. Currently using ngOnChanges first change check I throw an error if it gets changed after first time.

### Proposed solution

A way to declare on time input. Something like:
`a = input.oneTime<string>()` and will be just a string. If changed after first time will throw an error.
It will also make performance better (I think?) as no need for signal or tracking.

### Alternatives considered

Check in ngOnChanges for first change and throw error. With signal inputs it's tougher as ngOnChanges is discouraged.
Repository: go
Issue: proposal: strconv: add generic integer variants
Labels: Proposal

### Proposal Details

I had an argument with @ldemailly on what is the least ugly to stringify a `~uint8` (typed `iota` enum) to a base ten number.
`strconv.FormatUint(uint64(i), 10)` is verbose so it seems people would enjoy using `strconv.Itoa` more, however `Itoa` is easy to use incorrectly, it may truncate on 32 bits platforms and is signed which might or might not be what you want to do. ([search](https://grep.app/search?q=strconv.Itoa%28int%28&case=true) 13k results, this is popular)

I propose theses new functions:
```go
// if new parse / format functions for new integers types are added, they would also be added there.
type integers interface{ uint | uint8 | uint16 | uint32 | uint64 | uintptr | int | int8 | int16 | int32 | int64 }

// ParseInteger is like [ParseInt] and [ParseUint], but it will error if s can't be parsed perfectly into T.
// It accept 2 <= base <= 36 or 0, see [ParseInt] for base 0 documentation.
func ParseInteger[T ~integers](s string, base int) (T, error)

// FormatInteger is like [FormatInt] and [FormatUint], it accept 2 <= base <= 36.
func FormatInteger[T ~integers](v T, base int) string
```

The idea is you don't bother thinking about what the best function is, what type conversion you need to do or what `bitsize` should be set to.
You just call `ParseInteger` or `FormatInteger` with the type you want, and let the type checker handles the tricky bits for you.
Repository: TypeScript
Issue: BUG: Refactor: move to file: if imports are from file where was refactor done, remove them (imports for itself)
Labels: Bug

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->


Refactor: move to file: 

if imports are from file where was refactor done, remove them (imports for itself)
Repository: rust
Issue: `io::Sink` is useless since version 1.73 as `io::Empty` now has a superset of its features.
Labels: T-libs-api,T-libs,A-io,C-discussion

Should the entire `Sink`/`sink()` api be deprecated with the changes brought to `io::Empty`?
Repository: node
Issue: Compiler error running on Node 20.12 (works in 20.11.6) in napi-intl.h when calling napi_status napi_create_external_buffer
Labels: build

### Version

20.12

### Platform

Windows and OSX

### Subsystem

napi-intl.h

### What steps will reproduce the bug?

Line 2680 in file napi-intl.h

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

always it's a compiler error

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

The code compiles in node 20.11.2 so I expect it to compile in node 20.12

### What do you see instead?

Severity	Code	Description	Project	Line	Suppression State	Details	File
Error	C2664	'napi_status napi_create_external_buffer(napi_env,size_t,void *,node_api_nogc_finalize,void *,napi_value *)': cannot convert argument 4 from 'void (__cdecl *)(napi_env,void *,void *) noexcept' to 'node_api_nogc_finalize'	binary_encoder	2680			C:\git\cloud\node_modules\node-addon-api\napi-inl.h


### Additional information

Compiler errors on both OSX and Windows. Haven't tested on Linux

Severity	Code	Description	Project	Line	Suppression State	Details	File
Error	C2664	'napi_status napi_create_external_buffer(napi_env,size_t,void *,node_api_nogc_finalize,void *,napi_value *)': cannot convert argument 4 from 'void (__cdecl *)(napi_env,void *,void *) noexcept' to 'node_api_nogc_finalize'	binary_encoder	2680			C:\git\cloud\node_modules\node-addon-api\napi-inl.h
Repository: ollama
Issue: Implement downloads via torrents
Labels: feature request,registry

Model downloads with a slow (10mbit) internet connection are really unreliable and crash around all 5-10gb for me (EOF max retries). 
At the same time huge torrents work very reliable.
If you could implement a call to a external torrent client for model downloading or implement a torrent client the download experience would be more reliable, way faster and you could save costs on hosting the files.

This library could be used to implement this:
https://github.com/anacrolix/torrent

Or simply create a subprocess call to transmission-cli (more hacky way)
Repository: flutter
Issue: [native assets] Inconsistent logging on error.
Labels: tool,P2,team-tool,triaged-tool

When native assets build.dart fails during `flutter build`, its output should be printed. This doesn't currently happens consistently.

macOS (xcodebulld):
   - stdout is printed
   - stderr is printed twice

linux (CMake / Ninja):
   - stdout is printed only with verbose flag (-v)
   - stderr is printed as expected

windows (CMake / MSBuild):
  - neither stdout or stderr is printed without verbose flag (-v)
  - with verbose flag stderr is printed twice.

Out of these windows seems worst, as the error gets swallowed by default, and it needs to be looked up in the full log, with quite a bit of text printed after the main error.
Repository: flutter
Issue: [camera_android_camerax] Modify `availableCameras` to set camera name to `Camera2CameraInfo.getCameraId`
Labels: platform-android,p: camera,P3,team-android,triaged-android

Currently, the `camera_android_camerax` plugin sets the camera name of the available cameras (retrieved via `availableCameras`) to a random camera name and ID -- see [source](https://github.com/flutter/packages/blob/36c42bd27ad5eb82daf6610452e5b3140b93dc46/packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart#L265). To maintain feature parity with `camera_android`, we should use the value retrieved from [`Camera2CameraInfo.getCameraId`](https://developer.android.com/reference/androidx/camera/camera2/interop/Camera2CameraInfo#getCameraId()).
Repository: godot
Issue: Custom Translation `ResourceFormatLoader` not parsed at startup
Labels: bug,topic:core

### Tested versions

- Reproducible in 4.3.dev(6118592c6d88350d01f74faff6fd49754f84a7d0)

### System information

Godot v4.3.dev (86d0f9b14) - Windows 10.0.19044 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2080 (NVIDIA; 31.0.15.5186) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)

### Issue description

When creating a custom `ResourceFormatLoader` for handling Translation resources, loading files via GDScript works fine.

However, when adding a Translation file via `Project Settings > Localization > Translations` menu, an error on startup shows and the Translation resource is not loaded:

```
E 0:00:00:0699   ResourceLoader::_load: No loader found for resource: res://my.test (expected type: )
  <C++ Error>    Method/function failed. Returning: Ref<Resource>()
  <C++ Source>   core\io\resource_loader.cpp:289 @ ResourceLoader::_load()
```

### Steps to reproduce

See the issue description. You can simply open the MRP to see the error and the label not being translated.

If you want to see the loader working, uncomment the code in `control.gd`. The error persists (until you remove the translation from project settings), but text changes from "broken" to "it works!"

### Minimal reproduction project (MRP)

GDScript loader:
[custom-translation-loader.zip](https://github.com/godotengine/godot/files/15155211/custom-translation-loader.zip)

GDExtension loader:
[custom-translation-loader-gdextension.zip](https://github.com/user-attachments/files/18499366/custom-translation-loader-gdextension.zip)
Repository: kubernetes
Issue: SVM RV Semantics: assert that kine RV semantics match etcd
Labels: sig/api-machinery,triage/accepted

[kine](https://github.com/k3s-io/kine) implements the etcd gRPC API.  We need to assert that its RV semantics match that of etcd, meaning that running SVM on either environment would work as expected.

/assign nilekhc
/triage accepted
/sig api-machinery

Links to code searches performed: [[1]](https://github.com/search?type=code&q=.RegisterWatchServer%28+.RegisterKVServer%28+language%3AGo+NOT+is%3Afork++NOT+is%3Aarchived&p=1) [[2]](https://grep.app/search?q=.RegisterWatchServer%28)
Repository: flutter
Issue: apply theme.appBarTheme.systemOverlayStyle in showSearch
Labels: c: new feature,framework,f: material design,c: proposal,P2,team-design,triaged-design

### Use case

when calling material/search.dart's `showSearch` function, the route that is then navigated to overrides the context's `theme.appBarTheme.systemOverlayStyle` with either `SystemUiOverlayStyle.light` or `SystemUiOverlayStyle.dark` depending on the `theme.colorScheme.brightness`. Therefore, after the search route is poped, the `SystemUiOverlay` remains as `SystemUiOverlayStyle.light` or `SystemUiOverlayStyle.dark` instead of your custom `systemOverlayStyle`.

![before_small](https://github.com/flutter/flutter/assets/13790031/a515b908-7255-494d-baee-ef192f85a0aa)
![during_small](https://github.com/flutter/flutter/assets/13790031/1597a248-75f8-4c74-8131-56a2d0883fb7)
![after_small](https://github.com/flutter/flutter/assets/13790031/e1a7f867-317f-4d25-aac4-92ea2250b052)

### Proposal

change
https://github.com/flutter/flutter/blob/54e66469a933b60ddf175f858f82eaeb97e48c8d/packages/flutter/lib/src/material/search.dart#L250-L252

to
`systemOverlayStyle: theme.appBarTheme.systemOverlayStyle,`

so that the systemOverlayStyle does not change when showing a search page
Repository: kubernetes
Issue: garbagecollector.GetDeletableResources logs json encoding error instead of actual error
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

In `garbagecollector.GetDeletableResources()` if `discoveryClient.ServerPreferredResources()` fails with a lookup error, we log something like the following due to json.Marshal() refusing to marshal a struct type.
```
garbagecollector.go:835] "failed to discover some groups" groups="<internal error: json: unsupported type: map[schema.GroupVersion]error>"
```

### What did you expect to happen?

Get a usable error message, like:
```
"failed to discover some groups" groups="unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: stale GroupVersion discovery: metrics.k8s.io/v1beta1"
```


### How can we reproduce it (as minimally and precisely as possible)?

Encounter a condition that causes a lookup failure. Mine was with a brand-new k3s install.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.29.3-k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.3-k3s1

```

</details>


### Cloud provider

N/A

### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
NAME="SLE Micro"
VERSION="5.5"
VERSION_ID="5.5"
PRETTY_NAME="SUSE Linux Enterprise Micro 5.5"
ID="sle-micro"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sle-micro:5.5"

$ uname -a
Linux work-router.domain 5.14.21-150500.55.52-default #1 SMP PREEMPT_DYNAMIC Tue Mar 5 16:53:41 UTC 2024 (a62851f) x86_64 x86_64 x86_64 GNU/Linux
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: pytorch
Issue: [CUDA][Compex] `test_reference_numerics_large_jiterator_unary_cuda_complex64` broken after updating to `numpy >= 1.25.0`
Labels: module: cuda,triaged,module: complex,module: numpy,module: jiterator

### 🐛 Describe the bug

Unsure why this hasn't surfaced in upstream CI as we've observed it on sm90, sm86, sm80, sm60, ...

Doesn't surface on e.g., `numpy==1.24.4` but starts appearing at least as early as `numpy==1.25.0`
```
  File "/usr/local/lib/python3.10/dist-packages/torch/testing/_internal/common_utils.py", line 3622, in assertEqual
    raise error_metas.pop()[0].to_error(
AssertionError: Tensor-likes are not close!

Mismatched elements: 400 / 10000 (4.0%)
Greatest absolute difference: nan at index (8800,) (up to 1e-05 allowed)
Greatest relative difference: nan at index (8800,) (up to 1.3e-06 allowed)

To execute this test, run the following from the base repo dir:
     python test/test_unary_ufuncs.py -k test_reference_numerics_large_jiterator_unary_cuda_complex64

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```
CC @nWEIdia @tinglvv @malfet @atalman 


### Versions

Source build as of 4/29

cc @ptrblck @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved @amjames @rgommers
Repository: TypeScript
Issue: JSDoc @import not detecting use in @callback
Labels: Needs Investigation,Fix Available

### 🔎 Search Terms

jsdoc import @import callback lsp

### 🕗 Version & Regression Information

5.5 beta

- I was unable to test this on prior versions because it's a new feature in 5.5. It was appearing in nightlies and I waited for the beta to confirm it's still there.

### ⏯ Playground Link

_No response_

### 💻 Code

```js
/**
 * @import {Checker, Passable} from '@endo/pass-style';
 */

/**
 * @callback GetChecker
 * @param {Passable} payload
 * @returns {Checker}
 */

/**
 * @typedef {object} Misc
 * @property {Passable} passable
 */
```


### 🙁 Actual behavior

The `Checker` import is dim in an IDE and hovering says,
```
'Checker' is declared but never used.ts(6196)
```

### 🙂 Expected behavior

LSP detects that `Checker` is in the return of `GetChecker`. 


### Additional information about the issue

The use is detected in `@typedef` and `@type`. E.g. as with `Passable` in the example code.
Repository: next.js
Issue: Response cookies missing in middleware
Labels: bug,Middleware

### Link to the code that reproduces this issue

https://github.com/marcospassos/next-middleware-cookie-bug

### To Reproduce

If you set a cookie in a server action, it is not available in the middleware. Without this, the middleware cannot prevent overriding cookies that may be set at the request time.

### To Reproduce

Create a server action:

```ts
'use server';

import {cookies} from 'next/headers';

export async function example(): Promise<void> {
    cookies().set('foo', 'bar');
}
```

Then, in your middleware:

```ts
export function middleware(): void {
    const response = NextResponse.next();
    
    console.log(response.cookies.has('foo'));   
}
```

The result is always false.

### Current vs. Expected behavior

The response should include the cookies set in server actions.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 11
Binaries:
  Node: 21.7.3
  npm: 10.5.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: 14.0.3
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


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

Middleware

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

next dev (local)

### Additional context

_No response_
Repository: node
Issue: The different of process.next() between MacOS and Linux 
Labels: macos,promises,linux

### Version

v20.10.0

### Platform

MacOS and Linux 

### Subsystem

Ubuntu

### What steps will reproduce the bug?

When I run this snippet of code, I got `1 2 4 3` on MacOS, but got `1 2 3 4` on Linux.
```js
console.log("1");

process.nextTick(function () {
  console.log("3");
});

new Promise(function (resolve) {
  console.log("2");
  resolve();
}).then(() => {
  console.log("4");
});
```

If use `setTimeout` wraps the snippet, it will be `1 2 3 4` on MacOS, like this:
```js
setTimeout(() => {
  console.log("1");

  process.nextTick(function () {
    console.log("3");
  });

  new Promise(function (resolve) {
    console.log("2");
    resolve();
  }).then(() => {
    console.log("4");
  });
}, 0);

```

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

Every time

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

It should be the same on MacOS and Linux

### What do you see instead?

 I got `1 2 4 3` on MacOS, but got `1 2 3 4` on Linux.

### Additional information

_No response_
Repository: godot
Issue: Animation truncated/cut short/incomplete when importing from blender .blend file.
Labels: discussion,topic:import,topic:animation

### Tested versions

v4.2.2.stable.official [15073afe3]

### System information

Windows 10, Vulkan forward +, Nvidia 3070

### Issue description

One of the looping animations in my .blend file is cut short, so it only plays about 1/4 of the animation both in game and in the blender import preview window.  Exporting to glb or gltf functions normally and includes the full animation.  Seems the gltf file in the .import, though is cut short.

### Steps to reproduce

Not sure what specifically triggers it, but see example below:

### Minimal reproduction project (MRP)

[test_anim_cut_short.zip](https://github.com/godotengine/godot/files/15156575/test_anim_cut_short.zip)
Repository: godot
Issue: Nested MultiplayerSpawner causes node not found error if a peer joins after some spawnable scenes are freed.
Labels: bug,topic:multiplayer

### Tested versions

Godot v4.2.1.stable & Godot v4.2.2.stable

### System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840H  w/ Radeon 780M Graphics (16 Threads)

### Issue description

When there are nested multiplayer spawners, and when some of the children of the second layer spawners are freed, there will be a node_not_found error when new peer joins.

### Steps to reproduce

Inside the reproduction project:
1. run 2 instances
2. click the host button on the first instance, wait a few seconds so the labels in the middle are deleted
3. click the join button on the second instance.
There will be some node-not-found errors when the peer joins:
![image](https://github.com/godotengine/godot/assets/43716345/70fa2930-be46-4312-bd5f-ab141bd20cff)

This does not happen if you delete the queue_free code in level_1.gd

This also does not happen if the client joins before those labels are freed


### Minimal reproduction project (MRP)

[test.zip](https://github.com/godotengine/godot/files/15156991/test.zip)
Repository: electron
Issue: [Feature Request]: add config.hideDock to BrowserWindow.setHiddenInMissionControl
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

assuming that I want to create a new BrowserWindow from an existing BrowserWindow, the older window should be in missing control (and show icon in dock) while the new one shouldn't. However, when I call newWindow.setHiddenInMissionControl the dock icon is hidden too, which is unexpected because the old window need to show in dock.
It can be worked around, adding `app.dock.show()` after setHiddenInMissionControl, but will cause the docker icon "hide and show". This is not the best solution.

### Proposed Solution

add a second paramter to setHiddenInMissionControl, like `setHiddenInMissionControl(true, { hideDock: false })`, and the default value to hideDock is `true`.

### Alternatives Considered

none

### Additional Information

_No response_