id
int64 393k
2.82B
| repo
stringclasses 68
values | title
stringlengths 1
936
| body
stringlengths 0
256k
⌀ | labels
stringlengths 2
508
| priority
stringclasses 3
values | severity
stringclasses 3
values |
---|---|---|---|---|---|---|
234,304,766 | pytorch | Add support for colors (and maybe other attributes) to NVTX API | **Summary.** The functions in `torch.cuda.nvtx` can currently be associated with ASCII text only. However, the NVIDIA APIs permit more options, including custom colors. http://docs.nvidia.com/cuda/profiler-users-guide/#nvtx Your goal in this ticket is to add support for this.
**What you will learn.**
1. How to do pure Python development in PyTorch
2. How to use the ctypes library in Python to pass structures to C functions
3. How to use nvprof and nvvp to view your beautiful annotations
**How to do it.** The relevant code is in `torch/cuda/nvtx.py`. You should add extra arguments for the various extra options, and then write code to call the correct API calls (as per NVIDIA's API documentation). There are various other implementations of colors elsewhere on the web, see also:
* https://github.com/apaszke/torch-nvtx
* https://github.com/cupy/cupy/blob/master/cupy/cuda/nvtx.pyx
cc @ngimel | newcomer,module: cuda,triaged | medium | Major |
234,319,507 | youtube-dl | [vgtv] Add support for authentication | C:\Users\Duiz\Downloads\Movies> youtube-dl.exe http://www.vgtv.no/#!/video/138243/tv-junkie -u ***** -p ********
[VGTV] 138243: Downloading media JSON
[VGTV] 138243: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 403: Forbidden
[VGTV] 138243: Downloading f4m manifest
WARNING: Unable to download f4m manifest: HTTP Error 403: Forbidden
ERROR: This video is not available from your location due to geo restriction
This video is available in Norway.
You might want to use a VPN or a proxy server (with --proxy) to workaround. | account-needed | low | Critical |
234,329,830 | TypeScript | Suggestion: shorthand syntax for annotating function with type | I like to define types for my functions by separating the type out from the value:
```ts
type id = <A>(a: A) => A;
const id: id = a => a;
```
This helps particularly for longer functions where the parameter list often spans many columns and multiple lines.
However, compared to Elm/Haskell, this code is quite boilerplate-y. I wonder if there is some shorthand syntax we could add to make this pattern more concise. For example, the same code in Elm/Haskell:
``` elm
id : a -> a
id a = a
```
The boilerplate in the current TypeScript syntax is:
- Manual annotation of value (`id`) with type of same name (`id`). Could this be automatic, e.g. matched by name?
- TypeScript requires parameter names for the function type, but are these always required? Could the function type simply by `A => A`, omitting the parameter names? Or would this cause problems? | Suggestion,Awaiting More Feedback | low | Major |
234,336,344 | rust | `cfg_target_feature` and `target_feature` don't interact properly | This should panic but it doesn`t
```
#[target_feature = "+avx"]
pub fn should_panic() {
#[cfg(target_feature = "avx")]
panic!("have_avx");
}
```
I would like for this to work because I have a macro that generates 2 copys of a function, one with `#[target_feature = "+feat"]` and one without and I want to conditionally use some assembly when the feature is available.
CC #29717 | T-lang,A-SIMD,C-bug,A-target-feature | medium | Major |
234,336,821 | flutter | Isolate.spawnUri() throws a confusing exception | @jason-simmons @abarth
From a closed issue #8084 it seems like `Isolate.spawnUri()` is not supported under flutter. However, the `IsolateSpawnException` thrown doesn't represent the not-implemented state of this method. Even when using `file://` URIs the exceptions states `Isolates must use file:// URIs`
Documentation for `Isolate.spawnUri()` also exists in the flutter documentation without mention that this method isn't supported: https://docs.flutter.io/flutter/dart-isolate/Isolate/spawnUri.html
## Steps to Reproduce
Use `Isolate.spawnUri()` with any URI.
## Logs
```
[ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
IsolateSpawnException: Unable to spawn isolate: Isolates must use file:// URIs
#0 Isolate.spawnUri (dart:isolate-patch/isolate_patch.dart:440)
<asynchronous suspension>
#1 _TestPageState._getHello (/lib/main.dart:140:19)
<asynchronous suspension>
#2 _TestPageState._onPressedHello (/lib/main.dart:123:5)
#3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:229:14)
#4 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:67:24)
#5 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:149:9)
#6 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:92:7)
#7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:266:9)
#8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
#9 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
#10 BindingBase&SchedulerBinding&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:127:19)
#11 BindingBase&SchedulerBinding&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:105:22)
#12 BindingBase&SchedulerBinding&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:86:7)
#13 BindingBase&SchedulerBinding&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:45:7)
#14 BindingBase&SchedulerBinding&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:38:5)
#15 _dispatchPointerDataPacket (file:///b/build/slave/Mac_Engine/build/src/flutter/lib/ui/hooks.dart:73)
```
## Flutter Doctor
```
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale en-US, channel master)
• Flutter at /Users/matthewhurst/Projects/flutter
• Framework revision 3e645ee2db (7 hours ago), 2017-06-07 15:54:29 +0200
• Engine revision 8686a45810
• Tools Dart version 1.24.0-dev.3.0
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
• Android SDK at /Users/matthewhurst/Library/Android/sdk
• Platform android-25, build-tools 25.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.2, Build version 8E2002
• ios-deploy 1.9.1
• CocoaPods version 1.2.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Gradle version 3.2
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Community Edition (version 2017.1.3)
• Flutter plugin version 14.0
• Dart plugin version 171.4424.63
[-] WebStorm (version 2017.1.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• For information about managing plugins, see
https://www.jetbrains.com/help/idea/managing-plugins.html
[✓] Connected devices
• iPhone 6 • 25593D6D-F20D-4759-91BF-A20F0263FD10 • ios • iOS 10.3 (simulator)
``` | c: crash,engine,dependency: dart,P2,team-engine,triaged-engine | low | Critical |
234,380,811 | vue | transition-group DOM update lag when using css frameworks | ### Version
2.3.3
### Reproduction link
[http://jsbin.com/fegogus/edit?html,css,js,output](http://jsbin.com/fegogus/edit?html,css,js,output)
### Steps to reproduce
Apply a transition group to v-for when using popular CSS frameworks, most noticeable with Semantic-UI but also apparent with Bootstrap. Example uses table rows but issue also appears with something more simple, such as an unordered list.
### What is expected?
Transition group continues to have similar performance as it does without any CSS applied
### What is actually happening?
There is a considerable amount of update lag, particularly when changing the v-for array using slice
---
This obviously walks the line between a VueJS issue and an issue for one of the involved frameworks. I'm opening the case here though as honestly I don't know that anyone on the Semantic-UI side of things would be able to help.
The example is a little more complicated than needed to reproduce the issue simply because I wanted to show my use case - which is animating additions to the array used by v-for but otherwise having no transitions. This is because the table will also be paginated (sliced) or sorted and I don't want to animate that process at all.
In the example you can toggle using a transition-group on and off. Without the transition group the DOM updates instantly as expect. With it turned on, and even without any transition being active, you can see that toggling between sliced and the full array is very slow to update the visible DOM.
Also sorry for submitting this three times, the new issue vue site was doing something goofy in Chrome, had to switch to Safari.
<!-- generated by vue-issues. DO NOT REMOVE --> | improvement,transition | low | Major |
234,469,821 | node | When using pipes other than stdin, stdout, stderr for streaming data into a child process, ENOTCONN error is thrown | ### Version:
tested with 7.5 and 8.0
### Platform:
OSX Sierra; Darwin Kernel Version 16.3.0 root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
### Example code:
`brew install imagemagick`
```javascript
const request = require('request');
const spawn = require('child_process').spawn;
// const subProcess = spawn('convert', ['fd:0', '-size', '100x100', '-'], {stdio: [null, null, null, 'pipe']});
// request.get('https://tinyurl.com/zyksbz7').pipe(subProcess.stdio[0]); // this works
const subProcess = spawn('convert', ['fd:3', '-size', '100x100', '-'], {stdio: [null, null, null, 'pipe']});
request.get('https://tinyurl.com/zyksbz7').pipe(subProcess.stdio[3]); // this does not
subProcess.stdout.on('data', (data) => {
console.log('new data: ', data);
});
```
### Details:
I am trying to pipe a stream, which i got from request, to the command line in order to manipulate the received data. When i am sending the data to stdin of the child process, everything works fine. In my example, you can see that result by running the commented code rather than the uncommented.
If I pipe the stream to a pipe other than stdin, stdout or stderr, which should be possible according to the [docs](https://nodejs.org/api/child_process.html#child_process_options_stdio) I get the following exception:
```
events.js:182
throw er; // Unhandled 'error' event
^
Error: shutdown ENOTCONN
at exports._errnoException (util.js:1026:11)
at Socket.onSocketFinish (net.js:298:25)
at emitNone (events.js:105:13)
at Socket.emit (events.js:207:7)
at finishMaybe (_stream_writable.js:579:14)
at endWritable (_stream_writable.js:587:3)
at Socket.Writable.end (_stream_writable.js:538:5)
at Socket.end (net.js:490:31)
at Request.onend (internal/streams/legacy.js:44:10)
at emitOne (events.js:120:20)
at Request.emit (events.js:210:7)
at IncomingMessage.<anonymous> (/Users/ferencbeutel/IdeaProjects/imageprocessing/node_modules/request/request.js:1091:12)
at Object.onceWrapper (events.js:312:19)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1045:12)
at /Users/ferencbeutel/IdeaProjects/imageprocessing/node_modules/async-listener/glue.js:188:31
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
```
I tried multiple things, for example passing in the stream object directly when specifying the stdio object (which should be possible too according to the linked doc entry) but then I get a type error, even though I am clearly passing in a stream. I cant see the difference between the two examples I provided and am rather puzzled by the different result.
Thanks for looking into this! | child_process,process,stdio | low | Critical |
234,504,721 | opencv | Update OpenCV-Python Bindings to expose internal C function API using capsule | I am trying to use OpenCV 3.2 using the python binding, while moving some of my code to a python extension (implemented in C++). To interpret function arguments correctly, it would be very useful to be able to access to the functions in modules/python/src2/cv2.cpp. This can be done by using capsules, so that my module can access the conversion functions such as "bool pyopencv_to(PyObject* o, UMat& um, const ArgInfo info)"
Currently, the main alternative is to re-implement this functionality in the new module. I believe this is the approach taken by https://stackoverflow.com/questions/12957492/writing-python-bindings-for-c-code-that-use-opencv
For more info see: https://docs.python.org/3.1/extending/extending.html#using-capsules | category: python bindings,RFC | low | Major |
234,509,541 | go | image/png: don't ignore PNG gAMA chunk | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
go version go1.8.1 linux/amd64
### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/valentin/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build951360311=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
### What did you do?
Decoded `fruit.png` (which contains a strong gamma value in a gAMA chunk).
Encoded back to `result.png`.
Opened `result.png` in a gAMA-aware viewer (Chromium)
### What did you expect to see?
A pear.
### What did you see instead?
An apple.
I understand (after reading file `reader_test.go` and part of the PNG spec) that handling ancillary chunks (e.g. gAMA) is not a requirement for a PNG decoder. I also understand that implementing it would require some (unknown to me) amount of work. So, the question boils down to "would it be a good idea or not to take the gAMA chunk into account?".


| help wanted,NeedsInvestigation | low | Critical |
234,521,154 | go | encoding/xml: add whitespace normalization from spec | ### What version of Go are you using (`go version`)?
go version go1.8.3 darwin/amd64
### What operating system and processor architecture are you using (`go env`)?
darwin/amd64
### What did you do?
for attribute values, all whitespace characters (#x20, #xD, #xA, #x9), should be normalized to a space character (see https://www.w3.org/TR/REC-xml/#AVNormalize)
go program used to test: (https://play.golang.org/p/mCRrxvyh25)
~~~go
package main
import (
"encoding/xml"
"fmt"
"strings"
)
func main() {
decoder := xml.NewDecoder(strings.NewReader(`<a p1="v1
v1"/>`))
t, _ := decoder.Token()
if e, ok := t.(xml.StartElement); ok {
fmt.Printf("%q", e.Attr[0].Value)
}
}
~~~
### What did you expect to see?
~~~
"v1 v1"
~~~
### What did you see instead?
~~~
"v1\n\nv1"
~~~
Tested the same with xmllint program:
~~~bash
$ cat test.xml
<x p1="v1
v2"/>
$ xmllint test.xml
<?xml version="1.0"?>
<x p1="v1 v2"/>
~~~
| help wanted,NeedsFix | low | Major |
234,523,352 | vscode | Provide Task Runner viewlet | <!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode -->
We did a Task 2.0 deep dive today and this issue collects the combined feedback received.
### Task Properties
- echo should be true by default so that users get a better idea of the task executed
- we should support flattening the JSON properties as we do with other settings (e.g `"terminal.echo": true` instead of `"terminal": { "echo": true }`
- we should better separate task declaration from task customization. Currently both happens in the tasks array property and the differentiating element is the `customize` property.
### Task Picker
The task picker should support a decription / detail message to better explain what the task does. We also discussed whether the task picker should support MRU which would automatically move the most used tasks up to the top without customization. If we provide a task panel (see below) such a MRU list could be useful there as well.
### Task Customization
The task customization is currently instance based where the task instance is identified by a task id, which can be quite 'cryptic'. An alternative way would be to identify a task based on a type and a key that is defined by the type and therefore can vary from task runner to task runner. So instead of having something like:
```json
{
"customize": "vscode.npm.run build",
"taskName": "npm: run build"
}
```
a customization would look like this
```json
{
"customize": {
"type": "npm",
"file": "${workspaceRoot}/package.json",
"script": "build"
},
"problemMatcher": ["$tsc"]
}
```
where the structure of the identifying attribute is defined by the extension providing the runner support. In the example above the fact that a npm script is identified by the location of the package.json file and the script name comes from the npm extension. This might look different for task contributed by gulp of TypeScript
### Problem Matchers
For task that execute a target of a task runner (e.g. gulp, npm, grunt) VS Code can't decide which problem matchers to attach. Since picking the right problem matcher currently requires editing the tasks.json file we should better support the user with this. We discussed the following ideas:
- always attach all known problem matchers if a task has no problem matchers. This might result in false positives and might require us to support removing problem matchers via a configuration mechanism.
- we could help the user attaching a problem matcher by generically scanning the output for problems and suggest problem matchers that exactly match these. If selected we update the tasks.json file for the user.
### Task panel
It was suggested to run tasks in its own panel instead of reusing the terminal panel. They should still be executed using the terminal to get ANSI control character support and other nice terminal features (e.g. Ctrl+C). The panel could offer additional features like:
- a task summary (execution time, exit code, ...)
- the output of a task could be folded (like travis does for example)
- allow for in place customization of a task (for example attach a problem matcher) without the user being forced to edit a tasks.json file.
We also discussed the need of a task viewlet but decided that this will not add any big additional value over the task picker and a separate panel.
### Top Level Menu
We were also discussing whether the tasks deserve a top level menu. In general this was consider a good idea. However such a menu should be semantically not technical. So instead of naming it Tools or Tasks it would be better to offer top level menus like Build, Rebuild All, Clean, Run Tests. The downside of such an approach is that such a menu looks out of place if none of these entries trigger any meaningful action in the workspace (e.g. if a simple JS project is open at lease Build, Rebuild All and Clean don't make any sense)
### Better Selfhosting
Would be great if we can improve the self hosting coverage of tasks. This is currently hard to do due to the fact how we build. But @dbaeumer will tweak our tasks.json to support more tasks currently run in the terminal (e.g run tests, linting, ...) | feature-request,tasks,ux | high | Critical |
234,566,829 | TypeScript | Error inferring tuple type arguments | **TypeScript Version:** nightly (2.4.0-dev.20170608)
**Code**
```ts
interface IPromise<T> {
then<U>(onFulfill: (value: T) => IWhenable<U>): IPromise<U>;
}
interface QPromise<T> {
then<U>(onFulfill: (value: T) => IWhenable<U>): IPromise<U>;
}
type IWhenable<T> = IPromise<T> | T;
declare function all<A, B>(promises: IWhenable<[IWhenable<A>, IWhenable<B>]>): IPromise<[A, B]>;
declare const prom1: QPromise<[QPromise<string>, QPromise<number>]>;
const x1: IPromise<[string, number]> = all(prom1);
const prom2: IPromise<[IPromise<string>, IPromise<number>]> = prom1;
const x2: IPromise<[string, number]> = all(prom2);
```
**Expected behavior:**
Since `IPromise` and `QPromise` have identical bodies, I would expect these to both work.
**Actual behavior:**
`x1` fails, `x2` succeeds.
```
src/a.ts(14,7): error TS2322: Type 'IPromise<[QPromise<string>, QPromise<number>]>' is not assignable to type 'IPromise<[string, number]>'.
Type '[QPromise<string>, QPromise<number>]' is not assignable to type '[string, number]'.
Type 'QPromise<string>' is not assignable to type 'string'.
``` | Bug | low | Critical |
234,584,337 | opencv | Include LKTracker in Trackers class | LK Tracker is a part of the Optical Flow module. I would like to suggest that we add it as a tracker in the Tracker class. This will also enable its use in MultiTracker and make it easier to switch to.
I can start working on the same if you suggest it's a good idea. | feature,category: video,RFC | low | Minor |
234,587,962 | rust | Slow "llvm module passes" | This crate https://github.com/snipsco/rustling-ontology takes a very long time to compile, more than I would expect. -Z time-passes show this culprit:" time: 269.113 llvm module passes [0]" accounting for ~95% of the compilation time.
From my understanding, it is atypical, so maybe there is something interesting there. I'm not too sure how to investigate more. | A-LLVM,C-enhancement,I-compiletime,T-compiler | low | Major |
234,597,047 | go | proposal: spec: disallow assigning >32bit untyped constant to variable of type int | I propose that the Go language and implementations be changed to reject a constant assignment to a variable of type `int` (or `uint`) if the constant would overflow a **32-bit** `int` (or `uint`), regardless of the size of `int` on the current GOOS.
That is, on `amd64`, this would be rejected:
```go
const MaxInt64 = 1<<63 - 1
var x int = MaxInt64
```
Currently that passes on 64-bit platforms but fails when people cross-compile it to Raspberry Pis or run it on the playground (https://play.golang.org/p/4PK8z_WBKi).
This bites people like in https://github.com/GoogleCloudPlatform/google-cloud-go/issues/648 where it lurks unnoticed by users & continous builds for a long time, until somebody builds the code for the increasingly rare 32-bit machines.
/cc @griesemer
| LanguageChange,Proposal,LanguageChangeReview | medium | Major |
234,613,534 | flutter | FlutterDriver reports the target device | Internal: b/124657370
Currently the flutter driver test that collections screenshots (see examples/catalog/bin/screenshot_test.dart.template) incorrectly assumes that if it's running on MacOS, it's targeting an iOS device.
It would preferable to just ask the FlutterDriver for the target device's deviceId, or OS.
I've patched the problem for now https://github.com/flutter/flutter/pull/10583
| a: tests,tool,t: flutter driver,customer: google,P2,team-tool,triaged-tool | low | Minor |
234,697,233 | three.js | Plane.intersectLine An extension parameter should be added | ##### Description of the problem
Because the method does not provide bi-directional rays.
So I think it is useful.
in Plane.js line 154:
`
if (!extensionLine && ( t < 0 || t > 1 )) {
return undefined;
}
`
##### Three.js version
- [ ] Dev
- [x] r85
- [ ] ...
##### Browser
- [x] All of them
- [ ] Chrome
- [ ] Firefox
- [ ] Internet Explorer
##### OS
- [x] All of them
- [ ] Windows
- [ ] macOS
- [ ] Linux
- [ ] Android
- [ ] iOS
##### Hardware Requirements (graphics card, VR Device, ...)
| Suggestion | low | Major |
234,734,152 | vscode | [theme] Request the feature: "editor.lineHighlightForeground". | ### Request the feature: "editor.lineHighlightForeground"
Sometimes it is essential to adjust the colour of the selected text by:
**'editor.lineHighlightBackground'.**
Colour merges if the highlighting line and text colours are identical.
An example:
`'editor.lineHighlightBackground': '#000000',
'editor.lineHighlightForeground': '#fffffff'`.
Cheers.
| feature-request,themes | low | Major |
234,747,428 | node | vcbuild does not always generate field <TargetMachine> in project files. | <!--
Thank you for reporting an issue.
This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help
Please fill in as much of the template below as you're able.
Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name
If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you are able.
-->
* **Version**: v9.0.0-pre
* **Platform**: Windows 10 x64
* **Subsystem**:
<!-- Enter your issue details below this comment. -->
When generating project files for node, gyp does not include <TargetMachine> for librarian but does so for linker. As a result the linking fails as MSBuild will default unknown machine to x64 (on x64 platforms).
The result is as follows:
```
vcbuild.bat debug static vs2017 x86
...
LINK : warning LNK4068: /MACHINE not specified; defaulting to X64 [c:\Users\tamaroth\Downloads\node\node.vcxproj]
Debug\obj\node\async-wrap.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' [c:\Users\tamaroth\Downloads\node\node.vcxproj]
```
This is manually easily fixed by modyfying .vcxproj file to include proper <TargetMachine> inside <Lib>.
For instance, from the above command, the node.vcxproj file in Debug|Win32 configuration has this entry:
```
<Lib>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
</Lib>
```
If I modify it to
```
<Lib>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
<TargetMachine>MachineX86</TargetMachine>
</Lib>
```
Everything works great.
Inside
node\tools\gyp\pylib\gyp\msvs_emulation.py
in function GetLibFlags (line: 515) it says to add specific machine, but for some reason it's not added later on to the project file. | confirmed-bug,help wanted,windows,build | low | Critical |
234,755,305 | TypeScript | Mixin classes don't allow constructors of _generic_ 'object' types | **TypeScript Version:** 2.3.4, 2.4.0-dev.20170609
**Code:**
```ts
type Constructor<T> = new (...args: any[]) => T;
const Timestamped = <I extends object, CT extends Constructor<I>>(Base: CT) => {
return class extends Base {
timestamp = new Date();
};
};
```
**Expected behavior:**
Should be able to use the generic `I` as an argument to `Constructor`.
**Actual behavior:**
Compiling this yields the following error:
```
error TS2509: Base constructor return type 'I' is not a class or interface type.
```
**Note:**
This is a variation on https://github.com/Microsoft/TypeScript/issues/13805 where the following compiles successfully:
```ts
type Constructor<T> = new (...args: any[]) => T;
const Timestamped = <CT extends Constructor<object>>(Base: CT) => {
return class extends Base {
timestamp = new Date();
};
};
```
| Suggestion,Awaiting More Feedback | medium | Critical |
234,772,399 | go | mobile/app/x11.go: Support mouse events for X | ### What version of Go are you using (`go version`)?
```
go version go1.8.3 linux/amd64
```
### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/veger/devel/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build373476887=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```
### What did you do?
Click a mouse button in an X window
### What did you expect to see?
I expect to see a `mouse.Event` on my event channel
### What did you see instead?
I see a `touch.Event` instead.
| mobile | low | Critical |
234,815,723 | angular | Better syntax checking of index syntax in ngFor | **I'm submitting a ...**
```
[x] bug report => search github for a similar issue or PR before submitting
```
**Current behavior**
Silence
**Expected behavior**
Syntax error
**Minimal reproduction of the problem with instructions**
`*ngFor="let elem of elements; let i of index"`
Notice the "of index", which should be "= index".
Got no errors of any sorts, but the behavior is the same as "i = elem", leading to nasty runtime bugs.
**What is the motivation / use case for changing the behavior?**
To avoid spending hours on stupid bugs like that.
**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->
* **Angular version:** 2.0.X
Latest officially released 4
* **Browser:**
all
* **Language:**
TypeScript 2
| type: bug/fix,hotlist: error messages,freq2: medium,area: core,area: compiler,core: ng-template and *microsyntax,P3,compiler: template type-checking | low | Critical |
234,897,117 | opencv | cv::transform requires Nx1 C-channel Mats, doesn't take NxC Mats | - OpenCV => 3.2
`cv::transform` uses .channels() to check if the src input has the appropriate number of "columns". however, it assumes that the src matrix has this dimension as a channel count, not as a number of columns. the function does use m.cols (of the transform matrix) though.
This requires me to pass reinterpreted input matrices. For the python case, that's a reshape to (-1, 1, dcn) or similar. I find that tedious.
Other OpenCV functions use .checkVector(). Maybe there's something even more fitting, but I'm not that familiar with the code base.
| RFC | low | Minor |
234,901,204 | flutter | Accessibility Checker | Would be cool to have an accessibility checker (maybe as analyzer plugin) that tells people what's missing in their flutter app to make it accessible. It should for example warn if there are controlls without meaningful labels. | c: new feature,tool,a: accessibility,P3,team-tool,triaged-tool | low | Major |
234,901,764 | youtube-dl | [adultswim] Problem resuming an HLS-native download | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x ] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x ] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x ] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
Well, with crypto / native downloader, rate limiting, and a nicely functioning network/router ...
Still hung at 96%, but at least it resumed/finished.
Died on ffmpeg at the end.
VLC will not play the mp4 file.
So, it downloaded, but something went wrong.
```
keybounceMBP:AdultSwim michael$ ./yt-dl http://www.adultswim.com/videos/dragon-ball-z-kai/stunning-youngsters-no-18s-uphill-battle/
[debug] System config: []
[debug] User config: ['-k', '-o', '%(title)s.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mkv', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-v', '--hls-prefer-native', '--keep-fragments', '-r', '230k', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '--include-ads', 'http://www.adultswim.com/videos/dragon-ball-z-kai/stunning-youngsters-no-18s-uphill-battle/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[AdultSwim] stunning-youngsters-no-18s-uphill-battle: Downloading webpage
[AdultSwim] yg6tkv1KS3yUltXY4HS5zA: Downloading XML
[AdultSwim] 1400176: Retrieving Authorization Token
[AdultSwim] 1400176: Retrieving Media Token
[AdultSwim] 1400176: Downloading XML
[AdultSwim] 1400176: Downloading m3u8 information
[AdultSwim] 1400176: Downloading m3u8 information
[debug] Invoking downloader on 'http://androidhls-secure.cdn.turner.com/adultswim/big/secure/tve/2017-05/ASOE1004271700075224_HLS/ASOE1004271700075224_Layer6_vod.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 131
[download] Destination: Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4
[download] 96.9% of ~340.06MiB at 242.12KiB/s ETA 00:51^C
ERROR: Interrupted by user
keybounceMBP:AdultSwim michael$ ./yt-dl http://www.adultswim.com/videos/dragon-ball-z-kai/stunning-youngsters-
no-18s-uphill-battle/
[debug] System config: []
[debug] User config: ['-k', '-o', '%(title)s.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mkv', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-v', '--hls-prefer-native', '--keep-fragments', '-r', '230k', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '--include-ads', 'http://www.adultswim.com/videos/dragon-ball-z-kai/stunning-youngsters-no-18s-uphill-battle/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[AdultSwim] stunning-youngsters-no-18s-uphill-battle: Downloading webpage
[AdultSwim] yg6tkv1KS3yUltXY4HS5zA: Downloading XML
[AdultSwim] 1400176: Retrieving Media Token
[AdultSwim] 1400176: Downloading XML
[AdultSwim] 1400176: Downloading m3u8 information
[AdultSwim] 1400176: Downloading m3u8 information
[debug] Invoking downloader on 'http://androidhls-secure.cdn.turner.com/adultswim/big/secure/tve/2017-05/ASOE1004271700075224_HLS/ASOE1004271700075224_Layer6_vod.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 131
[download] Destination: Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4
[download] 100% of 338.38MiB in 00:42
[debug] ffmpeg command line: ffprobe -show_streams 'file:Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4'
[ffmpeg] Converting video from mp4 to mkv, Destination: Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mkv
[debug] ffmpeg command line: ffmpeg -y -i 'file:Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4' 'file:Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mkv'
ERROR: file:Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4: Invalid data found when processing input
Traceback (most recent call last):
File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1943, in post_process
files_to_delete, info = pp.run(info)
File "/Users/michael/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 337, in run
self.run_ffmpeg(path, outpath, options)
File "/Users/michael/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 208, in run_ffmpeg
self.run_ffmpeg_multiple_files([path], out_path, opts)
File "/Users/michael/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 204, in run_ffmpeg_multiple_files
raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: file:Dragon Ball Z Kai/s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4: Invalid data found when processing input
keybounceMBP:AdultSwim michael$
```
For what it's worth, here are the timestamps at the "seam". Fragments all look about the same size (so it's not like one only got half downloaded and 'gapped'.)
```
2456 -rw-r--r-- 1 michael staff 2512448 Jun 9 09:59 s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4.part-Frag128
2456 -rw-r--r-- 1 michael staff 2512816 Jun 9 09:59 s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4.part-Frag127
2472 -rw-r--r-- 1 michael staff 2529552 Jun 9 09:53 s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4.part-Frag126
2468 -rw-r--r-- 1 michael staff 2526544 Jun 9 09:53 s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4.part-Frag125
2508 -rw-r--r-- 1 michael staff 2566592 Jun 9 09:53 s01-e118-Dragon Ball Z Kai - DBZ Kai 118.mp4.part-Frag124
```
| tv-provider-account-needed | low | Critical |
234,959,124 | TypeScript | TypeScript Language Service is slow to load projects over network file systems | **TypeScript Version:** 2.3.4
We have our code on a networked/FUSE file system with different root directories for generated files and such. We use the node module resolution. To load a fairly simple Angular+Angular material+RxJS project(transitively ~1.7K .ts and .d.ts files) the language service takes around 24 seconds to resolve all modules and return diagnostics. We can see about ~50K file stats being made to resolve everything.
In our case we actually generate tsconfig.json for our editors through a build step and we actually create the list of all the files the project needs in the "files" section of tsconfig.json.
We built a custom solution that uses this files list to proxy the ServerHost in the Language service - to respond to fileExists and directoryExists by using the "files" list instead of hitting the file system a whole lot of times. This reduced the initial project load time to 4 seconds (and is mostly just the overhead of reading all the files) which is very much an
Here is a PR of the fix we have currently - https://github.com/vikerman/TypeScript/pull/1/files
It would be nice to have a cleaner solution for this in the language service itself (maybe as an option?). This would help any team who have a similar network/FUSE file system as their source repository.
@chuckjaz @alexeagle | Bug | low | Major |
234,971,005 | go | x/net/netlink, vendor/golang.org/x/net/netlink: new package | I propose to have a x/net/netlink package and vendor it to the standard library for maintenance purposes.
Netlink is a Linux-specific service for manipulating networking facilities inside the kernel. Fortunately, unlike routing messages and sockets on BSD variants, it doesn't have much ABI incompatibility between major kernel releases, but its complexity like TLV-in-AVP-in-TLV data representation could be a root cause of issues like #18714, #16681. So I think it's better to have and maintain a small separated package like the existing x/net/route package.
The exposed API would be like the following:
- minimal netlink message types mostly for the use of standard library,
- minimal netlink message parsers mostly for the use of standard library,
- both types and parsers are ABI agnostic and safe from potential misaligned memory access.
Thoughts? | Proposal,Proposal-Accepted,NeedsFix | low | Major |
234,982,973 | vscode | Add "line_padding_bottom", "line_padding_top" like sublime text | "Line height" property makes cursor indicator bigger. In Sublime Text `{"line_padding_bottom", "line_padding_top"}` is much better actually.

All the best ... VSCode Team. | feature-request,editor-core | low | Major |
234,984,780 | neovim | E576: Error while reading ShaDa file: there is an item at position 270498 that must not be there: Missing itemsare for internal uses only | - v0.2.0
- Vim 8.0 works well.
- macOS Sierra 10.12.5 (16F73)
- iTerm2 v3.0.15
- `$TERM`: screen-256color
### Actual behaviour
When I start neovim by `nvim`, it prints an error message which is `E576: Error while reading ShaDa file: there is an item at position 270498 that must not be there: Missing items are for internal uses only`. But it works well before, I don't known what caused this.
### Expected behaviour
Start without printing any error message.
### Steps to reproduce using `nvim -u NORC`
```
# It has the same problem.
nvim -u NORC
```
### Similar issue
#6652
#4108

| bug,needs:repro | medium | Critical |
235,005,580 | neovim | Method for debouncing/pausing folds | [parinfer](http://shaunlebron.github.io/parinfer/) is a method for editing lisp.
In the example "Insert or delete a line without rearranging parens:", there is a part where closing parens are closed. This then triggers an automatic re-balance.
In vim, with `set fdm=syntax`, the way this reacts with regards to folding is like:
```
(ns example.core
(:require
[clojure.string :refer [join]]
[clojure.data :refer [diff]]))
```
Then doing `dd` leaves the parens unbalanced
```
(ns example.core
(:require
[clojure.string :refer [join]]
```
This causes folding to start searching for that closing paren, and in the process will open all of the current folds too. On a large file (I observed this on a 1.3k loc file) this search takes a noticable time. Then [nvim-parinfer.js](https://github.com/clojure-vim/nvim-parinfer.js) reacts to the `TextChanged` event, and re-balances, also triggering a re-fold (less time, but still noticeable).
Some possible solutions come to mind:
1. `TextChangedPre` event which runs before fold updates, which would allow nvim-parinfer to do `set fdm=manual`, before restoring the value in `TextChanged`
2. https://github.com/Konfekt/FastFold does speed up this case, so is a workaround
3. Trigger re-folding in some kind of `TextChangedPost` event, or generally after the TextChanged auto command has taken place (this seems like a potentially breaking change for anything that searches for those folds)
There may be other/better approaches. | enhancement,folds | low | Minor |
235,021,211 | youtube-dl | [mediamatters] Add support for mediamatters embeds | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v http://www.theblaze.com/news/2017/06/09/nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.theblaze.com/news/2017/06/09/nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 2.7.12 - Linux-4.4.0-72-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
[generic] nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant: Requesting header
WARNING: Falling back on generic information extractor.
[generic] nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant: Downloading webpage
[generic] nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant: Extracting information
[download] Downloading playlist: None
[generic] playlist None: Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2
[debug] Invoking downloader on u'http://www.theblaze.com/wp-content/themes/theblaze/audio/new-message.mp3'
[download] Destination: NRA host calls out Kim Kardashian’s ‘mental illnesses’ over gun control rant-nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant.mp3
[download] 100% of 32.24KiB in 00:00
[download] Downloading video 2 of 2
[debug] Invoking downloader on u'http://www.theblaze.com/wp-content/themes/theblaze/audio/swoosh.mp3'
[download] NRA host calls out Kim Kardashian’s ‘mental illnesses’ over gun control rant-nra-host-calls-out-kim-kardashians-mental-illnesses-over-gun-control-rant.mp3 has already been downloaded
[download] 100% of 32.24KiB
[download] Finished downloading playlist: None
...
<end of log>
```
| site-support-request | low | Critical |
235,023,036 | youtube-dl | BBCA: Playlist support for a series | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [ x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x ] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [ x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
I am trying to download Dr Who from BBCA.
I can get single episodes.
I cannot get the whole season.
This is a request for playlist support from the series page.
Attempting to fetch the season:
```
keybounceMBP:BBCA michael$ ./yt-dl -v --get-filename -a dl-list
[debug] System config: []
[debug] User config: ['-k', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mkv', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-v', '--get-filename', '-a', 'dl-list']
[debug] Batch file urls: ['http://www.bbcamerica.com/shows/doctor-who', 'http://www.bbcamerica.com/shows/doctor-who/full-episodes/season-10/episode-02-smile']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://www.bbcamerica.com/shows/doctor-who
Traceback (most recent call last):
File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.bbcamerica.com/shows/doctor-who
```
In comparison, fetching just single episodes - http://www.bbcamerica.com/shows/doctor-who/full-episodes/season-10/episode-02-smile - works fine.
| tv-provider-account-needed | low | Critical |
235,023,297 | youtube-dl | [mirror] Add support for Mirror.co.uk | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v http://www.mirror.co.uk/news/world-news/richard-hammond-switzerland-crash-video-10599724
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.mirror.co.uk/news/world-news/richard-hammond-switzerland-crash-video-10599724']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 2.7.12 - Linux-4.4.0-72-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
[generic] richard-hammond-switzerland-crash-video-10599724: Requesting header
WARNING: Falling back on generic information extractor.
[generic] richard-hammond-switzerland-crash-video-10599724: Downloading webpage
[generic] richard-hammond-switzerland-crash-video-10599724: Extracting information
ERROR: Unsupported URL: http://www.mirror.co.uk/news/world-news/richard-hammond-switzerland-crash-video-10599724
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1970, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2526, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2515, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 8, column 81
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.mirror.co.uk/news/world-news/richard-hammond-switzerland-crash-video-10599724
...
<end of log>
```
---
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
Unable to download the video on Mirror.co.uk.
| site-support-request | low | Critical |
235,033,804 | rust | target_pointer_width in proc-macro crates provides build-time width, but some clients want runtime width | I'm trying to add cross compilation (to compile 32bit) to my crate, and `target_pointer_width` is 64 in the proc-macro crate (like the host), and 32 in the root crate (like the target):
How can I get the real `target_pointer_width` in a proc-macro crate? | A-macros,T-dev-tools,C-feature-request | low | Major |
235,036,015 | youtube-dl | [downloader/ism] Add support for WVC1/WMAP | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
youtube-dl
>youtube-dl -v -F "http://www.msn.com/en-gb/video/watch/neil-clough-the-apprenti
ce-2013-exit-interview/vp-BBGrMq"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'http://www.msn.com/en-gb/video/watch/ne
il-clough-the-apprentice-2013-exit-interview/vp-BBGrMq']
[debug] Encodings: locale cp949, fs mbcs, out cp949, pref cp949
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.4.4 - Windows-8-6.2.9200-SP0
[debug] exe versions: ffmpeg N-86175-g64ea4d1, ffprobe N-86175-g64ea4d1
[debug] Proxy map: {}
[MSN] neil-clough-the-apprentice-2013-exit-interview: Downloading webpage
[MSN] neil-clough-the-apprentice-2013-exit-interview: Downloading ISM manifest
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WMAP is not a supported codec
[info] Available formats for BBGrMq:
format code extension resolution note
http-0 mp4 320x180
http-1 mp4 640x360
http-2 mp4 1024x576
http-3 mp4 1280x720
http-4 mp4 1920x1080 (best)
>youtube-dl -v -f http-4 "http://www.msn.com/en-gb/video/watch/neil-clough-the-a
pprentice-2013-exit-interview/vp-BBGrMq"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'http-4', 'http://www.msn.com/en-gb/vide
o/watch/neil-clough-the-apprentice-2013-exit-interview/vp-BBGrMq']
[debug] Encodings: locale cp949, fs mbcs, out cp949, pref cp949
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.4.4 - Windows-8-6.2.9200-SP0
[debug] exe versions: ffmpeg N-86175-g64ea4d1, ffprobe N-86175-g64ea4d1
[debug] Proxy map: {}
[MSN] neil-clough-the-apprentice-2013-exit-interview: Downloading webpage
[MSN] neil-clough-the-apprentice-2013-exit-interview: Downloading ISM manifest
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WVC1 is not a supported codec
WARNING: [MSN] WMAP is not a supported codec
[debug] Invoking downloader on 'http://msnvideo-s.akamaihd.net/ondemand/o01/ENGB
_msnvideo_ENGB_msnvideo_original_tv/1004/77d81fbd-1824-4a5b-bc0e-1d9b422bc66b.is
m'
ERROR: unable to download video data: HTTP Error 400: Bad Request
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6q2mjw76\bu
ild\youtube_dl\YoutubeDL.py", line 1804, in process_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6q2mjw76\bu
ild\youtube_dl\YoutubeDL.py", line 1746, in dl
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6q2mjw76\bu
ild\youtube_dl\downloader\common.py", line 360, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6q2mjw76\bu
ild\youtube_dl\downloader\http.py", line 61, in real_download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp6q2mjw76\bu
ild\youtube_dl\YoutubeDL.py", line 2107, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_defau
lt
urllib.error.HTTPError: HTTP Error 400: Bad Request
>
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
It doesn't let me download "http-4 1920x1080 (best)" from "http://www.msn.com/en-gb/vide
o/watch/neil-clough-the-apprentice-2013-exit-interview/vp-BBGrMq"
I was able to download "http-3 1280x720", but not 1080p.
Anyone can help with this issue?
Sorry for my english.
| request | low | Critical |
235,037,673 | go | x/crypto/acme/autocert: serve self-signed cert for localhost? | Idea inspired by a mailing list post on golang-nuts,
What if the autocert package [optionally?] could serve a self-signed cert for localhost connections?
It can look at SNI "localhost" and/or the connection addr being a loopback address.
Might be nice for testing / consistency.
/cc @x1ddos
| NeedsDecision,FeatureRequest | medium | Major |
235,038,344 | nvm | nvm should allow installation of v8-canary | Link: https://nodejs.org/download/v8-canary/ has the bleeding edge v8
This would be tremendously useful for testing | feature requests | low | Major |
235,041,492 | youtube-dl | Unable to download tv.com's embedded http://can.cbs.com/thunder/player/chrome/canplayer.swf videos. | Example:
$ youtube-dl -v http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.8
[debug] exe versions: ffmpeg 3.2.5-1, ffprobe 3.2.5-1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Requesting header
WARNING: Falling back on generic information extractor.
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Downloading webpage
[generic] alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224: Extracting information
ERROR: Unsupported URL: http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.tv.com/news/alias-writers-explain-how-they-found-jennifer-garners-iconic-red-wig-14971258760089224/
Thank you in advance. :) | site-support-request | low | Critical |
235,045,206 | angular | Feature request: ngBeforeDestroy | **I'm submitting a ...** (check one with "x")
```
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```
**Current behavior**
When ngOnDestroy is called, the element is already removed from the DOM.
**Expected behavior**
Before ngOnDestroy and before removing from DOM, ngBeforeDestroy would get called.
**What is the motivation / use case for changing the behavior?**
I have a list of items. When the currently focused one is removed, I want to focus the next item. However, due to the element already being out of DOM, I do not know what the next item in DOM is.
Thank you. | feature,area: core,core: lifecycle hooks,feature: under consideration | high | Critical |
235,058,901 | go | x/exp/mmap: should offer access to the mapped byte slice | Currently the only way the mapped data is accessible is through the `ReadAt(p []byte, off int64)` method, which copies from `r.data` (the mapped area) to `p`.
I realize that this was probably a deliberate decision, because if it were possible to create further references to the underlying (mapped) array of `r.data` and those references were accessed after the ReaderAt's `Close()` method was called, the application would crash.
However, one of the reasons to use mmap is usually performance. In my application I am just copying big chunks of data out of an mmapped area into a pipe. To be honest I have not quantified the impact, but I can imagine that if I could avoid the second copying I could increase the throughput/reduce the CPU load.
Maybe the issue of unsafeness can be addressed by allowing access through a Method named something like `UnsafeRawAccess()` or something?
The reason why I don't just implement the whole mmapping myself is that the package still offers some value in abstracting the mmap system calls for the different platforms. | NeedsInvestigation,FeatureRequest | low | Critical |
235,068,878 | vscode | [css] Use CSS custom properties imported via @import | Is it possible for VS code to recognize CSS variables declared in a separate CSS file that is imported with `@import` ?
For example, I would like to have a `variables.css` file that is all about declaring CSS custom properties. Then I would import that file on top of my main css file, and be able to have intellisense support for those variables.
The way things work now, VSCode is not able to recognize those variables. Or maybe I am missing something obvious? | feature-request,css-less-scss | high | Critical |
235,079,266 | flutter | Add parseable output for flutter doctor | I thought I'd discussed this with someone before, but can't find it anywhere.. It'd be nice if an IDE can execute `flutter doctor` and provide info to the user when there are problems.
The current output isn't too bad for parsing, but it could be fragile if there are changes or if it becomes interactive and starts expecting input.
It'd be good to have a new switch (eg. `--machine`) that'll give output in a consistent format. Another possibility is adding it as a command to `flutter daemon`, however I don't know if the daemon can actually run if there are missing pre-requisites, so maybe that's not a good idea! | c: new feature,tool,t: flutter doctor,P2,team-tool,triaged-tool | low | Major |
235,085,094 | youtube-dl | [manchestereveningnews] Site support for manchestereveningnews.com (brightcove) | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.05*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.05**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v http://www.manchestereveningnews.co.uk/news/greater-manchester-news/live-police-warn-people-stay-13169583
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.manchestereveningnews.co.uk/news/greater-manchester-news/live-police-warn-people-stay-13169583']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 2.7.12 - Linux-4.4.0-72-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
[generic] live-police-warn-people-stay-13169583: Requesting header
WARNING: Falling back on generic information extractor.
[generic] live-police-warn-people-stay-13169583: Downloading webpage
[generic] live-police-warn-people-stay-13169583: Extracting information
ERROR: Unsupported URL: http://www.manchestereveningnews.co.uk/news/greater-manchester-news/live-police-warn-people-stay-13169583
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1970, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2526, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2515, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 11, column 81
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.manchestereveningnews.co.uk/news/greater-manchester-news/live-police-warn-people-stay-13169583
...
<end of log>
```
---
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
The website is just not supported. The player is brightcove.
| site-support-request | low | Critical |
235,085,520 | rust | rustc: Uses 75G of RAM and takes 1h30 on attached | The code at http://www.treblig.org/daveG/play-75G.rs (attached) causes rustc to take 75G of RAM and 1.5hours to compile (before it spits a reasonable error)
It is an experiment with type unification and does contain a screwup; when I fixed the screwup it returned to taking about 2mins and about 250MB even with all my type unification fun; I've not changed the recursion limits.
75G is probably bad; I can't necessarily call it a bug but it does smell suspicious; I'm wondering if it's associated with the code that reports the 'trait bound .... is not satisfied' and providing the explanation of it.
[play-75G.txt](https://github.com/rust-lang/rust/files/1066696/play-75G.txt)
rustc 1.17.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 3.9
| C-enhancement,I-compiletime,T-compiler,I-compilemem | low | Critical |
235,128,599 | kubernetes | Multi Tenancy for Persistent Volumes | **What keywords did you search in Kubernetes issues before filing this one?** tenancy
This issue intends to start a discussion on how to do Multi Tenancy in Kubernetes for Persistent Volumes in particular.
My team is currently trying to enable Stateful Apps for our internal customers. One requirement that keeps coming up is how to isolate PV's of one internal customer from PV's of another internal customer.
I see the following isolation mechanisms:-
- A PV when bound to a PVC(inside namespace A) cannot be bound to another PVC(inside namespace B) unless the unbind happens and hence are exclusive.
- When using StorageClass, A PV of certain class can only be bound to PVC of the same class. So that means PVC(of class A) can only be bound to PV(of class A). This allows a PV allocated to one customer to not accidentaly get allocated to another customer), assuming each customer gets a separate StorageClass.
While the above isolation is good, its not enough(as i understand it). In a multi -tenant environment we want mechanisms which can guarantee that a volume allocated to one customer can never be accidentally allocated/mounted/accessed by another customer.
When using Kubernetes, what should we recommend to our customers ?
Few more questions, considerations:-
- Why are Persistent Volumes not namespaced ?
- Is one or more StorageClass'es per Customer a good multi tenancy model ?
- Why does AttachDisk on volumes always happen on the node using kubelet ? The reason i ask is ,in some networked storage, for e.g. EBS and RBD, this can be dome from the master nodes. Doing this from kubelet means exposing more permissions to users then is necessary.
Some form of RBAC might be good, but currently it works cluster wide or per namespace. Since Volumes are considered cluster wide, we can only do cluster wide RBAC, but the volumes belong to different tenants, so we want something else(we need to define that something else)
Some related discussion on multi tenancy here.
https://github.com/kubernetes/kubernetes/issues/40403 | sig/storage,kind/feature,lifecycle/frozen,wg/multitenancy | medium | Critical |
235,152,004 | javascript | Proposal. Simplify point 4.5 (Filter) | In this part of best practice I found a part of code
```
// bad
inbox.filter((msg) => {
const { subject, author } = msg;
if (subject === 'Mockingbird') {
return author === 'Harper Lee';
} else {
return false;
}
});
// good
inbox.filter((msg) => {
const { subject, author } = msg;
if (subject === 'Mockingbird') {
return author === 'Harper Lee';
}
return false;
});
```
But, it seems that we can write this part of code better:
```
inbox.filter((msg) => {
const { subject, author } = msg;
return subject === 'Mockingbird' && author === 'Harper Lee';
});
```
Isn't it?
Thanks,
Andrii | question | low | Minor |
235,155,160 | opencv | opencv_annotations enhancement | I use opencv3.2. Iam very happy that there is the opencv_annotations tool included.
However - It is very hard to set the first click right because you dont know exactly if your cursor is aligned correctly in both axis.
It would improve usability and usage speed a lot when the cursor would be tracked by dotted lines in every dimension.
```
.
.
.
.
.........C............................
.
.
.
.
.
``` | feature,category: apps | low | Minor |
235,161,264 | flutter | TextSpan gesture recognition 2.0: bubbling and managed recognizer lifetimes | ## Steps to Reproduce
1. compose a simple widget containing a `TextSpan` with a `recognizer`.
```dart
final recognizer = new TapGestureRecognizer()
..onTap = (){ print('pressed'); };
final textSpan = new TextSpan(
children: [new TextSpan(text: 'text')],
style: someStyle,
recognizer: recognizer
);
```
2. tap on the textSpan
## Expected
Callback getting invoked
## Really happened
Callback not getting invoked
---
Did I misunderstand something about the gesture mechanism?
I found something similar here: https://github.com/flutter/flutter/blob/bf017b79b3be7de9409b53d503cc8582c8fd5500/packages/flutter/test/widgets/hyperlink_test.dart
| c: new feature,framework,f: gestures,c: proposal,P3,team-framework,triaged-framework | medium | Major |
235,252,215 | godot | UWP exported app does not work in release mode | I'm having a hard time figuring out this problem, so I'll leave this issue open until I (or someone else) can solve it. This is valid for 2.1 and 2.2, so I assume it is the same for master.
The UWP app exported does not run when installed, it just crashes on opening. The only debug info I have is the EventViewer, which does not help at all:
`ActivateApplicationForContractByAppIdAsUserWithHost of the app Godot.Engine.Test_q1xfrwf3pzxew!App for the Windows.Launch contract failed with Access is denied..`
Trying to debug the installed app from Visual Studio (via Debug > Other Debug Targets > Debug Installed App Package) is not helpful because it runs fine there! So there's something fishy about how apps are launched that is a mystery (at least for me).
Summing up what I know:
1. The app runs fine if compiled with `target=debug` or `target=release_debug` build, but crashes on opening with `target=release`.
2. The `target=release` build runs fine from Visual Studio, even when debugging the installed app.
3. Compiling the release with `/SUBSYSTEM:CONSOLE` instead of `/SUBSYSTEM:WINDOWS` makes it work, but also opens the console window when launched.
4. This is not the case when running on the phone emulator. The release build opens fine there. | bug,topic:buildsystem,platform:uwp | low | Critical |
235,359,735 | kubernetes | Make label metadata from container images available to Pods and their containers | It should be possible for the user to apply custom labels to a pod's containers, and have those labels propagate down into docker.
This would be helpful for interacting with non-k8s-specific programs that access docker directly.
Related: #3764
Outdated: #13513 (I don't want to fight a reopen-war, but this probably should not have been closed.) | sig/node,kind/feature,lifecycle/frozen,needs-triage | high | Critical |
235,368,663 | TypeScript | String Enum Initializer | # String Enum Initializer
A more typesafe and succinct way of defining enum types that compile to strings
## Search Terms
enum, string, string enum
default value
initializer
infer
## Proposal
It seems like you should be able to specify that you are using a string enum, and then you'd only have to write out the 'value' once, and it would be automatically made into a string matching the enum code.
```typescript
enum<string> Action {
LOAD_PROFILE,
ADD_TASK,
REMOVE_TASK
}
```
or
```typescript
enum Action: string {
LOAD_PROFILE,
ADD_TASK,
REMOVE_TASK
}
```
instead of
```typescript
enum Action {
LOAD_PROFILE = "LOAD_PROFILE",
ADD_TASK = "ADD_TASK",
REMOVE_TASK = "REMOVE_TASK"
}
```
Thanks for all the great work!
**EDIT**
Recently updated to reflect variations proposed by @imcotton [here](https://github.com/microsoft/TypeScript/issues/16464#issuecomment-317595199) and @lostpebble [here](https://github.com/microsoft/TypeScript/issues/16464#issuecomment-325325553); as well as search terms proposed by @KennethKo (#36319) and @garrettmaring (#33015) | Suggestion,Awaiting More Feedback | high | Critical |
235,369,131 | go | encoding/json: marshal of custom type not quoted when using ",string" tag field | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
```
go version go1.8.3 linux/amd64
```
### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/var/lib/jenkins/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build418778517=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```
### What did you do?
We receive JSON which encodes booleans as numeric strings. Parsing that JSON works just fine with a `",string"` tag and a type with its own `UnmarshalJSON` definition. The quoting is removed and we get the proper boolean value.
Quoting is not added when serializing this type, which means that JSON IN>decode>encode>OUT produces OUT different than IN.
```go
type parsedBool bool
func (basi *parsedBool) UnmarshalJSON(data []byte) error {
v, err := strconv.ParseBool(string(data))
if err != nil {
return err
}
*basi = parsedBool(v)
return nil
}
func (basi parsedBool) MarshalJSON() ([]byte, error) {
if basi {
return []byte(`1`), nil
} else {
return []byte(`0`), nil
}
}
```
https://play.golang.org/p/ccIw4E6UJF
### What did you expect to see?
Equivalent support for `",string"` for this custom type when both encoding and decoding. I was surprised by the difference in behavior. Both cases should either err (because `parsedBool` is not `bool`) or properly handle the quotes.
The [json docs](https://golang.org/pkg/encoding/json/) state:
> The "string" option signals that a field is stored as JSON inside a JSON-encoded string. It applies only to fields of string, floating point, integer, or boolean types.
### What did you see instead?
Given:
```go
wrapped := struct {
P parsedBool `json:",string"`
B bool `json:",string"`
}{
P: true,
B: true,
}
```
This is marshaled as:
```
{"P":1,"B":"true"}
```
This was unexpected because we properly parse:
```
{"P":"1","B":"true"}
``` | v2,NeedsInvestigation | low | Critical |
235,484,538 | opencv | OpenCV 3.2 Installation on Ubuntu 16.04 and with CUDA 8.0 SUPPORT |
- OpenCV => 3.2
- Operating System / Platform => Ubuntu 16.04 64 Bit
- Compiler => gcc 5.4
Hello Guys, I am in the process to build OpenCV with CUDA Support and I have stocked for a few days more or less at the same point.
1. First, I download opencv-3.2 from : https://github.com/opencv/opencv ,
opencv_contrib from source : https://github.com/opencv/opencv_contrib/releases/tag/3.2.0
and opencv_extra from : https://github.com/opencv/opencv_extra
2. I create a build directory inside opencv-3.2.0 extracted folder and I enter :
`
sudo cmake -DCMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -DWITH_TBB=ON -DWITH_QT=ON -DWITH_PTHREADS_PF=ON -DWITH_OPENNI2=ON -DBUILD_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=/home/xisco/CVISION/opencv_contrib-3.2.0/modules -DBUILD_opencv_legacy=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D BUILD_TIFF=ON -D WITH_QT=ON -D WITH_CUDA=ON -D ENABLE_PRECOMPILED_HEADERS=OFF -D USE_GStreamer=ON -D WITH_OPENGL=ON -D CUDA_ARCH_BIN=3.2 -D FORCE_VTK=ON -DWITH_GDAL=ON -DWITH_XINE=ON -D WITH_NVCUVID=ON -D BUILD_EXAMPLES=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENNI=ON -D WITH_OPENGL=ON -D WITH_IPP=ON -D WITH_CSTRIPES=ON -D CUDA_ARCH_PTX=3.2 -D CUDA_ARCH_BIN=3.2 -D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -DCUDA_NVCC_FLAGS="-D_FORCE_INLINES" -DOPENCV_TEST_DATA_PATH=/home/xisco/CVISION/opencv_extra/testdata -DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 ..`
Note: I have added new flags to the cmake command following recommendations I picked up from other issues. Here a lower version of gcc is used, being that cuda 8.0 doesnt work well with gcc +5.3 or more.
This is the response:
```
-- The CXX compiler identification is GNU 4.9.4
-- The C compiler identification is GNU 4.9.4
-- Check for working CXX compiler: /usr/bin/g++-4.9
-- Check for working CXX compiler: /usr/bin/g++-4.9 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/gcc-4.9
-- Check for working C compiler: /usr/bin/gcc-4.9 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected version of GNU GCC: 49 (409)
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WNO_NARROWING
-- Performing Test HAVE_CXX_WNO_NARROWING - Success
-- Performing Test HAVE_C_WNO_NARROWING
-- Performing Test HAVE_C_WNO_NARROWING - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_WNO_LONG_LONG
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
-- Performing Test HAVE_C_WNO_LONG_LONG
-- Performing Test HAVE_C_WNO_LONG_LONG - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFAST_MATH
-- Performing Test HAVE_CXX_FFAST_MATH - Success
-- Performing Test HAVE_C_FFAST_MATH
-- Performing Test HAVE_C_FFAST_MATH - Success
-- Performing Test HAVE_CXX_MSSE
-- Performing Test HAVE_CXX_MSSE - Success
-- Performing Test HAVE_C_MSSE
-- Performing Test HAVE_C_MSSE - Success
-- Performing Test HAVE_CXX_MSSE2
-- Performing Test HAVE_CXX_MSSE2 - Success
-- Performing Test HAVE_C_MSSE2
-- Performing Test HAVE_C_MSSE2 - Success
-- Performing Test HAVE_CXX_MNO_AVX
-- Performing Test HAVE_CXX_MNO_AVX - Success
-- Performing Test HAVE_C_MNO_AVX
-- Performing Test HAVE_C_MNO_AVX - Success
-- Performing Test HAVE_CXX_MSSE3
-- Performing Test HAVE_CXX_MSSE3 - Success
-- Performing Test HAVE_C_MSSE3
-- Performing Test HAVE_C_MSSE3 - Success
-- Performing Test HAVE_CXX_MNO_SSSE3
-- Performing Test HAVE_CXX_MNO_SSSE3 - Success
-- Performing Test HAVE_C_MNO_SSSE3
-- Performing Test HAVE_C_MNO_SSSE3 - Success
-- Performing Test HAVE_CXX_MNO_SSE4_1
-- Performing Test HAVE_CXX_MNO_SSE4_1 - Success
-- Performing Test HAVE_C_MNO_SSE4_1
-- Performing Test HAVE_C_MNO_SSE4_1 - Success
-- Performing Test HAVE_CXX_MNO_SSE4_2
-- Performing Test HAVE_CXX_MNO_SSE4_2 - Success
-- Performing Test HAVE_C_MNO_SSE4_2
-- Performing Test HAVE_C_MNO_SSE4_2 - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- FP16: Feature disabled
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for jbg_newlen
-- Looking for jbg_newlen - not found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_UNUSED
-- Performing Test HAVE_C_WNO_UNUSED - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_C_WNO_CAST_ALIGN
-- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Failed
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54")
-- Looking for /usr/include/libpng/png.h
-- Looking for /usr/include/libpng/png.h - found
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
-- Found gstreamer-base-0.10, version 0.10.36
-- Checking for module 'gstreamer-video-0.10'
-- Found gstreamer-video-0.10, version 0.10.36
-- Checking for module 'gstreamer-app-0.10'
-- Found gstreamer-app-0.10, version 0.10.36
-- Checking for module 'gstreamer-riff-0.10'
-- Found gstreamer-riff-0.10, version 0.10.36
-- Checking for module 'gstreamer-pbutils-0.10'
-- Found gstreamer-pbutils-0.10, version 0.10.36
-- Checking for module 'libdc1394-2'
-- Found libdc1394-2, version 2.2.4
-- Checking for module 'libxine'
-- Found libxine, version 1.2.6
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
WARNING, OpenNI library directory (set by OPENNI_LIB_DIR variable) is not found or does not have OpenNI libraries.
WARNING, OpenNI include directory (set by OPENNI_INCLUDE_DIR variable) is not found or does not have OpenNI include files.
WARNING, PrimeSensor Module binaries directory (set by OPENNI_PRIME_SENSOR_MODULE_BIN_DIR variable) is not found or does not have PrimeSensor Module binaries.
WARNING, OpenNI2 library directory (set by OPENNI2_LIB_DIR variable) is not found or does not have OpenNI2 libraries.
WARNING, OpenNI2 include directory (set by OPENNI2_INCLUDE_DIR variable) is not found or does not have OpenNI2 include files.
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
-- Found libavcodec, version 56.60.100
-- Found libavformat, version 56.40.101
-- Found libavutil, version 54.31.100
-- Found libswscale, version 3.1.101
-- Checking for module 'libavresample'
-- No package 'libavresample' found
-- Checking for module 'libgphoto2'
-- No package 'libgphoto2' found
-- Found TBB: /usr/lib/x86_64-linux-gnu/libtbb.so
-- ICV: Unpacking ippicv_linux_20151201.tgz to /home/xisco/CVISION/opencv-3.2.0/build/3rdparty/ippicv...
-- ICV: Package successfully downloaded
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/xisco/CVISION/opencv-3.2.0/build/3rdparty/ippicv/ippicv_lnx
-- CUDA detected: 8.0
-- CUDA NVCC target flags: -D_FORCE_INLINES;-gencode;arch=compute_32,code=sm_32;-D_FORCE_INLINES;-gencode;arch=compute_32,code=compute_32
-- Found OpenBLAS libraries: /usr/local/lib/libopenblas.so
-- Found OpenBLAS include: /usr/local/include
-- LAPACK_IMPL: OpenBLAS, LAPACK_LIBRARIES: /usr/local/lib/libopenblas.so
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.12")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable exact version "3.5.2")
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 180, in <module>
from . import add_newdocs
File "/usr/lib/python3/dist-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/lib/python3/dist-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/usr/lib/python3/dist-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 14, in <module>
from . import multiarray
ImportError: libblas.so.3: cannot open shared object file: No such file or directory
-- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- Caffe: NO
-- Protobuf: YES
-- Glog: YES
-- Checking for one of the modules 'freetype2'
-- Checking for one of the modules 'harfbuzz'
-- freetype2: YES
-- harfbuzz: YES
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.8.16")
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_PARENTHESES
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- libprotobuf: Unpacking v3.1.0/protobuf-cpp-3.1.0.tar.gz to /home/xisco/CVISION/opencv-3.2.0/build/modules/dnn/3rdparty/protobuf/sources...
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- freetype2: YES
-- harfbuzz: YES
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Checking for modules 'tesseract;lept'
-- No package 'tesseract' found
-- No package 'lept' found
-- Tesseract: NO
-- Check contents of vgg_generated_48.i ...
-- Check contents of vgg_generated_64.i ...
-- Check contents of vgg_generated_80.i ...
-- Check contents of vgg_generated_120.i ...
-- Check contents of boostdesc_bgm.i ...
-- Check contents of boostdesc_bgm_bi.i ...
-- Check contents of boostdesc_bgm_hd.i ...
-- Check contents of boostdesc_binboost_064.i ...
-- Check contents of boostdesc_binboost_128.i ...
-- Check contents of boostdesc_binboost_256.i ...
-- Check contents of boostdesc_lbgm.i ...
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
--
-- General configuration for OpenCV 3.2.0 =====================================
-- Version control: unknown
--
-- Extra modules:
-- Location (extra): /home/xisco/CVISION/opencv_contrib-3.2.0/modules
-- Version control (extra): unknown
--
-- Platform:
-- Timestamp: 2017-06-13T08:51:53Z
-- Host: Linux 4.4.0-79-generic x86_64
-- CMake: 3.5.1
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: Release
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/g++-4.9 (ver 4.9.4)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/gcc-4.9
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: /usr/lib/x86_64-linux-gnu/libcuda.so /usr/lib/libnvcuvid.so Qt5::Test Qt5::Concurrent Qt5::OpenGL /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gstbase-0.10 gstreamer-0.10 gobject-2.0 gmodule-2.0 gthread-2.0 glib-2.0 xml2 gstvideo-0.10 gstapp-0.10 gstriff-0.10 gstpbutils-0.10 dc1394 xine avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg Qt5::Core Qt5::Gui Qt5::Widgets /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so dl m pthread rt /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so tbb /usr/local/lib/libopenblas.so cudart nppc nppi npps cublas cufft -L/usr/local/cuda/lib64
-- 3rdparty dependencies: libwebp libtiff libprotobuf
--
-- OpenCV modules:
-- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn freetype fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo cvv datasets rgbd stereo superres tracking videostab xfeatures2d ximgproc aruco optflow phase_unwrapping stitching structured_light python2
-- Disabled: world contrib_world
-- Disabled by dependency: -
-- Unavailable: java python3 viz cnn_3dobj matlab sfm
--
-- GUI:
-- QT 5.x: YES (ver 5.5.1)
-- QT OpenGL support: YES (Qt5::OpenGL 5.5.1)
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
-- WEBP: build (ver 0.3.1)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
-- TIFF: build (ver 42 - 4.0.2)
-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
-- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0)
-- GDAL: NO
-- GDCM: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.4)
-- FFMPEG: YES
-- avcodec: YES (ver 56.60.100)
-- avformat: YES (ver 56.40.101)
-- avutil: YES (ver 54.31.100)
-- swscale: YES (ver 3.1.101)
-- avresample: NO
-- GStreamer:
-- base: YES (ver 0.10.36)
-- video: YES (ver 0.10.36)
-- app: YES (ver 0.10.36)
-- riff: YES (ver 0.10.36)
-- pbutils: YES (ver 0.10.36)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- Aravis SDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: NO/YES
-- XIMEA: NO
-- Xine: YES (ver 1.2.6)
-- gPhoto2: NO
--
-- Parallel framework: TBB (ver 4.4 interface 9002)
--
-- Other third-party libraries:
-- Use IPP: 9.0.1 [9.0.1]
-- at: /home/xisco/CVISION/opencv-3.2.0/build/3rdparty/ippicv/ippicv_lnx
-- Use IPP Async: NO
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: YES (/usr/local/lib/libopenblas.so)
-- Use Eigen: YES (ver 3.3.3)
-- Use Cuda: YES (ver 8.0)
-- Use OpenCL: YES
-- Use OpenVX: NO
-- Use custom HAL: NO
--
-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: YES
-- USE NVCUVID: YES
-- NVIDIA GPU arch: 32
-- NVIDIA PTX archs: 32
-- Use fast math: YES
--
-- OpenCL: <Dynamic loading of OpenCL library>
-- Include path: /home/xisco/CVISION/opencv-3.2.0/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.12)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
-- numpy: /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.0)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.5.2)
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
-- Java wrappers: NO
-- Java tests: NO
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: /usr/bin/doxygen (ver 1.8.11)
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: YES
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/xisco/CVISION/opencv-3.2.0/build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xisco/CVISION/opencv-3.2.0/build
```
As you see configuration and generation files is done, and build files are also correcly written, supporting cuda 8.0 as we can see above.
Now, I enter :
`>> sudo make -j2`
and here comes the error prompted :
```
[ 29%] Linking CXX executable ../../bin/opencv_test_cudacodec
[ 29%] Linking CXX executable ../../bin/opencv_test_videoio
/usr/bin/ld: warning: libnvidia-fatbinaryloader.so.375.66, needed by //usr/lib/x86_64-linux-gnu/libcuda.so.1, not found (try using -rpath or -rpath-link)
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Get_FatBinary_From_Object' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `gpuInfoRunsOn' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf_end' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_shnum' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `fatBinaryCtl' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_symbol_shndx' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Free_Fatbinary' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_string_at_offset' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_symbol_shndx' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `fatBinaryCtl_Compile' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_file_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `fatBinaryCtl_PickCandidate' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_string_at_offset' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Start' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_typed_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Finish' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `gpucompSetLogLine' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Next_Library_Member' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_section_name' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf_is_64bit' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf_size' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `fatBinaryCtl_Delete' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_symbol_name' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_shnum' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Add_Cubin' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_section_contents' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `stdGetThreadContext' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_named_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Delete' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Finish_Reading_Library' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_typed_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `gpucompRestoreLogLine' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_file_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Load_Host_Object' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Start_Reading_Library' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elfLink_Free_Host_Object' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf64_named_section_header' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_symbol_name' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `elf32_section_name' sin definir
//usr/lib/x86_64-linux-gnu/libcuda.so.1: referencia a `fatBinaryCtl_Create' sin definir
collect2: error: ld returned 1 exit status
modules/cudacodec/CMakeFiles/opencv_test_cudacodec.dir/build.make:133: fallo en las instrucciones para el objetivo 'bin/opencv_test_cudacodec'
make[2]: *** [bin/opencv_test_cudacodec] Error 1
CMakeFiles/Makefile2:5189: fallo en las instrucciones para el objetivo 'modules/cudacodec/CMakeFiles/opencv_test_cudacodec.dir/all'
make[1]: *** [modules/cudacodec/CMakeFiles/opencv_test_cudacodec.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
[ 29%] Built target opencv_test_videoio
Makefile:160: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Note : I have checked if the libcuda.so1 and the libnvidia-fatbinaryloader.so.375.66 libraries where properly exported at the .bashrc file and of course if they already exist and I found they do :
`export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/lib:/usr/lib/nvidia-375/usr/lib/x86_64-linux-gnu/"`
Does anybody know where this problem may come from? Thanks for your support.
```
| bug,category: build/install,category: gpu/cuda (contrib) | low | Critical |
235,571,290 | TypeScript | Quick fix for variable of wrong type results in ugly formatting | **TypeScript Version:** nightly (2.5.0-dev.20170613)
**Code**
```js
/**
* @param {boolean} b
* @returns {string | number}
*/
function f(b) { return b ? "" : 0; }
/** @type {number} */
const x = f(false);
```
Click on `x` and use the quick for "Ignore this error message."
**Expected behavior:**
```js
// @ts-ignore
const x = f(false);
```
**Actual behavior:**
```js
const
// @ts-ignore
x = f(false);
``` | Bug,Domain: Quick Fixes | low | Critical |
235,606,417 | vscode | On highlight/select text - cannot unhighlight/deselect text on click - need to do ESC | - VSCode Version: Code 1.13.0 (376c52b955428d205459bea6619fc161fc8faacf, 2017-06-08T16:43:13.058Z)
- OS Version: Windows_NT ia32 6.1.7601
- Extensions:
|Extension|Author|Version|
|---|---|---|
|git-easy|bibhasdn|1.9.1|
|file-icons|file-icons|1.0.3|
|auto-close-tag|formulahendry|0.4.2|
|auto-rename-tag|formulahendry|0.0.12|
|minify|HookyQR|0.3.0|
|Angular2|johnpapa|2.3.2|
|vscode-github|KnisterPeter|0.16.2|
|vs-deploy|mkloubert|9.25.0|
|prettify-json|mohsen1|0.0.3|
|debugger-for-chrome|msjsdiag|3.1.3|
|vscode-run-git-difftool|narekmal|0.0.4|
|gitblame|waderyan|1.11.2|
|bootstrap-3-snippets|wcwhitehead|0.0.9|;
---
Steps to Reproduce:
1. Open a file
2. Click Ctrl+A
3. Click anywhere - highlight still stays and can't do anything else | under-discussion,editor-drag-and-drop | medium | Critical |
235,620,437 | youtube-dl | [eitb] Add support for eitb.eus | - [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.12**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Bug report (encountered problems with youtube-dl)
- Single video: http://www.eitb.eus/eu/kirolak/txirrindularitza/bideoak/osoa/4895232/bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa/
**description**
URLs of the type eitb.eus/eu/ are not working.
URLs of the type eitb.tv/es/video/ from the same site are working fine.
**log**
```
youtube-dl.exe -v http://www.eitb.eus/eu/kirolak/txirrindularitza/bideoak/osoa/4895232/bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.eitb.eus/eu/kirolak/txirrindularitza/bideoak/osoa/4895232/bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.06.12
[debug] Python version 3.4.4
[debug] exe versions: ffmpeg N-67100-g6dc99fd, ffprobe N-67100-g6dc99fd, rtmpdump 2.4
[debug] Proxy map: {}
[generic] bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa: Requesting header
WARNING: Falling back on generic information extractor.
[generic] bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa: Downloading webpage
[generic] bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa: Extracting information
ERROR: Unsupported URL: http://www.eitb.eus/eu/kirolak/txirrindularitza/bideoak/osoa/4895232/bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa/
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\YoutubeDL.py", line 762, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\extractor\common.py", line 433, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\extractor\generic.py", line 2796, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.eitb.eus/eu/kirolak/txirrindularitza/bideoak/osoa/4895232/bideoa-rohan-dennisek-irabazi-du-suitzako-tourreko-lehenengo-etapa/
<end of log>
``` | site-support-request | low | Critical |
235,667,756 | go | proposal: spec: disallow NaN keys in maps | **Motivation**
Go currently supports NaN keys in maps through some [clever tricks](https://research.swtch.com/randhash).
The current spec is ambiguous on this behavior. It says:
> [I]f the map contains an entry with key `x`, `a[x]` is the map value with key `x` and the type of `a[x]` is the value […]
but "with key `x`" could plausibly mean "with key represented by `x`". (In practice, today it means "with key equal to `x`".)
That leads to surprising and subtle bugs (such as https://github.com/golang/go/issues/14427) and adds complexity even in correct code (https://github.com/golang/go/issues/20138#issuecomment-302242472).
For example, the following two functions appear to be equivalent, but the latter version silently copies zeroes instead of the intended values for NaN keys:
```go
func copy(m map[float64]int) map[float64]int {
c := make(map[float64]int, len(m))
for k, v := range m {
c[k] = v
}
}
```
```go
func copy(m map[float64]int) map[float64]int {
c := make(map[float64]int, len(m))
for k := range m {
c[k] = m[k]
}
}
```
----
**Proposal**
We already reject incomparable values as map keys:
> If the key type is an interface type, these comparison operators must be defined for the dynamic key values; failure will cause a run-time panic.
I propose that we should apply that standard to NaNs as well. Specifically, I propose that we add the following sentence to https://golang.org/ref/spec#Index_expressions:
**Assigning to an element of a map with a key that is not equal to itself causes a run-time panic.**
This proposal is along the lines of https://github.com/golang/go/issues/19624, in that it produces panics for arithmetic operations which are otherwise likely to result in silent corruption in typical user code.
----
**Workarounds**
Users can easily avoid the proposed panics by <strike>calling `math.IsNaN(k)`</strike> checking whether the key is equal to itself before inserting a map entry.
Users who expect NaNs with _the same representation_ to map to the same element can transform the keys using `math.Float64bits` or `math.Float32bits`:
```go
if k == 0 { // -0.0 or +0.0
m[math.Float64bits(0)] = v
} else {
m[math.Float64bits(k)] = v
}
```
Users who really do intend to store all of the entries for NaN keys separately can explicitly pair the map with a slice:
```go
type nanElem struct {
k float64
v V
}
var (
m map[float64]V
nans []nanElem
)
if k != k {
nans = append(nans, nanElem{k, v})
} else {
m[k] = v
}
``` | LanguageChange,Proposal,LanguageChangeReview | high | Critical |
235,670,948 | pytorch | Feature request: reverse_padded_sequence | Hi,
There's existing discussion around a more extendable RNN API, which as of yet hasn't moved forward. Given that, and that `PackedSequence`s exist, would a `reverse_padded_sequence` function be useful, or do you just see it as being unnecessary clutter?
In particular it'd take in a Variable of padded sequences along with sequence lengths (and a `batch_first` option) and produce a Variable of padded sequences that are reversed according to their lengths, mimicking `reverse_sequence` in TensorFlow.
My thought is that this option would be a useful alternative to `PackedSequence`s in the case of bidirectional RNNs. (`PackedSequence`s seem to be primarily motivated by cuDNN, whereas in a research setting they might introduce more bookkeeping than they're worth.)
cc @ezyang @gchanan @zou3519 | module: rnn,triaged,enhancement,actionable | medium | Major |
235,681,578 | rust | Enable some android host builder | There are some interest in running rust in android devices, see for example: termux/termux-packages#261, https://www.reddit.com/r/rust/comments/631bl2/exciting_rust_coming_to_android_and_chromebooks/
We have [disabled](https://github.com/rust-lang/rust/pull/41864) android builders, it would be great if we enabled some of these builders, so users of android devices (including chromebooks) would be able to run rustc.
As discussed [here](https://github.com/rust-lang/rust/pull/41149#issuecomment-293768516), we are running at the limit of our travis capacity, so it must be discussed. | T-infra,C-feature-request | low | Major |
235,706,847 | rust | Avoid shipping duplicate artifacts in the host and target sysroot | All released compilers have identical dynamic libraries in two locations. The locations on Linux are:
* `$sysroot/lib/*.dylib`
* `$sysroot/lib/rustlib/$target/lib/*.dylib`
All of these artifacts are byte-for-byte equivalent (they're just copies of one another). These duplicate artifacts inflate our installed size, inflate downloads, and cause weird bugs like https://github.com/rust-lang/rust/issues/39870. Although https://github.com/rust-lang/rust/issues/39870 is itself fixed it's [just a hack fix for now](https://github.com/rust-lang/rust/issues/39870#issuecomment-308141470) that would be ideally solved by fixing this issue!
Some possible thoughts I personally have on this are:
* Symlinks won't work because they don't work on Windows
* Hard links may work here, but I'm not sure. This'd require a lot of updates to lots of tools (rust-installer, rustup, etc)
* Simply not shipping one of these is going to be very difficult. `$sysroot/lib` is required for `rustc` itself to run correctly (that dir is typically in `LD_LIBRARY_PATH` or the equivalent) and `$sysroot/lib/rustlib/$target/lib` is where the compiler looks for target libraries. The compiler can't look in `$sysroot/lib` for libs as that's typically got a ton of libs on Unix systems.
* The most plausible solution in my mind is to create our own pseudo-symlink file format. When assembling a sysroot this is what rustbuild itself would emit (instead of copying files) but it'd basically be a file with the literal contents `rustc-look-in-your-libdir`. That way something like `$sysroot/lib/rustlib/$target/lib/libstd.dylib` would exist but essentially be an empty file (not a valid dynamic library). Instead rustc would look at `$sysroot/lib/libstd.dylib` for that file instead.
Unsure if I'm on the right track there, but hopefully can get discussion around this moving! | C-enhancement,E-help-wanted,C-optimization | medium | Critical |
235,773,514 | angular | UpgradeModule needs to support Hybrid Apps w/ Lazily loaded Hybrid Bundles, using the AngularJS Router | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MIGHT BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a ...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report <!-- Please search github for a similar issue or PR before submitting -->
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>
## Current behavior
<!-- Describe how the issue manifests. -->
I am able to lazily load code in an AngularJS app that uses the AngularJS router, using `ocLazyLoad`. This all works. If you add Angular components to both the main app, as well as to the lazily loaded feature bundle, the Angular components in the main app are accessible to be downgraded and used inside of AngularJS templates. However, the Angular components in the lazily loaded feature bundle are able to be downgraded, but NOT able to be used in the AngularJS templates. This is due largely to the fact that the `downgradeComponent` method doesn't allow me to specify which injector it should use to access the componentFactories for the lazily loaded components. Because I can't specify which injector to use, it uses the main `AppModule`'s injector, which has no knowledge of the lazily loaded module or components.
## Expected behavior
<!-- Describe what the desired behavior would be. -->
I should be able to optionally specify which injector I want the `downgradeComponent` to use to resolve the componentFactory.
## Minimal reproduction of the problem with instructions
<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
1. Create an AngularJS app, that uses the AngularJS router.
2. Add a webpack build to your project that will allow you to easily code split, so that you can break your lazily loaded features in to separate bundles.
3. Add `ocLazyLoad` to the app, and use it to lazily load a feature/section of the app.
4. Add Angular to the app (`npm i @angular/common @angular/compiler @angular/compiler-cli @angular/core @angular/forms @angular/http @angular/platform-browser @angular/platform-browser-dynamic @angular/router @angular/upgrade rxjs zone.js`)
5. Create an `AppModule` that will be part of your main bundle. Add a simple component to that module, and downgrade it, and use it in your AngularJS template, to verify that Angular is working inside of the AngularJS app. As part of this step, you will need to bootstrap the Angular app first, and then in the callback from that, using the `UpgradeModule` you bootstrap the AngularJS app.
6. Now add a `FooModule` to your lazily loaded feature bundle, and add a `FooComponent` to that modules `entryComponents`. Make sure and downgrade this component so that it can be used in the AngularJS pieces of this lazily loaded feature.
7. Add the downgraded component to the AngularJS template. (if you refresh the page at this point, you will get an error: `No component factory found for FooComponent. Did you add it to @NgModule.entryComponents?`, but keep going)
8. Create a separate `tsconfig-aot.json` and in the `files` value, add a reference to the file containing your `FooModule`.
9. Run `ngc -p path/to/your/tsconfig-aot.json` to generate your 'FooModuleNgFactory`.
10. In the bundle for your lazily loaded feature, import the `FooModuleNgFactory` and call the following:
```foo.bundle.js
const appModuleRef = getAppModuleRef(); // get access to it somehow
const fooModuleRef = FooModuleNgFactory.create(appModuleRef.injector);
// now that you created an instance of your lazily loaded module, you should downgrade the component in that module
angular
.module('angularJSModule')
.directive('fooComponent', downgradeComponent({component:FooComponent});
```
Having done all of this, I expected that the components from my lazily loaded Angular module would be able to work. But when I add them to my AngularJS templates I get the error `No component factory found for FooComponent. Did you add it to @NgModule.entryComponents?`. The reason that it is throwing this error is because the call to `downgradeComponent` is trying to find the `FooComponentFactory` in the main `AppModule`'s injector. But it doesn't exist in that injector. It exists in the child injector that was created when I created the instance of my lazily loaded module (ie: when I called `FooModuleNgFactory.create`).
If I hack the Angular source to allow me to optionally pass in the injector to the `downgradeComponent` method, it all works fine. Just like I would expect.
I would like to see if the `UpgradeModule`'s `downgradeComponent` method could support an optional injector to be passed in. The hack that I made to get it to work was the following:
```foo.bundle.js
const appModuleRef = getAppModuleRef();
const fooModuleRef = FooModuleNgFactory.create(appModuleRef.injector);
const directiveConfig = downgradeComponent({component:FooComponent, injector: fooModuleRef.injector});
angular
.module('angularJsModule')
.directive('fooComponent', directiveConfig);
```
Notice how I pass in the injector as well. I modified the `downgradeComponent` function to look like this:

Doing this, I was able to get Angular modules lazily loaded and created WITHOUT using the Angular router. It would be nice if the `downgradeComponent` method supported it native.
I spoke with @robwormald, and he agreed that this is a valid use-case that ngUpgrade should cover. He said he may speak with @petebacondarwin about it to see what his thoughts are.
## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->
All of the examples in the `ngUpgrade` documentation are under the assumption that I am using the Angular router. Many apps are very large, and aren't able to switch their router before they even have any Angular components in that lazily loaded section of code. It makes sense for them to need to continue using the AngularJS router.
## Please tell us about your environment
<pre><code>
Angular version: 1.5.11
<!-- Check whether this is still an issue in the most recent Angular version -->
Browser:
- [x] Chrome (desktop) version XX
- [x] Chrome (Android) version XX
- [x] Chrome (iOS) version XX
- [x] Firefox version XX
- [x] Safari (desktop) version XX
- [x] Safari (iOS) version XX
- [x] IE version XX
- [x] Edge version XX
For Tooling issues:
- Node version: 7.4.0 <!-- use `node --version` -->
- Platform: Mac <!-- Mac, Linux, Windows -->
Others:
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
</code></pre>
| feature,freq1: low,workaround2: non-obvious,area: upgrade,P4,feature: under consideration | medium | Critical |
235,834,732 | angular | A required checkbox (within custom component) should always set its host to 'invalid' if unchecked | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MIGHT BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a ...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please search github for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>
## Current behavior
Some months ago an issue related to required checkbox validation had been fixed and it now works as expected. See here: #11459
Unfortunately, the issue still occurs when placing the checkbox input within a custom component.
**Form template:**
```
<form (ngSubmit)="onSubmit()" #myForm="ngForm">
// variable 'checkboxValue: boolean' comes from controller
<my-checkbox name="myCheckbox" [(ngModel)]="checkboxValue" required></my-checkbox> // --> always ng-valid
<button type="submit" [disabled]="myForm.invalid">Submit</button>
</form>
Output: {{myForm.valid}} // BAD: output always true
```
**Component:**
```
@Component({
selector: "my-checkbox",
template: '<input [(ngModel)]="value" [attr.name]="name" [attr.id]="name" type="checkbox" [required]="required"/>',
providers: [
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MyCheckbox), multi: true }
]
})
export class MyCheckbox implements ControlValueAccessor {
@Input("name") name: string;
@Input("required") required: boolean;
private _innerValue: any;
onChangeCallback: any = (_: any) => {};
onTouchedCallback: any = () => {};
get value(): any {
return this._innerValue;
};
set value(value: any) {
if (value !== this._innerValue) {
this._innerValue = value;
this.onChangeCallback(value);
}
}
writeValue(value: any): void {
if (value !== this._innerValue) {
this._innerValue = value;
}
}
registerOnChange(fn: (_: any) => {}): void { this.onChangeCallback = fn; }
registerOnTouched(fn: () => {}): void { this.onTouchedCallback = fn; }
}
```
In that case, the validation state is NOT propagated properly to the host component. Thus, the enclosing form always remains valid even if unchecking the required checkbox. Like with the older issue, only setting ngModel to NULL would trigger correct propagation (not a desired approach).
## Expected behavior
A required checkbox validation state (ng-valid, ng-invalid) should be propagated properly to the host component. Unchecking the inner checkbox (then ngModel == false) makes host component and form invalid.
<!--
## Minimal reproduction of the problem with instructions
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
## What is the motivation / use case for changing the behavior?
Unchecking a required checkbox within a custom component should prevent the form submission.
## Please tell us about your environment
Angular version: 4.1.0
Browser: [all]
Language: [all] | feature,freq2: medium,area: forms,feature: under consideration,feature: votes required | medium | Critical |
235,886,451 | go | net/http: Transport does not handle 302 redirects with link-local server address correctly | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
```
go version go1.8.3 linux/amd64
```
### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/go"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```
### What did you do?
I need to get some data from link-local neighbor:
```
package main
import (
"fmt"
"net/http"
)
func main() {
if resp, err := http.Get("http://[fe80::1%25eth0]:8002/info.json"); err == nil {
defer resp.Body.Close()
fmt.Println(resp)
} else {
fmt.Println(err)
}
}
```
### What did you expect to see?
Something like this:
```
&{200 OK 200 HTTP/1.1 1 1 map[Connection:[keep-alive] Set-Cookie:[uid=AAAAAVlBPd2KJ2cFAwMUAg==; path=/] Server:[nginx] Date:[Wed, 14 Jun 2017 13:45:01 GMT] Content-Type:[application/json]] 0xc42007a600 -1 [chunked] false false map[] 0xc4200e8300 <nil>}
```
### What did you see instead?
`Get http://[fe80::1]:8002/info.sh: dial tcp [fe80::1]:8002: connect: invalid argument`
It happened, because `http://[fe80::1%eth0]:8002/info.json` returned 302-redirect to /info.sh and http-library lost zone-prefix somewhere while following redirect.
Proof:
```
curl -v "http://\[fe80::1%25eth0\]:8002/info.json"
* Trying fe80::1...
* Connected to fe80::1 (fe80::1) port 8002 (#0)
> GET /info.json HTTP/1.1
> Host: [fe80::1]:8002
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: nginx
< Date: Wed, 14 Jun 2017 13:49:17 GMT
< Content-Type: text/html
< Content-Length: 154
< Location: http://[fe80::1]:8002/info.sh
< Connection: keep-alive
< Set-Cookie: uid=AAAAAVlBPt2KJ2cFAwMVAg==; path=/
<
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host fe80::1 left intact
``` | help wanted,NeedsFix | medium | Major |
235,956,453 | rust | Output code bloat when programming with a functional style | I have been wanting to experiment writing some code in Rust with a more “pure functional / Haskelly” style. To explain things more clearly, let’s say you have this type.
```rust
#[derive(Debug)]
struct Type {
field1 : u64,
field2 : u32,
field3 : Vec<u32>,
}
```
A very simple method to modify `field2` would be written so in everyday Rust.
```rust
impl Type {
#[no_mangle]
#[inline(never)]
fn mut_update(&mut self, field2 : u32) -> &mut Self {
self.field2 = field2;
self
}
}
```
The `&mut Self` as return value is here so that one can chain such method calls. Now here is a more “pure functional” way of doing it.
```rust
impl Type {
#[no_mangle]
#[inline(never)]
fn func_update(self, field2 : u32) -> Self {
Type { field2 : field2, .. self }
}
}
```
And once optimized out, these two functions should be perfectly identical, because `func_update` takes the property of `self` and never returns it, so the memory can be safely reused.
So I tested it out with this basic code.
```rust
fn main() {
let mut var = Type { field1 : 42, field2 : 0, field3 : vec![12] };
let _ = var.mut_update(79);
let _other = var.func_update(112);
}
```
But no… This is the assembly generated for `mut_update`
```nasm
mut_update:
.cfi_startproc
mov dword ptr [rdi + 32], 79
ret
```
And this is the one generated for `func_update`.
```nasm
func_update:
.cfi_startproc
mov rax, qword ptr [rsi]
mov qword ptr [rdi], rax
mov dword ptr [rdi + 32], 112
mov rax, qword ptr [rsi + 24]
mov qword ptr [rdi + 24], rax
movups xmm0, xmmword ptr [rsi + 8]
movups xmmword ptr [rdi + 8], xmm0
mov rax, rdi
ret
```
As you can see, the whole memory occupied by `self` is copied to another location, a pointer to which is returned by the function. And here is the LLVM IR for these two functions.
```llvm
; Function Attrs: noinline norecurse nounwind uwtable
define internal fastcc void @mut_update(%Type* nocapture dereferenceable(40)) unnamed_addr #0 {
start:
%1 = getelementptr inbounds %Type, %Type* %0, i64 0, i32 4
store i32 79, i32* %1, align 4
ret void
}
; Function Attrs: noinline nounwind uwtable
define internal fastcc void @func_update(%Type* noalias nocapture sret dereferenceable(40), %Type* noalias nocapture readonly dereferenceable(40)) unnamed_addr #1 {
start:
%self.sroa.0.0..sroa_idx = getelementptr inbounds %Type, %Type* %1, i64 0, i32 0
%self.sroa.0.0.copyload = load i64, i64* %self.sroa.0.0..sroa_idx, align 8
%self.sroa.4.0..sroa_idx = getelementptr inbounds %Type, %Type* %1, i64 0, i32 2
%self.sroa.4.0..sroa_cast2 = bitcast %"collections::vec::Vec<u32>"* %self.sroa.4.0..sroa_idx to i8*
%2 = getelementptr inbounds %Type, %Type* %0, i64 0, i32 0
store i64 %self.sroa.0.0.copyload, i64* %2, align 8
%3 = getelementptr inbounds %Type, %Type* %0, i64 0, i32 4
store i32 112, i32* %3, align 8
%self.sroa.4.8..sroa_idx = getelementptr inbounds %Type, %Type* %0, i64 0, i32 2
%self.sroa.4.8..sroa_cast = bitcast %"collections::vec::Vec<u32>"* %self.sroa.4.8..sroa_idx to i8*
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %self.sroa.4.8..sroa_cast, i8* %self.sroa.4.0..sroa_cast2, i64 24, i32 8, i1 false)
ret void
}
```
The “functional” variant is already bloated at this point, so the problem comes form rustc itself.
That’s the first problem. The other is in the `main` function: look at what happens between the call to the two functions.
```nasm
mov dword ptr [rax], 12
mov qword ptr [rsp + 8], 42
mov dword ptr [rsp + 40], 0
mov qword ptr [rsp + 16], rax
mov qword ptr [rsp + 24], 1
mov qword ptr [rsp + 32], 1
lea rdi, [rsp + 8]
call mut_update
mov rax, qword ptr [rsp + 40]
mov qword ptr [rsp + 80], rax
movups xmm0, xmmword ptr [rsp + 8]
movups xmm1, xmmword ptr [rsp + 24]
movaps xmmword ptr [rsp + 64], xmm1
movaps xmmword ptr [rsp + 48], xmm0
lea rdi, [rsp + 96]
lea rsi, [rsp + 48]
call func_update
```
Yes, you read it right: the whole memory space containing `var` is being copied to another place *before* the next function is even called. So it is copied twice: immediately before the `call` and immediately after.
Here is the LLVM IR for the `main` function.
```llvm
; Function Attrs: uwtable
define internal void @_ZN4opti4main17ha95f343356fbf6f4E() unnamed_addr #2 personality i32 (i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*)* @rust_eh_personality {
start:
%_9 = alloca %Type, align 8
%_other = alloca %Type, align 8
%var = alloca %Type, align 8
%0 = bitcast %Type* %var to i8*
call void @llvm.lifetime.start(i64 40, i8* nonnull %0)
%1 = tail call i8* @__rust_allocate(i64 4, i64 4) #4
%2 = icmp eq i8* %1, null
br i1 %2, label %bb5.i, label %bb5
bb5.i: ; preds = %start
tail call void @_ZN5alloc3oom3oom17h5b02814f1abf9784E()
unreachable
bb5: ; preds = %start
%3 = bitcast i8* %1 to i32*
store i32 12, i32* %3, align 4
%4 = getelementptr inbounds %Type, %Type* %var, i64 0, i32 0
store i64 42, i64* %4, align 8
%5 = getelementptr inbounds %Type, %Type* %var, i64 0, i32 4
store i32 0, i32* %5, align 8
%_2.sroa.0.0..sroa_idx = getelementptr inbounds %Type, %Type* %var, i64 0, i32 2, i32 0, i32 0, i32 0, i32 0
%6 = bitcast i32** %_2.sroa.0.0..sroa_idx to i8**
store i8* %1, i8** %6, align 8
%_2.sroa.4.0..sroa_idx11 = getelementptr inbounds %Type, %Type* %var, i64 0, i32 2, i32 0, i32 2
store i64 1, i64* %_2.sroa.4.0..sroa_idx11, align 8
%_2.sroa.5.0..sroa_idx13 = getelementptr inbounds %Type, %Type* %var, i64 0, i32 2, i32 2
store i64 1, i64* %_2.sroa.5.0..sroa_idx13, align 8
call fastcc void @mut_update(%Type* nonnull dereferenceable(40) %var)
%7 = bitcast %Type* %_other to i8*
call void @llvm.lifetime.start(i64 40, i8* nonnull %7)
%8 = bitcast %Type* %_9 to i8*
call void @llvm.lifetime.start(i64 40, i8* nonnull %8)
call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull %8, i8* nonnull %0, i64 40, i32 8, i1 false)
call fastcc void @func_update(%Type* noalias nocapture nonnull sret dereferenceable(40) %_other, %Type* noalias nocapture nonnull dereferenceable(40) %_9)
call void @llvm.lifetime.end(i64 40, i8* nonnull %8)
%9 = getelementptr inbounds %Type, %Type* %_other, i64 0, i32 2, i32 0, i32 2
%10 = load i64, i64* %9, align 8
%not..i.i.i.i = icmp eq i64 %10, 0
br i1 %not..i.i.i.i, label %bb6, label %bb6.i.i.i.i
bb6.i.i.i.i: ; preds = %bb5
%11 = getelementptr inbounds %Type, %Type* %_other, i64 0, i32 2
%12 = shl i64 %10, 2
%13 = bitcast %"collections::vec::Vec<u32>"* %11 to i8**
%_3.sroa.0.0.copyload3.i1.i.i.i.i = load i8*, i8** %13, align 8, !alias.scope !1
tail call void @__rust_deallocate(i8* %_3.sroa.0.0.copyload3.i1.i.i.i.i, i64 %12, i64 4) #4
br label %bb6
bb6: ; preds = %bb6.i.i.i.i, %bb5
call void @llvm.lifetime.end(i64 40, i8* nonnull %7)
call void @llvm.lifetime.end(i64 40, i8* nonnull %0)
ret void
}
```
I know next to nothing about LLVM IR, so I don’t really understand what is going on in there. But I guess that this line is responsible for the unnecessary copy.
```llvm
call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull %8, i8* nonnull %0, i64 40, i32 8, i1 false)
```
I hope you people find a solution to this, because it is a huge loss in processor time to do almost thrice as much memory access as would be needed. And even if it is not relevant on such small a code, with a bigger code base, it must surely bloat memory usage compared to C for instance. | I-slow,C-enhancement,T-compiler,A-MIR,C-optimization | low | Critical |
236,029,670 | go | time: unchecked overflow in Add and AddDays | I'm trying to define a mapping between `time.Time` and a C++ time library.
The library that I'm trying to map to supports distinct "infinite past" and "infinite future" times, which need to be mapped to distinct `time.Time` values. The logical choices would seem to be the maximum and minimum representable `time.Time` values.
One way to try to obtain those is to call `(time.Time).AddDate` with absurdly positive or absurdly negative values. `AddDate` does not return an error, and it cannot reasonably panic on overflow (because the package does not define a way for users to check for such an overflow ahead of time). That leaves one "obvious" behavior: saturation.
Sadly, the current implementation fails to provide that behavior, and instead silently overflows to nonsensical values (https://play.golang.org/p/UUC2JG7Xcj).
(Further evidence for https://github.com/golang/go/issues/19624?)
| help wanted,NeedsFix | low | Critical |
236,045,719 | flutter | Hot restart while keyboard is up leaves the keyboard up | a: text input,platform-android,platform-ios,tool,framework,engine,t: hot reload,has reproducible steps,P3,team-engine,triaged-engine,found in release: 3.16,found in release: 3.19,fyi-text-input | medium | Critical |
|
236,120,546 | vscode | Editor: scroll jumps randomly (related to Chrome, Electron, xinput) | - VSCode Version: starting at 1.13.0, up to current
- OS Version: Fedora 24-27
Looks like VS Code is listening to mouse scroll events, even while it is not active in the window.
Related:
https://bugs.chromium.org/p/chromium/issues/detail?id=608246
https://bugs.chromium.org/p/chromium/issues/detail?id=807187
**Steps to Reproduce**
requirements: Browser (Chromium / Firefox / Google Chrome), VSCode Editor (Any file type. Ideally a long file to ensure the scroll is visible.)
VSCode: Leave cursor at top of file.
Browser: Scroll, excessively, (For a few seconds) down the page. Even if it's a blank tab with no content.
VSCode: Scroll, ever so slightly, in any direction.
You'll find the editor will jump suddenly further down the active file.
It seems VSCode is receiving the scroll events, for whatever reason; which are all suddenly evaluated upon any form of scroll input in the editor.
**Updates based on comments**
GUESS: Appears to be an issue with Electron and some input libraries?
Is not isolated to VScode
Fix: Does not yet exist.
Linux Workarounds (Not to be confused with a fix)
imwheel - not suitable for all users
wayland - not suitable for all users
Note: Ubuntu 19.04 (Desktop) appears to be using Wayland.
I'm not sure we will see further updates in here, which is a bit disappointing from the developers, given the amount of comments from affected people. I would like to have some official guidance, even if it's pointing us to other resources. | bug,upstream,linux,electron,upstream-issue-linked | high | Critical |
236,126,111 | You-Dont-Know-JS | ES6 & Beyond: Early Completion | Hi! In the [Early Completion](https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/ch3.md#early-completion) section there is a sentence:
`In addition to return(..) being callable manually, it's also called automatically at the end of iteration by any of the ES6 constructs that consume iterators, such as the for..of loop and the ... spread operator.`
So to check it out I created a custom iterable object with the next() and return() methods in it. I put console.log inside the every method and was expected that at the end of the for..of statement, the _return_ method of my object was called automatically. But it wasn't called!
You can check out what I mean by [this jsfiddle](https://jsfiddle.net/ovkadurin/7L21ze4y/).
So if I understand it correctly, the automatic call happens only when there is _break_ inside the for..of or we manually call _return()_. Maybe I got the phrase _at the end of iteration_ incorrectly for some reason. Does it really mean like "the very last step of for..of"?
Thanks! | for second edition | low | Minor |
236,161,330 | youtube-dl | ERROR: Unable to extract playlist data; | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.12*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x ] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.12**
### Before submitting an *issue* make sure you have:
- [ x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x ] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v https://www.bbc.co.uk/events/evfwhn/live/cxxp5v
[debug] System config: [u'--format', u'18,93', u'--restrict-filenames']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.bbc.co.uk/events/evfwhn/live/cxxp5v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.12
[debug] Python version 2.7.3 - Linux-4.1.19-v7+-armv7l-with-debian-7.11
[debug] exe versions: avconv 9.14-6, avprobe 9.14-6, ffmpeg 0.8.20-6
[debug] Proxy map: {}
[bbc] cxxp5v: Downloading webpage
ERROR: Unable to extract playlist data; 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 "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 762, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bbc.py", line 1025, in _real_extract
webpage, 'playlist data'),
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 782, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract playlist data; 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.
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
Explanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.
If work on your *issue* requires account credentials please provide them or explain how one can obtain them.
| geo-restricted | low | Critical |
236,163,007 | rust | Add Vec::contains_ref which is worse for inference but less restrictive than Vec::contains | Using Vec::contains currently only works if the contains parameter is of the same &Type as the Vector elements. This means the parameter must be converted to the vec-item-type even though it is comparable with the type in the first place.
e.g. following code does not work, even though `impl<'a, 'b> PartialEq<str> for String` exists:
```
fn main() {
let mut v: Vec<String> = Vec::new();
v.contains("mystring");
}
```
The Error:
```
error[E0308]: mismatched types
--> <anon>:3:16
|
3 | v.contains("mystring");
| ^^^^^^^^^^ expected struct `std::string::String`, found str
|
= note: expected type `&std::string::String`
found type `&'static str`
```
I'd be better if Vec::contains had definition like:
`fn contains<U>(&self, value: &U) where T: PartialEq<U>, U: ?Sized`
| A-collections,T-libs-api,C-feature-request | medium | Critical |
236,179,096 | TypeScript | [feature request] Support Custom Types for Tagged Template Expressions | ## Problem Statement
It is common to embed queries in tagged template expressions within typescript. For example, you might use sql:
```ts
const result = await querySQL(sql`SELECT * FROM users WHERE id = ${userID}`);
```
You also see a similar pattern with graphql:
```ts
const result = await queryGraph(graphql`query { user { id, name } }`);
```
Currently, there is no way to provide type information about what is returned by `queryGraph`/`querySQL`. A lot of potential type information is lost at the boundary here.
I obviously don't expect typescript to read the graphql or SQL schema, as that's way out of scope. What I would like is a way to provide this information as a module author.
## Proposal
I believe that all that's needed is a way to write plugins that answer the question "given a tagged template expression, what type does it return". This would only affect the type checker. It would not change generated code or add any new syntax.
A new `compilerConfig` option called `taggedTemplateHandlers` would be added, that would take an array of paths to typescript files. An example might look something like:
```ts
import {parseSqlQuery, convertSqlTypeToTypeScriptType} from 'sql-helpers';
import * as ts_module from "typescript/lib/tsserverlibrary";
export default {
tag: 'sql',
templateHandler(modules: {typescript: typeof ts_module}, strings: string[], ...expressions: Array<ts_module.Expression>) {
const ts = modules.typescript;
const fields = parseSqlQuery(strings.join('"EXPRESSION"'));
return ts.createTypeReferenceNode(
ts.createIdentifier('SqlQuery'), // typeName
ts.createNodeArray([ // typeArguments
ts.createTypeLiteralNode(Object.keys(fields).map(field => {
return ts.createPropertySignature(
ts.createIdentifier(field),
undefined, // question token
convertSqlTypeToTypeScriptType(fields[field]), // type
undefined, // initializer
)
}))
])
);
}
};
```
You could then define `querySQL` like:
```ts
define function querySQL<TResult>(query: SqlQuery<TResult>): Promise<TResult>;
```
## Language Feature Checklist
* Syntactic - no new changes
* Semantic
- When a tagged template is encountered by the type-checker
1. See if a `taggedTemplateHandlers` has been registered for that tag
2. Call that `taggedTemplateHandler` if one exists.
3. Use the `TypeNode` returned by the `taggedTemplateHandler` in place of the default behaviour.
* Emit - no new changes
* Compatibility - no new syntax is added/changed, so it should be fully backwards/forwards compatible.
* Other
- I expect there will be some performance impact, but hopefully the fact that both plugins and the compiler are written in typescript should make this minimal.
- Ideally, this information would be used for autocomplete helpers as well as in the typechecker, I do not know if that would require extra work.
I'm happy to do my best to help implement this, but I would need some pointers on where to start.
P.S. would it be possible to pass in the **type** of the expressions, in place of the actual expressions themselves? | Suggestion,In Discussion | medium | Major |
236,188,952 | TypeScript | [bug] TemplateStringsArray is incompatible with literal array type | **TypeScript Version:** 2.4.0
**Code**
```ts
// A *self-contained* demonstration of the problem follows...
interface SQLQuery<TResult> {
__result: TResult;
}
declare function sql(
literals: ['SELECT id FROM users'],
...placeholders: any[]
): SQLQuery<{id: number}>;
declare function querySync<TResult>(q: SQLQuery<TResult>): Array<TResult>;
const values: Array<{id: number}> = querySync(sql`SELECT id FROM users`);
```
**Expected behavior:**
Typescript should see that the input string 'SELECT id FROM users' matches the expected literals of `['SELECT id FROM users']` and use the declared function, allowing me to generate an overloaded version of the `sql` function for each query.
**Actual behavior:**
I get the error:
> src/index.ts(23,50): error TS2345: Argument of type 'TemplateStringsArray' is not assignable to parameter of type '["SELECT id FROM users"]'.
> Property '0' is missing in type 'TemplateStringsArray'. | Suggestion,In Discussion | low | Critical |
236,190,005 | rust | rustdoc still doesn't handle renames in reexports correctly | Test case:
```rust
mod internal {
pub struct BadName;
impl BadName {
pub fn f(&self) {}
}
}
pub use internal::BadName as GoodName;
```
Running `rustdoc a.rs`, it produces this page:
> 
Note that the `impl` still refers to the struct as `BadName`. The fix for #34473 is not enough.
Real world example:
* https://docs.rs/handlebars/5.1.0/handlebars/struct.Handlebars.html — the struct is exported as `Handlebars` but the content says `impl Registry`. The method `new()` also returns `Registry`.
* https://docs.rs/handlebars/5.1.0/handlebars/trait.HelperDef.html — the parameter involving `&'reg` refers to `Registry`, although it correctly links to `struct.Handlebars.html`. | T-rustdoc,C-bug | low | Minor |
236,206,696 | rust | Reconsider using SVH for loading transitive crate dependencies | When you write `extern crate bar` in your crate then the compiler will search for and load all crates that are transitive dependencies of `bar`. Let's say, for example, that `bar` depended on crate `foo`. The compiler will look for `libfoo.rlib` after loading `libbar.rlib`. Because `bar` is already compiled the compiler wants to find the precise same `libfoo.rlib` as before. Each crate has a "strict version hash" historically (SVH) which is used for this. The metadata of `bar` says that it needs crate `foo` at a precise SVH. The intention here is to prune duplicates or other crates that look like they could satifsy the request.
Over time, though, the SVH's definition has changed over time and it may no longer be the correct tool for the job here. @nikomatsakis may have more information. | A-linkage,A-metadata,T-compiler,A-incr-comp | low | Major |
236,264,097 | go | sync: unchecked overflow in (*WaitGroup).Add | Thinking about https://github.com/golang/go/issues/20678 (and #19624) made me wonder what other unchecked overflows are lurking in the standard library. I've found another one, but I don't have real-world code that triggers it. (I'm filing this issue just for reference.)
`(*sync.WaitGroup).Add` accepts an `int` parameter, so it is reasonable for users to expect that they cannot make `Add` calls summing to more than the maximum possible `int`. However, in practice `WaitGroup` only supports `Add` calls that sum to within `math.MaxInt32`.
`Add` currently detects (and panics on) overflows that happen to land in the negative half of the `int32` space, but fails to detect other overflows entirely.
`Add` should be fixed to reliably panic on all overflows. It should ideally support the full positive `int` range, but if that isn't feasible the supported range should be made clear in the documentation.
```
$ go version
go version devel +0a0e45d5c6 Thu May 25 17:57:21 2017 -0400 linux/amd64
```
wgover/wgover.go:
```go
package main
import (
"fmt"
"math"
"sync"
"sync/atomic"
)
func main() {
var wg sync.WaitGroup
var n int64
const maxInt = int(^uint(0) >> 1)
iters := 0x40000000
if int64(maxInt) > math.MaxInt32 {
iters <<= 2
}
fmt.Printf("looping for %d iterations\n", iters)
wg.Add(iters)
atomic.AddInt64(&n, int64(iters))
go func() {
for {
wg.Done()
if atomic.AddInt64(&n, -1) == 0 {
break
}
}
}()
wg.Wait()
fmt.Printf("done with %d iterations remaining\n", atomic.LoadInt64(&n))
}
```
expected (with very long running time):
```
$ go run wgover/wgover.go
looping for 4294967296 iterations
done with 0 iterations remaining
```
actual:
```
$ go run wgover/wgover.go
looping for 4294967296 iterations
done with 4294967296 iterations remaining
``` | help wanted,NeedsFix,compiler/runtime | low | Major |
236,320,142 | youtube-dl | Extractor Error when attempting to download Vevo Playlist | ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.12*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.12**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl --ignore-config http://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '-v', 'http://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2017.06.12
[debug] Python version 3.6.1 - Windows-10-10.0.15063-SP0
[debug] exe versions: ffmpeg N-83454-g3aae1ef, ffprobe N-83454-g3aae1ef
[debug] Proxy map: {}
[VevoPlaylist] d1aa61ff-1f40-466f-b527-8277de057768: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('playlists',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how 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\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\extractor\common.py", line 433, in extract
ie_result = self._real_extract(url)
File "c:\users\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\extractor\vevo.py", line 359, in _real_extract
playlists = self._extract_json(webpage, playlist_id)['default']['%ss' % playlist_kind]
KeyError: 'playlists'
Traceback (most recent call last):
File "c:\users\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\extractor\common.py", line 433, in extract
ie_result = self._real_extract(url)
File "c:\users\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\extractor\vevo.py", line 359, in _real_extract
playlists = self._extract_json(webpage, playlist_id)['default']['%ss' % playlist_kind]
KeyError: 'playlists'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\YoutubeDL.py", line 762, in extract_info
ie_result = ie.extract(url)
File "c:\users\thomas\miniconda3\envs\ytdl\lib\site-packages\youtube_dl\extractor\common.py", line 446, in extract
raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('playlists',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
```
| geo-restricted | low | Critical |
236,326,040 | youtube-dl | Vevo: attempting download a specific video a playlist, always downloads the first video of the list | ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.06.12*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.12**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl --ignore-config -v https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768?index=4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '-v', 'https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768?index=4']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2017.06.12
[debug] Python version 3.6.1 - Windows-10-10.0.15063-SP0
[debug] exe versions: ffmpeg N-83454-g3aae1ef, ffprobe N-83454-g3aae1ef
[debug] Proxy map: {}
[VevoPlaylist] d1aa61ff-1f40-466f-b527-8277de057768: Downloading webpage
[Vevo] Retrieving oauth token
[Vevo] USLV49400152: Downloading api video info
[Vevo] USLV49400152: Downloading video versions info
[Vevo] USLV49400152: Downloading amazon MPD information
[Vevo] USLV49400152: Downloading akamai MPD information
[Vevo] USLV49400152: Downloading amazon m3u8 information
[Vevo] USLV49400152: Downloading akamai m3u8 information
[debug] Invoking downloader on 'http://mpd-aws.vevo.com/v4/mpd/2015/12/USLV49400152/50199210-1804-47c6-9eab-b969e0b91a7e/uslv49400152_5200k_1920x1080_h264_5200_aac_128_track1_dashinit.mp4'
[download] Resuming download at byte 17335634
[download] Destination: TLC - Waterfalls-USLV49400152.fdash-amazon-8.mp4
[download] 100% of 164.98MiB in 04:40
[debug] Invoking downloader on 'http://mpd-aws.vevo.com/v4/mpd/2015/12/USLV49400152/50199210-1804-47c6-9eab-b969e0b91a7e/uslv49400152_128k_0x0__0_aac_128_dashinit.mp4'
[download] Destination: TLC - Waterfalls-USLV49400152.fdash-amazon-11.m4a
[download] 100% of 4.86MiB in 00:09
[ffmpeg] Merging formats into "TLC - Waterfalls-USLV49400152.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:TLC - Waterfalls-USLV49400152.fdash-amazon-8.mp4' -i 'file:TLC - Waterfalls-USLV49400152.fdash-amazon-11.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:TLC - Waterfalls-USLV49400152.temp.mp4'
Deleting original file TLC - Waterfalls-USLV49400152.fdash-amazon-8.mp4 (pass -k to keep)
Deleting original file TLC - Waterfalls-USLV49400152.fdash-amazon-11.m4a (pass -k to keep)
```
---
### Description of your *issue*, suggested solution and other information
On Vevo, individual videos within a playlist can be accessed by index number.
For Playlist: [https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768](https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768)
3rd Video of playlist: [https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768?index=2](https://www.vevo.com/watch/playlist/d1aa61ff-1f40-466f-b527-8277de057768?index=2)
The youtube-dl, any attempt to download a video with index > 0, results in the downloading the first (index=0) video of the playlist.
In the example pasted above, the fourth video should have been download, instead "Waterfalls" (index=0) is downloaded.
| geo-restricted | low | Critical |
236,365,646 | youtube-dl | Can't download US Senate committee hearings | - [X] I've **verified** and **I assure** that I'm running youtube-dl **2017.06.12**
- [X] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [X] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [X] Site support request (request for adding support for a new site)
---
---
```
youtube-dl https://www.budget.senate.gov/hearings/watch?hearingid=E9CA49E5-5056-A066-6056-62BB2BE6BA6B -v
[debug] System config: [u'-o', u'~/Videos/youtube-dl/%(title)s_%(id)s.%(ext)s', u'--netrc', u'--restrict-filenames', u'--write-description', u'--write-sub', u'--yes-playlist', u'--ignore-errors']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.budget.senate.gov/hearings/watch?hearingid=E9CA49E5-5056-A066-6056-62BB2BE6BA6B', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.12
[debug] Python version 2.7.12 - Linux-4.4.0-71-generic-x86_64-with-LinuxMint-18.1-serena
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
[generic] watch?hearingid=E9CA49E5-5056-A066-6056-62BB2BE6BA6B: Requesting header
WARNING: Falling back on generic information extractor.
[generic] watch?hearingid=E9CA49E5-5056-A066-6056-62BB2BE6BA6B: Downloading webpage
[generic] watch?hearingid=E9CA49E5-5056-A066-6056-62BB2BE6BA6B: Extracting information
[SenateISVP] budget060717: Downloading webpage
WARNING: There's no description to write.
[debug] Invoking downloader on u'http://ussenate-f.akamaihd.net/budget060717.mp4?v=3.1.0&fp=&r=&g='
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1826, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1768, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 360, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 61, in real_download
data = self.ydl.urlopen(request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2129, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.veterans.senate.gov/hearings/pending-legislation-06152017
- Single video: https://www.indian.senate.gov/hearing/business-meeting-consider-s-772-s-825
- Playlist: https://www.budget.senate.gov/hearings
- Playlist: https://www.veterans.senate.gov/hearings
---
### Description of your *issue*, suggested solution and other information
The senate.gov has many "subcategories", or better known as committees. The list of committees is at https://www.senate.gov/committees/committees_home.htm.
For example,
veterans.senate.gov
indian.senate.gov
Each committee's hearings are available on /hearings, for example, veterans.senate.gov/hearings. | geo-restricted | low | Critical |
236,380,386 | go | image/gif: Mention the uselessness of BackgroundIndex in the docs | Go version: Go 1.8 (but this is a documentation issue)
Quick introduction to GIF disposal methods:
In an animated GIF, a _disposal method_ can be set for each frame. It specifies to which state the canvas should be set before displaying the next frame when the current frame is finished being shown. There are three disposal methods, represented in `image/gif` by `DisposalNone`, `DisposalBackground` and `DisposalPrevious`.
`DisposalNone` means that the following frame is drawn on top of the current frame, so that transparent areas of the next frame continue to show this frame's content. `DisposalPrevious` means that the canvas is reset to the last frame that _didn't_ have its disposal method set to `DisposalPrevious`. `DisposalBackground` means something else and I will come to that in a moment.
In Go, an animated GIF can be written by `EncodeAll()` in `image/gif`, which accepts a `GIF` struct that describes the animated GIF. This struct has a member `BackgroundIndex byte` whose inline documentation reads:
```
// BackgroundIndex is the background index in the global color table, for
// use with the DisposalBackground disposal method.
BackgroundIndex byte
```
This gives the impression that `DisposalBackground` means "the canvas is restored to the color given by `BackgroundIndex`.
However, in all modern browsers `DisposalBackground` is interpreted as "clear the canvas to fully transparent".
It turns out that this is indeed an ambiguity in the GIF89a specification which in the past has been interpreted as "clear to `BackgroundIndex`" but is apparently interpreted as "clear to transparent" since about 15 years ago, as [this comment](https://bugzilla.mozilla.org/show_bug.cgi?id=85595#c72) from the Mozilla bugtracker shows.
Since I just spent an hour figuring out why Chrome (as I thought) doesn't reset the canvas to `BackgroundIndex`, I would appreciate if the fact that `BackgroundIndex` is essentially ignored by all browsers would be mentioned in the docs. | Documentation,help wanted,NeedsInvestigation | low | Critical |
236,384,579 | go | x/net/bpf: tests are flaky due to timing assumptions | Test flake:
Seen on a trybot run:
```
--- FAIL: TestVMALUOpXor (0.10s)
vm_bpf_test.go:120: output byte count does not match:
- go: 1
- os: 0
vm_bpf_test.go:124: Go BPF and OS BPF packet outputs do not match
FAIL
FAIL golang.org/x/net/bpf 0.767s
```
Could somebody investigate? Test flakes make development elsewhere harder. (I was working on http2)
/cc @mdlayher @danderson | Testing,NeedsFix | low | Major |
236,435,082 | angular | Support generic SimpleChange<T> for use in ngOnChanges | ## I'm submitting a ...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report <!-- Please search github for a similar issue or PR before submitting -->
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>
## Please tell us about your environment
<pre><code>
Angular version: 4.2.2
</pre></code>
## Current behavior
The `ngOnChanges` lifecycle hook method provides `changes: SimpleChanges`. Within that, each property is of type `SimpleChange` which provides `currentValue:any` and `previousValue:any`.
Because `SimpleChange` uses type `any` and does not use generics, there is no type safety (or autocomplete etc.) and we lose the benefits of TypeScript when working on code that operates inside `ngOnChanges`.
## Expected behavior
Adding generics, `SimpleChange<T = any>` would offer developers the chance to define the types of their inputs, whilst falling back to the current behaviour of `any` otherwise.
## Example 1: Standard behaviour available now
```
import { Component, Input, OnChanges, SimpleChanges, SimpleChange } from '@angular/core';
@Component({
// ...
})
export class ExampleComponent implements OnChanges {
@Input() foo: string;
@Input() bar: number;
ngOnChanges(changes: SimpleChanges): void {
// BAD: We get no autocomplete for the properties on changes
// BAD: We are not able to access changes.foo.currentValue here with dot syntax, we have to use changes["foo"].currentValue
// BAD: Editor is not aware of type of changes["foo"].currentValue, so we get no further type checking / autocompletion
}
}
```
## Example 2: Slight improvement by adding own extension of SimpleChanges
```
import { Component, Input, OnChanges, SimpleChanges, SimpleChange } from '@angular/core';
interface IExampleComponentChanges extends SimpleChanges {
foo: SimpleChange;
bar: SimpleChange;
}
@Component({
// ...
})
export class ExampleComponent implements OnChanges {
@Input() foo: string;
@Input() bar: number;
ngOnChanges(changes: IExampleComponentChanges): void {
// GOOD: Editor is aware of which properties are available in changes
// GOOD: We are able to access changes.foo.currentValue here with dot syntax
// BAD: Editor is not aware of type of changes.foo.currentValue, so we get no further type checking / autocompletion
}
}
```
## Example 3: If SimpleChange supported generics...
```
import { Component, Input, OnChanges, SimpleChanges, SimpleChange } from '@angular/core';
interface IExampleComponentChanges extends SimpleChanges {
foo: SimpleChange<string>;
bar: SimpleChange<number>;
}
@Component({
// ...
})
export class ExampleComponent implements OnChanges {
@Input() foo: string;
@Input() bar: number;
ngOnChanges(changes: IExampleComponentChanges): void {
// GOOD: Editor is aware of which properties are available in changes
// GOOD: We are able to access changes.foo.currentValue here with dot syntax
// GOOD: Editor is aware of the type of changes.foo.currentValue so we get full type safety and autocompletion all the way down
}
}
```
## Workaround
In my project I have found a way to achieve this by adding my own definition and using that in place of SimpleChange. It would be great if this were possible as part of the framework though and thought it might be helpful to share.
```
declare class SimpleChangeGeneric<T = any> extends SimpleChange {
previousValue: T;
currentValue: T;
firstChange: boolean;
constructor(previousValue: T, currentValue: T, firstChange: boolean);
/**
* Check whether the new value is the first value assigned.
*/
isFirstChange(): boolean;
}
// ...
export interface IExampleComponentChanges extends SimpleChanges {
foo: SimpleChangeGeneric<string>;
}
// ...
```
| feature,area: core,core: lifecycle hooks,core: change detection,cross-cutting: types,feature: under consideration | high | Critical |
236,497,130 | godot | UWP game on XBox receives mysterious InputKey events | **Operating system or device - Godot version:** UWP(XBox), Godot 2.2
**Issue description:**
Although I'm just using the xbox controller, my code is printing InputKey events everytime I press any button or move the sticks in the controller.
The scancode is: 33554431, which seems to be a very strange code :)
| bug,platform:uwp,topic:input | medium | Major |
236,522,729 | rust | Format self correctly | Fix the formatting of `self` in the error message.
```
struct Foo {
field: i32
}
impl Foo {
fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
if true { self } else { x }
// now gives:
// error[E0611]: explicit lifetime required in the type of `self`
// |
// 20 | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
// | ^^^^^ consider changing the type of `self` to `&'a Foo`
// ...
// 25 | if true { self } else { x }
// | ---- lifetime `'a` required
// should actually:
// error[E0611]: explicit lifetime required in the type of `self`
// |
// 20 | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
// | ^^^^^ consider changing to `&'a self`
// ...
// 25 | if true { self } else { x }
// | ---- lifetime `'a` required
}
}
```
```
^^^^^ consider changing the type of `self` to `&'a Foo`
```
should actually be
```
^^^^^ consider changing to `&'a self`
```
cc @nikomatsakis | C-enhancement,A-diagnostics,T-compiler,WG-diagnostics | low | Critical |
236,528,604 | flutter | Better handle case where a developer opens `Runner.xcodeproj` instead of `Runner.xcworkspace` | If a developer opens `Runner.xcodeproj` rather than `Runner.xcworkspace` things generally work OK (for example, you can Run with no problems) *until* they start to use plugins. Then they get errors such as:
<img width="401" alt="screen shot 2017-06-16 at 18 12 51" src="https://user-images.githubusercontent.com/13644170/27235016-7554264c-52bf-11e7-9817-2b488831a0db.png">
| platform-ios,tool,t: xcode,P3,a: plugins,team-ios,triaged-ios | low | Critical |
236,547,149 | rust | properly handle anonymous regions appearing in return type- named-anon conflicts | These cases, going by the way #42669 for one named and other anonymous lifetime parameter , the error message generated would suggest ` consider changing type of self` to `&'a i32`. In the first case, this is fine but the second case, with `self.field` not being the return value, the message is wrong and should only suggest changing the return type. We need to differentiate both the cases and fix the error message for the second case.
```rust
fn foo<'a>(&self, x: &'a i32) -> &i32 {
// Preferred message:
// fn foo<'a>(&self, x: &'a i32) -> &i32 {
// ----- ---- consider changing to `&'a i32`
// |
// consider changing to `&'a self`
if true { &self.field } else { x }
}
```
```rust
fn foo<'a>(&self, x: &'a i32) -> &i32 {
// preferred error
// fn foo<'a>(&self, x: &'a i32) -> &i32 {
// ---- consider changing to `&'a i32`
x
// error[E0611]: explicit lifetime required in the type of `self`
// |
// 33 | fn foo<'a>(&self, x: &'a i32) -> &i32 {
// | ^^^^^ consider changing the type of `self` to `&'a Foo`
// 34 | //
// 35 | x
// | - lifetime `'a` required
}
```
cc @nikomatsakis | C-enhancement,A-diagnostics,T-compiler,WG-diagnostics | low | Critical |
236,570,553 | nvm | Installing "system" node using nvm? | From the README, it's not clear how I could install a system version of node (that will be used even when nvm isn't sourced). Is that a supported use case? | feature requests,needs followup,root / multiuser issues | low | Minor |
236,587,273 | go | proposal: spec: allow combining characters in identifiers | Forking from #16033, which had two related but different proposals in it. The proposal for this issue, by @robpike:
On a related note, some writing systems - Devanagari is one (see #5167) require combining characters. The current identifier rules forbid combining characters; perhaps that should be relaxed, although that will require a canonicalization rule for combining characters. Unicode does have a definition for identifiers (http://unicode.org/reports/tr31/); perhaps Go should use it. Note that the addition of combining characters, allied with the export proposal above, would make it possible to export Devanagari identifiers. | LanguageChange,Proposal,LanguageChangeReview | medium | Critical |
236,611,082 | go | encoding/xml: lacks support for decoding arrays | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
go version go1.8.1 windows/amd64
### What did you do?
Tried to store a struct containing [2]int as xml, then load it:
https://play.golang.org/p/TDMcHlf3fn
### What did you expect to see?
`{[0 255]} {[255 255]}`
### What did you see instead?
```
panic: unknown type [2]uint8
goroutine 1 [running]:
main.main()
/tmp/sandbox393989733/main.go:22 +0x260
```
### Additional Notes
There is no `case reflect.Array:` in` (p *Decoder) unmarshal` in "encoding/xml/read.go"
Encoding arrays works
Decoding arrays as slices works | NeedsDecision,FeatureRequest | low | Major |
236,649,469 | go | runtime/cgo: call C exit to allow global destructors/atexit to run | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
go version go1.8 linux/amd64
### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build855140157=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
### What did you do?
I want to do something in the destructor of a global variable defined in c++ library which is linked into a go program via cgo. but the destructor can't be invoked when the go program exited.
//c++ library
class AutoInit
{
public:
AutoInit() { printf("+++++ auto init\n"); }
~AutoInit() { printf("---- auto fini\n"); }
};
### What did you expect to see?
two lines should be printed:
+++++ auto init
---- auto fini
### What did you see instead?
only one line was be printed:
+++++ auto init
| Unfortunate,help wanted,NeedsFix | low | Critical |
236,655,252 | go | x/tools/cmd/gomvpkg: mishandles main package | `gomvpkg -from foo/bar -to baz/bar` where `foo/bar` is `package main` renames package to `bar`, which makes it non-executable. May look silly, but the main intention was to take advantage of `-vcs_mv_cmd "git mv {{.Src}} {{.Dst}}"` part. gomvpkg should not rename main package. | Tools | low | Minor |
236,658,902 | TypeScript | Allow specifying only a subset of generic type parameters explicitly instead of all vs none | <!-- BUGS: Please use this template. -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->
**TypeScript Version:** 2.3.0
https://www.typescriptlang.org/play/
**Code**
```ts
class Greeter<T, S> {
greeting: T;
constructor(message: T, message2: S) {
this.greeting = message;
}
}
let greeter = new Greeter<string>("Hello", "world");
```
**Expected behavior:**
The compiler should infer `S` to be `string`.
**Actual behavior:**
Error:
> Supplied parameters do not match any signature of call target.
The compiler expects either all generic parameters to be specified explicitly or none at all. | Suggestion,In Discussion | high | Critical |
236,661,142 | TypeScript | Default exported named class throw an error if there is another class with same name | <!-- BUGS: Please use this template. -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->
**TypeScript Version:** 2.4.0 / nightly (2.5.0-dev.201xxxxx)
**Code**
```ts
class A {
}
export default class A {
}
```
**Expected behavior:**
No error
**Actual behavior:**
A module cannot have multiple default exports
**It's ok**
```ts
class A {
}
var y = class A {
}
export default y;
``` | Bug,Help Wanted,Domain: Error Messages,PursuitFellowship | low | Critical |
236,679,906 | rust | Need negative trait bound | ```rust
use std::convert::From;
struct SomeError;
enum Error<E> {
One(SomeError),
Two(E),
}
/// impl<E> From<SomeError> for Error<E> where E: !SomeError {
impl<E> From<E> for Error<E> {
fn from(error: E) -> Self {
Error::One(error)
}
}
impl<E> From<SomeError> for Error<E> {
fn from(error: E) -> Self {
Error::Two(error)
}
}
```
It's produces error:
```
rustc 1.18.0 (03fc9d622 2017-06-06)
error: main function not found
error[E0119]: conflicting implementations of trait `std::convert::From<SomeError>` for type `Error<SomeError>`:
--> <anon>:15:1
|
9 | / impl<E> From<E> for Error<E> {
10 | | fn from(error: E) -> Self {
11 | | Error::One(error)
12 | | }
13 | | }
| |_- first implementation hereadd
14 |
15 | / impl<E> From<SomeError> for Error<E> {
16 | | fn from(error: E) -> Self {
17 | | Error::Two(error)
18 | | }
19 | | }
| |_^ conflicting implementation for `Error<SomeError>`
error: aborting due to previous error
```
May'be shall implement contruction:
```rust
impl<E> From<SomeError> for Error<E> where E: !SomeError {
...
}
``` | A-trait-system,T-lang,A-specialization,C-feature-request | high | Critical |
236,710,137 | opencv | Can `–default-stream per-thread` be used with opencv ? | <!--
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).
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)
- OpenCV => 3.2
- Operating System / Platform => Linux
- Compiler => Cmake
##### Detailed description
<!-- your description -->
I use Muliptle streams in opencv, but blocked on the default stream, like this:

How can streams work like this:

I found this can be solved by `nvcc –default-stream per-thread -o XXX` [(GPU Pro Tip: CUDA 7 Streams Simplify Concurrency)](https://devblogs.nvidia.com/parallelforall/gpu-pro-tip-cuda-7-streams-simplify-concurrency/). but how can `–default-stream per-thread` be used with opencv ?
The same problem posted on devtalk.nvidia.com [https://devtalk.nvidia.com/default/topic/995591/muliptle-streams-don-t-speed-up-processing/?offset=5#5169503](https://devtalk.nvidia.com/default/topic/995591/muliptle-streams-don-t-speed-up-processing/?offset=5#5169503) | category: build/install,category: gpu/cuda (contrib) | low | Critical |
236,710,779 | youtube-dl | [douyutv] unable to download video data | - [x] Bug report (encountered problems with youtube-dl)
- [x] Question
[DouyuTV] : Downloading video URL info
Traceback (most recent call last):
File "__main__.py", line 19, in <module>
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\__init__.py", line 465, in main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\__init__.py", line 455, in _real_main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\YoutubeDL.py", line 1919, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\YoutubeDL.py", line 762, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\extractor\common.py", line 433, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\extractor\douyutv.py", line 106, in _real_extract
TypeError: list indices must be integers, not str
unable to download the video from douyutv. I am using the latest version 2017.06.18 | broken-IE | medium | Critical |
236,729,761 | rust | Cannot call implementations of the `Fn*` traits on references | Attempting to implement `FnOnce` for a reference to a struct or a trait object:
```rust
#![feature(fn_traits)]
#![feature(unboxed_closures)]
struct S;
fn repro_ref(thing: &S) {
thing();
}
impl<'a> FnOnce<()> for &'a S {
type Output = ();
extern "rust-call" fn call_once(self, _arg: ()) -> () {}
}
fn main() {}
```
Produces the error:
```
error[E0618]: expected function, found `&S`
--> src/main.rs:7:5
|
7 | thing();
| ^^^^^^^
|
note: defined here
--> src/main.rs:6:14
|
6 | fn repro_ref(thing: &S) {
| ^^^^^
```
Interestingly, both of these alternatives work:
```rust
fn ok_ref_ref_arg(thing: &&S) {
thing();
}
fn ok_ref_ref(thing: &S) {
(&thing)();
}
```
cc #29625.
Originally from [this Stack Overflow question](https://stackoverflow.com/q/44614206/155423). | A-type-system,P-medium,T-compiler,C-bug,F-unboxed_closures,T-types | low | Critical |
236,736,717 | TypeScript | Allow "Compiler Plugins" | From wiki:
> TypeScript Language Service Plugins ("plugins") are for changing the editing experience only
TypeScript plugins are very limited. Plugins should be able to:
* Apply Transformers
* Provide type definitions
* Override module resolver (`LanguageServiceHost#resolveModuleNames`)
* Emit code beside TypeScript standard output
| Suggestion,Needs Proposal | high | Critical |
236,752,588 | rust | Altivec/VSX support | Since llvm seems to have an almost viable intrinsics support now, is it possible to expose them in rust like the neon ones? | T-compiler,O-PowerPC,A-SIMD,C-tracking-issue,A-intrinsics | medium | Critical |
236,786,081 | react | False positive getDefaultProps warning when mixing development and production versions | As migrating from 15.4 to 15.5, I am rewrite original react components with `create-react-class`.
However, there is a warning.
```
react-15.5.4.js?bust=1497843639843:3287 Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.
```
As I am really transferring from a **classic** `React.createClass` definition, I would like to ask is this warning appropriate? Or, this is a depreciation sames as the level of migrating to `create-react-class`?
Ooops, I get ticket #9999 :D | Type: Bug,Component: Core Utilities,Difficulty: medium | high | Critical |
236,806,516 | angular | Child auxiliary routes and matrix parameters do not work together | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MIGHT BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a ...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please search github for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>
## Current behavior
<!-- Describe how the issue manifests. -->
Navigating to aux route in child component erases matrix parameters and vice versa.
## Expected behavior
<!-- Describe what the desired behavior would be. -->
Neither aux route nor matrix parameters should be removed.
## Minimal reproduction of the problem with instructions
<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
[plunker](https://plnkr.co/edit/fac7awK1s78dab7flrTZ?p=preview)
Root component has two router outlets:
```
<router-outlet></router-outlet>
<router-outlet name="sidebar"></router-outlet>
```
Component rendered in main outlet also has aux outlet:
```
<router-outlet name="inner"></router-outlet>
```
Routes:
```
{ path: 'component-aux', component: ComponentAux, outlet: 'sidebar' }
{ path: 'component-one', component: ComponentOne, children: [
{ path: 'component-aux-inner', component: ComponentAux, outlet: 'inner' }
] },
```
`sidebar` aux route lives nicely with matrix parameters:
- Starting url: `/component-one`
- Click `Add aux` at the top
- Url: `/component-one(sidebar:component-aux)`
- Click `Add matrix` at the top
- Url: `/component-one;outer=test(sidebar:component-aux)`
But in child component they conflict:
- Starting url: `/component-one`
- Click `Add aux` in `outlet` box
- Url: `/component-one/(inner:component-aux-inner)`
- Click `Add matrix` in `outlet` box
- Url: `/component-one;inner=test`
- Click `Add aux` in `outlet` box
- Url: `/component-one/(inner:component-aux-inner)`
## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->
It's a bug
## Please tell us about your environment
<pre><code>
Angular version: 4.2.3
<!-- Check whether this is still an issue in the most recent Angular version -->
Browser:
- Chrome (desktop) version 58
</code></pre>
| type: bug/fix,freq2: medium,area: router,state: confirmed,router: aux routes,router: URL parsing/generation,P3 | low | Critical |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.