sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: excalidraw
Issue: Lock position of elements
Labels: enhancement

I often use Excalidraw with a digital pen, and I’ve noticed that accidentally moving elements is a recurring issue. Whenever I touch elements on the interface with the pen, they tend to move unintentionally.

To address this, I suggest implementing a "Lock Position" option that prevents elements from being accidentally moved while still allowing other interactions.

This option could be added to the context menu (right-click menu), alongside the existing "Lock" feature. Unlike the current "Lock" option—which completely disables interaction with the element—this new feature would allow users to:

- Edit text blocks without risk of moving the element.
- Add text to elements or other elements in a natural workflow.
- Resize small elements intuitively without unintentional displacement.

![Image](https://github.com/user-attachments/assets/4540a0bd-3217-4c01-b5d0-585afdb653ee)
Repository: PowerToys
Issue: Mouse Without Borders copy folder
Labels: Idea-Enhancement,Needs-Triage,Product-Mouse Without Borders

### Description of the new feature / enhancement

It tells me that I can't just copy a folder, I need to package it into a zip file first and then copy it, so why doesn't powertoys do this directly? I think it's possible to add an additional option to automatically perform the package-send-unzip to a specified directory function.

In addition, I think there should be no 100M file copy size limit, which can be determined by the user. 100M transmission on the Internet is indeed not small, but in a Gigabit LAN it takes less than 1 second, so larger files are acceptable.

### Scenario when this would be used?

This function can improve the efficiency of file transfer and avoid manual packaging/decompression operations.

Considering the popularity of Gigabit LAN devices nowadays, I think it is okay to unlock the file size limit.

### Supporting information

_No response_
Repository: electron
Issue: `BaseWindow.fromWebContents()`
Labels: enhancement :sparkles:

### 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 feature request that matches the one I want to file, without success.

### Problem Description

While it is possible to determine the `BrowserWindow` from a `WebContents` instance using `BrowserWindow.fromWebContents()`, there is not a similar method for `BaseWindow`.

### Proposed Solution

New static method: `BaseWindow.fromWebContents()`

### Alternatives Considered

```TS
export function baseWindowFromWebContents(
  wc: Electron.WebContents
): Electron.BaseWindow | null {
  const allWindows = BaseWindow.getAllWindows()
  for (const win of allWindows) {
    if (
      win.contentView.children.some(
        // This should probably handle nested views
        (child) => child instanceof WebContentsView && child.webContents === wc
      )
    ) {
      return win
    }
  }
  return null
}
```

### Additional Information

Assuming that `BrowserWindow` is a subclass of `BaseWindow`, this method should also work for `BrowserWindow.webContents` instances.
Repository: vscode
Issue: Code-Snippet file has no icon
Labels: feature-request,snippets

<!-- ⚠️⚠️ 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.95.3
- OS Version: Windows 11

The new snippet language added in #189176 doesn't have a default icon

Steps to Reproduce:

1. Create `snippets.code-snippets` file
2. no json icon ❌

it should match the same icon as `json`/`jsonc`/`jsonl`

![Image](https://github.com/user-attachments/assets/21cc7be0-d3e4-43ee-a609-a514795f185c)
Repository: vscode
Issue: PowerShell integrated terminal is launched in the system directory when cwd contains square brackets
Labels: bug,confirmed,terminal-shell-pwsh

<!-- ⚠️⚠️ 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.95.3
- OS Version: Windows 10 22H2

Steps to Reproduce:

1. Create a directory `D:\New[folder]`.
2. Open the directory with VSCode.
3. Create a new terminal.
4. The terminal output displays `PS C:\Windows\System32\WindowsPowerShell\v1.0>` instead of `PS D:\New[folder]>`.

I know this was already reported in #70432 and is kinda an external issue, but I believe it can be worked around in VSCode itself. As I can see the PowerShell terminal is created by running the following command ([source](https://github.com/microsoft/vscode/blob/df74071da5ba92662305adf50ed926370f150d7b/src/vs/platform/terminal/node/terminalEnvironment.ts#L340)):
`C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe '-noexit' '-command' 'try { . "<path-to-the-vscode>\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1" } catch {}'`
In order to guarantee the expected current directory `Set-Location -LiteralPath '<cwd>'` can be called. Note that each single quote in `<cwd>` must be escaped with two single quotes (`'` -> `''`). Also `'<cwd>'` should be used instead of `"<cwd>"` to avoid escaping of the other special characters used in PowerShell strings.
Repository: pytorch
Issue: Should coordinator_rank in class _DistWrapper be the global_rank instead of local rank in its process group?
Labels: oncall: distributed,triaged,oncall: distributed checkpointing

### 🐛 Describe the bug

For the class `_DistWrapper` in dcp, its `coordinator_rank` has been set to local rank of its process group:
https://github.com/pytorch/pytorch/blob/c2fa544472f5fdc9825901e63a40d5ed840ca61e/torch/distributed/checkpoint/utils.py#L71

However, in its method of `gather_object()`, the `coordinator_rank` has been used as `destination` of `dist.gather_object`, which should be the global_rank instead of local_rank:

```
def gather_object(self, object: T) -> Optional[List[T]]:
        """Implement functionality similar to c10d::gather_object but without distributed enabled."""
        if self.use_dist:
            gather_objs = (
                cast(List[T], [None] * dist.get_world_size(self.group))
                if self.is_coordinator
                else None
            )

            dist.gather_object(
                obj=object,
                object_gather_list=gather_objs if self.is_coordinator else None,
                dst=self.coordinator_rank,
                group=self.group,
            )
            result = gather_objs
        else:
            result = [object]
        return result
```


### Versions

2.5.1

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @LucasLLC @pradeepfn
Repository: transformers
Issue: Make it possible to save and evaluate checkpoint on CTRL+C / `KeyboardInterrupt` with Hugging Face Trainer
Labels: Feature request

### Feature request

I would like to request that one or more optional flags be added to the Hugging Face Trainer, perhaps named `save_on_exit`/`save_on_interrupt` and `eval_on_exit`/`eval_on_interrupt`, to ensure that a checkpoint is always saved upon CTRL+C or perhaps even a kill command sent via `wandb`.

### Motivation

Extremely often I will be training a model but then need to utilise the GPU on which I am conducting the training and so I need to pause my training. For example, over the past month, I have been training models on my PC but often I have needed to use my GPU and so I have exited my training and then resumed it at night.

Because, at present, it is not possible to have the Hugging Face Trainer save a checkpoint upon recieving a `KeyboardInterrupt`, I end up needing to save checkpoints at excessively short intervals to minimise lost progress if I quit training at any arbitrary point. This invariably still ends up with some amount of progress being lost and it also does a lot of write wear on my SSDs, which, like all hard drives, have a limited write lifetime. The wear can in fact add up to quite a lot of writing if you are saving multigigabyte models.

By allowing for progress to automatically save upon exit, I can be assured that, barring an unexpected system crash, or repeated CTRL+Cs being sent, my progress will always be saved and so I do not need to save and evaluate checkpoints so frequently.

### Your contribution

N/A
Repository: godot
Issue: Multiple OpenXR action sets in the same map causes bindings to not function properly
Labels: bug,topic:xr,topic:input

### Tested versions

Reproducible in v4.3.stable.official [77dcf97d8] and currently untested in any 4.4 dev or betas

### System information

Godot v4.3.stable - Windows 10.0.26100 - Vulkan (Mobile) - integrated Intel(R) UHD Graphics 730 (Intel Corporation; 31.0.101.4502) - 13th Gen Intel(R) Core(TM) i5-13400 (16 Threads)

### Issue description

When using two action sets in the same action map, the two sets do not function as expected. For baseline bugs, the first thing i noticed was that i couldn't change the set priority on either set. Changing the value and then saving would simply reset both priorities back to 0. Then, in practice, my xrcontrollers connected to my script via button_pressed and button_released would fire constantly an absurd amount of times/second, and i dont believe that button_released was even firing multiple times like this, just pressed. Also, in one of the two sets (in _ready() i would toggle off one of the two sets to avoid issues) the get_vector2 wasnt working at all. It DID work in one of the two, but the button_pressed didnt work regardless of set used.
Here is the set that wouldn't work for either:![Image](https://github.com/user-attachments/assets/f33e1212-fc55-407a-8c3a-44564b0841d8)
Here is the set which worked for joystick input, but not for the squeeze:![Image](https://github.com/user-attachments/assets/bcbf772f-da61-4d06-8296-ed5236be0576)
Here is the config. under the touch controller profile: ![Image](https://github.com/user-attachments/assets/f24241f3-832e-4935-b4b9-b96955488b67)

Any other context im happy to provide upon request.

### Steps to reproduce

Create an xr project which has two action sets in the default map
Use the connections from the xr controllers from a script and use the button_pressed and button_released in relation to the squeeze button ![Image](https://github.com/user-attachments/assets/d526f58d-67e8-4ab2-8f0a-c4c8d7641be3)
See what happens.

### Minimal reproduction project (MRP)

None, i guess, i just spent 20 minutes trying to make one only for it to open the project IN MY HEADSET and then have the balls to tell me it failed to initialize. Sorry.
Repository: terminal
Issue: Preview: Inconsistent Behavior When Writing to Stdout While Reading From Stdin
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix,Area-CookedRead

### Windows Terminal version

1.22.3232.0

### Windows build number

10.0.19045.5131

### Other Software

WSL seems to work fine, but other hosted terminals have this issue. To be clear, this only happens with the preview version of WT. The stable version works fine.

### Steps to reproduce

Create any program that begins reading from stdin and then after reading has begun, write to stdout.  Here is an example program in golang:

```go
package main

import (
	"bufio"
	"fmt"
	"os"
	"os/signal"
	"syscall"
	"time"
)

func DoScan() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanRunes)

	for scanner.Scan() {
		fmt.Print(scanner.Text())
	}
}

func main() {

	go DoScan()
	time.Sleep(1)

	fmt.Print("Here is a prompt! >")

	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)

	<-sigs
}
```

### Expected Behavior

I expected that my typed keys would appear after the caret of the prompt output.  That's what it does in the stable version of WT and that's what it does in WSL even in the preview version.

### Actual Behavior

My typed keys appear at the beginning of the line, overwriting the prompt.
Repository: rust
Issue: Running `./x test tests/debuginfo` triggers recompiles for debugger visualizer script changes
Labels: A-testsuite,A-debuginfo,T-bootstrap,C-bug,A-compiletest

After making changes to `src\etc\lldb_commands`, re-running the debuginfo tests triggers a 10-15 minute compile to, in effect, replace 1 file that's read and executed at runtime.

Might also be worth adding a CI rule to allow for using everything prebuilt and just replacing the debugger visualizer files to speed things up. That would be especially helpful since running the debuginfo test suite locally is [somewhat broken](https://github.com/rust-lang/rust/issues/126092#issuecomment-2278943683).
Repository: vscode
Issue: Synchronize Text Selection Highlights Across Split Panes in the Same File or unsaved tab code
Labels: feature-request,editor-core

<!-- ⚠️⚠️ 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. -->
Currently, Visual Studio Code highlights occurrences of the selected text in the same pane when working on a file. However, when the same file is open in multiple split panes, the selection highlight does not synchronize across panes. This makes it harder to visually track corresponding code segments in split views, especially when comparing or editing similar code sections.

I propose adding a feature that allows synchronized highlighting of selected text or lines across split panes for the same file. This enhancement would improve productivity and code comparison tasks.

Proposed Behavior:

- When a user selects a piece of text in one pane, matching occurrences of the selection should be highlighted in all open panes of the same file.
- The feature should work for:
- Line selection: Highlight the same line in both panes.
- Text selection: Highlight the same string in both panes.

Use Cases:

- Developers comparing or editing sections of the same file in split panes can easily see corresponding code without manually selecting it again.
- Simplifies visual tracking of repeated patterns or function calls in large files.
Repository: angular
Issue: Route Resolvers: allow for async (non blocking) resolve of data
Labels: area: router,cross-cutting: signals

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

router

### Description

For my app I need to fetch data and I like to do this in my Router config, using Route Resolver functions.
I prefer to load my core data via a resolver in the root, in a blocking way because it is required to render the home page.
However, some other data may be resolved in a lazy fashion.
Currently, I can't do that in a Route resolver, I have to load it as part of a (container/page) component (either via effects or in the ngOninit).



### Proposed solution

Can we expand on the resolver config to allow for an Options object to be added so we can tell the Router to load the data blocking or non blocking?
```
{
    path: '',
    component: AuthenticatedLayoutComponent,
    canActivate: [AuthGuard],
    data: {
      resolveAsync: ['tvs']
    },
    resolve: {
      facility: facilityResolver,
      resident: residentResolver,
      calenderEvents: CalendarEventsResolver,
      tvs: tvsResolver({ runAsync: true } ),                <======== Change
      homeCards: HomeCardsResolver,
      whoIsListening: whoIsListeningResolver,
    },
```

### Alternatives considered

So I did a little work around, so I can configure my resolver to load async or sync:
```
// ROUTE SEGMENT
{
    path: '',
    component: AuthenticatedLayoutComponent,
    canActivate: [AuthGuard],
    data: {
      resolveAsync: ['tvs']
    },
    resolve: {
      facility: facilityResolver,
      resident: residentResolver,
      calenderEvents: CalendarEventsResolver,
      tvs: tvsResolver,
      homeCards: HomeCardsResolver,
      whoIsListening: whoIsListeningResolver,
    },
```
I used `data` to pass in a variable to tell my `tvsResolver` if it should load sync or async.

Then in the resolver:
```
export const tvsResolver: ResolveFn<any> =
  // (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {
  (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {
    const loadAsync = Array.isArray(route.data.resolveAsync) && route.data.resolveAsync.includes('tvs');

   ....
  if (loadAsync) {
     // load Non Blocking
      const sub: Subscription = deviceService.getTvs().subscribe(() => sub.unsubscribe());
  } else {
     // load Blocking
     return deviceService.getTvs();
  }
}
```

However I think this could be done in a better way configuring this in the Router segment.
Repository: pytorch
Issue: Adding to Private Type Stubs
Labels: module: nn,module: typing,triaged

### 🚀 The feature, motivation and pitch

In torch/nn/functional, many calls are made to functions from torch._C._nn, but the type stubs in torch/_C/_nn.pyi (once generated) are incomplete and many of these calls are not recognized as valid by type-checking software. I propose adding to these private type-stubs.

### Alternatives

Based on the information in native_functions.yaml, it seems possible to automatically generate these type stubs. There has been progress on this in tools/pyi/gen_pyi.py, but it doesn't seem complete considering the missing pyi information in torch/_C/_nn.pyi.

It seems possible to set up an automatic conversion between the C++ type hints and Python type hints, which could then be converted to individual .pyi files depending on the python_module attirbute. 

example:
```yaml
# cross_entropy in native_functions.yaml
- func: cross_entropy_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, float label_smoothing=0.0) -> Tensor

  python_module: nn
````
could be translated to
```python
# in torch/_C/_nn.pyi.in
# autotranslated from above
def cross_entropy_loss(
    self: Tensor,
    target: Tensor,
    weight: Optional[Tensor] = None,
    reduction: int = Mean, # would have to have a lookup for this
    ignore_index: int = - 100, # would have to have  mappings from some C++ types to python types
    label_smoothing: float = 0.0,
    ) -> Tensor: ...
````

### Additional context

I'd be happy to work on adding to the private type-stubs or adding to tools/pyi/gen_pyi.py

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @ezyang @malfet @xuzhao9 @gramster
Repository: next.js
Issue: wrong resources URL keep reloading multiple times
Labels: bug

### Link to the code that reproduces this issue

https://github.com/lior-amsalem/nextjs-refresh-bug

### To Reproduce

1. git clone this project: `git clone https://github.com/lior-amsalem/nextjs-refresh-bug`
2. npm i
3. npm run dev
4. open console see this:
<img width="755" alt="image" src="https://github.com/user-attachments/assets/a69be4fd-37e4-481c-9c97-9c886cf6ede8">

this happens if the resource is not accessible, for some reasons nextjs keep trying to reload it 


### Current vs. Expected behavior

image path is wrong, nextjs keep trying to reload it- expected behavioour: don't reload again and again 

### Provide environment information

```bash
sonoma
v22.5.1
nextjs 15
"next": "15.0.3",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106"
```


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

Not sure, Developer Experience

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

next dev (local)

### Additional context

_No response_
Repository: tauri
Issue: [feat] provide a way to set webview locale
Labels: type: feature request

### Describe the problem

Edge webview does not always properly detect system local and defaults to en-US. Which leads to all dates and other region formatted strings being incorrect.
There is also a use case for having system locale be different from preferred locale of the tauri app.


### Describe the solution you'd like

It would be good to have an API to directly control the webview locale.

On edge webview2 there is language option that can be specified
https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environmentoptions?view=webview2-1.0.2903.40#put_language

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: FancyZones can only snap the windows of apps that run as admin, by holding down mouse's secondary key.
Labels: Issue-Bug,FancyZones-Dragging&UI,Product-FancyZones,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

(This issue did not firstly appear in version 0.86.0 but it definitely was not there some versions ago.)

Using FancyZones, try to manage (i.e. snap) a window of an app that is not running as admin, while pressing the mouse's secondary key. You will see that the zones will not appear at all (actually if you look closely you will notice that they appear very briefly only when you click the secondary mouse key - that is easier to notice if you press the secondary mouse key repeatedly).

The feature of FancyZones that allows to snap windows in the predefined zones just by moving the window while keeping pressed the secondary mouse key, only works with the windows of apps that are running as admin. Holding down the shift key allows for snapping all the windows, even the ones that belong to apps that are not running as admin

### ✔️ Expected Behavior

The feature of FancyZones that allows to manage (i.e. snap) windows in the predefined zones just by moving the window while keeping pressed the secondary mouse key, should work even with the windows of apps that are NOT running as admin.

### ❌ Actual Behavior

The feature of FancyZones that allows to manage (i.e. snap) windows in the predefined zones just by moving the window while keeping pressed the secondary mouse key, only works with the windows of apps that are running as admin. Holding down the shift key allows for snapping all the windows, even the ones that belong to apps that are not running as admin

### Other Software

N / A