sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: scancodes in command palette
Labels: Help Wanted,Issue-Bug,Product-Terminal,In-PR,Priority-3,Area-SettingsUI

### Windows Terminal version

12.3472.0

### Windows build number

10.0.22000.376

### Other Software

_No response_

### Steps to reproduce

Press ctrl+shift+p
Type "qua"
Notice the "Summon Quake window" shortcut


### Expected Behavior

The shortcut text should be "Win + `". I don't know the scancodes by heart.

### Actual Behavior

The shortcut text is: `win + sc(41)`.
Repository: electron
Issue: [Feature Request]: Implement loginItemSettings via background portal
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

Electron on linux can't set an app to autostart.

Especially when running via flatpak or other sandboxing solutions.

### Proposed Solution

Implement  `setLoginItemSettings` (https://www.electronjs.org/docs/latest/api/app#appsetloginitemsettingssettings-macos-windows) and `getLoginItemSettings (https://www.electronjs.org/docs/latest/api/app#appgetloginitemsettingsoptions-macos-windows)` via https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Background.html

### Alternatives Considered

I'm not aware of anything else that can break out of the sandbox

### Additional Information

_No response_
Repository: youtube-dl
Issue: youtube-dl saying can't find XML element title and crashed
Labels: duplicate

$ youtube-dl --verbose --all-subs --embed-subs  https://www.paramountplus.com/shows/star-trek-prodigy/video/3htV4fvVt4Z8gDZHqlzPOGLSMgcGc_vy/star-trek-prodigy-dreamcatcher
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--all-subs', '--embed-subs', 'https://www.paramountplus.com/shows/star-trek-prodigy/video/3htV4fvVt4Z8gDZHqlzPOGLSMgcGc_vy/star-trek-prodigy-dreamcatcher']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg N-93678-g4b7166c9d5, ffprobe N-93678-g4b7166c9d5
[debug] Proxy map: {}
[CBS] 3htV4fvVt4Z8gDZHqlzPOGLSMgcGc_vy: Downloading XML
ERROR: Could not find XML element title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\cbs.py", line 115, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\cbs.py", line 65, in _extract_video_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\utils.py", line 1911, in xpath_text
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\utils.py", line 1904, in xpath_element
youtube_dl.utils.ExtractorError: Could not find XML element title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Repository: pytorch
Issue: C++ torch::nn::Sequential clone() method overwrites child module names
Labels: module: cpp,module: nn,triaged,actionable

### 🐛 Describe the bug

The clone method of torch::nn::Sequential fails to pick up the names of child modules, e.g.

``` 
torch::nn::Sequential q({ {"A", torch::nn::Linear(1,2)},
                           {"B", torch::nn::ReLU()} });
 std::cerr << *q << "\n";

 auto c=q->clone();
 std::cerr << *c << "\n";
```
The above code results in:
```
torch::nn::Sequential(
  (A): torch::nn::Linear(in_features=1, out_features=2, bias=true)
  (B): torch::nn::ReLU()
)

torch::nn::Sequential(
  (0): torch::nn::Linear(in_features=1, out_features=2, bias=true)
  (1): torch::nn::ReLU()
)
```

the code in **_include/torch/nn/modules/container/sequential.h_** uses **_push_back_** without name:
```
  std::shared_ptr<Module> clone(
      const optional<Device>& device = nullopt) const override {
    auto clone = std::make_shared<SequentialImpl>();
    for (const auto& module : modules_) {
      clone->push_back(module.clone(device));
    }
    return clone;
  }
```

I think the clone loop needs to use the name of the child modules in the **_push_back()_** call,
something like:
```
    for (const auto& m : named_children())
      clone->push_back(m.key(), AnyModule(m.value().clone(device)));
```

### Versions

I think this bug has been part of torch::nn::Sequential from the beginning 

cc @jbschlosser @albanD @mruberry @walterddr @kshitij12345
Repository: three.js
Issue: XR controller matrix is delayed in AR by 1-2 frames
Labels: Needs Investigation

**Describe the bug**

While trying to put together a sample that shows dragging objects around in AR, VR and on screen, I stumbled upon what seems to be a bug in controller handling for AR: one needs to wait multiple frames until the matrices are correct and can be used for e.g. dragging.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to https://glitch.com/edit/#!/fuchsia-brazen-thorium#
2. Open the result page on mobile so you can test, enter AR, note you can drag things around
2. Remix so you can edit
3. Go to line 230, remove the delay there
4. Test again on mobile in AR, note you can't drag things around anymore

It seems that what happens is that the controller data is delayed; e.g. when you _click_ on an object and then _drag_ from that object, it moves with the controller-finger.

***Code***

Basically https://threejs.org/examples/?q=vr#webxr_vr_dragging + https://threejs.org/examples/?q=drag#misc_controls_drag, which should work everywhere (VR, AR, desktop, mobile) and only AR is problematic right now.

It seems that the AR Paint example uses a similar "frame delay" hack to work:
https://github.com/mrdoob/three.js/blob/1a241ef10048770d56e06d6cd6a64c76cc720f95/examples/webxr_ar_paint.html#L69

***Live example***

* https://glitch.com/edit/#!/fuchsia-brazen-thorium (has the delay, so should work, but shouldn't need the delay)
* https://glitch.com/edit/#!/fuchsia-brazen-thorium-broken (doesn't have the delay, so is broken)

**Expected behavior**

Controller-based drag in AR should behave the same as in VR (aka the objects should be dragged around).

**Platform:**

 - Device: [Mobile]
 - OS: [Android]
 - Browser: [Chrome]
 - Three.js version: [dev]
Repository: PowerToys
Issue: Add Always On Top as option in window context menu
Labels: Idea-Enhancement,Product-Always On Top

### Description of the new feature / enhancement

I would like to be able to set a window as Always On Top using the window's context menu.
![image](https://user-images.githubusercontent.com/1951003/148695177-9d68d742-7b9e-4ac1-981f-072e49e7da2f.png)


### Scenario when this would be used?

The keyboard shortcut is not always the most convenient to hit. When my mouse is more accessible I would like to still use Always On Top very quickly.

### Supporting information

_No response_
Repository: TypeScript
Issue: `--emitDeclarationOnly` cannot be used together with `-p jsconfig.json`
Labels: Bug

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

TS5053

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________ (no FAQ item, AFAICT)

### ⏯ Playground Link

(Not for this one)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```jsonc
// jsconfig.json
{
  "compilerOptions": {
    "target": "es2020",
    "module": "es2020",
    "moduleResolution": "node"
  },
  "include": [
    "foo.ts"
  ]
}
```

```ts
// foo.ts
export foo = 3;
```

```
// command
npx tsc --declaration --allowJs --outDir types --emitDeclarationOnly -p jsconfig.json
```

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->

```
error TS5053: Option 'emitDeclarationOnly' cannot be specified with option 'noEmit'.

Found 1 error.
```

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
No error?
Repository: godot
Issue: GNOME wrongly decodes Unicode project title in its application tooltip (`WM_CLASS` class name)
Labels: bug,platform:linuxbsd,topic:porting,confirmed

### Godot version

4.0.dev

### System information

Linux pop os 21.10, i7-8550U, Vulkan

### Issue description

when naming the game anything in Arabic the title get corrupted

https://user-images.githubusercontent.com/63852512/148698588-e262dc53-fa64-4f99-b3c2-af6bf4769318.mp4

the title should be "حاسبة دروس رياضيات 4"

### Steps to reproduce

name the game in RTL language

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: Feature Request: torch.special.ellipe
Labels: feature,triaged,module: special

### 🚀 The feature, motivation and pitch


Implement `ellipe(m)` special function in PyTorch. This function is used to calculate the elliptic integral of the second kind.
### Mathematical Expression

The function is defined as:

```math
E(m) = ∫ [1 - m * sin(t)^2]^{(1/2)} dt
```
Here, `m` is tensor input, and `E(m)` is an output, `m = k^2`

### Support in other libraries

`special.ellipe` is available in [Scipy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.ellipe.html#scipy-special-ellipe), [Julia](https://specialfunctions.juliamath.org/latest/functions_list/#SpecialFunctions.ellipe) and various other libraries.

### Motivation

Elliptic functions are used in several mathematical applications—case in point: To find the circumference of an ellipse along their major and minor axis, etc.

cc: @mruberry @kshitij12345

### Alternatives

_No response_

### Additional context

_No response_

cc @mruberry @kshitij12345
Repository: vscode
Issue: Dragging jupyter graph outputs causes VSCode to softlock
Labels: bug,important,notebook-output


Issue Type: <b>Bug</b>

When creating any graph using matplotlib in a jupyter notebook, the output (.png file) is displayed below the cell. Dragging this onto the desktop softlocks VSCode (no buttons work) and requires killing it in task manager before restarting.

VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 2600 Six-Core Processor             (12 x 3400)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.95GB (7.18GB free)|
|Process Argv|--crash-reporter-id b400ce12-1e72-4499-a48d-0d49d2e43d97|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (6)</summary>

Extension|Author (truncated)|Version
---|---|---
latex-workshop|Jam|8.23.0
vsc-python-indent|Kev|1.14.2
python|ms-|2021.12.1559732655
vscode-pylance|ms-|2022.1.0
jupyter|ms-|2021.11.1001550889
jupyter-keymap|ms-|1.0.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30384386
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vscop804:30404766
vscop453:30404998
vsrem710:30416614
vscexrecpromp3c:30407761

```

</details>

<!-- generated by issue reporter -->
Repository: rust
Issue: Allow storing `format_args!` in a let binding
Labels: C-enhancement

At the moment, we cannot store the result of a `format_args!` in a value:

```rust
// Okay, we can somehow store it in a variable
let foo = format_args!("{} foo {:?}", 1, 2);

// But once we try to use it, we get
// "error[E0716]: temporary value dropped while borrowed"
// "note: consider using a `let` binding to create a longer lived value"
// "note: this error originates in the macro `format_args`"
println!("{}", foo);

// Using it directly is okay though
println!("{}", format_args!("{} foo {:?}", 1, 2));

// We can get pretty creative within the "direct usage" constraints :D
let foo = match format_args!("{} foo {:?}", 1, 2) {
    foo => {println!("{}", foo);},
};

// But even if we manage to store the value in a struct, …
struct Foo<'a> {foo: std::fmt::Arguments<'a> }
let foo = Foo { foo: format_args!("{} foo {:?}", 1, 2) };

// … we still cannot make use of it outside of the scope it was created in
println!("{}", foo.foo); // <- error[E0716]: temporary value dropped while borrowed
```

The list of confused or annoyed users by this is rather long:

- #42253
- #11838
- #51905
- https://docs.rs/fern/0.6.0/fern/struct.FormatCallback.html
- https://stackoverflow.com/questions/56304313/cannot-use-format-args-due-to-temporary-value-is-freed-at-the-end-of-this-state
- https://users.rust-lang.org/t/using-format-args-and-log-builder/22695
- https://stackoverflow.com/questions/76157524/temporary-value-dropped-while-borrowed-when-printing-format-args
- https://internals.rust-lang.org/t/format-args-with-long-lifetimes/19494

I understand if the `format_args!` macro cannot be changed, but then please provide an alternative way of building `fmt::Arguments` without that restriction. Even a small performance overhead (for example cloning the values) would be an improvement compared to the common workarounds that have to be used otherwise.
Repository: neovim
Issue: `vim._setvar()` and `nvim_set_var` should not allow assigning a Lua function to a global lowercase Vim variable
Labels: enhancement,compatibility,lua,breaking-change

### Feature already in Vim?

Yes, Vim 8.2.3288 for `vim.g.*`

### Feature description

`vim._setvar()` and `nvim_set_var` currently allow assigning a Lua function to a global lowercase Vim variable. However, according to `:h Funcref`:
```
A Funcref variable must start with a capital, "s:", "w:", "t:" or "b:".  You
can use "g:" but the following name must still start with a capital.  You
cannot have both a Funcref variable and a function with the same name.
```
So assigning a Lua function to a global lowercase Vim variable should not be allowed for consistency.
Repository: PowerToys
Issue: file explorer CSV preview
Labels: Idea-New PowerToy,Product-File Explorer

### Description of the new feature / enhancement

The ability to see a proper excel like review of .csv files (And excel files if applicable) in the file explorer

### Scenario when this would be used?

When working with spreadsheets and trying to find the right one with the preview pane

### Supporting information

_No response_
Repository: PowerToys
Issue: [Fancy zones] Add exclusions for windows
Labels: Idea-Enhancement,Product-FancyZones,Area-App Compat

### Description of the new feature / enhancement

I uses picture in picture mode on Edge and it snaps with fancy zone which I don't want but I can only disable edge entirely in the exclude program feature not just a window name.

### Scenario when this would be used?

Using windows that are included in other programs (PiP extension on browsers, OBS plugin windows)

### Supporting information

_No response_
Repository: neovim
Issue: allow overriding terminal type in ~/.vimrc
Labels: enhancement,environment,has:workaround,startup

### Feature already in Vim?

_No response_

### Feature description

Here's my problem, I use Windows native `nvim` from Chocolatey in the new Windows terminal with PowerShell and Git for Windows.

If I set `$env:EDITOR = 'nvim.exe'` for example (or a path to `nvim.exe`) to have git invoke the `nvim` binary, it starts with `$env:TERM` set to `cygwin` because it's based on MSYS2, which is much much worse than the native terminal support `vtpcon` when `$env:TERM` is unset, the colors are all wrong etc. etc..

I see no way to override this in `~/.vimrc`, so I am currently using this workaround, I have: 

```powershell
$env:EDITOR = (resolve-path ~/.local/bin/nvim.bat) -replace '\\','/'`
```

in my `$profile` and in `nvim.bat` I have:

```dosbatch
@echo off
set TERM=
/tools/neovim/neovim/bin/nvim %*
```

and this works, but this is horrible.

I realize the actual problem is with Git for Windows, and I will follow up in that project, but it would be nice if I could do something like this in my `~/.vimrc`:

```vim
if has('nvim') && has('win32')
    let &term='builtin_vtpcon'
endif
```
. I see no way to do something like this at present.
Repository: flutter
Issue: [ios_platform_images] Provide a Swift example for plugin
Labels: d: examples,package,team-ecosystem,P2,p: ios_platform_images,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->
I am trying to build a simple flutter app and a iOS widget. Between them, I want to use the some images. Since I am planning to use the images in Android as well, I put my images under flutter assets folder. When I try to use the images in iOS, I came cross this plugin, but I couldn't make it work in swift. I tried to write it like:
```
let image = UIImage.flutterImage(withName: "assets/foo.png")
```
But Xcode complains it doesn't have a flutterImage method. 
```
Type "UIImage" has no member "flutterImage"
```
Could you help me with that? It's a noob questions, but I am blocked by this for many hours. Thanks in advance.  

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: pytorch
Issue: Error in `torch.Tensor.logit` documentation
Labels: module: docs,triaged

### 📚 The doc issue

In the [documentation](https://pytorch.org/docs/stable/generated/torch.Tensor.logit.html?highlight=logit#torch.Tensor.logit) of `torch.Tensor.logit`, the signature of `logit` is "Tensor.logit() → Tensor". However, in fact, it has one default argument named `eps`.

### Suggest a potential alternative/fix

It should be "Tensor.logit(eps=None) → Tensor"

cc @brianjo @mruberry
Repository: pytorch
Issue: `torch.nn.{Constant,Zero}Pad` unexpectedly fail
Labels: module: error checking,triaged,module: padding

### 🐛 Describe the bug

`torch.nn.{Constant,Zero}Pad` unexpectedly fail when trying to create a zero dimension tensor. Instead, `torch.nn.{Reflection,Replication}Pad` will succeed

```
import torch
padding = [-1, -2, 1, 1]
c1 = torch.nn.ReflectionPad2d(padding)
c2 = torch.nn.ReplicationPad2d(padding)
c3 = torch.nn.ConstantPad2d(padding, 0)
c4 = torch.nn.ZeroPad2d(padding)
input = torch.rand([1, 1, 3, 3], dtype=torch.float32)

print(c1(input))
print(c2(input))
c3(input)
# RuntimeError: The input size 3, plus negative padding -1 and -2 resulted in a negative output size, which is invalid. Check dimension 3 of your input.
c4(input)
# RuntimeError: The input size 3, plus negative padding -1 and -2 resulted in a negative output size, which is invalid. Check dimension 3 of your input.
```

3-3=0, it is not negative

### Versions

pytorch: 1.10.1
Repository: godot
Issue: Scene inheritance is unlinked on updating node class type to a derived type
Labels: bug,topic:core

### Godot version

3.4.2 (Stable)

### System information

Windows 10

### Issue description

If I create a base scene and use it to create inherited scenes for various characters in my game - I should be able to update the class type of the root node of the scene tree to a more derived class type (relative to the class type of the root node in the base scene).

When I inherit a scene from the base scene (containing a RigidBody and a CollisionShape), I can observe the nodes are behaving as expected - changing properties on base scene are observed in the inherited scene.

However, the inherited scene loses inheritance as soon as I use the following option to change the class type.

![image](https://user-images.githubusercontent.com/12509749/148728384-4a1faa6f-44e8-4e4c-8bab-4812c645a8d2.png)

Note, I am using a custom module to change the class type from a RigidBody to a new class that derives from RigidBody (which has been implemented in my custom module).

### Steps to reproduce

1. Create a scene containing a RigidBody node with a CollisionShape child node.
2. Update RigidBody and CollisionShape properties on this scene, save it.
3. Create a scene inheriting from the saved scene. Notice that properties do migrate.
4. Implement a class deriving from RigidBody (I used a C++ custom module for this).
5. Right click the RigidBody node on the new scene, click Change Type and choose the derived class.
6. On saving the scene, note that the scene is no longer an inherited scene.

### Minimal reproduction project

_No response_