sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue:  Lid closure behavior control utility.
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

I propose the addition of a new utility in PowerToys that allows users to directly control the behavior of their laptop when the lid is closed. This enhancement aims to simplify and streamline the process of adjusting "Choose what closing the lid does", setting by providing quick access through this PowerToys utility system tray icon context menu rather than changing it every time using the control panel.


This new utility would provide quick access to "Do Nothing", "Sleep" and "Hibernate" options directly from the system tray for both "on battery" and "plugged in" state.

(Optional) --> Automatic activation of "Do Nothing" mode when an external display is connected, eliminating the need for manual switching and switching back to "Sleep" when disconnected from external display.

**Problem:**

Existing Windows settings lack granular control over what happens when the laptop lid is closed. Users, especially those working with external display, often desire specific power states (do nothing, sleep, hibernate) based on lid closure but face inconvenience navigating Control Panel for frequent adjustments.

**Additional Information:**

Unlike the Awake utility, which focuses on keeping the laptop screen awake, this proposed utility is designed to specifically control the behavior of the laptop when the lid is closed. It provides users with direct access to choose actions such as "Do Nothing," "Sleep," and "Hibernate" from the PowerToys system tray context menu, enhancing overall user control and customization.

### Scenario when this would be used?

- Users connecting external displays may want to set the laptop to "Do Nothing" when the lid is closed to continue using the external monitor.

- Quick adjustment of lid closure settings for various scenarios, such as presentations and meetings, extended desktop setups.

- Avoid the need to navigate through the Control Panel by providing direct access from the system tray.

- A developer working on a project might switch between "Do Nothing" mode for active coding and "Sleep" when taking short breaks, closing the lid but keeping the external monitor active.

### Supporting information

_No response_
Repository: vscode
Issue: [wiki page] Incomplete solution for vscode build error on wiki page
Labels: vscode-build,under-discussion

Hello, Team!

I am facing the same issue that is described in the "https://github.com/microsoft/vscode/wiki/How-to-Contribute" page, the "Missing spectre mitigated libraries on Windows" section, but the solution described there does not work for me. I want to know if I am reporting this in the correct place?
Repository: storybook
Issue: [Bug]: a long list within controls should be truncated
Labels: feature request,help wanted,sev:S4

### Describe the bug

When there is a prop that accepts a list of items and a story that passes a long list to that prop, the Control value should be somehow truncated but instead it shows the full list of items
[
<img width="614" alt="Screenshot 2024-01-27 at 23 52 56" src="https://github.com/storybookjs/storybook/assets/3350658/41b1d000-189f-4602-a076-385ac17a3b85">
](url)

### To Reproduce
Check the Button docs in https://stackblitz.com/edit/github-bowmaj?file=src%2Fstories%2FButton.tsx,src%2Fstories%2FButton.stories.ts&preset=node

### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 8.14.0 - /usr/local/bin/pnpm
  npmPackages:
    @storybook/addon-essentials: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/addon-interactions: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/addon-links: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/addon-onboarding: ^1.0.11 => 1.0.11 
    @storybook/blocks: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/react: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/react-vite: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    @storybook/test: ^8.0.0-alpha.15 => 8.0.0-alpha.15 
    storybook: ^8.0.0-alpha.15 => 8.0.0-alpha.15
```


### Additional context

_No response_
Repository: godot
Issue: CSGPolygon3D following a Path3D receives double the rotation values of the root node when re-loading a scene.
Labels: bug,discussion,topic:editor,topic:3d

### Tested versions

Reproduceable in Godot v4.2.1.stable.mono.official [b09f793f5].

### System information

Godot v4.2.1.stable.mono - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.3203) - Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz (16 Threads)

### Issue description

CSGPolygon3Ds that are assigned to follow a Path3D are not behaving as expected when rotating their root nodes. They behave as expected when initial changes are made to parent node rotations, but when reloading the scene or another scene that contains the CSGPolygon3D's scene, the rotation of the CSGPolygon3D is double that of the root. For example, the CSGPolygon3D in this playfield scene with no rotation is fine
![image](https://github.com/godotengine/godot/assets/44176450/9ab3e1ca-1bc3-4675-aa40-c2fe85920621)
but when I load the playfield scene into my physics test scene, rotate it and then reload the scene, the result is that the CSGPolygon3D is rotated around the playfield's origin double the amount it is supposed to be
![image](https://github.com/godotengine/godot/assets/44176450/93abdc2f-6bc2-43a6-abe6-bf8009f92d41)

This issue occurs both when a scene containing the CSGPolygon3D is loaded in another scene, or if the scene itself is loaded with a rotated root Node3D.


### Steps to reproduce

1. Create a new 3D Scene.
2. Add a Path3D node as a child to the root Node3D.
3. Create a simple path.
4. Add a CSGPolygon3D node as a child to the root Node3D.
5. Change the CSGPolygon3D's mode to Path.
6. Assign the Path3D node that was created in step 2 to the CSGPolygon3D's Path Node property.
7. Rotate the root Node3D some arbitrary amount, such that it is obvious which way the CSGPolygon3D should be moving.
8. Save, close and reload the scene.
9. The CSGPolygon3D will now be rotated double what it should be (i.e. if the Node3D was rotated around the Z-axis by 45 degrees, the CSGPolygon3D will appear to have been rotated 90 degrees around the Z-axis)

### Minimal reproduction project (MRP)

[CSGPolygon3D Bug Report.zip](https://github.com/godotengine/godot/files/14074182/CSGPolygon3D.Bug.Report.zip)

Open the project, load the "node_3d" scene in the project root. Observe that even though the Node3D is only rotated 45 degrees around the Z-axis and no other nodes have any rotation, the CSGPolygon3D is rotated 90 degrees around the Z-axis. Also observe that the CSGPolygon3D no longer follows the Path3D, which is properly rotated at 45 degrees. Set the Node3D's rotation to 0,0,0, save the scene and re-open it to see the CSGPolygon3D is now back in the correct position with no rotation.
Repository: rust
Issue: Multiple bounds checking elision failures
Labels: A-LLVM,I-slow,T-compiler,A-mir-opt,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 foo(buf: &[u8], alloced_size: usize) -> &[u8] {
    if alloced_size.checked_add(1).map(|total| buf.len() < total).unwrap_or(true) {
        return &[];
    }
    let size = buf[0];
    &buf[1..1 + usize::min(alloced_size, usize::from(size))]
}
```

The assembly code has two generated panics here when none can happen.
Repository: godot
Issue: EditorInspectorPlugin recursive Custom Resource editor not working 
Labels: bug,enhancement,topic:editor

### Tested versions

4.2.1.stable

### System information

Linux

### Issue description

Let's admit you have a Resource R, that is edited via a Custom control node thanks to an EditorInspectorPlugin

If that Control node contains an EditorResourcePicker for that same kind of resource or another custom one, it won't show with the custom control node

### Steps to reproduce

- Create an editor inspector plugin and enable it
- add custom control to a resource and a resource editor picker

### Minimal reproduction project (MRP)

[issue.zip](https://github.com/godotengine/godot/files/14074302/issue.zip)
Repository: PowerToys
Issue: [Run] Windows Settings Plugin Does Not Follow Global Sort Order
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage

### Microsoft PowerToys version

0.77.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

When setting the global sort order of the 'Windows Settings' plugin in Powertoys Run to the lowest value out of all enabled plugins, it still shows at the top of search results. Please see the image below:

![image](https://github.com/microsoft/PowerToys/assets/67812826/8dcdf97b-bb08-4a21-be46-e7da179bd1e9)


### ✔️ Expected Behavior

I expect the results from the plugin to be moved down the list, after the plugins that are ranked higher.

### ❌ Actual Behavior

The rank of results does not change for this plugin specifically. The rest seem to work.

### Other Software

_No response_
Repository: next.js
Issue: hydration error in next.js when using the div tag instead of the main tag
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/charming-chihiro-vyhcff?file=%2Fapp%2Fpage.tsx%3A4%2C2

### To Reproduce

**The error that I get**

![image](https://github.com/vercel/next.js/assets/26035708/9c205bcc-af6c-4de1-979d-4972397c63b3)

To reproduce the issue below is the code that caused the error

```
import React from "react";
import Image from "next/image";

type Props = {};

const Testing = (props: Props) => {
  return (
    <div>
      <h1>Testing</h1>
    </div>
  );
};

export default Testing;
```
**Below is the code that runs flawlessly**

```
import React from "react";
import Image from "next/image";

type Props = {};

const Testing = (props: Props) => {
  return (
    <main>
      <h1>Testing</h1>
    </main>
  );
};

export default Testing;

```
### Current vs. Expected behavior

_You can see the only difference is the usage of the div tag instead of the main tag causing the hydration error._

The error can be reproduced only locally while using vs code. Weirdly, I'm unable to reproduce the error on [CodeSandbox](https://codesandbox.io/p/sandbox/github/vercel/next.js/tree/canary/examples/reproduction-template).
While going through the documentation I don't see an explanation related to the usage of semantic tags or anything related. It only mentions incorrect nesting of tags. Maybe I'm missing something?

### Provide environment information

```bash
npm info using npm@9.6.4
npm info using node@v20.1.0
npm info using npm@9.6.4
npm info using node@v20.1.0
npm info ok 
npm info using npm@9.6.4
npm info using node@v20.1.0
npm info ok 

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 21.6.0: Thu Nov  9 00:42:05 PST 2023; root:xnu-8020.240.18.705.10~1/RELEASE_ARM64_T6000
Binaries:
  Node: 20.1.0
  npm: 9.6.4
  Yarn: 4.0.2
  pnpm: 8.8.0
Relevant Packages:
  next: 14.1.1-canary.17 // Latest available version is detected (14.1.1-canary.17).
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A


npm info ok
```


### 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

_No response_
Repository: neovim
Issue: Truncate long inlay hints
Labels: enhancement,lsp

### Problem

https://github.com/microsoft/vscode/issues/199610 explains the problem, but the TLDR is that some language servers (like the TypeScript one) don't perform any truncation on inlay hints, which might result on several lines of virtual text.

### Expected behavior

My proposal is to add a configuration setting (and hence easily customizable with `vim.lsp.with`) that limits the length of inlay hints.
Repository: PowerToys
Issue: I hope to hide "Mouse Highlighter" and "Mouse Pointer Cross" when taking screenshots
Labels: Issue-Bug,Help Wanted,Cost-Small,Product-Mouse Utilities

### Microsoft PowerToys version

0.77.0

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Utilities  and  TextExtractor

### Steps to reproduce

Enable "Mouse Highlighter" or "Mouse Pointer Cross" in "Mouse Utility" in PowerToys, then press Win+Shift+S to take a screenshot, or press Win+shift+T to recognize the text on the screen (PowerToys Text Extractor).



### ✔️ Expected Behavior

I hope to hide "Mouse Highlighter" and "Mouse Pointer Cross" when taking screenshots. Thanks.

### ❌ Actual Behavior

When PowerToys enables "Mouse Highlighter" or "Mouse Pointer Cross" in "Mouse Utilities", when you press Win+Shift+S to take a screenshot, or when you use PowerToys' text extractor (Win+Shift+T), the captured image still has traces of "Mouse Highlighter" or "Mouse Pointer Cross".

https://github.com/microsoft/PowerToys/assets/99455215/8ced9679-412c-48f6-bab8-8bd20d8d39d1

### Other Software

Windows Snipping Tool  11.2303.17.0
Repository: pytorch
Issue: RFC: Enable disallow_untyped_defs by default
Labels: module: typing,triaged,module: python frontend

### 🐛 Describe the bug

Mypy's configuration `disallow_untyped_defs` makes it illegal to define functions without annotating the arguments / return types of the function. It is still possible to make use of Any when a function cannot be expressed using Mypy's type system (making the function equivalent to what it would have been without annotation), but you must explicitly say `a: Any` rather than have it be implicitly applied.

The concrete implementation proposal is that we globally set `disallow_untyped_defs = True` in mypy.ini, and then grandfather all existing Python files that have untyped defs to explicitly disable this configuration for the module in mypy.ini (this will result in a very long mypy.ini). Newly created Python files will default to the more restrictive rules automatically, while old Python files can be incrementally typed and then their grandfather exception removed.

I reviewed all of mypy's other configuration options, and the only other option that could potentially need a flag day like this is `strict_equality` (but I also think it may be possible to just turn this on and then `# type: ignore` all the violation sites). I was also looking for a config rule that allowed requiring types on class members, but this appears to not exist c.f. https://github.com/python/mypy/issues/8670

### Versions

main

cc @malfet @xuzhao9 @gramster @albanD
Repository: vscode
Issue: Merge Editor creates empty file instead of deleting file when accepting Incoming delete (Only Incoming, no Current)
Labels: bug,merge-editor

<!-- ⚠️⚠️ 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.85.1 (I highly doubt this is fixed in 1.85.2)
- OS Version: macOS 14.2.1 (23C71)

Steps to Reproduce:

1. In a project with a Git repo, delete a file.
2. Stash your changes.
3. Modify the file you just deleted (but restored upon stashing.)
4. Commit the modification.
5. Pop your stash.
6. Open the file from the File Explorer pane.
7. Click on "Resolve in Merge Editor" button.
8. Reject Current (modification) and Accept Incoming (deleted file).
9. Click on Complete Merge.
10. Notice that the staged change is NOT "The file is deleted." but rather "The file is modified and made empty (Zero bytes)."

I think you can also reproduce this by merging two branches where one modifies the file and the other deletes it.

Suggested resolution: If the accepted change is "The file is deleted" and we're rejecting the modification change, then the "Complete Merge" button should also delete the file (if otherwise the file becomes a zero byte file).
Repository: godot
Issue: Bad ShapeCast / RayCast `enabled` property documentation
Labels: discussion,documentation,topic:physics

### Tested versions

Applies to `ShapeCast*` and `RayCast*` docs, present on **all** versions.
https://docs.godotengine.org/en/latest/classes/class_shapecast3d.html

### System information

N/A (Documentation)

### Issue description

The enabled property of ShapeCast* / RayCast* is wrong:
> If true, collisions will be reported.

This is not true, as using `force_shapecast_update` does not require `enabled` to be set to true.
It should also include that having it enabled results in automatically recomputed data with each _physics_process tick, similar to https://docs.godotengine.org/en/latest/classes/class_shapecast3d.html#class-shapecast3d-method-force-shapecast-update.

### Steps to reproduce

N/A (Documentation)

### Minimal reproduction project (MRP)

N/A (Documentation)
Repository: flutter
Issue: Documentation for LicenseRegistry has a couple of issues
Labels: framework,d: api docs,P2,team-framework,triaged-framework

### Steps to reproduce

1. Read the docs.
2. Read the code, try things out.

The issues:
- https://github.com/flutter/flutter/blob/3.16.9/packages/flutter/lib/src/foundation/licenses.dart#L267 - the file is not called LICENSE, it is called NOTICES, and for some platforms (e.g. mobile) it is called NOTICES.Z (gzip-compressed).
- https://github.com/flutter/flutter/blob/3.16.9/packages/flutter/lib/src/foundation/licenses.dart#L270-L271 - it says 'packages names (...) separated from the next by a blank line'  - packages names are not separated from each other by a blank line, I think the docs should say 'package names (...) separated from the **text** by a blank line'.

### Expected results

They match and are easy to understand.

### Actual results

They don't match.
Repository: PowerToys
Issue: Fancy zone scrolling stutter
Labels: Issue-Bug,Product-FancyZones,Needs-Triage

### Microsoft PowerToys version

0.77.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce


https://github.com/microsoft/PowerToys/assets/116828602/0c008482-17bc-48c9-9f9a-9d6b06ceb2b2



### ✔️ Expected Behavior

smooth scrolling

### ❌ Actual Behavior

scrolling is not smooth. it stutters.... 

### Other Software

_No response_
Repository: flutter
Issue: App license is not sorted at the top in licenses shown in LicensePage
Labels: c: new feature,framework,f: material design,d: api docs,c: proposal,P2,team-design,triaged-design

The `LicensePage` seems to have special handling for the app license, see https://github.com/flutter/flutter/blob/3.16.9/packages/flutter/lib/src/material/about.dart#L704-L706 and https://github.com/flutter/flutter/blob/3.16.9/packages/flutter/lib/src/material/about.dart#L731-L749. It assumes the first license that it gets from `LicenceRegistry.licenses` is the application package, but this is not the case. The licenses in the asset NOTICES.Z are already sorted in a way, and the application package is not the first one. What this means that there is no way to make the app license to appear on top; if it is named so that it is sorted first, it will still be sorted second (unless the package really sorts as the very first one, which is unlikely as it would require it to have a name starting with `_`).

This behavior (showing the app package as first) is actually never advertised here: https://api.flutter.dev/flutter/material/LicensePage-class.html, this behavior is only mentioned in code. So maybe just removing the code (because it is confusing for readers, as it just doesn't work as its comments say) is the fix?
Repository: deno
Issue: Temporal.Now.timeZoneId is not a function
Labels: web,upstream,temporal

Version: Deno 1.40.2

## Problem
`Temporal.Now.timeZoneId();` is not a function.  Spec: https://tc39.es/proposal-temporal/docs/now.html#timeZoneId

_Example Code_
```js
id = Temporal.Now.timeZoneId();
now = Temporal.Now.instant();
tz = Temporal.TimeZone.from(id);
nextTransition = tz.getNextTransition(now);
before = tz.getOffsetStringFor(nextTransition.subtract({ nanoseconds: 1 }));
after = tz.getOffsetStringFor(nextTransition.add({ nanoseconds: 1 }));
console.log(
  `At ${nextTransition.toZonedDateTimeISO(
    id
  )} the offset will change from UTC ${before} to ${after}`
);
```

Error
```
error: Uncaught (in promise) TypeError: Temporal.Now.timeZoneId is not a function
id = Temporal.Now.timeZoneId();
                  ^
    at file:///C:/Users/Nogr/Personal%20Projects/Web/temporal-api/3_timeZoneId.js:1:19
````