sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: Some `Check Failed` errors in `tf.raw_ops.MatrixSetDiagV2`
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.16

### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

tf 2.15

### Custom code

Yes

### OS platform and distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Some `Check Failed` errors in `tf.raw_ops.MatrixSetDiagV2`, which causes the program to crash. See the colab link below for details.

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/1-yHRqhkbV3J77AaBD4GXYh3nSF49Inep?usp=sharing
```


### Relevant log output

```shell
# Check failed: d < dims() (1 vs. 1)
# Check failed: d < dims() (2 vs. 2)
```
Repository: angular
Issue: toSignal causes the signal to not being lazy-evaluated
Labels: area: core,core: reactivity,cross-cutting: signals,core: rxjs interop

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

core

### Description

First, we implemented a model (with validation logic and so on) with signals. Howver, since a signal/effect cannot be created anywhere (must be in injection context and outside of reactive context), we opted out and decided to use rxjs instead. This is fine, since the model is actually independent of Angular itself.

Additionally, we have a component that consists of pages. Each page can display validation errors found on that given page. The validation errors come from the model stated above.

Previously, while the model used signals, we were able to take advantage of the lazyness of the signal read operations. Consider the following simplified example:
```
// model class
readonly errors = computed<string[]>(() => ...);

// page class
readonly model = input.required<Model>();
readonly visited = signal(false);
readonly pageErrors = computed(() => this.visited() ? this.model().errors() : []);
```
So when we used (read) the `pageErrors` we only evaluated the model's `errors` if the page were ever visited.

Using signals in components is comfortable so we used the `toSignal` from rxjs-interop, something like this:
```
// model class
readonly errors$: Observable<string[]> = ...

// page class
readonly modelErrors = toSignal(model.errors$, { initialValue: [] });
readonly pageErrors = computed(() => this.visited() ? this.modelErrors() : []);
```
However, the `toSignal` call has a non-trivial consequence that it subscribes immediately, losing the lazy-evaluation aspect. The other way around (`toObservable`) is pretty much the same, maybe even worse (since it uses `effect` in its implementation that always runs at least once).

### Proposed solution

I think the `toSignal` and `toObservable` should get a deeper integration, allowing us to avoid use-cases like this. It would be the best if all computed signal properties (lazy + memoized) could be kept when using `toSignal` - only subscribe when the signal value is read, and unsubscribe when the signal's refcount becomes 0 (all its listeners are unsubscribed).

### Alternatives considered

Currently there is no appropriate workaround, at least we could not find any. We could opt-out of using signals, but it has its advantages that we'd like to keep.
Repository: TypeScript
Issue: [NewErrors] 5.5.0-dev.20240414 vs 5.4.5
Labels: Committed

The following errors were reported by 5.5.0-dev.20240414, but not by 5.4.5
[Pipeline that generated this bug](https://typescript.visualstudio.com/TypeScript/_build?definitionId=48)
[Logs for the pipeline run](https://typescript.visualstudio.com/TypeScript/_build/results?buildId=161216)
[File that generated the pipeline](https://github.com/microsoft/typescript-error-deltas/blob/main/azure-pipelines-gitTests.yml)

This run considered 800 popular TS repos from GH (after skipping the top 0).

<details>
<summary>Successfully analyzed 499 of 800 visited repos</summary>

| Outcome | Count |
|---------|-------|
| Detected interesting changes | 26 |
| Detected no interesting changes | 473 |
| Git clone failed | 6 |
| Package install failed | 85 |
| Project-graph error in old TS | 9 |
| Too many errors in old TS | 192 |
| Unknown failure | 9 |

</details>

## Investigation Status
| Repo | Errors | Outcome |
|------|--------|---------|
|adobe/react-spectrum|1| #56902 |
|aidenybai/million|1| #56902 |
|alangpierce/sucrase|2| #57847 + 9998 = new error|
|ardatan/graphql-tools|1| `suppressImplicitAnyIndexErrors` removed |
|ariakit/ariakit|4| `ts-expect-error` on a bug 😎|
|bitwarden/clients|2| predicate inference broke class subtyping |
|Chocobozzz/PeerTube|1| #57847, appears to be bug in the project code (?) |
|conventional-changelog/conventional-changelog|1| #57549, exact details unclear so far |
|framer/motion|1| #57847 detects an implicit coercion that was previously unnoticed |
|growthbook/growthbook|1| #57847 caused an `any` to now be narrowed to `Function` |
|heyxyz/hey|5| |
|highcharts/highcharts|6| `keyofStringsOnly` removed |
|ionic-team/stencil|1| Predicate inference identifies likely bug |
|jupyterlab/jupyterlab|2| #57681 (don't emit reference directives) |
|keplergl/kepler.gl|1| Doesn't build on Windows. Likely #57681 |
|LokerL/tts-vue|1| `suppressImplicitAnyIndexErrors` removed |
|microsoft/playwright|1| This monorepo isn't building in 5.4, skipping |
|microsoft/vscode|1| vscode team will investigate |
|misskey-dev/misskey|4| predicate inference broke subtyping |
|outline/outline|1| `suppressImplicitAnyIndexErrors` removed |
|sequelize/sequelize|1| Unused `ts-expect-error`, seems good |
|strapi/strapi|12| Monorepo failed to build in 5.4, skipping |
|t3-oss/create-t3-app|1| `importsNotUsedAsValues` removed |
|tailwindlabs/headlessui|3| |
|TanStack/router|2| Monorepo doesn't build in 5.4, skipping |
|tweenjs/tween.js|1| `importsNotUsedAsValues` removed |
Repository: rust
Issue: Missed optimization with reserve and extend_from_slice
Labels: A-LLVM,A-codegen,T-compiler,C-optimization

<!--
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 this code:

```rust
pub fn zzz(v: &mut Vec<u8>, s: &[u8]) {
    v.reserve(s.len());
    v.extend_from_slice(s);
}
```

I expected to see this happen: only one `do_reserve_and_handle` call.

Instead, this happened: `extend_from_slice` stills checks the capacity and calls reserve. It seems like LLVM assumes aren't able to bubble up out of multiple functions. I was able to get the optimization to work in https://github.com/rust-lang/rust/pull/119465 but it required putting assumes in every function along the reserve chain.
Repository: go
Issue: x/tools/gopls: go to definition within imported modules
Labels: NeedsInvestigation,gopls,Tools

Consider a Go project with `main.go` looking like this:

```go
package main

import (
	"fmt"

	"github.com/google/uuid"
)

func main() {
	id := uuid.New()
	fmt.Println(id)
}
```

When I **go to definition** (F12) of `uuid.New()` I end up here:

```go
func New() UUID {
	return Must(NewRandom())
}
```

So far so good.

But when I try to navigate futher to `Must` or `NewRandom`, I get a popup "No definition found...".

Whereas if I navigate to `fmt.Println`, I can navigate further into `Fprintln`, `doPrintln`, `writeByte`, etc.

Why is this difference in behavior between Go SDK packages and imported modules?

Shouldn't I be able to navigate within modules the same way I do in my own code and the Go SDK?

**gopls version: v0.15.2**

**go version: 1.22**

The full test project can be found at https://github.com/rustyx/issue-66827
Repository: stable-diffusion-webui
Issue: [Bug]: Missing scrollbar on extra networks tabs with tree view enabled
Labels: bug

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I have lots of Loras in various subfolders. With the dir view enabled ("Extra Networks directory view style" is set to dirs), the folder names fill up the entire available space on the Loras tab and get cut off. Folder names that don't fit on the screen get cut off and the lora thumbnails aren't visible either. I can drag the resize handle down until all the folders, and the thumbnails below them are visible but this is cumbersome compared to the previous behavior. 

I think this broke when the resize handle was introduced and the extra-network-pane divs were switched to flexbox.
I'm not good enough with CSS to fix this but removing the `height: calc(100vh - 24rem);` rule from `.extra-network-pane` in style.css alleviates the problem by making the extra networks pane big enough that all content fits without scrolling (but this is probably not ideal either since it can get very large).

Edit: edited the title of the issue and the description above to clarify that this happens only when "Extra Networks directory view style" is set to dirs. Tree view is fine.

### Steps to reproduce the problem

1. Have lots of Loras sorted into many folders (enough that the list of folders doesn't fit on a single screen on the Lora tab)
2. Go to Lora tab
3. Observe that list of folders is cut off, thumbnails below the folder list are not visible

### What should have happened?

Either the list of folders should be big enough so no folders are cut off or there should be a scrollbar. The thumbnails should be visible below the list of folders even if the list of folders takes up more than a screen.

### What browsers do you use to access the UI ?

Brave

### Sysinfo

[sysinfo.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14972152/sysinfo.txt)


### Console logs

```Shell
not relevant, it's a CSS styling issue
```


### Additional information

_No response_
Repository: HelloGitHub
Issue: 【项目推荐】一个在网页上编写代码以画图的编辑器P5.js-web-editor
Labels: JavaScript 项目

## 推荐项目

<!-- 这里是 HelloGitHub 月刊推荐项目的入口，欢迎自荐和推荐开源项目，唯一要求：请按照下面的提示介绍项目。-->


<!-- 点击上方 “Preview” 立刻查看提交的内容 -->


<!--仅收录 GitHub 上的开源项目，请填写 GitHub 的项目地址-->
- 项目地址：https://github.com/processing/p5.js-web-editor

<!--请从中选择（C、C#、C++、CSS、Go、Java、JS、Kotlin、Objective-C、PHP、Python、Ruby、Rust、Swift、其它、书籍、机器学习）-->
- 类别：JS

<!--请用 20 个左右的字描述它是做什么的，类似文章标题让人一目了然 -->
- 项目标题：p5.js-web-editor

<!--这是个什么项目、能用来干什么、有什么特点或解决了什么痛点，适用于什么场景、能够让初学者学到什么。长度 32-256 字符-->
- 项目描述：利用p5自己的在线网页编辑器，使用sketch.js来编写代码，并生成图形，p5也自己制作了一些可供调用的方法，这也可以让人和生成的图形进行交互，比如说keyisDown()方法可以让生成的图形对按下屏幕的按键做出反应。详细的p5自研方法在p5网站的reference部分。

<!--令人眼前一亮的点是什么？类比同类型项目有什么特点！-->
- 亮点：可以通过p5独创的方法描绘图形并进行交互。

-  示例代码：（可选）
```let x = 100;
let y = 100;

function setup() {
  createCanvas(512, 512);
  fill(255, 0, 0);
}

function draw() {
  if (keyIsDown(LEFT_ARROW)) {
    x -= 5;
  }

  if (keyIsDown(RIGHT_ARROW)) {
    x += 5;
  }

  if (keyIsDown(UP_ARROW)) {
    y -= 5;
  }

  if (keyIsDown(DOWN_ARROW)) {
    y += 5;
  }

  clear();
  ellipse(x, y, 50, 50);
  describe(`50-by-50 red ellipse moves left, right, up, and
    down with arrow presses.`);
}
```
- 截图：（可选）gif/png/jpg

- 后续更新计划：
Repository: pytorch
Issue: rand_like on permuted parameter not working on MPS
Labels: triaged,module: correctness (silent),module: mps

### 🐛 Describe the bug

Possible regression on https://github.com/pytorch/pytorch/issues/94190?
Calling torch.rand_like() on a tensor on mps device after it has gone through permute() doesn't work.

```
import torch

# Works
print("cpu")
t = torch.ones((3,2,2)).permute(2,0,1)
print(torch.rand_like(t))

# Not random
print("mps")
t = torch.ones((3,2,2)).to('mps').permute(2,0,1)
print(torch.rand_like(t))

# Somehow alters state?
t + 100
print(torch.rand_like(t))
```

Outputs:
```
cpu
tensor([[[0.4733, 0.7733],
         [0.6867, 0.6849],
         [0.9873, 0.9970]],

        [[0.8636, 0.9555],
         [0.6707, 0.1060],
         [0.9323, 0.1317]]])
mps
tensor([[[0., 0.],
         [0., 0.],
         [0., 0.]],

        [[0., 0.],
         [0., 0.],
         [0., 0.]]], device='mps:0')
tensor([[[101., 101.],
         [101., 101.],
         [101., 101.]],

        [[101., 101.],
         [101., 101.],
         [101., 101.]]], device='mps:0')
```

Tried on 2.2.2 and nightly

### Versions

Collecting environment information...
PyTorch version: 2.2.2
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.4.1 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.3.9.4)
CMake version: version 3.29.0
Libc version: N/A

Python version: 3.11.8 (main, Apr  4 2024, 20:29:28) [Clang 15.0.0 (clang-1500.3.9.4)] (64-bit runtime)
Python platform: macOS-14.4.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M3 Max

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.2.2
[conda] Could not collect

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen
Repository: rustdesk
Issue: Client:Android -> Host:Windows10 Android's Korean keypad typing issue.
Labels: bug

### Bug Description

First, let me briefly explain the structure of the Korean keyboard as background knowledge. Unlike English typing, Korean typing involves a combination of consonants and vowels to form a single character (each consonant and vowel can also be recognized as an individual character). For example, when typing the keys "ㅇㅏㄴㄴㅕㅇ", the combined output through the key buffer appears as "안녕".

There seems to be a bug related to this part. When trying to type "안녕", only "ㅇㄴ" is entered. This issue has been tested with the Keypad Apps Gboard and Samsung Keyboard (only on Galaxy Phones).

### How to Reproduce

1. Install recent version of Rustdesk on Android and Windows10.
2. Connect Rustdesk from Android to Windows10.
3. Type any Korean character on Notepad.(EX: On Korean language mode, typing "dkssud" -> "안녕")
4. Only "ㅇㄴ" remain.

### Expected Behavior

"안녕" return.

### Operating system(s) on local side and remote side

Android -> Windows10

### RustDesk Version(s) on local side and remote side

1.2.3 -> 1.2.3-1

### Screenshots

![image](https://github.com/rustdesk/rustdesk/assets/7326490/50797a75-42fe-4f6f-a953-1830fd468355)


### Additional Context

_No response_
Repository: vscode
Issue: `vsce-sign` pegging CPU as extension update hangs
Labels: freeze-slow-crash-leak

<!-- ⚠️⚠️ 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. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.88.1
- OS Version: macOS Sonoma 14.4.1 ARM64 (host), Ubuntu 22.04 x86_64 (remote instance)

Steps to Reproduce:

1. Start an Ubuntu 22.04 (x86_64) VM locally on Apple Silicon Mac (I used OrbStack)
2. Launch VSCode on macOS and remotely connect to it via SSH using VSCode
3. Have an extension installed with an available update. Attempt to update the SSH-side extension.
4. Let run for a couple... notice that macOS VM usage is at 100% utilization and that `top` on the guest reveals `vsce-sign` as the culprit.

I noticed that some extensions had updates and that the GUI says "Installing" but don't seem to actually being installed... gets stuck like that too. The number of processes seem to be the same as the number of "Installing" extensions.

```
    472 awlsome+  20   0  260.6g  76300  26240 S  24.3   1.9  14:05.48 vsce-sign      
    478 awlsome+  20   0  260.6g  77112  26368 S  24.3   1.9  14:05.46 vsce-sign      
    493 awlsome+  20   0  260.6g  76612  26240 S  24.3   1.9  14:05.28 vsce-sign      
    473 awlsome+  20   0  260.6g  76400  26240 S  23.9   1.9  14:05.48 vsce-sign      
```
<img width="256" alt="image" src="https://github.com/microsoft/vscode/assets/11639639/317e9257-b8c8-4425-8fb2-0935468e23d3">
Repository: PowerToys
Issue: Add NEabled/Disabled checkbox to the "Remap a key"-feature
Labels: Needs-Triage

### Description of the new feature / enhancement

Would be handy to temporarily disable key mapping.

### Scenario when this would be used?

I really do not use Caps lock ever, so that is mapped as left shift, and hate if I press Insert so it is disabled.

But as a programmer I woulöd need those while testing a app, or customer case whatt not. So instead of deleting the mapping, I would benefit from disabling it, for shot while, and would not have to rebuild the mapping from the scratch.

### Supporting information

_No response_
Repository: PowerToys
Issue: Windows Snap problem within FancyZones
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

I'm using a Logitech mouse with this keyboard-shortcut: "Left Windows-key + Left Arrow". If I press that shortcut without FancyZones enabled it moves the current window to the left via Windows Snap.
If I enable FancyZones and press the shortcut, it will also move that window to the left but it will also recognise the Windows-key as an input and opens the Start Menu of Windows 11.

### ✔️ Expected Behavior

Move the window to the left (or right, or whatever) and don't open the start menu.

### ❌ Actual Behavior

Moved the window to the left (or right, or whatever) and opened the start menu every time.

### Other Software

_No response_
Repository: neovim
Issue: cursorcolumn drastically slows down scrolling
Labels: performance,bug-vim,display,highlight

### Problem

Open a large file with syntax highlighting. It does not need to be super large (I could also reproduce it with 30-40 , but syntax highlighting is a must to reproduce the issue). Scroll through the file using `hjkl` motions, there is significant lag when you keep spamming `hjkl` with 20 repeat/s desktop environment configuration. I tried capturing this with OBS, but with 30 fps, the problem isn't noticable in the recording, and at 60fps, OBS drops a lots of frames for me.

This issue seems to be similar to #8159

### Steps to reproduce

nvim --clean
:e src/bit.c
:lua vim.opt.cursorcolumn = true

### Expected behavior

NeoVim should not lag terribly

### Neovim version (nvim -v)

0.9.5 (also reproducible on 0.6.0 and master (did not check all versions in between))

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

yes, but it's not that visible in vim as it is in neovim. 9.1.0252

### Operating system/version

Arch Linux (all packages up to date)

### Terminal name/version

kitty

### $TERM environment variable

xterm-kitty

### Installation

Arch repository
Repository: flutter
Issue: Able to cancel the gesture event when taking out of range of the current widget
Labels: c: new feature,framework,f: gestures,c: proposal,P3,team-framework,triaged-framework

### Use case

onPanStart <br>
↓<br>
onPanUpdate Event<br>
↓<br>
Widget scroll position out of range or on top of Gesture with Gesture currently enabled on the stack.<br>
↓<br>
onPanUpdate is alive <br>

### Proposal

In this case, it could have gone into onPanCancel, but it did.<br>
I would like to see an option to cancel this enabled or cancelled by default.<br>

https://github.com/flutter/flutter/assets/162076297/dbc4af13-951c-4ecc-8ef2-3000092cabb3


Version Info:<br>
```
Flutter 3.10.6 • channel unknown • unknown source
Framework • revision f468f3366c (9 months ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1
```
Repository: vscode
Issue: minimap markers include `-->` in the end of the display
Labels: bug,editor-minimap

<!-- ⚠️⚠️ 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. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.88.1
- OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

1. Open a new markdown file and copy in
    ```md
    # Title
    <!-- MARK: Label -->
    ```

2. See the preview in the mini map:
![Snipaste_2024-04-15_14-29-34](https://github.com/microsoft/vscode/assets/63314208/b34e6523-f4a9-4580-938c-b32d7ebea345)

3. Expected: only `Label` in the mini map

P.S.: 
I have also reproduced this bug on my mac with 
- VS Code Version: 1.88.1
- OS Version: Darwin arm64 23.4.0

This also happened when I uses single-line comments in other languages:
```cpp
#include <iostream>

int main()
{
    /* MARK: this is a test */
    cout << "test\n";
}
```
![Snipaste_2024-04-15_14-35-28](https://github.com/microsoft/vscode/assets/63314208/97ac9a2f-61ef-4b68-b7f2-dec58af88577)

Expected: only `this is a test` in the mini map