sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Screen ruler no mouse cursor
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

Screen ruler

### Steps to reproduce

activate tool. select bounds and move to area press and hold moving to define area. works. press the other 3 options and move off of tool and no mouse cursor to move to area to be measured. 

### ✔️ Expected Behavior

mouse cursor to allow visual location to point to be measured.

### ❌ Actual Behavior

mouse cursor disappears when off of tool UI. moving mouse back over tool makes cursor appear.

### Other Software

_No response_
Repository: godot
Issue: Android editor: Game crash after changing device language
Labels: bug,platform:android,topic:editor,crash,regression

### Tested versions

Godot Engine v4.3.stable.official [77dcf97d8]

### System information

Xiaomi Redmi A2+, Android 13, compatible rendering

### Issue description

After changing device language, opening the game will hang for a few seconds then exit.
This issue occur the same way on Android emulator x86

### Steps to reproduce

1. Open the game
2. Leave the game run in background and go to device system settings
3. Change device display language
4. Re-enter the game (the game will hang for a few seconds then exit)

### Minimal reproduction project (MRP)

[demo.zip](https://github.com/user-attachments/files/16936623/demo.zip)
Repository: flutter
Issue: Garbage collector test for `menu_anchor` sometimes flakes
Labels: P2,c: flake,team-design,triaged-design

https://github.com/flutter/flutter/pull/154843 flakes while running `Mac framework_tests_impeller`, even though its not possible that any of the code in this PR affected this test suite.

The [specific failure](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737244374199615553/+/u/run_test.dart_for_framework_tests_shard_and_subshard_impeller/stdout) is as follows:

```txt
06:10 +7937 ~21: /Volumes/Work/s/w/ir/x/w/flutter/packages/flutter/test/material/menu_anchor_test.dart: Garbage collector destroys child _MenuAnchorState after parent is closed
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: null
  Actual: _SubmenuButtonState:<_SubmenuButtonState#31f73(lifecycle state: defunct, not mounted)>

When the exception was thrown, this was the stack:
#4      main.<anonymous closure> (file:///Volumes/Work/s/w/ir/x/w/flutter/packages/flutter/test/material/menu_anchor_test.dart:4508:7)
<asynchronous suspension>
#5      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:189:15)
<asynchronous suspension>
#6      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)

This was caught by the test expectation on the following line:
  file:///Volumes/Work/s/w/ir/x/w/flutter/packages/flutter/test/material/menu_anchor_test.dart line 4508
The test description was:
  Garbage collector destroys child _MenuAnchorState after parent is closed
```

This test was somewhat recently added in https://github.com/flutter/flutter/pull/149586.

The following diff is somewhat suspicious:
```diff
+ // Garbage collect. 1 should be enough, but 3 prevents flaky tests.
+ await tester.runAsync<void>(() async {
+   await forceGC(fullGcCycles: 3);
+ });
```

I suspect if we don't know why a single `forceGC` doesn't work, we can't guarantee `3` will work either.
Repository: tensorflow
Issue: How to pack TFRT into wheel? And use it in saved_model_cli.
Labels: stat:awaiting tensorflower,type:build/install,subtype:bazel,2.17

### Issue type

Support

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.16.1

### Current behavior?

I have been compiled whole TF successfully by commands. And there is a tfrt directory in ./bazel-bin/tensorflow/core.
But after I run build_pip_package, the tfrt package didn't show up at /tensorflow/core/ in wheel.

I want to use TFRT in serving and somewhere else.

### Standalone code to reproduce the issue

```shell
bazel build --config=release_cpu_linux --config=tf_public_cache --build_event_json_file=/tf/pkg/bep.json tensorflow/tools/pip_package:build_pip_package

./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tf/pkg --cpu
```


### Relevant log output

_No response_
Repository: deno
Issue: Memory leak with ky library
Labels: needs investigation,node compat

Tested with 2 versions :

```
deno 2.0.0-rc.1 (release candidate, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
--- 
deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
```

I am using `ky` library to request an URL with a bad status. (ky by default throws on http error)

In the first test, it throws the HTTP error as I expected.
But when I want to handle the error myself, the test report a memory leak. (same url, same ky function call)
Is this issue related to deno, or ky ?

Here is a minimal reproduction code :

```ts
import ky from "https://esm.sh/ky@1.7.2";

Deno.test("throws HTTPError : no memory leak", async () => {
  // this test throws the expected error and does not leak memory
  // HTTPError: Request failed with status code 404 Not Found: GET https://github.com/not_found

  await ky.get("https://github.com/not_found").text();
});

Deno.test("memory leak when catching error", async () => {
  // this test report a memory leak when catching the error
  // the memory leak is fixed if we rethrow the error

  // Leaks detected:
  // - A fetch response body was created during the test, but not consumed during the test. Consume or close the response body `ReadableStream`, e.g `await resp.text()` or `await resp.body.cancel()`.

  try {
    await ky.get("https://github.com/not_found").text();
  } catch (error) {
    console.error("I handle the error here");

    // fix the leak : rethrow the error
    // throw error;
  }
});
```
Repository: svelte
Issue: "Unexpected token" parse error
Labels: blocked by upstream

### Describe the bug

Svelte 5 fails to parse code that Svelte 4 handled:

```
  $: jobDetails = <Partial<Record<JobName, JobDetails>>>{
    [JobName.ThumbnailGeneration]: {
      icon: mdiFileJpgBox,
      title: $getJobName(JobName.ThumbnailGeneration),
      subtitle: $t('admin.thumbnail_generation_job_description'),
    },
    [JobName.MetadataExtraction]: {
      icon: mdiTable,
      title: $getJobName(JobName.MetadataExtraction),
      subtitle: $t('admin.metadata_extraction_job_description'),
    },
    [JobName.Library]: {
      icon: mdiLibraryShelves,
      title: $getJobName(JobName.Library),
      subtitle: $t('admin.library_tasks_description'),
      allText: $t('all').toUpperCase(),
      missingText: $t('refresh').toUpperCase(),
    },
    [JobName.Sidecar]: {
      title: $getJobName(JobName.Sidecar),
      icon: mdiFileXmlBox,
      subtitle: $t('admin.sidecar_job_description'),
      allText: $t('sync').toUpperCase(),
      missingText: $t('discover').toUpperCase(),
      disabled: !$featureFlags.sidecar,
    },
    [JobName.SmartSearch]: {
      icon: mdiImageSearch,
      title: $getJobName(JobName.SmartSearch),
      subtitle: $t('admin.smart_search_job_description'),
      disabled: !$featureFlags.smartSearch,
    },
    [JobName.DuplicateDetection]: {
      icon: mdiContentDuplicate,
      title: $getJobName(JobName.DuplicateDetection),
      subtitle: $t('admin.duplicate_detection_job_description'),
      disabled: !$featureFlags.duplicateDetection,
    },
    [JobName.FaceDetection]: {
      icon: mdiFaceRecognition,
      title: $getJobName(JobName.FaceDetection),
      subtitle: $t('admin.face_detection_description'),
      handleCommand: handleConfirmCommand,
      disabled: !$featureFlags.facialRecognition,
    },
    [JobName.FacialRecognition]: {
      icon: mdiTagFaces,
      title: $getJobName(JobName.FacialRecognition),
      subtitle: $t('admin.facial_recognition_job_description'),
      handleCommand: handleConfirmCommand,
      disabled: !$featureFlags.facialRecognition,
    },
    [JobName.VideoConversion]: {
      icon: mdiVideo,
      title: $getJobName(JobName.VideoConversion),
      subtitle: $t('admin.video_conversion_job_description'),
    },
    [JobName.StorageTemplateMigration]: {
      icon: mdiFolderMove,
      title: $getJobName(JobName.StorageTemplateMigration),
      allowForceCommand: false,
      description: StorageMigrationDescription,
    },
    [JobName.Migration]: {
      icon: mdiFolderMove,
      title: $getJobName(JobName.Migration),
      subtitle: $t('admin.migration_job_description'),
      allowForceCommand: false,
    },
  };
```

### Reproduction

https://github.com/immich-app/immich/blob/8cf33690b8ddd8e36bdf5d968c3d5700bfcc2949/web/src/lib/components/admin-page/jobs/jobs-panel.svelte#L60

### Logs

_No response_

### System Info

```shell
5.0.0-next.244
```


### Severity

annoyance
Repository: pytorch
Issue: Out of range value in target tensor succeed silently for CrossEntropyLoss in torch.compile
Labels: triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

When the target tensor contains out of range value (e.g. -1) which is also not equal to the ignore_index (which by default is -100):
- it causes CUDA error in eager mode
- it succeed silently in torch.compile

Repro: https://gist.github.com/shunting314/e85116335f3abc4b055fdb5d8a8a6596

### Error logs

_No response_

### Minified repro

_No response_

### Versions

.

cc @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire
Repository: vscode
Issue: Inline chat scrolls out of view when making a response at the top of a file
Labels: bug,inline-chat

1. Place your cursor at the top of a file / "select all"
2. Make a query that returns a response, e.g. buttons (as seen in https://github.com/microsoft/vscode/issues/228038)
3. Inline chat scrolls outside the editor:

![image](https://github.com/user-attachments/assets/e3563b9c-3446-484a-9e4c-d9d0aac878f6)
Repository: svelte
Issue: Component not defined
Labels: awaiting submitter

### Describe the bug

I was trying to use ts in my components with svelte 5 but it doesn't work and is says Button (my component) is not defined. When I stripped my project of ts, it was working. 

### Reproduction

https://replit.com/@arashmahipal/Svelte-Bug?v=1

Code for page.svelte (doesn't show when I open the link) 
<script>
  import Dashboard from "$lib/Dashboard.svelte";
</script>

<Dashboard content={"Hello"} />


### Logs

_No response_

### System Info

```shell
System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1
    Memory: 145.47 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v20.16.0/bin/npm
  Browsers:
    Safari: 17.2.1
  npmPackages:
    svelte: ^5.0.0-next.1 => 5.0.0-next.244
```


### Severity

blocking an upgrade
Repository: PowerToys
Issue: Workspaces does not detect NVIDIA Broadcast 
Labels: Issue-Bug,Needs-Triage,Product-Workspaces

### Microsoft PowerToys version

0.84.1

### Installation method

PowerToys auto-update, WinGet

### Running as admin

Yes

### Area(s) with issue?

Workspaces

### Steps to reproduce

1. Open Workspace Editor
2. "Create Workspace"
3. Have NVIDIA Broadcast open
4. Hit "Capture"

### ✔️ Expected Behavior

See NVIDIA Broadcast on the Workspace Screen 1 list

### ❌ Actual Behavior

App not found in the list

### Other Software

NVIDIA Broadcast v1.4.0.29
Repository: godot
Issue: [3.6] Setting OBJ to use .material file only works after manually re-importing.
Labels: bug,topic:core,regression

### Tested versions

- Reproducible in: 3.6
- Not reproducible in: 3.5.3

### System information

Linux Mint 22

### Issue description

For some reason starting from Godot 3.6, when an .obj file is imported as a scene, even if in the import options it is specified that there should be a separate .material file, the first time it is imported the .scn that is generated has the material built-in, and it does not reference the .material file *even though it exists*. Only after the .obj file is manually re-imported (or the `.import` folder is manually deleted), does the generated .scn file reference the .material file.

This behaviour is affecting the output of `ResourceLoader.get_dependencies`, which is how I found this issue.

Any help in figuring out what changed between 3.5.3 and 3.6 would be greatly appreciated!

### Steps to reproduce

1. Open the project. The .obj file should be imported as a mesh.
2. Switch the .obj file from being imported as a mesh, to being imported as a scene.
3. Restart the editor as prompted.
4. Once the editor is back, run the scene. The output shows an empty array `[]`, when it should be `[res://red_mat.material]`.
5. Manually re-import the .obj file, and run the scene again. Now the output is `[res://red_mat.material]`, as expected.

### Minimal reproduction project (MRP)

[DependencyBug.zip](https://github.com/user-attachments/files/16938275/DependencyBug.zip)
Repository: vscode
Issue: VS Code Installer Will Not Run as Administrator (System-Wide Install\All User Install) on Windows 11 24H2
Labels: bug,install-update,windows

<!-- ⚠️⚠️ 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?: Not Applicable (NA)

<!-- 🪓 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.93, 192.2, 192.1, and earlier
- OS Version: Windows 11 24H2

Steps to Reproduce:

1. Download VS Code 1.93, 192.2, 192.1, or earlier version installer
2. Right-Click > Run as Administrator
3. The installer will not  Run as Administrator and generates a notification to the user to go to VS Code download page to download the "System Installer version of VS Code"

![image](https://github.com/user-attachments/assets/4ffc915b-366e-4efb-bdb5-4e63a0ec45e2)

W̵̶̵h̵̶̵e̵̶̵r̵̶̵e̵̶̵ ̵̶̵i̵̶̵s̵̶̵ ̵̶̵t̵̶̵h̵̶̵e̵̶̵ ̵̶̵S̵̶̵y̵̶̵s̵̶̵t̵̶̵e̵̶̵m̵̶̵-̵̶̵W̵̶̵i̵̶̵d̵̶̵e̵̶̵ ̵̶̵(̵̶̵A̵̶̵l̵̶̵l̵̶̵ ̵̶̵U̵̶̵s̵̶̵e̵̶̵r̵̶̵s̵̶̵)̵̶̵ ̵̶̵i̵̶̵n̵̶̵s̵̶̵t̵̶̵a̵̶̵l̵̶̵l̵̶̵e̵̶̵r̵̶̵ ̵̶̵v̵̶̵e̵̶̵r̵̶̵s̵̶̵i̵̶̵o̵̶̵n̵̶̵ ̵̶̵o̵̶̵f̵̶̵ ̵̶̵V̵̶̵S̵̶̵ ̵̶̵C̵̶̵o̵̶̵d̵̶̵e̵̶̵?̵̶̵ (SOLVED)
Where is the .msi installer for VS Code for enterprise deployments?
Repository: vscode
Issue: Cannot debug my extension, reaches breakpoint but hangs there.
Labels: bug,debug

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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. -->

- Version: 1.93.0 (user setup)
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

I'm developing an extension, I've noticed lately that when I set a breakpoint, it reaches the breakpoint but the js-debugger crashes.

I'm getting this message in the window output :
**[warning] UNRESPONSIVE extension host: 'ms-vscode.js-debug' took 100% of 5017.177ms, saved PROFILE here: 'file:///c%3A/Users/felix/AppData/Local/Temp/exthost-b274d0.cpuprofile'**

Here's the profile zipped:
[exthost-b274d0.zip](https://github.com/user-attachments/files/16938495/exthost-b274d0.zip)


Here's a screenshot:
![image](https://github.com/user-attachments/assets/ec87e731-7b61-4318-bc4b-d5ec42e92a57)
Repository: transformers
Issue: A Trainer subclass for Decoder-Only LM with generation in evaluate()
Labels: trainer,Feature request

### Feature request

The main feature request involves a New Trainer Subclass, similar to Seq2SeqTrainer, but suitable for Decoder-Only LM.

### Motivation

`Seq2SeqTrainer` provides a great abstraction for Encoder-Decoder LM, when we need to conduct generation during `evaluate()`

But the current implementation of both `Trainer` and `Seq2SeqTrainer` seems to be not suitable for Decoder-Only LM due to the difference of `input_ids` and `labels` between teacher-forcing training and generation-involved evaluation.

For example in instruction tuning:
- During training (teacher-forcing)
```python
input_ids = 'Translation the following texts: {Text in Chinese...} {Text in English...}'
labels = 'Translation the following texts: {Text in Chinese...} {Text in English...}'
```
- During evaluation
```python
input_ids = 'Translation the following texts: {Text in Chinese...}'
labels = '{Text in English...}'
```

So we need to prepare two kinds of inputs_ids during evaluation for calculation of both `loss` and `bleu_metrics`. It leads to different columns in eval_dataset. However, `Trainer._remove_unused_columns()` will remove columns for both `eval_dataset` and `train_dataset` not accepted by `model.forward()`. During training, this behaviour is expected (we only need the teacher-forcing inputs). But it will make evaluation difficult.

This feature is nearly identical across all CausalLM models when performing generation during evaluation, making it highly reusable. Given the increasing number of Decoder-only LMs (CausalLMs) in the community, I strongly recommend implementing a dedicated CausalTrainer to simplify deployments.

I may have missed something. If there is already a simpler way to customize such a Trainer, please let me know.

### Your contribution

I'm willing to help submit a PR. But I'm not familiar with some integrations such as fsdp and deepspeed. I may need someone to help me finish this feature.
Repository: flutter
Issue: Give `AppBar` a `Scaffold` dependency
Labels: f: material design,c: performance,P3,c: tech-debt,team-design,triaged-design

Giving AppBar a `const` constructor might be a nice performance boost, especially in those spots where suddenly the entire Scaffold and its body can be `const`!

The current setup is sort of wonky—rather than directly having a dependency on the parent Scaffold, both [`didChangeDependencies`](https://github.com/flutter/flutter/blob/f49f2f5ca9fa3ed06b38a0f7d9da4e1c8638be48/packages/flutter/lib/src/material/app_bar.dart#L774-L785) and [`build`](https://github.com/flutter/flutter/blob/f49f2f5ca9fa3ed06b38a0f7d9da4e1c8638be48/packages/flutter/lib/src/material/app_bar.dart#L842) use `Scaffold.maybeOf(context)`, which calls `findAncestorStateOfType()` to obtain the ScaffoldState.

We already have an inherited widget for Scaffold data (it's a private [`_ScaffoldScope`](https://github.com/flutter/flutter/blob/f49f2f5ca9fa3ed06b38a0f7d9da4e1c8638be48/packages/flutter/lib/src/material/scaffold.dart#L3325) class).

A straightforward non-breaking change could be to store the ScaffoldState in the inherited widget, similar to what [`_ParentInkResponseProvider`](https://github.com/flutter/flutter/blob/ee89e9a56057969a1f78b8355973c576f196d381/packages/flutter/lib/src/material/ink_well.dart#L201-L215) does, and then `Scaffold.maybeOf` could be tweaked to optionally create a dependency, similar to [`Focus.maybeOf`](https://github.com/flutter/flutter/blob/ee89e9a56057969a1f78b8355973c576f196d381/packages/flutter/lib/src/widgets/focus_scope.dart#L446-L461):

```dart
class Scaffold {
  static ScaffoldState? maybeOf(BuildContext context, {bool createDependency = false}) {
    if (createDependency) {
      return context.dependOnInheritedWidgetOfExactType<_ScaffoldScope>()?.state;
    }
    return context.findAncestorStateOfType<ScaffoldState>();
  }
}
```
Repository: PowerToys
Issue: Merge PDFs tool
Labels: Needs-Triage

### Description of the new feature / enhancement

It would allow you to merge PDFs—honestly, just that. But being able to set the order and what pages to pick and choose would also be practical.

### Scenario when this would be used?

Anytime you need to merge multiple PDFs.

### Supporting information

Macbooks can do it. Insofar as PowerToys is a tool to make power users' lives more efficient and to facilitate productivity, this feature would do that.
Repository: PowerToys
Issue: Environment variables of dust path is missing when alacritty is started via Powertoys Run
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Alacritty will miss the environment variable of dust path when launched by Powertoys Run, whereas windows terminal does not have this issue.
If I launch Alacritty directly, Alacritty can use dust normally.
I'm not sure if it's a issue with alacritty or with Powertoys Run.

### ✔️ Expected Behavior

![alacritty_DAU8ZlurLM](https://github.com/user-attachments/assets/2fad3ca9-f3d6-4aa4-a8f0-6b85cd0d4f79)


### ❌ Actual Behavior

![alacritty_1Ubhp2gjjL](https://github.com/user-attachments/assets/ccf42415-e46a-45ce-94d3-bccb403c747b)


### Other Software

Alacritty 0.13.2 (installed via winget)
dust 1.0.0 (installed via winget)