sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: the cmake problem with build from source ?
Labels: module: binaries,triaged

i want to build pytorch from source in conda env , and follow help on https://github.com/pytorch/pytorch#from-source.
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
when i run 'python setup.py build --cmake-only', i got error "cmake  returned non-zero exit status 1."


 CMakeFiles/CMakeError.log detail is 
    "Run Build Command(s):/home/wangzhiwei.yt/anaconda3/envs/py37/bin/ninja cmTC_2c68b 
[1/2] Building CXX object CMakeFiles/cmTC_2c68b.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_2c68b.dir/src.cxx.o 
/usr/bin/c++    -DCAFFE2_IS_NUMA_AVAILABLE -std=c++14 -o CMakeFiles/cmTC_2c68b.dir/src.cxx.o -c src.cxx
src.cxx:1:18: fatal error: numa.h: No such file or directory
 #include <numa.h>
                  ^
compilation terminated.
ninja: build stopped: subcommand failed. "

env detail by get from python  collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Debian GNU/Linux 9.8 (stretch)
GCC version: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
CMake version: version 3.14.0

Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: 10.1.243
GPU models and configuration: 
GPU 0: Tesla T4
GPU 1: Tesla T4
GPU 2: Tesla T4
GPU 3: Tesla T4

Nvidia driver version: 418.67
cuDNN version: /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7

Versions of relevant libraries:
[pip] numpy==1.17.4
[conda] blas                      1.0                         mkl  
[conda] magma-cuda101             2.5.1                         1    pytorch
[conda] mkl                       2019.4                      243  
[conda] mkl-include               2019.4                      243  
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.15           py37ha843d7b_0  
[conda] mkl_random                1.1.0            py37hd6b4f25_0


system  :  Linux n22-190-017 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02) x86_64 GNU/Linux

Could anyone help me?  Thanks!!




      

cc @ezyang
Repository: go
Issue: runtime: pclntab is too big
Labels: NeedsInvestigation,binary-size,compiler/runtime

This article contains results from applying a visualization tool:
  https://www.cockroachlabs.com/blog/go-file-size/
If the analysis is correct, pclntab needs a major redesign.

Separated from #6853 to keep the conversation focused.
Repository: vue
Issue: Event bubbling does not trigger on older iOS devices
Labels: need repro,browser quirks

### Version
2.6.11

### Reproduction link
https://github.com/chenjiahan/vue-event-bubble-issue


### Steps to reproduce
This is a browser quirk on iOS <= 11.3

1. Find an old iOS device. (I reproduced the issue on an iOS 8.4 device)
2. Binding click events on parent and child elements
3. Click child element
4. Event listener for parent element is not firing

### What is expected?
Correct event bubbling behavior

### What is actually happening?
Mobile safari has buggy event.timeStamp implementations, the value of event.timestamp is abnormal when the page is first loaded. But event.timestamp will return to normal value after refreshing the page.

We receive a lot of [feedback from vant users](https://github.com/youzan/vant/issues/3015), it is currently observed that the problem may occur on iOS 8.4、10.2、10.3、11.3 (mobile safari and wechat browser)

Screenshot: 
![](https://img.yzcdn.cn/vant/vue-bubble-log-code.png)

![](https://img.yzcdn.cn/vant/vue-bubble-log-info.jpeg)

---

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: node
Issue: Debugger.setInstrumentationBreakpoint is broken
Labels: inspector

<!--
Thank you for reporting a possible bug in Node.js.

Please fill in as much of the template below as you can.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**: v14.0.0-pre, master branch
* **Platform**: Linux
* **Subsystem**: inspector

<!-- Please provide more details below this comment. -->

Newly added `Debugger.setInstrumentationBreakpoint` inspector API doesn't work for me. Changes were introduced for request #24687. The same API works fine in Chrome.

I've created a test #31137. Breakpoints for scripts with sourcemaps only don't work either. If I use the protocol incorrectly, please let me know which additional methods should be called.
Repository: go
Issue: cmd/go: reject unenforced 'go' versions (older than 1.6) in 'go.mod' files
Labels: Documentation,help wanted,NeedsFix

If I have a very simple Go package that doesn't depend on any language features added since the original Go 1 release, I naturally thought I could put in my go.mod file:

```
go 1
```

But that doesn't parse:

```
$ go install
go: errors parsing go.mod:
/home/me/proj/go.mod:3: usage: go 1.23
```

But `go 1.0` is weird, because we never called it that. Is that correct? Docs don't say.

`go 1.1` is also weird, because it implies that I'm depending on something that was added in Go 1.1, but I'm not.

So I guess `go 1.11` for when modules were introduced?

/cc @ianlancetaylor @bcmills @jayconrod @dmitshur
Repository: youtube-dl
Issue: Unsupported URL: planeta-online.tv
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 2019.12.25. 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 **2019.12.25**
- [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.planeta-online.tv/media/video/show/8254.html
- Single video: http://www.planeta-online.tv/media/video/show/8234.html
- Single TV-stream: http://www.planeta-online.tv/channels/6/live.html
- Single TV-stream: http://www.planeta-online.tv/channels/134/live.html
- Single TV-stream: http://www.planeta-online.tv/channels/2/live.html

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

All video and TV-stream HLS-examples above plays fine in Google Chrome browser.
Repository: godot
Issue: Scrollbars do not reappear after disabling and re-enabling ScrollContainer scrolling.
Labels: bug,topic:gui

**Godot version:**
master

**OS/device including version:**
Windows 10

**Issue description:**
If you disable horizontal or vertical scrolling on a ScrollContainer node, the scrollbar will not reappear upon re-enabling scrolling.

**Steps to reproduce:**
Create a ScrollContainer node with some content. Add the following script:
```
extends ScrollContainer

func _input(event):
	if event is InputEventKey:
		if event.pressed and not event.echo:
			scroll_horizontal_enabled = not scroll_horizontal_enabled
			scroll_vertical_enabled = not scroll_vertical_enabled
			
			# uncomment for workaround
#			set_visible(false)
#			set_visible(true)
```

Run the project and press any key. The scrollbars will be hidden. Press any key again and the scrollbars do not return as expected. (Resizing the window will make them reappear.)

**Minimal reproduction project:**
[ScrollContainer_scrollbar_visibility_bug.zip](https://github.com/godotengine/godot/files/4010580/ScrollContainer_scrollbar_visibility_bug.zip)
Repository: go
Issue: cmd/go: convert tests using testdata files to script framework
Labels: Testing,NeedsFix

I'd like to convert the cmd/go tests using testdata/src as their GOPATH to the script framework. We don't run those tests in parallel because we don't want concurrent go command runs started by the tests using the same GOPATH. While we can modify the test framework to copy the testdata files to a isolated temp directory GOPATH for those tests, I think it's simpler to just convert those tests to the script framework, and that has the additional benefit that we keep the test logic and data together in the same  files making the tests easier to read.
Repository: angular
Issue: Unified Angular Location Service incorrectly parses the initial URL when in useHash mode
Labels: type: bug/fix,area: common,freq1: low,area: upgrade,state: confirmed,P3

# 🐞 bug report

### Affected Package
The issue is caused by package @angular/common/upgrade

### Is this a regression?
probably not

### Description

When:
- The Unified Location Service is being used
- The `{ useHash: true }` mode is active
- During bootstrap, the browser URL contains an initial route in the hash, such as `http://mydomain.com/#/initialRoute`

Then:
I expect the $location path to be `/initialRoute`.
However, the $location `path` is `/` and the `hash` is `/initialRoute`

## 🔬 Minimal Reproduction
[This stackblitz](https://stackblitz.com/edit/angular-hybrid-uniified-location-initial-path?file=angularjs.module.ts) demonstrates the problem.  
When it loads, click the button labelled "Reload page with an initial path in the hash".

The stackblitz also has a toggle between the `$locationShim` from `@angular/common/upgrade` and the old AngularJS `$location` service showing the difference in behavior parsing the initial URL.

## 🌍  Your Environment

**Angular Version: 8**
with @angular/upgrade

**Anything else relevant?**

This issue is related to #34596.
Repository: TypeScript
Issue: When refactoring by renaming destructured arguments, solution is verbose
Labels: Suggestion,Awaiting More Feedback

## Search Terms

refactor renaming redundant
renaming destructured arguments

## Suggestion

Currently VSCode does an amazing job of renaming variables. However, when renaming, destructuring assignments end up overly wordy / misleading.

For example:
```
function contrivedExample(props: PropType) {
    const { prop1, prop2, prop4 } = props;
    return { prop3: prop4 };
}
```

When renaming `prop4` to `prop3`, this correctly becomes:

```
function contrivedExample(props: PropType) {
    const { prop1, prop2, prop3 } = props;
    return { prop3: prop3 };
}
```

but it would be even nicer if it could simply become:
```
function contrivedExample(props: PropType) {
    const { prop1, prop2, prop3 } = props;
    return { prop3 };
}
```

NOTE: this was [originally requested](https://github.com/microsoft/vscode/issues/87535) of the VSCode team but they seem to feel this is a TypeScript-level feature.

## Use Cases, Examples

Please see above for an illustrative example. This is a convenience only.

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: rust
Issue: Incorrect/unexpected behavior with associated type lifetime bounds in lifetime-parametrized traits
Labels: A-lifetimes,A-trait-system,A-associated-items,T-compiler,C-bug

```Rust
trait Bound<'a> {
    type Assoc;
}

trait Bounded<'a, C: Bound<'a>>
where
    <C as Bound<'a>>::Assoc: 'static,
{
}

impl<'a, T> Bounded<'a, T> for T
where
    T: Bound<'a>,
    <T as Bound<'a>>::Assoc: 'static,
{
}
```

This fails with ```the associated type `<T as Bound<'_>>::Assoc` may not live long enough
consider adding an explicit lifetime bound `<T as Bound<'_>>::Assoc: 'static```, despite that very bound clearly being present.

This problem is resolved by removing the `'a` parametrization on `Bound` i.e. 
```Rust
trait Bound {
    type Assoc;
}
```
or by adding the bound explicitly to `Assoc` at definition-site
```Rust
trait Bound {
    type Assoc: 'static;
}
```
but not, for some reason, by adding a HRTB and/or bound on the initial type parameter that should (as far as I understand this) be equivalent
```Rust
impl<'a, T> Bounded<'a, T> for T
where
    T: Bound<'a> + 'static,
    <T as Bound<'a>>::Assoc: 'static,
    for<'b> <T as Bound<'b>>::Assoc: 'static
{
}
```
[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=84929734a411d595b93ed890d17d6ecf)
Repository: flutter
Issue: Tool appears to hang when connected to multiple devices and one's screen has turned off
Labels: tool,a: quality,P2,team-tool,triaged-tool

Steps to reproduce:
1. Connect two devices
2. `flutter run -d all` on some Flutter app (e.g. `flutter create` template app)
3. Turn the screen off on one of the devices.
4. Press "P" to show the performance overlay.
5. Press "h" to show the help.

Expected results: Performance overlay shows on the device whose screen is on. Help screen displays in the console.

Actual results: Nothing happens (assuming the phone you turned off happens to be the one we try to update first). User gets very confused and things everything has hung.
Repository: godot
Issue: Changing type of parent node makes camera gizmo disappear
Labels: bug,topic:editor,confirmed

Godot 3.2 beta4
Windows 10 64 bits
OpenGL ES 3.0 Renderer: GeForce GTX 1060 6GB/PCIe/SSE2

![image](https://user-images.githubusercontent.com/1311555/71604435-e0186400-2b59-11ea-834b-263f795ca631.png)

1) Create a new scene with `Node` as root
2) Add a `Camera` child node
3) Change the type of the root node to be a `Spatial`: observe the camera wireframes disappear, and turn into a box if selected
Repository: flutter
Issue: Device name pattern matching doesn't work past first space character ("-d ...")
Labels: tool,P2,team-tool,triaged-tool

I have a device with the name `SM G960U`.
`flutter logs -d SM` works fine.
`flutter logs -d G96` does not.

In fact, anything past the space, including the space (`flutter logs -d " "`), does not work.
Repository: TypeScript
Issue: Issue errors on tslib version ranges in `package.json`
Labels: Suggestion,Needs Proposal

Similar in spirit to https://github.com/microsoft/TypeScript/issues/33603

@bterlson and friends on the Azure SDK team mentioned that there was an issue with `tslib` where a local installation might grab `tslib@1.10.x`, but could have issues in other environments because their `package.json` specified a minimum version (`1.9.x`) which was too old.

I don't think that we generally dive into `package.json` to issue errors, but this seemed pretty unexpected, and it leads to more obvious behavior than with issuing errors about missing exports.

On the other hand, this might be a problem for slightly more esoteric but legitimate use-cases like alternate implementations/sources of `tslib`. For example, a user could point `tslib` at a local folder or a GitHub URL.
Repository: TypeScript
Issue: Support JSX transformations with custom jsxFactory
Labels: Suggestion,Awaiting More Feedback

## Search Terms

`jsx`, `jsxFactory`, `transformer`

## Suggestion

Allow tapping into the JSX generation process to control `React.createElement` output format when using `--jsxFactory`.

_Specific cases requested (e.g. #15217, #32619) would also benefit from a generalized solution._

## Use Cases

### Emit component children as thunks

Useful to reactive frameworks which attach dependency tracking via the JSX component hierarchy.

The internal [createJsxFactoryExpression()](https://github.com/microsoft/TypeScript/blob/36c87aca8a1b0fd6aa079e378cd176cf1cbf4467/src/compiler/factory.ts#L129-L136) call LHS is controlled using the `--jsxFactory` compiler option:

```ts
// jsx
<div>
  <div>a</div>
  <div>b</div>
</div>

// current emit (jsxFactory: "h")
h('div', null, 
  h('div', null, 'a'), 
  h('div', null, 'b')
)
```

This produces a nested `React.createElement()`/`h()` chain which evaluates eagerly.

With (still synchronous) thunks, frameworks can track each component dependency as they traverse the tree, for fine-grained change detection:
```ts
// thunks (needs transformer)
h('div', null, () => [
  h('div', null, () => ['a']), 
  h('div', null, () => ['b'])
])
```

This requires recursively transforming the JSX emits to a signature of `h()` which accepts some args as a thunk.

I've written a hacky (#16607) transformer for this but had to extract most of the JSX-related internals from the TypeScript compiler, whereas making the change to [createExpressionForJsxElement()](https://github.com/microsoft/TypeScript/blob/36c87aca8a1b0fd6aa079e378cd176cf1cbf4467/src/compiler/factory.ts#L138-L168) is trivial:

```ts
const cs = argumentsList.slice(2);
const argThunk = ts.createArrowFunction(
    [],
    [],
    [],
    undefined,
    undefined,
    ts.createArrayLiteral(cs)
);
const thunkified = [...argumentsList.slice(0, 2), argThunk];
```

According to #34547, plans are already in motion to pass nested component args as arrays instead of varargs. Specifying the `jsxFactory` implies we are assuming control of the composition behavior; we should also control the function signature.
Repository: vscode
Issue: Issue Reporter editor no undo/redo
Labels: feature-request,issue-reporter,papercut :drop_of_blood:

Issue Type: <b>Bug</b>

It seems we can't run undo/redo in the comment editor of issue reporter.

VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:57:51.166Z)
OS version: Darwin x64 19.0.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)|
|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: unavailable_off<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)|2, 2, 2|
|Memory (System)|32.00GB (0.38GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (1)</summary>

Extension|Author (truncated)|Version
---|---|---
python|ms-|2019.11.50794

(2 theme extensions excluded)

</details>
<!-- generated by issue reporter -->
Repository: opencv
Issue: Is there alternative function for dnn_registerLayer?
Labels: category: dnn

Now, i am changing to python code to java code.

I have tested various opencv versions ( 4.2 4.1 3.4.9 3.4.4)

I have tried to run caffe.model ( using dnn)

In Python code, i used cv2.dnn_registerLayer function 

But In opencv sdk, there is no function. 

i searched it on Google, but i couldnot found.

Is there alternative function for dnn_registerLayer?

Please help me T.T

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => :grey_question:
- Operating System / Platform => :grey_question:
- Compiler => :grey_question:

##### Detailed description

<!-- your description -->

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
Repository: godot
Issue: Extend Script is inheriting from the wrong class
Labels: bug,topic:editor,topic:dotnet

**Godot version:**
3.2.beta4.mono.offical

**OS/device including version:**
Windows 10

**Issue description:**

The extend script tool appears to be ignoring the attached C# script and instead is extending the base node type.

**Steps to reproduce:**
1. Use the Scene panel to add a new node of type Node.
1. Use the Scene panel to select this node then right-click and and select Attach Script. Use Langauge: `C#` and name: `ScriptA.cs`.
2. Use the Scene panel to select this node then right-click and select Extend Script.

Note that the dialog defaults to inheriting `Node` not `ScriptA.cs`.
![2019-12-31 09_54_58-Godot Engine - extend (_)](https://user-images.githubusercontent.com/1151394/71607384-01a63980-2bb4-11ea-825d-b6d4873f6e1e.png)
Repository: pytorch
Issue: sparse tensor eliminate_zeros
Labels: module: sparse,feature,triaged

## 🚀 Feature
In `scipy.sparse.coo_matrix`, there is a method [`eliminate_zeros`](https://github.com/scipy/scipy/blob/v1.4.1/scipy/sparse/coo.py#L556-L564). It eliminates all the zero values in `values` and the corresponding indices in `indices`, which I think simple but sometimes  useful.

I tried to  implement it myself for pytorch, but I found that `indices` and `values` are both private attributes for sparse tensor, and I didn't find any `set` functions for them. Meanwhile, if we get the `indices` and `values`, and eliminate zeros, and then create a new sparse tensor with eliminated ones, this way works but in my opinion inefficient. So I think maybe we need to make method `eliminate_zeros` in the sparseTensor class.


cc @nikitaved @pearu @cpuhrsch @IvanYashchuk @vincentqb