sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Copying text from a Markdown document inserts non-breaking spaces instead of regular spaces
Labels: windows,under-discussion,editor-clipboard


Issue Type: <b>Bug</b>

1. Install VSCode on an entirely new machine that has never had it before (this is to show that extensions and settings have no impact on this behaviour).
2. Create a new Markdown document with several words in it, separated by regular spaces.
3. Copy the contents of the Markdown document to the clipboard. Use the editor to copy, not the preview window.
4. Paste into an application that highlights non-breaking spaces, such as Word. **Observe that every space has been replaced by a non-breaking space. This is unexpected behaviour.**
5. Change the format of the document in VSCode to 'Plain Text'. Copy the text again and paste back into Word. Observe that the spaces are copied out as regular spaces, which is the correct behaviour.

VS Code version: Code - Insiders 1.42.0-insider (9349e9a2fdbd1d92824ce99af4a50b6785351b11, 2020-01-06T10:40:10.218Z)
OS version: Windows_NT x64 10.0.18363

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.93GB (7.62GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter -->
Repository: TypeScript
Issue: JSDoc property name is not parsed as expected when non-alphanumeric characters are present and intellisense not showing properties
Labels: Suggestion,Needs Proposal

*TS Template added by @mjbvz*

**TypeScript Version**: 3.8.0-dev.20200104

**Search terms**:
- jsdoc / jsdocs
- completionInfo

---

<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.41.1 (user setup)
- OS Version: Windows_NT x64 10.0.17134

**Origin of this discovery:**
I was trying to document my types which translate to XML classes. The syntax for which includes the "@class" as a property name of my object. This is not possible given the current syntax parsing in VSCode.

**Steps to Reproduce:**

1. Place this code in the editor with the language as Javascript
Code:
```javascript
/**
 * @typedef Foo
 * @property {string} bar Property shows in intellisense
 * @property {string} @baz Property should show in intellisense but does not
 * @property {string} test Property should show in intellisense but does not
 * @property {string} @class Property name "@class" should be a possible property name that
 * does not get interpreted as a JSDoc instruction.
 * @property {string} even#ThisShouldBeAValidName! But the name is not parsed as expeted
 */

/**
 * @type {Foo}
 */
const fooInstance = {
	
}
```

2. Prompt the intellisense to show within the "fooInstance" object.
   1. Expected: The properties @ baz and @ class should be highlighted like normal property names
      1. Actual: The properties are shown as if they were JSDoc instructions
   2. Expected: The property "even#ThisShouldBeAValidName!" should be highlighted like a normal property name
      1. Actual: The property is highlighted as expected until the "#" symbol and then it seems to be treated like a comment
   3. Expected: Intellisense should show all the properties
      1. Actual: Only the first property "bar" is shown. An empty string "" is shown as if it were another property name.


<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: pytorch
Issue: Compile libtorch by source code failed.
Labels: module: binaries,module: cpp,triaged

Hi,guys, i am a newer for pytorch and libtorch, and i want to compile the libtorch by source official code,but there are some problem happened.I compile the source official code by  this(https://github.com/pytorch/pytorch/blob/master/docs/libtorch.rst) guide directly(i don't compile the pytorch),but the problem happened like this:
[2066/2066] Install the project...
-- Install configuration: "Release"
CMake Error at third_party/protobuf/cmake/cmake_install.cmake:48 (file):
  file INSTALL cannot find
  "/home/cyj/Documents/pytorch-test/build_libtorch/build/third_party/protobuf/cmake/CMakeFiles/CMakeRelink.dir/protoc".
Call Stack (most recent call first):
  cmake_install.cmake:80 (include)
  
FAILED: cd /home/cyj/Documents/pytorch-test/build_libtorch/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "../tools/build_libtorch.py", line 23, in <module>
    rerun_cmake=True, cmake_only=False, cmake=CMake())
  File "/home/cyj/Documents/pytorch-test/tools/build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "/home/cyj/Documents/pytorch-test/tools/setup_helpers/cmake.py", line 339, in build
    self.run(build_args, my_env)
  File "/home/cyj/Documents/pytorch-test/tools/setup_helpers/cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '8']' returned non-zero exit status 1
I want to know the reason why i met such problem,Does any deploy i have not set? I just follow the official guide!My environment is ubuntu16.04 cuda10.0 gcc 5.4.0 cmake 3.5.1,the source code is newest.Hope for help,tkx.

cc @ezyang @yf225
Repository: PowerToys
Issue: Quick Display adjustment PowerToy
Labels: Idea-New PowerToy,Product-Display management

End users are asking for a tool to quickly toggle settings of their monitors.  Via taskbar, this should be a quick, easy thing.

Proposed spot, context menu inside PowerToys's systray icon

Edit from @Aaron-Junker: Also add shortcuts to do these actions.

**Features**
- Adjust Resolution per monitor (#27)
- set primary monitor (#727)
- have it be a double check for "seriously, this is my primary monitor :)"
- Set brightness (#835)
- Set brightness to power state (#835)
- Adjust DPI per monitor
- Set nightmode (#48)
- Adjust based on brightness sensor (#718)
- Set HDR (#48)
- 3D mode (#48) <- is this really a thing people toggle?
- Create profiles (#718)
- Load profiles (#718)
- Save profiles (#718)
- sleep monitors
Repository: pytorch
Issue: `index_add_` with multidimensional index
Labels: triaged,module: advanced indexing,function request

## 🚀 Feature
Allow multidimensional index in `index_add_`

## Motivation
`index_add_`  is similar to `scatter_add_` with the index applied on RHS rather than LHS. Unfortunately, currently `scatter_add_` allows multidimensional index while `index_add_` allows 1D index only.

Allowing multidimensional index can make this function much more useful. For example, if a problem involves some kind of (batch) sorting, one might need to permute another tensor the same way as the sorted tensor. In this case, the 1D `index_add_` becomes useless and explicit advanced indexing will waste time doing copy.

I see a similar issue #30574. This is kind of different compared to that because that is more-or-less an api that converts advanced indexing to proper language, while this is a request of a fused-operation.

## Pitch
Make `index_add_` exactly the same as `scatter_add_`, except that the index is applied on the RHS, like:
```python
self[i][j][k] += src[index[i][j][k]][j][k]  # if dim == 0
self[i][j][k] += src[i][index[i][j][k]][k]  # if dim == 1
self[i][j][k] += src[i][j][index[i][j][k]]  # if dim == 2
```

## Alternatives
The alternative is directly do advanced indexing:
```python
self += src[index, arange(src.size(1))[:,None], arange(src.size(2))]
self += src[arange(len(src))[:,None,None], index, arange(src.size(2))]
self += src[arange(len(src))[:,None,None], arange(src.size(1))[:,None], index]
```
But this creates permuted copy of `src` and is less efficient.

CC @ngimel
Repository: TypeScript
Issue: Returned tuples don't match compatible types when using function union types
Labels: Bug

The first error is especially odd.

**TypeScript Version:**  3.7.x-dev.20200104

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
type C1 = (a: 1) => [0];
type C2 = (a: 2) => [number];
type C3 = (a: 3) => undefined;

declare function f(a: C1 | C3): void;
f(() => [0]);
declare function g(a: C2 | C3): void;
g(() => [0]);
```

**Expected behavior:**
pass
**Actual behavior:**
Type 'number' is not assignable to type '0'.(2322)
Property '0' is missing in type 'number[]' but required in type '[number]'.(2741)
**Playground Link:** http://www.typescriptlang.org/play/index.html?ts=3.8.0-dev.20200104&ssl=1&ssc=1&pln=8&pc=14#code/C4TwDgpgBAwgjFAvFAFAQwFxTgSiQPigG0AGAXQG4AoUSWAJiVUynr0UKIDsBXAWwBGEAE6Ua4aDADMTdFintCPLgBMIAMwCWXCCupU1AYwA2aYdHXLDwTQHsuUdXNgIAPrAVYAbrc16qTiiKxOQ41Eam5o5WNvZQAObOMIzu0jjevv6JQQQhZGFAA

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: youtube-dl
Issue: MTV.it
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.01.01. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2020.01.01**
- [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
- [X] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: http://www.mtv.it/video/vkegna/Mario-Una-Serie-Di-Maccio-Capatonda-3x18-Best-of-2
- Single video: http://www.mtv.it/video/p1nyn4/wochit-selena-gomez-look-da-copiare
- Single video: http://www.mtv.it/video/39z50q/Mario-Una-Serie-Di-Maccio-Capatonda-3x17-Best-of-1
- Single video: http://www.mtv.it/episodi/8lhwng/mario-una-serie-di-maccio-capatonda-penultima-puntata-episodio-15-Sn-a-E15
- Single video: http://www.mtv.it/video/topics/Musica/nn37kq/iom2019-zorzi-ava

## Description

<!--
Currently youtube-dl for those links downloads an HTML page.

Seems that the stream is scrambled using a key that is obtained initially. I'm opening this as an issue here because probably you have more experience than me on what to do with the key and the stream.

-->

MTV.it is not working. It downloads just some HTML.
Repository: terminal
Issue: Incorrect Font Fallback Behavior (we fall back to Segoe UI sometimes!)
Labels: Area-Rendering,Issue-Bug,Product-Terminal,Priority-2

_notes from @DHowett_ - we're also falling back to `Segoe UI Symbol` when box-drawing glyphs don't exist. We should have a smart internal font fallback table that we consult _even when we allow customization in #2664._

<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.

**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible.

-->

# Environment

```none
Microsoft Windows [Version 10.0.18362.535]
Windows Terminal version (if applicable): 0.7.3451.0
```

# Steps to reproduce
Print anything in Hebrew when using a font without Hebrew glyphs (e.g. Cascadia Code or Consolas).

![image](https://user-images.githubusercontent.com/16987694/71894989-7fd88200-3158-11ea-9f4d-312e96b4a133.png)


# Expected behavior

So, leaving aside RTL being tough, there's a very specific error here. Namely, font fallback in the code seems to be:
Consolas --> Lucida Console --> Courier New.
This should fail the first two, but the Hebrew charset **is** covered in Courier New, so that should be the font used here. If you set the font to Courier New, you can see that the font rendering itself is not messed up. Still RTL is tough, but -- the ransom note aspect of it is gone.

![image](https://user-images.githubusercontent.com/16987694/71894712-afd35580-3157-11ea-8a84-370d919b13a7.png)

# Actual behavior

With the benefit  of super zooming in, it seems to me that the font being used for Hebrew is *Segoe UI*. I assume that it's some sort of system default, MSFT and whatnot, but that's really not good. Courier New may be jarring, as you'd expect from fallback, but given that it's at least monospaced I assume that the ransom note aspect of the text rendering here wouldn't happen. Segoe UI is not monospaced, and I think that's why you get the ransom note like variation in text sizes.

An important clarification / note: this is **_NOT_** a regression. This is not a new bug, it's been around forever. The only new thing is that I read the source code yesterday and realized that it wasn't supposed to happen.
<!-- What's actually happening? -->
Repository: go
Issue: x/crypto/blake2s: add 224bit variant
Labels: NeedsInvestigation,FeatureRequest

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

irrelevant

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

irrelevant

### What did you do?

Went to https://godoc.org/golang.org/x/crypto/blake2s and looked for 224bit version.

### What did you expect to see?

Something like `func New224(key []byte) (hash.Hash, error)` (kinda like in [crypto/sha256](https://golang.org/pkg/crypto/sha256/#New224)) or `func New(size int, key []byte) (hash.Hash, error)` (like in [x/crypto/blake2b](https://godoc.org/golang.org/x/crypto/blake2b#New)).

### What did you see instead?

I didn't find anything what would clearly enable using canonical blake2s-224 hash.
Truncating New256 output would be ugly and wouldn't match canonical blake2s-224 (output size is embedded into IV).
I don't think blake2s XOF would provide canonical blake2s-224 either.
Repository: flutter
Issue: Inconsistent behavior of RawKeyboardListener on different devices/Android versions
Labels: a: text input,platform-android,framework,engine,P2,team-design,triaged-design

I am trying to get my flutter app to react to events generated when media keys are pressed on a little bluetooth keyboard paired with my android device.

Here's the code snippet that builds the widget I use to evaluate the scenario.

![raw-keyboard-listener-code](https://user-images.githubusercontent.com/1816194/71897913-dc836f00-314f-11ea-8bc9-30f23e1ec891.png)

If I test it on my Google Pixel C tablet running under Android 8.1.0, kernel version 3.18.0-g8ce8444 it works as expected, When the widget is displayed I can press the media buttons on the keyboard and the events are properly generated and passed to the app, handlers are fired etc.

On the other hand, if I test exactly the same code on my Samsung S9 running under Android 9, kernel version 4.9.59-17174122 my attempts to press the media buttons on the keyboard will take no effect until I press one of the numeric keys. After that, the following lines appear in the log 

![Screenshot from 2020-01-07 13:28:00](https://user-images.githubusercontent.com/1816194/71898579-9c24f080-3151-11ea-988c-ac8e52178627.png)

After that the media keys on the keyboard work as expected.
Is there any workaround to that problem?

Finally a question regarding iOS. I am aware that RawKeyboardListerer is not implemented for iOS, but is there a way for a flutter app running on iOS device to react to media buttons like in the above scenario?
Repository: terminal
Issue: Polish Commandline Help MessageBox to be at least like, but at best better than,  `msiexec /?`
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task,Priority-3,Area-Commandline,good first issue

Follow-up task from #4023 

## actual
![image](https://user-images.githubusercontent.com/18356694/71906238-4d665f00-312f-11ea-98c4-24333c9417cc.png)


## expected
![image](https://user-images.githubusercontent.com/18356694/71906281-5f480200-312f-11ea-8e00-a6576163364c.png)
(ideally with monospace text too)


Obviously, better than this would be even more ideal. It's probably not that simple to create a XAML island just for the sake of displaying this text. However, that would be potentially even more modern UI.
Repository: vscode
Issue: API to programatically expand/collapse tree view
Labels: feature-request,api,tree-views

### Request

An API on TreeView which allows extensions to expand or collapse their contributed views within the view container. That is, expand/collapse the view itself, not the items in the view.

### Example Use Case

If I have a view container with multiple contributed views, not all views may be relevant all the time. It would be nice to be able to close the irrelevant views, to give more screen real estate to the relevant ones.

For example, maybe one view shows the definition of the currently selected word in the editor: if nothing in the editor is selected, then ideally this view could just be collapsed since it is providing no value to the user. When something is selected, it should be possible for the extension to re-expand the view.
Repository: rust
Issue: Implementation of std::net::TcpListener::shutdown
Labels: T-libs-api,C-feature-request

Is there any reason why it does not exist yet besides putting in the effort of writing it?
Repository: svelte
Issue: <input> elements in an {#if} that depends on the input value do not fire on:input before they disappear
Labels: feature request,temp-stale,documentation

**Describe the bug**
When you create an input that can be removed because of an if clause around it that depends on the input value, the last `on:input` event of the <input> is not fired because it seems to disappear too quickly.

**Logs**
![Console log showing only three outputs](https://user-images.githubusercontent.com/9006596/71914186-609e1c80-3179-11ea-9312-9a904c5814c1.png)


**To Reproduce**
Minimal example: Remove the text in the input field character by character. For the last input event (the last BackSpace keystroke), no event is fired and `onInput` is not called.

https://svelte.dev/repl/8d8bde660dea46f6b5443fe701cabd2b?version=3.16.7

**Expected behavior**
Before the input field disappears, one last input event is fired and `value: ` is output into the console.

**Information about your Svelte project:**
- Browser: Google Chrome version 79.0.3945.88

- Operating System: Windows 10

- Svelte version: 3.16.7 (newest release)

- Webpack or Rollup: not needed to reproduce the bug (REPL pad)

**Severity**
Not so high: It's just a bit confusing, as I would expect the last input event to fire. This can easily be fixed manually by using `display: none` CSS instead of a Svelte `{#if}` clause.

Manual fix with `display: none` demo (also demonstrating the expected behavior): https://svelte.dev/repl/78fd0c98c9cf4f3fab2c7e6f43cf7fe3?version=3.16.7
Repository: go
Issue: all: stop using non-libc system calls on OpenBSD
Labels: help wanted,OS-OpenBSD,NeedsFix

Upcoming changes to the OpenBSD kernel will prevent system calls from being made unless they are coming from libc.so (with some exceptions, for example, a static binary). There are also likely to be changes to the APIs used for system calls. As such, the Go runtime (and other packages) need to stop using direct syscalls, rather calling into libc functions instead (as has always been done for Solaris and now also for macOS). This will avoid these issues and allow Go to continue to function correctly on OpenBSD.

A version of Go with openbsd/amd64 being modified to perform all calls via libc is available at:

  https://github.com/4a6f656c/go/tree/openbsd-syscall

Further work is still required to convert openbsd/386, openbsd/arm and openbsd/arm64.
Repository: go
Issue: net: error message for ListenIP is confusing
Labels: Documentation,NeedsInvestigation

# net.ListenIP

The documentation of `net.ListenIP` says:
```
The network must be an IP network name; see func Dial for details.
```

However using one of the documented IP network names (like "ip" or "ip4") causes the function to return an error on Linux; e.g. `unknown network ip`.

According to #7439:
```
The first argument of ListenIP should be "network"+":"+"protocol on top of the IPv4 or
IPv6".
````
I confirmed that this works on Linux, but the function is clearly not documented correctly. From #7439 I assume that the format of `network` is platform dependant.

# net.DialIP

The documentation of the network parameter of `net.DialIP` has the same problem as in `net.ListenIP`.