sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: add options for Cursor insert vs update
Labels: Issue-Feature,Area-TerminalControl,Area-Settings,Product-Terminal

# Description of the new feature/enhancement

Its basic feature on text editors and terminals to know which mode is cursor in:
- User INSERTs character at cursor position.
- User UPDATEs/REPLACE current character under cursor with type key.


# Proposed technical implementation details

Simply add a default mode similar to Notepad++:
- when in INSERT - cursor is vertical bar - keeps blinking
- when in UPDATE - cursor is underline char - keeps blinking

Ideally split in 2 options:
INSERT MODE:
- type of cursor (already existing in windows terminal > settings > profiles > defaults > appearance)
- blinking: cursor-no-blinking, cursor-fast-blinking, cursor-slow-blinking
- color: rgb

UPDATE MODE:
- type of cursor (already existing in windows terminal > settings > profiles > defaults > appearance)
- blinking: cursor-no-blinking, cursor-fast-blinking, cursor-slow-blinking 
- color: rgb

note: I also added a new "color" config for both cursor modes (INSERT and UPDATE) as i think its cool.

Thanks guys, keep up the good work ~
Repository: godot
Issue: Expressions handle underscores in numbers differently than GDScript.
Labels: bug,topic:core

### Godot version

v4.0.alpha6.official [e4f0fc50f]

### System information

Linux Kubuntu

### Issue description

`Expression`s handle underscores in numbers unpredictably, compared to regular GDScript.
```
"1": 1
"[1234567]": [1234567]
"1_234_567": 1
"1_2.3_4": 1
"1.3_4": 1.3
(ERROR) "[1_234_567]": Expected ',' or ']'
(ERROR) "{'x':1_234}": Expected ',' or '}'
```
Same in v3.5.beta1.official [b9b23d222]

### Steps to reproduce

Paste and `Ctrl + Shift + X`

```gd
@tool
extends EditorScript

func _run():
	var expr = Expression.new()
	prints(1_234_567)
	prints(.5_678)
	for k in [
		"1",
		"[1234567]",
		# the following won't work
		"1_234_567",
		"1_2.3_4",
		"1.3_4",
		"[1_234_567]",
		"{'x':1_234}",
		]:
		if expr.parse(k) == OK:
			prints("\"%s\": %s" % [k, expr.execute()])
		else:
			print("(ERROR) \"%s\": %s" % [k, expr.get_error_text()])
```

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: clang-tidy "error: do not use const_cast" cppcoreguidelines-pro-type-const-cast is counterproductive
Labels: module: cpp,module: lint,triaged

### 🐛 Describe the bug

When interfacing with the CPython API, we frequently need to interact with functions that incorrectly take `char*` when they actually respect `const char*`. It is standard to cast a const char* to char* in this situation. There are two ways you can do it: you can do an unsafe C-style `(char*)` cast (this is unsafe because it will happily convert anything you give it to char*, even if it wasn't a const char*), or you can do a `const_cast<char*>`, which will ensure that you are only changing the const-ness of a variable.

Guess which one clang-tidy accepts.

```
/__w/pytorch/pytorch/torch/csrc/utils/python_arg_parser.cpp:345:5: error: do not use const_cast [cppcoreguidelines-pro-type-const-cast,-warnings-as-errors]
    const_cast<char*>(
```

While the goal here is admirable, this warning will simply make things worse in the common case, because most people aren't going to rewrite their code not to use a const cast, they'll just switch to an even more unsafe cast.

### Versions

master

cc @jbschlosser
Repository: yt-dlp
Issue: Please add support for www.vix.com
Labels: site-request,geo-blocked

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2022.04.08** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs [violate any copyrights](https://github.com/ytdl-org/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

Ecuador

### Example URLs

https://www.vix.com/es-es/detail/series-2979
https://www.vix.com/es-es/video/video-4158939

### Description

An account is not required to access any content .

### Verbose log

```shell
E:\>yt-dlp.exe -vU https://www.vix.com/es-es/video/video-4158939
[debug] Command-line config: ['-vU', 'https://www.vix.com/es-es/video/video-4158
939']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8 (No ANSI), err utf-8 (No A
NSI), pref cp1252
[debug] yt-dlp version 2022.04.08 [7884ade] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: avconv -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: avprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: brotli, certifi, Cryptodome, mutagen, sqlite, websoc
kets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [generic] Extracting URL: https://www.vix.com/es-es/video/video-4158939
[generic] video-4158939: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] video-4158939: Downloading webpage
[generic] video-4158939: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://www.vix.com/es-es/video/video-4158939
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1408, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1478, in __extract_info
  File "yt_dlp\extractor\common.py", line 641, in extract
  File "yt_dlp\extractor\generic.py", line 4039, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.vix.com/es-es/video/
video-4158939
```
Repository: pytorch
Issue: make lint should advertise make setup_lint
Labels: module: build,module: lint,triaged

### 🐛 Describe the bug

If `make lint` fails because not enough tools are installed, it should tell the user to run `make setup_lint`

### Versions

master

cc @malfet @seemethere
Repository: pytorch
Issue: mypy typing strategy for Tensor-likes (`__torch_function__`)
Labels: module: typing,triaged,module: __torch_function__

### 🐛 Describe the bug

Presently, most functions advertise that they accept Tensors. This, strictly speaking, is a lie, as most function support `__torch_function__` overrides. However, it is an admirable lie; most people would prefer to see that a function takes Tensor (and only if they were working on a non-Tensor-subclass `__torch_function__`, would they find the information of whether or not torch function overrides were supported useful or not). For the most part, this lie doesn't cause problems.

However, this is one point which is a bit sticky: what if you are writing a function that needs to detect if arguments are Tensors or not, and do something different depending on the situation. One example is `torch.autograd.grad`, which will accept a singleton Tensor or a list of Tensors for inputs/outputs, and distinguishes this case by testing if the argument is a Tensor. For TensorLike compatibility, testing `isinstance(x, Tensor)` is a no-no, because it will incorrectly return false if the argument in question is something defining `__torch_function__`. Instead, one typically should use `torch.overrides.is_tensor_like`. However, this causes a problem for mypy: a condition on `isinstance(x, Tensor)` test would refine x to be a Tensor inside of the if statement, but a test on `torch.overrides.is_tensor_like` and so subsequent code using it will typically not typecheck. Example of this can be found here https://github.com/pytorch/pytorch/pull/75484

So the question is: what should the style be going forward?

1. You can make local fixes like I did in the PR, casting to incorrect (but morally OK) types involving Tensor after the fact
2. For tuple/list case, we could instead test if the input is a tuple/list and use that to determine if we should wrap in a tuple or not
3. We could generalize the type signatures to not be Tensor but actually be TensorLike
4. something else?? 

cc @ezyang @malfet @rgommers @xuzhao9 @gramster @hameerabbasi @peterbell10

### Versions

master
Repository: youtube-dl
Issue: Running `youtube-dl --extract-audio ...` again re-downloads video, even though audio file is already present.
Labels: request

## Checklist

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [x] I've searched the bugtracker for similar feature requests including closed ones

## Description

This is midway between a feature request and a bug report, because I was surprised this was missing from the program.

When I download a video, and then re-run the same command, `youtube-dl` ends with a message saying the video has already been downloaded. It conserves bandwidth by refusing to re-download a video already present on the user's machine.

When I download audio from a video using `-x` or `--extract-audio`, the video file is erased after the audio is extracted. This means that on a second run, `youtube-dl`'s check for the video file reports no file is present, and proceeds with downloading the video file again.

If someone is able to change the pre-download check during `--extract-audio` commands, so the program checks for the `.m4a` or `.mp3` file in the user's folder, then `youtube-dl` can again conserve bandwidth by refusing to download the video a second time.

When you consider people who may be downloading playlists including 11-hour videos, such as https://www.youtube.com/playlist?list=PL-mzrQ96YAOQOgrTzq18m1Y2Fbi-s-WVR, any error during the initial download would cause them to re-run the command, consuming enormous unnecessary bandwidth as their machine pulls the video to harvest audio the user has already acquired.

Unless a check for `.mp3` or `.mp4` files are added during `--extract-audio` commands, users who are seeking to minimize their download bandwidth may need to pull the videos themselves, and then run a second processing command to extract the audio, keeping the video files alongside so `youtube-dl` can check for the already-pulled files.

I hope this makes sense, and this seems like an easy check to perform. I'll be around if I can help clarify my use case any more.
Repository: rust
Issue: Searching for "length" in the documentation should return the "len" methods 
Labels: T-rustdoc

Currently searching for "length" results in no results:

https://doc.rust-lang.org/std/?search=length

According to #83968, it used to work.
Repository: neovim
Issue: `:Man` problem with non-standard files
Labels: bug,plugin

### Neovim version (nvim -v)

0.7.0-dev+1416-g012c05580

### Vim (not Nvim) behaves the same?

n/a

### Operating system/version

Void lInux (glibc)

### Terminal name/version

Alacritty 0.10.1

### $TERM environment variable

alacritty

### Installation

AppImage

### How to reproduce the issue

nvim --clean
:Man /us/lib/erlang/man/man4/app.4

### Expected behavior

The man page should open in a separate window, rendered properly.

### Actual behavior

An error is raised:

```
Error detected while processing function man#open_page:
line   38:
E426: tag not found: app(4)
```

The same behaviour happens with other non-standard man pages, not just those from Erlang. I have a little WIP project ([ips-tools](https://gitlab.com/HiPhish/IPS-Tools)) and I would like to render its man pages in Neovim using `:Man ./man/man1/ips.1`. The same error message appears.

Opening standard man pages on the other hand works without issue using the equivalent command `:Man /usr/share/man/man1/bash.1`.
Repository: godot
Issue: LineEdit Copy/Paste on iOS not working
Labels: bug,platform:ios,topic:porting,topic:gui

### Godot version

3.4.4

### System information

MacOS 12.3

### Issue description

On iOS I can't paste a text to a LineEdit Field. On Android and Mac it works. Furthermore I can't select the text in the LineEdit field.

### Steps to reproduce

Create a Lineedit field
Export to iOS
Try to paste something

### Minimal reproduction project

_No response_
Repository: PowerToys
Issue: FancyZones windows do not automatically change with some settings
Labels: Issue-Bug,FancyZones-Layouts,Priority-2

### Microsoft PowerToys version

0.57.2

### Running as admin

- [X] Yes

### Area(s) with issue?

FancyZones, Settings

### Steps to reproduce

To make things a bit easier, I will be combining 2 very similar issues into a single report. I should also mention I have "Hold Shift key to activate zones while dragging" enabled.

##Issue 1
When unticking "Disable round corners when window is snapped", existing FancyZone windows don't update corners automatically. Windows must be moved out of a zone to apply this change.
![image](https://user-images.githubusercontent.com/96226175/162588332-309b8e9c-b309-4bed-a609-7efc5cce47ff.png)

##Issue 2
Disabling FancyZones does not revert window scaling when "Restore the original size of windows when unsnapping" is ticked. Moving the window in this state results in windows with hard corners with "Disable round corners when window is snapped" and windows not returning to their previous state.
![image](https://user-images.githubusercontent.com/96226175/162588229-e00509d6-b834-4408-a186-2493e8095d5e.png)

### ✔️ Expected Behavior

For both issues, I expected the windows to update in the background in accordance with certain setting changes. Neither of these issues result in unexpected behaviours including forgetting window scaling and not clipping windows when FancyZones is re-enabled.

### ❌ Actual Behavior

Snapped windows didn't apply setting changes without user interaction.

### Other Software

Google Chrome 100.0.4896.75 (64-bit)
Repository: node
Issue: On Windows, dns resolves using the secondary nameserver
Labels: dns,windows

### Version

v16.14.0

### Platform

Microsoft Windows NT 10.0.19044.0 x64

### Subsystem

dns

### What steps will reproduce the bug?

My Primary DNS server configures for `127.0.0.1`, a local instance of [SmartDns](https://pymumu.github.io/smartdns/ReadMe_en.html).  My secondary DNS server is my ISP's.

However, Node resolves using the _secondary_ DNS server, not the primary:

```console
$ node -e 'dns.resolve4("www.google.com", { ttl: true }, console.log);'
null [
  { address: '142.250.138.105', ttl: 63 },
  { address: '142.250.138.106', ttl: 63 },
  { address: '142.250.138.99', ttl: 63 },
  { address: '142.250.138.147', ttl: 63 },
  { address: '142.250.138.104', ttl: 63 },
  { address: '142.250.138.103', ttl: 63 }
]
```

I can tell because of the short TTLs, whereas my SmartDns server is configured with a minimum TTL of 2400. Thus:

```console
$ node -e 'dns.setServers(["127.0.0.1"]); dns.resolve4("www.google.com", { ttl: true }, console.log);'
null [ { address: '172.217.13.4', ttl: 2397 } ]
```

And as confirmation:

```console
$ node -e 'console.log(dns.getServers());'
[ '12.127.16.67', '127.0.0.1' ]
```


### How often does it reproduce? Is there a required condition?

Always sorts local addresses after remote addresses. If both Primary and Secondary are remote, then re-ordering does not happen.

### What is the expected behavior?

I'd expect `dns.getServers()` to return `[ 'primary', 'secondary' ]`, and for name resolution to prefer the Primary DNS server.

### What do you see instead?

`dns.getServers()` reverse the primary and secondary DNS servers, and resolution prefers the secondary server.

### Additional information

![image](https://user-images.githubusercontent.com/259818/162595481-561e93e5-1c3e-41a6-b7b9-32fbf8026b4e.png)
Repository: godot
Issue: Windows mapped network drive issue
Labels: bug,enhancement,platform:windows,topic:porting

### Godot version

3.4.4.stable.mono.official.419e713a2

### System information

Windows 10, GTX 1080, GameReady Driver 511.79, GLES3

### Issue description

When using a Network Drive for project files in Windows the Godot Engine states that "The following files are newer on disk. What action should be taken?" everytime the project/scene is played with either F5 or F6. One thing is that **YOU** have to play the project/scene atleast once from when you first loaded it. After its been played once it will continuously show the pop-up. [https://i.imgur.com/gpczEAT.png](https://i.imgur.com/gpczEAT.png)

It does not matter wether its a brand new project with just a single scene and some code, or an entire demo project from the asset library. 

### Steps to reproduce

- Make a folder on another computer and share it on the local network
- Open 'This PC' on Windows 10
- Press 'Map network drive' and follow instructions
- Create a folder on the mapped drive you just attached
- Make a project on in that folder, create a scene + sprite + movement code(might be too much, i just did this too test)
- Or use one of the Demo games in the asset library and create the project on the newly mapped network drive
- After you've pressed play( f5,f6 ) and shut down the window, it will give you the window "The following files are newer on disk. What action should be taken?"
- try alt-tabbing or playing the project/scene again and shut it down

### Minimal reproduction project

_No response_
Repository: godot
Issue: Vulkan: Cannot import Texture3D as VRAM compressed
Labels: bug,topic:import,regression,topic:3d

### Godot version

v4.0.alpha6.official [e4f0fc50f]

### System information

Manjaro Linux (KDE X11)

### Issue description

Importing a 3D texture works, but not VRAM compressed. I get an error like "no suitable PC VRAM compression enabled in project settings," even if all compression modes are enabled. Non VRAM compressed import modes work, but they have their own issues and I'd like to use VRAM compression for things.

### Steps to reproduce

Load a 3D texture into a project
Change the import type to Texture3D, set the slices, and set the compression to VRAM compressed
After editor restarts, the error will pop up and texture is not useable

### Minimal reproduction project

[Texture3D VRAM.tar.gz](https://github.com/godotengine/godot/files/8458356/Texture3D.VRAM.tar.gz)
Repository: PowerToys
Issue: Color-Picker : Activation Shortcut  | Add excluded apps option same as "Always On top", "Shorcut Guide", "FanzyZones" 
Labels: Idea-Enhancement,Product-Color Picker

### Description of the new feature / enhancement

I decided to use the color-picker activation  key binding  `CTRL + SHIFT + P`  since (personally)  happens to  be very intuitive and easy to remember,. Unfortunately the same key binding can be used by another application.
 
Regardless of easy workarounds like choosing another key binding, I don't see why this setting should't be there.

I suggest adding the same "excluded apps" text-area input option that appears in other powerToys utilities settings.

Mockup:
![image](https://user-images.githubusercontent.com/49024953/162612129-35a82ff4-b763-4484-a099-c37dea7ebd16.png)

On another note,:

Why isn't the activator options consistent across different utilities?
`Do not activate when Game Mode is on`  , which appears on "Always On Top" utility can apply to any utility key binding activator.

A bonus critic:

Excluded apps hint-text  t isn't consistent  across different utilities  excluded apps settings.

> add one application name per line
is missign in "Always on Top" excluded apps hint-text. 






### Scenario when this would be used?

(e.g., Visual Studio Code) uses the same default key binding  tthat trigggers a command dropdown.
I don't use the color picker in my IDE, but I use it often in the browser, so I switch from browser to VS code often. 

I intend to keep both key bindings, so instead of having to disable Color-Picker until I need it, it would be much easier to just set an app that will ignore the activation once its focused.



### Supporting information

I don't think I have more to provide, no reproduction is needed for this feature request.
Repository: TypeScript
Issue: Concrete implementation of an interface fail with methods having constrained `this` when returned from a function
Labels: Bug

# Bug Report

Concrete implementation of a method with constraints over `this` fails to compile when returned from a function.

### 🔎 Search Terms

method with constrained this

### 🕗 Version & Regression Information

all the versions I was able to test (>3.3 up to last commit on main)

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=4.6.2#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgUSQDcAeAJQD44BvAWACg44phMATCJAGwE84B9MgC44ACn4ikwImgCUcALxUyAbgZMA5sBjk4oVEjYBnOAGUANGYqiYACwRGRhUpUsxMGkadle19AL4MDKCQsHDoAK5I2DAInATEoj4JpFEA1kgQAO5IVHSMzNoRUEg06kwCwgKKVPzm5ZrauvrAhiYWVjb2jinkFG4eXsmmZQUVFSwwxaUADHCYJphIfAtmDXCBBf5+m0A

### 💻 Code

Given an interface as such:

```ts
export interface Env<R> {
  readonly _R: (_: never) => R;
  get<R extends S, S>(this: Env<R>, tag: S): S;
}
```

and a valid implementation:

```ts
export function Env(): Env<unknown> {
  return {
    _R: _ => _,
    get<R extends S, S>(this: Env<R>, tag: S): S {
        return 0 as any as S
    }
  };
}
```

### 🙁 Actual behavior

Error `'S' could be instantiated with an arbitrary type which could be unrelated to 'S'`

### 🙂 Expected behavior

To compile fine

---

Furthermore if I remove the `extends` constraint in the impl like:

```ts
export function Env(): Env<unknown> {
  return {
    _R: _ => _,
    get<R, S>(this: Env<R>, tag: S): S {
        return 0 as any as S
    }
  };
}
```

Then compiler is happy (and shouldn't)

Also if instead of a function I use a plain constant like:

```ts
export const x: Env<unknown> = {
  _R: _ => _,
  get<R extends S, S>(this: Env<R>, tag: S): S {
      return 0 as any as S
  }
}
```

Then all is fine.
Repository: create-react-app
Issue: How to set React version to react@17 when i use npx create-react-app ?
Labels: needs triage

I create a cra templte, but it does not work with react@18 yet, how to set the defautl react version to react@17?