sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [image_picker] Support image/video restrictions on macOS
Labels: c: new feature,platform-mac,p: image_picker,package,a: desktop,P3,team-macos,triaged-macos

The current macOS implementation of `image_picker` just delegates to `file_selector` and ignores all of the arguments that allow resizing images or restricting video length. We should consider implementing them, if we can do so without bringing in new library dependencies.

(Ideally we wouldn't have these be part of `image_picker` at all, and would leave that for post-processing by other code, but on iOS we get image data rather than a file, and so it's more efficient to do things like resize the image before writing it to disk, rather than add a write/read of the full sized image only to then resize it from Dart. But given that that doesn't apply on macOS, we may want to deliberately not implement this.)

Alternately, we could only do this once we do https://github.com/flutter/flutter/issues/125829
Repository: flutter
Issue: [image_picker] Support image/video restrictions on Linux
Labels: c: new feature,platform-linux,p: image_picker,package,a: desktop,P3,team-linux,triaged-linux

The current Linux implementation of `image_picker` just delegates to `file_selector` and ignores all of the arguments that allow resizing images or restricting video length. We should consider implementing them, if we can do so without bringing in new library dependencies.

(Ideally we wouldn't have these be part of `image_picker` at all, and would leave that for post-processing by other code, but on iOS we get image data rather than a file, and so it's more efficient to do things like resize the image before writing it to disk, rather than add a write/read of the full sized image only to then resize it from Dart. But given that that doesn't apply on Linux, we may want to deliberately not implement this.)
Repository: flutter
Issue: `WidgetStatesController` warning about using `value` setter
Labels: c: new feature,framework,c: proposal,P2,team-framework,triaged-framework

### Use case

From [the docs for `WidgetStatesController`](https://api.flutter.dev/flutter/widgets/WidgetStatesController-class.html): 

> The controller's [value](https://api.flutter.dev/flutter/foundation/ValueNotifier/value.html) is its current set of states. Listeners are notified whenever the [value](https://api.flutter.dev/flutter/foundation/ValueNotifier/value.html) changes. The [value](https://api.flutter.dev/flutter/foundation/ValueNotifier/value.html) should only be changed with [update](https://api.flutter.dev/flutter/widgets/WidgetStatesController/update.html); it should not be modified directly.

But when using the setter for the `value` we get no lint.

### Proposal

I propose that a new override for the setter of `value` should be added there using the `@protected` annotation like so:

```dart
  @override
  @protected
  set value(Set<WidgetState> newValue) => super.value = newValue;
```

Or even a new lint to warn users.
Repository: next.js
Issue: Suspense does not work as expected in Page Router index.js
Labels: bug

### Link to the code that reproduces this issue

https://github.com/pkellner/nextjs-15-rc-suspense-page-router-issue

### To Reproduce

run `next dev` and browse to localhost:3000. This runs /pages/index.js and you should see a loading message that should have been generated from the Suspense fallback.  The exact same code (but with 'use client' at the top) is working in the /app/test/page.js (localhost:3000/test)

### Current vs. Expected behavior

Expect localhost:3000 to show loading message for 2 seconds before rendering list and it does not.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:17:33 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6031
  Available memory (MB): 65536
  Available CPU cores: 16
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: 1.22.21
  pnpm: 8.15.4
Relevant Packages:
  next: 15.0.0-rc.0 // Latest available version is detected (15.0.0-rc.0).
  eslint-config-next: N/A
  react: 19.0.0-rc-6230622a1a-20240610
  react-dom: 19.0.0-rc-6230622a1a-20240610
  typescript: N/A
Next.js Config:
  output: N/A
```


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

Not sure

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

next dev (local)

### Additional context

I plan on upgrading old projects that use the page router to use client only suspense which is supported in React 19. I expect that it should work exactly the same as when 'use client' is put at the top of the page.ts file in the app folder.
Repository: flutter
Issue: Support iOS 18 formatting menu
Labels: c: new feature,platform-ios,P2,team-text-input,triaged-text-input

### Use case

At WWDC 2024, Apple [announced](https://youtu.be/wIJrVz5NGHY?t=975) a new text input formatting menu.

<img width="200" alt="Screenshot 2024-06-11 at 1 29 16 PM" src="https://github.com/flutter/flutter/assets/389558/d6a11beb-7f9d-4f68-88b5-4661ae7673b0">

<details>

<summary>Opened via the context menu Format button</summary>

<img width="200" alt="Screenshot 2024-06-11 at 1 29 37 PM" src="https://github.com/flutter/flutter/assets/389558/baecce0d-f801-4aaa-a230-b6224f51e251">

</details>

### Proposal

Flutter may want to support this for rich text editors.

It's not yet clear to me if there is a sufficient native API for showing the menu and receiving any button presses.

CC @MitchellGoodwin for Cupertino.

CC @Renzo-Olivares for rich text.

CC @LouiseHsu who added various other context menu buttons like [Share](https://github.com/flutter/flutter/pull/132599).

CC @matthew-carroll, I wonder if this is relevant to super_editor.
Repository: kubernetes
Issue: Incorrect error reporting in case of missing cgroup controllers
Labels: kind/bug,sig/node,triage/accepted

### What happened?

If the cgroup validation fails due to missing required controllers (e.g. https://github.com/kubernetes/kubernetes/issues/122955) the error that surfaces is, 
```bash
Jun 11 20:22:16 ip-10-0-2-54 kubenswrapper[2176]: E0611 20:22:16.903259    2176 kubelet.go:1559] "Failed to start ContainerManager" err="failed to initialize top level QOS containers: root container [kubepods] doesn't exist"
```
This is incorrect. The code at, https://github.com/kubernetes/kubernetes/blob/d593c886b1fd4119204b8e5a5fc012e36f42fd7a/pkg/kubelet/cm/qos_container_manager_linux.go#L85 

calls https://github.com/kubernetes/kubernetes/blob/d593c886b1fd4119204b8e5a5fc012e36f42fd7a/pkg/kubelet/cm/cgroup_manager_linux.go#L239 but ignores the error. 

This could be quite misleading. In case of https://github.com/kubernetes/kubernetes/issues/122955, the kubelet didn't fail to start because of missing `kubepods` cgroup, but rather due to missing `cpuset`. 

The correct reported error should have been, 

```bash
 Jun 11 20:30:33 ip-10-0-2-54 kubenswrapper[2178]: E0611 20:30:33.085077    2178 kubelet.go:1559] "Failed to start ContainerManager" err="failed to initialize top level QOS containers: error validating root container [kubepods] : cgroup [\"kubepods\"] has some missing controllers: cpuset"
 ```

### What did you expect to happen?

Correct error to propagate when cgroup validation fails during kubelet startup. 

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

Everytime kubelet fails to start due to cgroup validation. e.g https://github.com/kubernetes/kubernetes/issues/122955

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</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: go
Issue: runtime: consider CNTVCT_EL0 to implement cputicks on ARM64
Labels: Performance,NeedsInvestigation,arch-arm64,compiler/runtime

To get the current time in seconds, the runtime implements `runtime.nanotime` as a call to the OS (the vdso on GOOS=linux, libc on GOOS=darwin).

Profiling and tracing benefit from efficient access to a clock, but don't require a particular scale or offset. (We're in the habit of rescaling it after the fact, by comparing against another clock.) On GOARCH=amd64, the runtime implements `runtime.cputicks` as `RDTSCP` (or `RDTSC` plus memory fences). It's a bit faster to only read the timer, than to read the timer and then do scaling math.

But on GOARCH=arm64, for GOOS=linux, darwin, and several others, we implement `runtime.cputicks` as a call to `runtime.nanotime`. It looks like AArch64's `CNTVCT_EL0` register [1] might have what we need for `cputicks` (monotonic, also monotonic across cores, static frequency). The Linux vdso [2] appears to use it (plus `ISB`), or the self-synchronizing version `CNTVCTSS_EL0`.

There's also `CNTVCT` for GOARCH=arm [3].

Initial benchmarking on an Apple M1 (darwin) and on Raspberry Pi models 5 and 3B (linux) show that reading `CNTVCT_EL0` is bit faster than calling `nanotime` (14 vs 24ns, 28 vs 43ns, and 45 vs 126ns on those three platforms). I don't know how much of a difference this will make in complete applications, but cheaper clocks means less worry when adding profiling/tracing points.

CC @golang/runtime @golang/arm 

[1] https://developer.arm.com/documentation/ddi0595/2021-03/AArch64-Registers/CNTVCT-EL0--Counter-timer-Virtual-Count-register

[2] https://elixir.bootlin.com/linux/v6.9/source/arch/arm64/include/asm/vdso/gettimeofday.h#L69

[3] https://developer.arm.com/documentation/ddi0601/2024-03/AArch32-Registers/CNTVCT--Counter-timer-Virtual-Count-register
Repository: godot
Issue: Shaders using TIME make editor unusable after some time
Labels: bug,topic:rendering,topic:editor,regression,performance

### Tested versions

4.3 beta1
I did not experience it before.

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description


https://github.com/godotengine/godot/assets/2223172/c68c897a-2398-445a-b9fb-a83d55370846

The ItemBlock has a shader that uses TIME. After the editor was open for a few hours, rendering this object makes the editor unusable. Same happens in other scenes with TIME shaders or particles. The problem goes away after editor restart.

Note that TIME being the problem is an assumption. I tested it with this one shader and with particles.

### Steps to reproduce

1. Have a CanvasIteme with shader that uses TIME
2. Wait a few hours with editor open
3. Check your scene

### Minimal reproduction project (MRP)

Shader used in the above scene:
```glsl
shader_type canvas_item;

uniform float intensity : hint_range(0, 1);

void vertex() {
	VERTEX.x += sin(TIME * 10.0 + VERTEX.y) * 60.0 * intensity;
}

void fragment() {
	vec2 uv = UV;
	uv.y += sin(TIME * 10.0 + UV.x * 10.0) * 0.1 * intensity;
	if (uv.y < 0.0 || uv.y > 1.0) {
		COLOR = vec4(0);
	}
}
```
Repository: svelte
Issue: Uneasy bouncing in `transition:slide`
Labels: transition/animation

### Describe the bug

Check the REPL. This issues can be reproduced in Svelte4/5.

<details><summary>source code</summary>

```svelte
<script>
	import { slide } from 'svelte/transition';
	let visible1 = true;
	let visible2 = true;
	let visible3 = true;
</script>

<label>
	<input type="checkbox" bind:checked={visible1} />
	bounce on "in"
</label>
<label>
	<input type="checkbox" bind:checked={visible2} />
	bounce on "out"
</label>
<label>
	<input type="checkbox" bind:checked={visible3} />
	Normal and smooth
</label>

<div class="div1">
	{#if visible1}
		<div transition:slide style="background-color: orangered;">
			<p>slide in and out 1-1</p>
			<p>slide in and out 1-2</p>
		</div>
	{/if}
	<p>slide in and out 1-3</p>
	<p>slide in and out 1-4</p>
</div>

<div class="div2">
	{#if visible2}
		<p transition:slide style="background-color: orangered;">slide in and out 2-1</p>
	{/if}
	<p>slide in and out 2-2</p>
	<p>slide in and out 2-3</p>
</div>

<div class="div3">
	{#if visible3}
		<div transition:slide style="background-color: orangered;">
			<p>slide in and out 3-1</p>
			<p>slide in and out 3-2</p>
		</div>
	{/if}
	<p>slide in and out 3-3</p>
	<p>slide in and out 3-4</p>
</div>

<style>
	.div3 {
		display: flex;
		flex-direction: column;
	}
</style>
```
</details>

<details><summary>demo video</summary>

https://github.com/sveltejs/svelte/assets/61939856/9b209e6f-99dc-4478-a18c-16e05f51ba3d
</details>

### Reproduction

[REPL](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE7VUy07EIBT9lRtcuHFsprjqdEz8AX_AumiB6o0UCNCJk6b_LlBrjVYnmegO7uNwHgkDaVEKR4qHgai6E6Qgd8aQK-KPJl7cQUgvwt3p3rJYKR2zaPxtpSqPndHWwwBOIhcwQmt1B5fTUuZtrRx61OpyF6el8HBAh40UW9iDt734Ws9_qNOlXmYLAVXKuhEycSlRmd5D5L2vCHsW7KXRrxWBBhUv0l3w_TATGCFLa43uFROgFVQEVUXiAzPo2ej5Grru_R_B0xn-XtuullArDq7T2j9_hg9njgdgsnYugIbztiJpbbjA9iOJMVYCgzi7JFZMiTp_lJFRU7OXJxvE8A3TUtsCdBh9Elbw3TtoAjG30x6qRCpIhu1mW2bmxEi-jJRZYDLRzLBN7NZ36Lyz3r6Z2h9w39zIV9zIZzfM2V58o5IvBvyqKF9cWG_TU4roiiL63_nS0_nSM_Klv-dLV_JNYtLGdTQDhulBjs7I-lhAK8XrbqrF44ajFSyZAUF036nUHNMXk6DCt9dpji0KTor4_YyP4xvNwwT_MQUAAA==)

### Logs

_No response_

### System Info

```shell
Svelte compiler version 4.2.18
Svelte compiler version 5.0.0-next.153
```


### Severity

annoyance
Repository: go
Issue: cmd/go: test -coverprofile should ask compiler to drop (incorrect) position information
Labels: NeedsFix,gabywins

```
% cat x.go
package p

func f(int) string

func g() {
	b := f(1)
	collect := func(min, max, stop int) []int {
		return nil
	}
	b := f(2)
	_ = collect
}
% go test -coverprofile=c.out x.go
# command-line-arguments
./x.go:6:2: `b' declared and not used
./x.go:10:35: no new variables on left side of :=
```

There is no column 35 on the line `b := f(2)`, making the error message very confusing. The problem is that cover has inserted text into the lines. When the compiler did not print column information, that was invisible. Now it's not.

To make it invisible again, the compiler should add a flag to drop position information, and then the go command should use that flag when compiling with test coverage.
Repository: angular
Issue: Hydration: detect common mismatch patterns and produce a better error message
Labels: area: core,canonical,core: hydration

### Which @angular/* package(s) are relevant/related to the feature request?

core

### Description

During hydration, Angular relies on the application structure to be the same between the server and the client. There are a few cases where if you have a component template that does not have valid HTML structure, this could result in a DOM mismatch error during hydration, see https://angular.dev/guide/hydration#valid-html-structure.

Here is an example that we've came across on ADEV: https://github.com/angular/angular/pull/56390.

### Proposed solution

The proposal is to auto-detect those situations when hydration mismatch happens and output additional information into the console, to make it easier to find the origin of the problem and resolve it.
Repository: PowerToys
Issue: FanzyZones crashed trying to move Chrome to top zone
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.81.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

This just happened suddenly after restarting the laptop so not sure of the steps that triggered this crash. This is the first time that this happened.

1. Grab Chrome's title bar
2. Drag it to the top zone
3. While dragging, press right-button of mouse to target the zone

[PowerToysReport_2024-06-12-08-57-06.zip](https://github.com/user-attachments/files/15796420/PowerToysReport_2024-06-12-08-57-06.zip)



### ✔️ Expected Behavior

Zone is highlighted; dropping Chrome should snap it into the zone's bounds.

### ❌ Actual Behavior

FancyZones crashed; mouse cursor lags until the crash dialog is dismissed.

### Other Software

_No response_
Repository: ollama
Issue: [Model Request] Add dolphin-qwen2
Labels: model request

Could you add dolphin-qwen2? Thanks.
Repository: electron
Issue: [Feature Request]: Enable build variants
Labels: stale

The idea is to ease the dev process of downstream variants of Electron, which add built-in functionality which might be seen as too specific or out-of-scope for upstream... without maintaining patches for Electron code itself. If the idea is accepted in principle, I intend to contribute toward this end.

For example (obviously the names here are negotiable/bikesheddable): 
electron/BUILD.gn uses exec_script, which... 
* If ../electron-spin/BUILD.gn is absent Electron builds exactly as it does now
* Otherwise it gains a dependency on //electron-spin:hooks 
  -  For each X in a list defined in the script, if ../electron-spin/X.h exists a define is added to Electron
* In a few strategic places in the code, `#ifdef` those defines, call some function whose name is effectively API.
  -  For example, `ElectronBrowserClient::WillCreateURLLoaderRequestInterceptors` might call `CreateSpinRequestInterceptors`, but only if ELECTRON_SPIN_INTERCEPTORS is defined, which would happen if ../electron-spin/interceptors.h exists.
  
  I could also use __has_include instead of defines if you prefer to take that part out of the build system, but the `exec_script` would still be useful to have the dependency if and only if someone did actually add their directory there.
  
  Does this seem like a reasonable approach?
Repository: tauri
Issue: [bug] CreateStartMenuShortcut or CreateDesktopShortcut  in win7  Creation failed
Labels: type: bug,platform: Windows,status: needs triage

### Describe the bug

tauri.config.json "nsis": {
          "installMode": "currentUser",
          "installerIcon":"icons/icon.ico"
        }, Creating shortcut failed in Win7 ,Causing the installation program to crash directly

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
> mock_student@0.0.0 tauri
> tauri info


[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 125.0.2535.92
    ✔ MSVC: Visual Studio Community 2019
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - pnpm: 8.15.4
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - @tauri-apps/api [NPM]: 1.5.6
    - @tauri-apps/cli [NPM]: 1.5.14

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1421/
    - framework: Vue.js
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: Screen ruler crash with multi monitor setups
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.81.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Screen ruler

### Steps to reproduce

- Launch screen ruler
- Screen rulers shows on main monitor
- Move cursor to another monitor and try to measure something
- Screen ruler freezes and needs to be killed

### ✔️ Expected Behavior

Measure screen item 

### ❌ Actual Behavior

Screen ruler freezes and crash

### Other Software

_No response_
Repository: PowerToys
Issue: 无界鼠标问题
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.81.1

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

无界鼠标问题：当鼠标移动到另外一台计算机时，点击系统弹窗或者软件弹窗、任务栏右键菜单的时候，鼠标左键失效，无法点击

### ✔️ Expected Behavior

点击系统弹窗或者软件弹窗、任务栏右键菜单的时候,希望能完全点击任何窗口的任何按钮

### ❌ Actual Behavior

鼠标左键失效，无法点击

### Other Software

_No response_
Repository: ollama
Issue: First value different on CUDA/ROCM when setting `seed` 
Labels: bug,nvidia,amd

### What is the issue?

This seems to be an issue with the kv cache on Nvidia/AMD GPUs. See https://github.com/ggerganov/llama.cpp/issues/2838
Repository: vscode
Issue: feat: Add sidebar event listener or get detail apis
Labels: feature-request,api,layout

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Because we may have some events that switch the activation text to update the sidebar data, but it is very likely that the user has not opened the sidebar item we use. It is a waste to update it at this time. I hope there is an API to know the changes in the sidebar or the current sidebar information, and query whether a certain sidebar ID is hidden or displayed.
Repository: ollama
Issue: error pulling llama2 manifest 
Labels: bug

### can't pull manifests

ollama pull llama2:7b
pulling manifest
Error: Head "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/sha256/89/8934d96d3f08982e95922b2b7a2c626a1fe873d7c3b06e8e56d7bc0a1fef9246/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%!F(MISSING)20240612%!F(MISSING)auto%!F(MISSING)s3%!F(MISSING)aws4_request&X-Amz-Date=20240612T040009Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=15b16e1b97cea3f5e085e8ba72d2eeb522de4115e625c2e46b552912bb364488": dial tcp: lookup dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com: no such host

ollama pull llama2:7b
pulling manifest
Error: Head "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/sha256/89/8934d96d3f08982e95922b2b7a2c626a1fe873d7c3b06e8e56d7bc0a1fef9246/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%!F(MISSING)20240612%!F(MISSING)auto%!F(MISSING)s3%!F(MISSING)aws4_request&X-Amz-Date=20240612T040009Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=15b16e1b97cea3f5e085e8ba72d2eeb522de4115e625c2e46b552912bb364488": dial tcp: lookup dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com: no such host


tried the docker way also , same error 

### OS

WSL2

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.43