sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Nondeterministic `deno test` output with Deno.exit()
Labels: bug,testing

Running the following minimal reproduction code with `deno test` will not output the `console.error` message most of the time:

```ts
console.error('Error: API_KEY not set.');
Deno.exit(1);
```

This is a problem in real-life scenarios when tests should be aborted if setup conditions are not met.

Running it with `deno run` will output the message correctly:

![image](https://github.com/user-attachments/assets/32e89b24-4693-4e80-8cc6-d64193e8ec27)

I've looked at the documentation for [Deno.exit()](https://docs.deno.com/api/deno/~/Deno.exit) but don't see anything about leaks, and the [test Sanitizers](https://docs.deno.com/runtime/fundamentals/testing/#sanitizers) don't mention `console`.

```
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
```
Repository: PowerToys
Issue: [enhance] Permanent "Find My Mouse"
Labels: Needs-Triage

### Description of the new feature / enhancement

**Presently:**
With Find My Mouse (FMM) enabled and currently active, when you click, it deactivates.

**Proposal:**
FMM's active state persists after LMB or RMB or MMB is pressed.

I have no preference regarding whether this is default behavior, or a toggleable option, but that should be considered.

### Scenario when this would be used?

I believe darkening the irrelevant parts of the screen is more effective for finding the mouse than using some color or animation.

This would be broadly useful for videomakers, lecturers, visualization makers and teachers who are teaching software interfaces with very small, and very colorful, buttons, like, just for example, Blender.

### Additionally
- This behavior should work alongside Mouse Highlighter, which displays the clicks themselves.
- Add transparency support for "Spotlight Color". I don't want to modify the underlying image.

### Supporting information

_No response_
Repository: pytorch
Issue: torch.unravel_index does not check out-of-bounds
Labels: triaged,module: numpy,module: advanced indexing

### 🐛 Describe the bug

I'm unsure if this is intended behaviour or not, but when using torch.unravel_index and entering indices that are out-of-bounds, the returned indices wrap back around to the start of the tensor.

For example, unvravelling indices 0 through 8 for a 2x2 array raises an error in numpy:
`np.unravel_index(np.arange(0,9,1), (2,2))`
`ValueError: index 4 is out of bounds for array with size 4`

but returns two copies of every index in torch:
`torch.unravel_index(torch.arange(0,9,1), (2,2))`
`(tensor([0, 0, 1, 1, 0, 0, 1, 1, 0]), tensor([0, 1, 0, 1, 0, 1, 0, 1, 0]))`

In particular, accessing the 5th element of a 2x2 array would access the [0,0] element.

### Versions

PyTorch version: 2.3.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.6.1 (x86_64)
GCC version: Could not collect
Clang version: 12.0.5 (clang-1205.0.22.9)
CMake version: version 3.24.4
Libc version: N/A

Python version: 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 10:14:12) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-10.16-x86_64-i386-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 M1

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.3.0
[pip3] torchviz==0.0.2
[conda] numpy                     1.26.4          py312h7d6adbd_0  
[conda] numpy-base                1.26.4          py312hbb3573c_0  
[conda] pytorch                   2.3.0           cpu_py312h9d484b6_0  
[conda] torchviz                  0.0.2                    pypi_0    pypi


cc @mruberry @rgommers
Repository: godot
Issue: Visual Profiler displays incorrect CPU times
Labels: topic:core,topic:rendering,topic:editor,needs testing

### Tested versions

4.3

### System information

Windows 10, Vulkan forward +, Nvidia 3070

### Issue description

I've been doing a lot of profiling lately to try to find performance issues and added in Tracy support.  I've noticed the values profiled in the same area are VASTLY different.  I'm getting sub-100 fps, but the render time displayed by the built-in Visual Profiler is only showing around 2ms to render a viewport while Tracy shows ~8ms.

![image](https://github.com/user-attachments/assets/6c725198-b32f-45d9-88ee-507f01aa6677)

![image](https://github.com/user-attachments/assets/1d29d93b-b765-404a-b00b-f2dfe5f52fbd)

I shifted some of the RENDER_TIMESTAMP macros around as they didn't catch all the code in the function, but they still seem to be falling way short.

### Steps to reproduce

Start the visual profiler and note that the time for rendering does not match the time necessary to render the game at the current framerate.  Optionally get the tracy godot addon and add profile points where around things like RENDER_TIMESTAMP("> Render Viewports"); to compare values.

### Minimal reproduction project (MRP)

I don't think it's project specific, but you could use https://github.com/user-attachments/files/17140515/test_light_performance.zip
Repository: flutter
Issue: [BUG] Clipboard Changes Not Detected in Flutter on Linux (Wayland) Unless App is Focused
Labels: a: text input,engine,platform-linux,P2,team-linux,triaged-linux

### Steps to reproduce

1. Run a Flutter app on a Linux system using a `Wayland` session.
2. The app should listen for clipboard changes using a timer using inbuilt clipboard.
3. Copy new content to the clipboard while the Flutter app is running but not focused.
4. The clipboard change is not detected.
5. Switch focus back to the Flutter app window. The clipboard change is now detected and updated.
6. Run the same app on `X11`, and observe that clipboard changes are detected immediately without needing to switch window focus.

### Expected results

Clipboard changes should be detected in real-time on `Wayland`, just like in `X11`, without requiring the app to regain focus.

### Actual results

When a Flutter app that is designed to listen to clipboard in realtime and display it via a text widget is run in `Wayland` in Linux it doesn't listen to the changes in clipboard unless app window is focused, right after content has been copied. The same application would work perfectly in X11.

### Code sample

<details open><summary>Code sample</summary>

```dart
 void _startListening() async {
    Timer.periodic(const Duration(milliseconds: 100), (_) async {
      if (_pauseClipboard) return;
      ClipboardData? data = await Clipboard.getData(Clipboard.kTextPlain);

      final content = data?.text;
      if (content != null && content != _previousClipboardText) {
        _getClipboardText(content);
      }
    });
  }
```
</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

**Behavior:**
- x11

https://github.com/user-attachments/assets/d16f32b1-3b6b-46bb-a95d-cf3023d9e185

- wayland

https://github.com/user-attachments/assets/dee8b306-816e-4f23-8f5f-731937e9dd2a

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Pop!_OS 22.04 LTS 6.9.3-76060903-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (1 available)
[✓] Network resources

! Doctor found issues in 1 category.
```

</details>
Repository: ant-design
Issue: Table组件在同时设置scroll.x为"max-content"和sticky时表头错位
Labels: 🐛 Bug,Inactive

### Reproduction link

[https://codepen.io/vcxldk/pen/xxvbMoR](https://codepen.io/vcxldk/pen/xxvbMoR)

### Steps to reproduce

同时设置scroll.x为"max-content"，sticky为true，左侧两列设置为左侧固定，再只设置一个非固定列的宽度（其他列未设置宽度），且表格无数据时

### What is expected?

表头显示正常，不出现错位

### What is actually happening?

最右的固定列会出现错位（如下图）

![mmexport1727344492323.png](https://github.com/user-attachments/assets/5627b795-0b68-4d34-8879-7b223090c396)



| Environment | Info |
| --- | --- |
| antd | 5.21.1 |
| React | 18 |
| System | windows10 22H2 |
| Browser | Chrome117.0.5938.132 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ui
Issue: Bug :  ERR_MODULE_NOT_FOUND, i had Followed All Instruction during Creating My Vite Project still getting this Issue..
Labels: bug

### Describe the bug

i have followed all the informations which is provided by the shadcn community for creating the vite Project but when i reached to last step and try to run the npx shadcn@latest add button that time i got error like ..
 code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///C:/Users/INP/AppData/Local/npm-cache/_npx/d66c5096c7023bfb/node_modules/zod/lib/index.mjs'..

i dont know what is the issue. and also i had faced this issue many times when i want to create  project with the typescript , i had successfully used it in the my react js project , but when i try to use it for tsx then it is giving me this error.. 

my current Node version: 22
![image](https://github.com/user-attachments/assets/0c7a1e15-c113-45c5-a152-0cbfb2c54e5e)


### Affected component/components

button and every component

### How to reproduce

follow the all creating project setup for vite.

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
MODULE NOT FOUND
```


### System Info

```bash
google chrome , brave
```


### Before submitting

- [ ] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ui
Issue: [feat]: Request to accept avatar component to support StaticImageData as a type in its source
Labels: area: request

### Feature description

Currently the Avatar component supports only string or undefined in its source parameter <Avatar src="url">
Can a feature be added so that it support static images or StaticImageData as a type 

### Affected component/components

Avatar

### Additional Context

Additional details here...

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: PowerToys
Issue: Keyboard-Manager inserts text on wrong shortcut then stops working
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I have a keyboard manager shortcut set to CTRL (Left) + d to write some text.


### ✔️ Expected Behavior

I press CTRL (left) + d to write the preset text 

### ❌ Actual Behavior

The shortcut also fired on SHIFT (left) + d and even d without any additional key. When this behaviour stopped, the keyboard manager stopped working alltogether.

### Other Software

_No response_
Repository: electron
Issue: [Bug]: CrashReporter still uses the default path along with 'crashDumps' path if it's started before app.onReady()
Labels: platform/windows,bug :beetle:,has-repro-comment,31-x-y

### 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 bug report that matches the one I want to file, without success.

### Electron Version

31.3.0

### What operating system(s) are you using?

Windows

### Operating System Version

Windows 10 19045.4894

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

On startup, crash reporter to not create a folder at `%APPDATA%/<app.name>` and instead what's provided via `app.setPath('crashDumps',` function.

### Actual Behavior

As the [documentation ](https://www.electronjs.org/docs/latest/api/crash-reporter#crashreporterstartoptions) suggests:
> This method should be called as early as possible in app startup, preferably before app.on('ready'). If the crash reporter is not initialized at the time a renderer process is created, then that renderer process will not be monitored by the crash reporter.

I do the following:
```
    app.name = APPLICATION_NAME;
    app.setPath('crashDumps', <path>)
    crashReporter.start({uploadToServer: false})

    app.on('ready', () => this.onReady());
```

And at the start up of the application, this creates a folder at `C:\Users\<username>\AppData\Roaming\APPLICATION_NAME` instead of the `path` I've set. The crash dump still ends up on the `path` I've set but I think also on the unexpected folder.


### Testcase Gist URL

_No response_

### Additional Information

If I run the following before starting the crashReporter, then that path is used instead.
```
app.setPath('userData', <another path>);
```
Which is the right thing to do, but I find it still odd for it to use `userData` instead of `crashDumps`.
Repository: opencv
Issue: testLayerUsingCaffeModels fails with the new DNN engine
Labels: bug,category: dnn

### System Information

Platform: any
Reference: https://github.com/opencv/opencv/pull/26056/

### Detailed description

After unregistration of the custom 'Interp' the model uses the standard Resize layer.
According to the graph, the model must produce 2 x 3 x 18 x 16 tensor with Resize layer,
but the result is compared with 2 x 3 x 17 x 15 tensor, just like the custom 'Interp' layer produced,
so we get the test failure. It looks like the test needs to be fixed.


### Steps to reproduce

-

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: opencv
Issue: Implement concat operation fusion with the new DNN engine
Labels: feature,category: dnn

### System Information

Platform: any
Reference: https://github.com/opencv/opencv/pull/26056/

### Detailed description

Temporarily disabled Concat optimization.
 It's not quite compatible with dynamic shapes, so we need to make sure that we correctly predicted shapes of all the concatenated tensors and their offsets inside the result and also properly allocated that concatenated tensor in advance

### Steps to reproduce

-

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: opencv
Issue: Implement fp16 support in the new DNN engine
Labels: feature,category: dnn

### System Information

Platform: any
Reference: https://github.com/opencv/opencv/pull/26056

### Detailed description

-

### Steps to reproduce

-

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: ollama
Issue: Support model allenai/OLMoE-1B-7B-0924
Labels: model request

i want check performance this model(MoE)
Repository: opencv
Issue: Flatten layer process axis atribute incorrectly
Labels: bug,category: dnn

### System Information

Platform: any
Reference: https://github.com/opencv/opencv/pull/26056

### Detailed description

        /*
           [TODO] this is not quite correct,
           in ONNX Flatten valid range is [0, numAxes],
           not [0, numAxes-1] which normalize_axis() produces.
           But if we fix it, flatten_const.onnx from opencv_extra
           is not processed correctly.
           libprotobuf-c reads it correctly,
           but the current version of libprotobuf does not
        */

### Steps to reproduce

-

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: opencv
Issue: Implement non-CPU back-ends support in the new DNN engine
Labels: feature,category: dnn

Reference: https://github.com/opencv/opencv/pull/26056

### Describe the feature and motivation

-

### Additional context

-
Repository: opencv
Issue: Implement getFLOPS for the new DNN engine
Labels: feature,category: dnn

Reference: https://github.com/opencv/opencv/pull/26056

### Describe the feature and motivation

-

### Additional context

-
Repository: opencv
Issue: Implement custom layers support in the new DNN engine
Labels: feature,category: dnn

Reference: https://github.com/opencv/opencv/pull/26056

### Describe the feature and motivation

-

### Additional context

-
Repository: ant-design
Issue: Select mode="tags"，输入比如’22‘后，再次点击输入框，’22‘会被清空。另一种场景是复制粘贴后再次点击输入框，粘贴的内容也会被清空
Labels: 🐛 Bug,Inactive

### Reproduction link

[https://ant-design.antgroup.com/components/select-cn](https://ant-design.antgroup.com/components/select-cn)

### Steps to reproduce

Select mode="tags"，输入比如’22‘后，再次点击输入框，’22‘会被清空。另一种场景是复制粘贴后再次点击输入框，粘贴的内容也会被清空，官方示例即可复现

![image](https://github.com/user-attachments/assets/0c03b2f0-b18a-49b7-a116-3bfd0457c5d4)
![image](https://github.com/user-attachments/assets/7a1d58d5-cad5-4b10-98b1-c227301bc229)




### What is expected?

重现场景中的内容在再次点击输入框的时候不被清空



### What is actually happening?

输入或者复制的内容被清空了




| Environment | Info |
| --- | --- |
| antd | 5.20.1 |
| React | ^18.2.0 |
| System | window |
| Browser | google |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: Visual Shader looks messy after changed display scale factor
Labels: bug,topic:porting,topic:shaders,topic:gui

### Tested versions

4.3.stable.mono.official

### System information

Windows 11

### Issue description

I have done a visual shader with a display with 1080p resolution, 100% scaling as this:
![图片](https://github.com/user-attachments/assets/57df33de-98bb-4529-85ba-2cb33b188303)
But after I switched to another display with 200% scaling, all nodes looks like just enlarged 2x but stay on they orginal position.
It makes nodes look messy and hard to edit.
![Screenshot after changed Display Scaling to 200%](https://github.com/user-attachments/assets/530bde7a-a2e6-4239-bb14-4f423f26c6a3)


### Steps to reproduce

1. Make a Visual Shader in a 1080P, 100% scale display.
2. Close godot project.
3. Set another 2160P, 200% scale display to primary display.
4. Reopen godot project.

### Minimal reproduction project (MRP)

[project.zip](https://github.com/user-attachments/files/17146264/project.zip)
Repository: react
Issue: [Compiler Bug]: setState in useEffect / react compiler and eslint hooks plugin
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)
- [ ] babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- [X] 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://playground.react.dev/#N4Igzg9grgTgxgUxALhAgHgBwjALgAgBMEAzAQygBsCSoA7OXASwjvwFkBPAQU0wApg+TGTBgEhAEql8AXwCU+YAB02+OKzAEA2rjIwA5glwAafONwAVfUdwBdfAF58UcQGU9uBPzpVK81VV8fAB6EPwEMEomOlwAWkImMDIAI0oEOLoMeOis-BgEMkY4jQBbTCZ0mBCCoviyiqqg0PDI3PjE5LSMrPQcmIR8wuKACwgIAGswEIwRii0mADcM4kwwZuk6gDpXBABREhIERn5+RUcAPiVm4KYSfH4RMQlpEi24WALY-ABCR2c9IZjIoVGpgsELNYgbhHqJxFJSO9PghYvIANw3OTNBQYujNDR0LRKcy4TjpMByJwucQABQgfAQMH4gNs6MCagKuFgbAAPIlFiSyZFHMAtEKwLILgAJBCUSgQfAAdRwlEIPJC-IuuNk7Iw2DwRFIFGo+FoDGYrA4PD4ACZBMI4S8ZAprmoCUTdDZjGZIV77FTdh4yF4fH4Ani1GbGCw2FBMIRgwgobYzq7wfg7g8nvDXkiYF8CH8AX6QZiIcZk8ZYc8EW8PvmUbg2WCsWodRHgptGDtxAcjidU5c0+C4wmvJWYc3gjj2cF3QQhGLyZTnLs6QymSzgbjmpzufg+UtBeSRUvIpKZXKFcqYKr1ZrtaoQLIgA

### Repro steps

the eslint plugin react hook complains about calling setState in a useEffect:
more discussion here: https://github.com/facebook/react/issues/15329

I'm happy with the eslint error ;- it is potentially dangerous.

but the eslint-plugin-react-compiler errors if you disable the react hook rule ;- in this particular case this seems over the top.

Will it stop the react compiler compiling this file or its just a eslint extra warning?

In the 2nd example, I've abstracted the setState to another function and I get no errors. This is fine in the context of the eslint plugin but what about react compiler?

I was lead to believe a eslint compiler plugin warning means it will *not* be compiled and bail out, but I guess for warnings because of disabling eslint rules, this is not the case?

In my opinion:
* The react compiler eslint plugin should not error on disabling the react hooks plugin
* if the react compiler thinks something is a problem for the compiler, it should generate its own warning and as in this case it would need to be more thorough than the eslint plugin hooks plugin

### How often does this bug happen?

Every time

### What version of React are you using?

0.0.0-experimental-92aaa43-20240924