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
197,760,018
rust
rustc: assertion failiure in llvm when defining __CxxFrameHandler3
I'm building a 64k demo on windows so i'm building without std and without libc. When writing some code a reference to `__CxxFrameHandler3` is emitted even though i'm building with `panic=abort`. I suspect this is because libcore is built with unwinding. In release builds the symbol `__CxxFrameHandler3` is optimized away so the program links successfully. If i try to define `__CxxFrameHandler3` i get an assertion failure in llvm. I tried this code: Build with ```rustc --crate-type bin -C panic=abort main.rs``` ```Rust #![feature(lang_items)] #![feature(link_args)] #![no_std] #![no_main] #[link_args = "/SUBSYSTEM:WINDOWS"] extern "C" {} #[no_mangle] pub extern "system" fn __CxxFrameHandler3(_: *mut u8, _: *mut u8, _: *mut u8, _: *mut u8) -> i32 { 0 } #[no_mangle] pub extern "system" fn WinMainCRTStartup() { for _ in 0..1 {} } #[lang = "panic_fmt"] #[no_mangle] pub extern "C" fn rust_begin_panic(_: core::fmt::Arguments, _: &'static str, _: u32) -> ! { loop {} } ``` I expected to see this happen: Preferably the symbol `__CxxFrameHandler3` would not be emitted. But being able to define it without a crash is ok as well. Instead, this happened: The symbol `__CxxFrameHandler3` is emitted and when i try to define it i get a crash. Current workaround is to pass `/FORCE` to the linker to ignore the unresolved symbol. ## Meta `rustc --version --verbose`: ``` rustc 1.15.0-nightly (71c06a56a 2016-12-18) binary: rustc commit-hash: 71c06a56a120a0d5e3b224105ee3e6754f83e5fa commit-date: 2016-12-18 host: x86_64-pc-windows-msvc release: 1.15.0-nightly LLVM version: 3.9 ``` ## Output from rustc `Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!", file C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\llvm\include\llvm/Support/Casting.h, line 237` ## Backtrace ```msvcr120.dll!abort() Line 88 msvcr120.dll!_wassert(const wchar_t * expr, const wchar_t * filename, unsigned int lineno) Line 142 rustc_llvm-039c192262ead9ec.dll!00007ff969b9b87c() rustc_trans-ba0c504011b26d52.dll!00007ff970296ccb() rustc_trans-ba0c504011b26d52.dll!00007ff97026d1b4() rustc_trans-ba0c504011b26d52.dll!00007ff9702b673b() rustc_trans-ba0c504011b26d52.dll!00007ff9702debd2() rustc_trans-ba0c504011b26d52.dll!00007ff97023b9fd() rustc_driver-9b39ebb875ea3d3d.dll!00007ff9754b8383() rustc_driver-9b39ebb875ea3d3d.dll!00007ff97548a519() rustc_driver-9b39ebb875ea3d3d.dll!00007ff9754b5580() rustc_driver-9b39ebb875ea3d3d.dll!00007ff975404ec9() rustc_driver-9b39ebb875ea3d3d.dll!00007ff975486553() rustc_driver-9b39ebb875ea3d3d.dll!00007ff9754d6f77() rustc_driver-9b39ebb875ea3d3d.dll!00007ff9753bd69f() std-efe4996faa4fd772.dll!00007ff974114612() rustc_driver-9b39ebb875ea3d3d.dll!00007ff9753e6bc5() std-efe4996faa4fd772.dll!00007ff97410c2ff() ```
A-runtime,O-windows,C-bug
low
Critical
197,781,698
go
proposal: x/tools/cmd/goimports: support searching for Go packages within a Bazel WORKSPACE
This feature request affects the functionality of [golang/tools/cmd/goimports](https://github.com/golang/tools/tree/master/cmd/goimports). ### What version of Go are you using (`go version`)? go version go1.7.3 ### What operating system and processor architecture are you using (`go env`)? linux/amd64 ### Background 1. This is not a bug report, but a feature request. 2. I would like to contribute and implement this feature. 3. The purpose of filing this issue is to indicate that I would like to work on this and to agree on the implementation. ### The feature Google released [Bazel](https://www.bazel.io/). Bazel's supports for Go is via the Skylark [go_rules](https://github.com/bazelbuild/rules_go). Bazel organizes all source code under a WORKSPACE directory, say **/some/path/to/workspace** further referred to as the **bazel_workspace**. The go_rules require the user to set a WORPSKACE-wide variable **go_prefix** which is the global prefix used to fully qualify all Go import targets. This may be **yourcompany** further referred to as the **bazel_go_prefix**. With this setup a package named **foo** located in file **/some/path/to/workspace/subdir/foo/foo.go** should be imported as: ``` <bazel_go_prefix>/subdir/foo ``` With the above mentioned bazel_go_prefix becomes: ``` "yourcompany/subdir/foo" ``` The desired feature is to enable goimports to find packages under a Bazel WORKSPACE and to add correct import paths for these packages. ### Proposed implementation I would add two new flags into the goimports main: 1. **-bazel_workspace** for setting the absolute path to the Bazel's WORKSPACE . 2. **-bazel_go_prefix** for setting the go prefix. The code in [golang/tools/imports/fix.go](https://github.com/golang/tools/blob/master/imports/fix.go) would be modified as follows: 1. Two new global vars will be added to hold the values of the new flags. 2. A new function scanBazelWorkspace() will be added, that when called would scan the Bazel WORKSPACE similarly to how the Go directories are scanned today, but with Bazel specific path manipulation. 3. The scanBazelWorkspace() function would be called from findImportGoPath() if both of the new flags were set. 4. The scanBazelWorkspace() function would be called concurrently with scanGoRoot() and scanGoPath(). 5. Sorting of the discovered candidates would be modified, if the two new flags were specified, the import paths within the Bazel WORKSPACE would be preferred, the rest of the candidates would be sorted as today - based on the length, preferring the shortest. I have a prototype that I tested this locally. Please let me know if you agree with the proposal above, in which case I will start the code review process. Alternatively feedback or suggestions are welcome.
Thinking,Proposal,Proposal-Hold
low
Critical
197,850,552
TypeScript
Add refactoring action to annotate a variable or a function signature component with its inferred type
Hi, I'm using latest stable VSCode / latest nightly TS and I'm not sure if codefixes and refactorings have been implemented there yet, in any case, having a refactoring option to take any variable which receives an implicit inferred type, say, through a function call: ```ts function test(): number[] { // ... } let x = test(); ``` And being able to right-click `x` and invoke an action like `Annotate with inferred type` (or `Extract inferred type`), such that the resulting statement would look like: ```ts let x: number[] = test(); ``` could be very useful!
Suggestion,Awaiting More Feedback,Domain: Refactorings
medium
Critical
197,887,376
nvm
Everytime when run nvm command, it shows warning message
<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! --> - Operating system and version: macOS 10.12.2 - `nvm debug` output: <details> <!-- do not delete the following blank line --> ```sh nvm --version: v0.32.1 $SHELL: /bin/zsh $HOME: /Users/jiehuang $NVM_DIR: '$HOME/.nvm' $PREFIX: '' $NPM_CONFIG_PREFIX: '' nvm current: system which node: /usr/local/bin/node which iojs: iojs not found which npm: /usr/local/bin/npm npm config get prefix: $HOME/.npm-global npm root -g: $HOME/.npm-global/lib/node_modules ``` </details> - `nvm ls` output: <details> <!-- do not delete the following blank line --> ```sh v4.7.0 -> system default -> v4.7.0 node -> stable (-> v4.7.0) (default) stable -> 4.7 (-> v4.7.0) (default) iojs -> N/A (default) lts/* -> lts/boron (-> N/A) lts/argon -> v4.7.0 lts/boron -> v6.9.2 (-> N/A) ``` </details> - How did you install `nvm`? (e.g. install script in readme, homebrew): zsh-nvm https://github.com/lukechilds/zsh-nvm - What steps did you perform? - What happened? everytime when I run nvm command , it shows warning message: ```sh nvm is not compatible with the npm config "prefix" option: currently set to "/Users/jiehuang/.npm-global" Run `npm config delete prefix` or `nvm use --delete-prefix v4.7.0` to unset it. ``` - What did you expect to happen? - Is there anything in any of your profile files (`.bashrc`, `.bash_profile`, `.zshrc`, etc) that modifies the `PATH`?
needs followup,shell: zsh: oh-my-zsh
medium
Critical
197,919,947
go
runtime/pprof: document custom profiles
Custom profiles are under-documented. The most important missing piece of documentation is the mental model for the API. Based on reading the code, the intended use is something like: When an event that you are interested in starts, call Add with some unique identifier for the event. When an event stops, call Remove with the unique identifier. Calling WriteTo dumps all currently active events. An example and perhaps a blog post showing a real life solved use case would be very helpful. I also think that there are useful profiling-y use cases not well served by the current API/implementation. I will file a separate issue about that. cc @matloob
Documentation,NeedsFix,compiler/runtime
low
Minor
197,920,473
opencv
opencv_test_imgproc fails on some test on OSX
<!-- 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) <!-- Example - OpenCV => 3.1 - Operating System / Platform => Windows 64 Bit - Compiler => Visual Studio 2015 --> - OpenCV => 3.2.0-rc (github master version) - Operating System / Platform => OSX 10.11.6 - Compiler => Apple LLVM version 8.0.0 (clang-800.0.42.1) ##### Detailed description Some tests fails on OSX with OpenCL and Intel GPU. Perhaps, this is an OpenCL bug as I already see workaround in OpenCL code for Intel dev (for example in ocl_GaussianBlur_8UC1) With OpenCL disabled : export OPENCV_OPENCL_DEVICE=disabled all tests runs OK With OpenCL enabled on GPU : ``` 7 tests fails [ FAILED ] 7 tests, listed below: [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/8, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/1, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 1, true, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/2, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 2, false, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/3, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 2, true, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/4, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 3, false, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/5, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 3, true, 1) [ FAILED ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 1, true, 1) ``` With OpenCL enabled on CPU : export OPENCV_OPENCL_DEVICE=:CPU:0 ``` 168 tests fails [ FAILED ] 168 tests, listed below: [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/0, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/1, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/2, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/3, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/4, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/5, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/6, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/8, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/9, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/10, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/11, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/12, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/13, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/14, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/15, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/16, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/17, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/18, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/19, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/20, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/21, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/22, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/23, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/24, where GetParam() = (8UC3, 3, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/25, where GetParam() = (8UC3, 3, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/26, where GetParam() = (8UC3, 3, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/27, where GetParam() = (8UC3, 3, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/28, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/29, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/30, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/31, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/32, where GetParam() = (8UC3, 5, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/33, where GetParam() = (8UC3, 5, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/34, where GetParam() = (8UC3, 5, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/35, where GetParam() = (8UC3, 5, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/36, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/37, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/38, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/39, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/40, where GetParam() = (8UC3, 7, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/41, where GetParam() = (8UC3, 7, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/42, where GetParam() = (8UC3, 7, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/43, where GetParam() = (8UC3, 7, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/44, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/45, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/46, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/47, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/48, where GetParam() = (8UC4, 3, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/49, where GetParam() = (8UC4, 3, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/50, where GetParam() = (8UC4, 3, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/51, where GetParam() = (8UC4, 3, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/52, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/53, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/54, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/55, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/56, where GetParam() = (8UC4, 5, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/57, where GetParam() = (8UC4, 5, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/58, where GetParam() = (8UC4, 5, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/59, where GetParam() = (8UC4, 5, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/60, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/61, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/62, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/63, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/64, where GetParam() = (8UC4, 7, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/65, where GetParam() = (8UC4, 7, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/66, where GetParam() = (8UC4, 7, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/67, where GetParam() = (8UC4, 7, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/68, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/69, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/70, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlurTest.Mat/71, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/1, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/3, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/5, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/9, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/11, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/13, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/15, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/16, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/17, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/18, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/19, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/20, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/21, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, true, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/22, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, false, 1) [ FAILED ] OCL_Filter/GaussianBlur_multicols.Mat/23, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/32, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/33, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/34, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/35, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/40, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/41, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/42, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/43, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/48, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/49, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/50, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/51, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/56, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/57, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/58, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/59, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/160, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/161, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/162, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/163, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/168, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/169, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/170, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/171, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/176, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/177, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/178, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/179, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/184, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/185, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/186, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/187, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/288, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/289, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/290, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/291, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/296, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/297, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/298, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/299, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/304, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/305, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/306, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/307, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/312, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/313, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/314, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/315, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/416, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/417, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/418, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/419, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/424, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/425, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/426, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/427, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/432, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/433, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/434, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/435, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/440, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/441, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/442, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/443, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/544, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/545, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/546, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/547, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/552, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/553, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/554, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/555, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/560, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/561, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/562, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/563, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, true, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/568, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, false, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/569, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, false, 16) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/570, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, true, 1) [ FAILED ] OCL_ImgprocWarp/Resize.Mat/571, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, true, 16) ``` ##### Steps to reproduce ``` WARNING: IPP was disabled by OPENCV_IPP environment variable CTEST_FULL_OUTPUT OpenCV version: 3.2.0-rc OpenCV VCS version: 3.2.0-rc-8-ga5955c9-dirty Build type: release Parallel framework: gcd CPU features: popcnt mmx sse sse2 sse3 ssse3 sse4.1 sse4.2 avx avx2 fma3 fp16 OpenCL Platforms: Apple CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz (OpenCL 1.2 ) iGPU: HD Graphics 5000 (OpenCL 1.2 ) Current OpenCL device: Type = iGPU Name = HD Graphics 5000 Version = OpenCL 1.2 Compute units = 40 Max work group size = 512 Local memory size = 64 kB Max memory allocation size = 384 MB Double support = No Host unified memory = Yes Has AMD Blas = No Has AMD Fft = No Preferred vector width char = 1 Preferred vector width short = 1 Preferred vector width int = 1 Preferred vector width long = 1 Preferred vector width float = 1 Preferred vector width double = 0 ```
duplicate,platform: ios/osx,category: ocl
low
Critical
197,921,197
go
runtime/pprof: support efficient accumulation of custom event count profiles
I want to be able to gather pprof-esque information about instantaneous events that have occurred over the lifetime of my program, possibly with sampling for performance reasons. This is similar to what the heap profile does, at least when used with alloc_space and alloc_objects--it tracks memory allocations over a long period. The existing runtime/pprof custom profile API seems ill-suited to this. (Insofar as I understand it. See #18453.) One could accomplish it by inventing a unique key for Add and never Remove anything. However, this will result in a giant, ever-growing map. It would be far more efficient to just keep a counter per pc, as many of the runtime-provided profiles do. It might be worth considering adding a different kind of custom profile geared more towards this use case. I don't have a concrete proposal, since I haven't thought about this deeply. This issue is just intended to open discussion, particularly since pprof labels are coming for 1.9, and it might be worth considering how they interact with custom profiles--hopefully productively. cc @matloob
Proposal-Accepted,NeedsFix
medium
Major
197,935,356
TypeScript
incorrect formatting on javascript
_From @calidion on December 28, 2016 22:5_ - VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:42:49.304Z) - OS Version: Darwin x64 16.3.0 - Extensions: |Extension|Author|Version| |---|---|---| |tslint|eg2|0.7.1| |code-beautifier|michelemelluso|1.6.2| |vscode-icons|robertohuertasm|4.1.0| --- Steps to Reproduce: 1. for code: ``` return MessageFriend.update({ id: found.id }, { processed: true }) ``` expected: ``` return MessageFriend.update({ id: found.id }, { processed: true }); ``` got: ``` return MessageFriend.update({ id: found.id }, { processed: true }); ``` _Copied from original issue: Microsoft/vscode#17887_
Bug,Help Wanted,Domain: Formatter,VS Code Tracked
low
Minor
197,936,763
TypeScript
Make Javascript intellisense detect inheritance
_From @benjaminmillhouse on December 21, 2016 17:33_ - VSCode Version: Code 1.8.0 (38746938a4ab94f2f57d9e1309c51fd6fb37553d, 2016-12-13T17:38:28.425Z) - OS Version: Darwin x64 16.3.0 - Extensions: |Extension|Author|Version| |---|---|---| |JSDocTagComplete|HookyQR|0.0.2| |html-css-class-completion|Zignd|1.0.3| |theme-atom-one-dark|andischerer|0.0.1| |vscode-eslint|dbaeumer|1.1.0| |docthis|joelday|0.3.5| |Angular1|johnpapa|0.1.16| |Angular2|johnpapa|1.0.2| |csharp|ms-vscode|1.5.3| |js-atom-grammar|ms-vscode|0.1.10| |vscode-icons|robertohuertasm|4.0.2| |bootstrap-3-snippets|wcwhitehead|0.0.8| --- Hello, I would love it if VS Code's Javascript intellisense was able to detect inheritance. Please let me know if there is a way to accomplish this today through jsdoc comments or anything like that. I have tried all kinds of different ways to get VS Code to detect it (definitions like below, @augments, @extends jsdoc comments, etc) and have not gotten anything to work. ``` As an example, when inheriting like this: function BaseClass() { this.foo = 'bar'; } BaseClass.prototype.baz = function () { } function InheritedClass() { BaseClass.call(this); } InheritedClass.prototype = Object.create(BaseClass.prototype); InheritedClass.prototype.constructor = InheritedClass; ``` Would like the intellisense for new InheritedClass(). to show 'foo' and 'baz' as properties/methods for InheritedClass in Intellisense. _Copied from original issue: Microsoft/vscode#17690_
Suggestion,Committed,Domain: JavaScript
medium
Major
197,944,333
youtube-dl
Support for mixlr.com
## 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 *2016.12.22*. 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 **2016.12.22** ### 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 http://mixlr.com/infomenonitas/showreel/infomenonitas-on-mixlr-160/
site-support-request
low
Critical
197,975,284
gin
How remove route ? online!!!
How can i remove route ? online!!!
feature
medium
Critical
198,002,304
TypeScript
Extra checks with -d not executed with --noEmit
**TypeScript Version:** 2.1.4 **Code** ```ts class SomeClass { } export = new SomeClass(); ``` **Actual behavior:** This code should give an error, as the exported instance is of a private type. The following error is reported when compiling with `-d`, but not without it: ``` error TS4082: Default export of the module has or is using private name 'SomeClass'. ``` The disadvantage of using `-d` is that it generates `.d.ts` files, which should be ignored (because they are auto-generated). I can not add `*.d.ts` to my gitignore, as some of my interfaces are `.d.ts` files. I tried to resolve this issue by adding `--noEmit` to the compiler options, but this hides the error (as if it was compiled without `-d`). **Expected behavior:** Either report the error always, or report it with `-d` and `--noEmit`.
Bug
low
Critical
198,006,038
vscode
Add extension point for custom "prefix behaviors" in command palette
`git`, `task`, `view` prefixes behavior in command palette is really cool, would be really nice if we could extend command palette with custom prefixes. https://twitter.com/ErichGamma/status/814149913156186112 CC: @egamma
feature-request,api
low
Minor
198,007,934
TypeScript
Type parameter constrained to union cannot be exhaustively narrowed to 'never'
<!-- 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.1.1 (http://www.typescriptlang.org/play/index.html) **Code** ```ts type Type = "a" | "b" function isA(a: any): a is "a" { return a === "a" } function isB(a: any): a is "b" { return a === "b" } function assertNever(arg: never) { throw new Error("This should never be called") } function handleAction<T extends Type>(type: T) { if (isA(type)) { return type } else if (isB(type)) { return type } else { assertNever(type) } } ``` **Expected behavior:** No compilation error **Actual behavior:** Argument of type 'T' is not assignable to type 'never'
Suggestion,In Discussion
low
Critical
198,015,561
opencv
OpenGL/OpenCL interop ATI card broken at initializeContextFromGL
##### System information (version) - OpenCV => 3.1 - Operating System / Platform => Windows 64 Bit - Compiler => Visual Studio 2015 ##### Detailed description Opengl/OpenCL interop does not work with ATI graphic cards, e.g. RX 480. Specifically, the call to cv::ogl::ocl::initializeContextFromGL(); does crash the program using ATI cards. The program however runs fine using an NVidia card. The reason seems to be, that the code in opengl.cpp following line 1599 tries to detect the graphic cards extension "cl_khr_gl_sharing" using th CL_PLATFORM_EXTENSIONS, which seems to be the incorrect way to do for ATI cards. I have read, that one needs to iterate the devices rather than the platform to search for extensions. Commenting out the extension check in lines 1640-1641 //if (!strstr((const char*)extensionStr, "cl_khr_gl_sharing")) // continue; solves the issue for the ATI card, since the context is generated without explicitly checking if the extension is available. This part probably needs to be replaced with proper extension checking code. ##### Steps to reproduce Use the following if statement using an AIT card like the RX 480. if (cv::ocl::haveOpenCL()) { cv::ogl::ocl::initializeContextFromGL(); cv::ocl::setUseOpenCL(true); }
bug,category: ocl
low
Critical
198,040,353
three.js
Allow specifying mipmap bias for textures
Currently there doesn't seem to be any way to enable mipmap bias for textures. For some uses (eg ground/road textures) a negative mipmap bias is often used to tune blur/aliasing trade-off. I can hack the bias globally by adding it as a third parameter to `texture2D` in eg. [map_fragment.glsl](https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderChunk/map_fragment.glsl#L3), but unfortunately I have no idea how to nicely implement this for `three.js`. Below is an example of adding such bias (rendered using `THREE.LinearMipMapLinearFilter` and 16x anisotropy, 3x blowup): ![mipmapbias](https://cloud.githubusercontent.com/assets/1301087/21549576/c6e1c210-cdfb-11e6-8c01-36be4f122ed8.png)
Enhancement
low
Minor
198,131,177
youtube-dl
Add support for neoxkidz.com
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.12.30** - [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] Site support request (request for adding support for a new site) ### Description of your *issue*, suggested solution and other information Please add support for neoxkidz.com. Example (region locked Spain): http://www.neoxkidz.com/dibujos-series-infantiles/shin-chan/cap-759-voy-con-papa-a-la-piscina_20160623576fc5596584a88907b82451.html
geo-restricted
low
Critical
198,157,514
go
database/sql: missing escape functions
### What version of Go are you using (`go version`)? go version go1.7.4 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/nefthy/go-test/" GORACE="" GOROOT="/usr/lib/go" GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64" CC="x86_64-pc-linux-gnu-gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/home/nefthy/go-test/tmp/go-build451484149=/tmp/go-build -gno-record-gcc-switches" CXX="x86_64-pc-linux-gnu-g++" CGO_ENABLED="1" ### What did you do? There are situations when strings need to be escaped in queries that can not be done with placeholders. An example the following queries cannot be expressed with ? placeholders: ```sql SELECT id, ? FROM table -- Must be escaped as an identifier SELECT id FROM ? -- Also identifier quoting SELECT id FROM table WHERE ? LIKE ? -- With either the first or second parameter being a column reference ``` Using Sprintf is no option, since the identifiers need to be properly quoted. The quoting and escaping is inherently vendor specific and may even depend on configuration on a per database/connection basis (hello there MySql...). ### What did you expect to see? The driver must export Quoting which are passed along by the database/sql Api. As far as I can tell the folling functions are needed - QuoteString: quotes and escapes a string so it can be used as a string literal (ex: mysql_real_escape_string) - QuoteIdentifier: quote and escapes a string so it can be used as an identifier* - QuoteBinary: quote and escapes binary data (ex: PQescapeBytea) * I am not sure if all identifiers are quoted consistently among all Databases. It might be that separate functions are needed depending on the type of the identifier. ### What did you see instead? No escaping/quoting functions
Thinking,FeatureRequest
high
Critical
198,202,966
angular
@angular/language-service ability to quiet errors...
``` [ ] 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** ```@angular/language-service``` will report every issue and it makes it very hard to adopt at this late stage to new projects. **Expected behavior** I would love to be able to quiet errors in templates via something like: ```<!-- NG-IGNORE-ERROR-->``` before the line and ```<!-- NG-IGNORE-PAGE-ERROR-->``` to ignore entire template / page errors **Minimal reproduction of the problem with instructions** none **What is the motivation / use case for changing the behavior?** it will make it very hard to move to this awesome project without a ability to quiet errors and slowly enable **Please tell us about your environment:** Windows 10 x64 * **Angular version:** 2.0.X latest all ng2 / ts 2.1 * **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Chrome * **Language:** [all | TypeScript X.X | ES6/7 | ES5] TS
feature,area: language-service,feature: under consideration
medium
Critical
198,222,371
rust
Unable to constrain associated types in trait inheritance
```rust struct Foo; struct Bar; pub trait Base{ type F; type B; } //*************************** // Doesn't work //pub trait BaseHello: Base // where Self::F: Hello, // Self::B: Hello{} pub trait BaseHello: Base{} impl<B: Base> BaseHello for B where B::F: Hello, B::B: Hello{} //*************************** pub trait Hello{ fn hello(&self); } impl Hello for Foo{ fn hello(&self){ println!("Foo"); } } struct FooBarBase; impl Base for FooBarBase{ type F = Foo; type B = Bar; } impl Hello for Bar{ fn hello(&self){ println!("Bar"); } } struct Test<B: BaseHello>{ f: B::F, b: B::B } // doesn't work impl<B: BaseHello> Test<B>{ fn hello(&self){ self.f.hello(); self.b.hello(); } } fn main() { let test = Test::<FooBarBase>{f: Foo, b: Bar}; // works test.f.hello(); test.b.hello(); } ``` [Playground](https://play.rust-lang.org/?gist=d3e005df995e2192c582bc135679c2eb&version=stable&backtrace=0) The main problem is that we can not write ```rust // Doesn't work pub trait BaseHello: Base where Self::F: Hello, Self::B: Hello{} ``` The workaround is to impl the trait explicitly like this ```rust pub trait BaseHello: Base{} impl<B: Base> BaseHello for B where B::F: Hello, B::B: Hello{} ``` But this means that Rust doesn't know the constrains of `BaseHello`, if `BaseHello` is used as a constrain. ```rust // doesn't work impl<B: BaseHello> Test<B>{ fn hello(&self){ self.f.hello(); self.b.hello(); } } ``` I couldn't find any related issues. Is this a bug? Are there any workarounds?
A-type-system,T-compiler,C-bug,T-types
low
Critical
198,227,752
nvm
`nvm use -` to quickly switch to last active version
This would be to mimic the behaviour of the `-` in either; [`cd -`](http://ss64.com/bash/cd.html) or [`git checkout -`](https://git-scm.com/docs/git-checkout#git-checkout-ltbranchgt). I'm happy to attempt a PR if this shortcut is a feature worth pursuing.
feature requests
low
Minor
198,234,563
vscode
Expose -webkit-text-stroke (Fonts are too thin on Ubuntu 16.10)
- VSCode Version: 1.8.1 - OS Version: Ubuntu 16.10 amd64 I use VS Code on Windows, Mac and since recently Linux, and for some reason text looks much thinner on Linux than on other systems, which makes it a little bit harder to read. Here is a screenshot: ![vscode-fonts](https://cloud.githubusercontent.com/assets/4525736/21577973/542305f2-cfa1-11e6-8e73-821909abeb4b.png) Font settings: ``` "editor.fontSize": 14, "editor.fontFamily": "Source Code Pro", "window.zoomLevel": 0 ``` System font settings: - Antialiasing: RGBA - Hinting: Slight - Text scaling factor: 1.00 I've tried various combinations of antialiasing and hinting settings but they all look as bad or worse.
feature-request,editor-core,font-rendering
low
Major
198,253,872
vscode
Preserve undo/redo buffer when saving a file "as" or untitled file
- VSCode Version: 1.8.1 - OS Version: Windows 10 Steps to Reproduce: 1. Undo last edits. 2. Save As. 3. Try Redo to re-instate last edits, but nothing happens. This is a workflow I have done in many other editors where I realize I want to keep an old version of something I am working on, just in case I screw up. To my dismay in VSCode it made me lose all my edits.
feature-request,undo-redo,workbench-untitled-editors
medium
Major
198,276,970
TypeScript
Add a refactoring that annotates an implicit or explicit any with a best guess type inferred from its use sites
I would very much appreciate having a codefix (refactoring) that, given an explicit `any` annotation, offers to change it to an `{}` annotation. For example, given ```ts function log(x: any) { console.log(x); } ``` a code fix would be offered to change the declared type of `x` to `{}` resulting in ```ts function log(x: {}) { console.log(x); } ``` However, given ```ts function log(x: any) { console.log(x.name); } ``` a code fix would be offered to change the declared type of `x` to `{ name: any }` resulting in ```ts function log(x: {name: any}) { console.log(x); } ```
Suggestion,Committed,Domain: Quick Fixes
medium
Major
198,277,270
rust
Cannot silence test runner
[IRC Logs](https://botbot.me/mozilla/rust/2017-01-01/?msg=78674895&page=5) ``` cargo 0.17.0-nightly (740f9c0 2016-12-29) ``` We should be able to silence the test runner's stdout via `--quiet` like `build` and `clean`'s `--quiet` flag, but alas this is not currently done. ``` tmba:sentinel thill $ cargo test --quiet -- quiet running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured ``` ``` tmba:sentinel thill $ cargo test --quiet running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured ``` ref: https://github.com/rust-lang/cargo/issues/3482
T-libs-api,A-libtest,C-feature-accepted
low
Critical
198,280,702
create-react-app
Support Lerna and/or Yarn Workspaces
Are there any plans to support Lerna? By default Lerna uses the `packages` directory to store the packages. Right now the content of that folder is not transpiled so it's not possible to use ES6 code in there. It would be nice to have the possibility to use Lerna to create a monorepo application with create-react-app. I've tried using the `src` directory with Lerna, but that conflicts with *not* ignoring `node_modules` directory inside the `src` directory, so it gives a ton of lint errors when you do so.
tag: new feature
high
Critical
198,295,547
rust
Type errors in macros have poor spans
For example, in [this](https://is.gd/GUKFgz) code, it's hard to tell which part of the inputs to the macro has the wrong type. This is obviously a reduced example, but I've seen the same problem in real code. I suspect this might be a duplicate issue, but couldn't find anything... ```rust fn main() { assert_eq!(10u64, 10usize); } ``` provides: ``` rustc 1.16.0-nightly (4ecc85beb 2016-12-28) error[E0308]: mismatched types --> <anon>:2:5 | 2 | assert_eq!(10u64, 10usize); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize | = note: this error originates in a macro outside of the current crate error: aborting due to previous error ```
C-enhancement,A-diagnostics,A-macros,T-compiler
low
Critical
198,391,395
rust
LLVM error when emitting PTX code with debuginfo
### STR ``` $ cargo new --lib kernel && cd $_ $ edit src/lib.rs && cat $_ ``` ``` rust #![feature(lang_items)] #![feature(no_core)] #![no_core] // Just to avoid using Xargo fn foo() {} #[lang = "copy"] trait Copy {} #[lang = "sized"] trait Sized {} ```` ``` $ edit nvptx64-nvidia-cuda.json && cat $_ ``` ``` js { "arch": "nvptx64", "cpu": "sm_20", "data-layout": "e-i64:64-v16:16-v32:32-n16:32:64", "llvm-target": "nvptx64-nvidia-cuda", "max-atomic-width": 0, "os": "cuda", "panic-strategy": "abort", "target-endian": "little", "target-pointer-width": "64" } ``` ``` $ cargo rustc --target nvptx64-nvidia-cuda -- --emit=asm Compiling kernel v0.1.0 (file:///home/japaric/tmp/kernel) warning: function is never used: `foo`, #[warn(dead_code)] on by default --> src/lib.rs:5:1 | 5 | fn foo() {} | ^^^^^^^^^^^ All DICompileUnits must be listed in llvm.dbg.cu LLVM ERROR: Broken module found, compilation aborted! error: Could not compile `kernel`. ``` ### Workaround Don't try to emit debuginfo: ``` toml # Cargo.toml [profile.dev] debug = false ```
A-LLVM,T-compiler,O-NVPTX,C-bug
low
Critical
198,392,389
rust
Tracking issue for the "ptx-kernel" ABI
Here's a suggestion for an update to the tracking issue to include concerns. Partially copied for japaric's original post and added concerns from and links to relevant issues. If you have the possibility you should take a look @RDambrosio016 - - - Feature gate `#![feature(abi_ptx)]` This ABI is intended to be used when generating code for device (GPU) targets like `nvptx64-nvidia-cuda`. It is used to generate kernels (["global functions"](https://docs.nvidia.com/cuda/cuda-c-programming-guide/#global)) that work as an entry point from host (cpu) code. Functions that do not use the "ptx-kernel" ABI are ["device functions"](https://docs.nvidia.com/cuda/cuda-c-programming-guide/#device-function-qualifier) and only callable from kernels and device functions. Device functions are specifically not usable from host (cpu) code. ### Public API The following code ```Rust #![no_std] #![feature(abi_ptx)] #[no_mangle] pub extern "ptx-kernel" fn foo() {} ``` Produces ``` .version 3.2 .target sm_30 .address_size 64 // .globl foo .visible .entry foo() { ret; } ``` ### Steps / History - [x] Fix broken passing of kernel arguments (#94703) - [ ] Replace `PassMode::Direct` with something else (#117271) - [ ] Re-enable ptx CI tests to avoid future breakage (#96842) - [ ] Emit error for kernels with return value other than `()` - [ ] Emit error if a kernel is called directly. - [ ] Fix the problem where Rust generates types the LLVM PTX cannot select (#97174) - [ ] Resolve unresolved questions - [ ] Create an RFC that specifies the safe way to use this abi (I assume this will be required @pnkfelix?) - [ ] Document feature (https://doc.rust-lang.org/reference/items/external-blocks.html#abi) - [ ] Stabilization PR ### Unresolved Questions - [ ] Resolve what kind of stability guarantees can be made about the generated ptx. - The ABI of kernels have been previously changed for a major version bump and the [ptx-interoperability](https://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/) doc is still outdated. - PTX is an ISA with many versions. The newest is major version 7. Do we need to reserve the possibility of breaking things when moving to a new major version? - Figure out what llvm does in relations to the `nvptx64-nvidia-cuda` target and the `__global__` modifier. - [ ] What kind of types should be allowed to use as arguments in kernels. Should it be a hard error to use these types or only a warning (https://github.com/rust-cuda/wg/issues/11) - The most important part is to find a minimal but useful subset of Rust types that can be used in kernels. raw pointers, primitive types and `#[repr(C)]` types seems like a good start (no slices, tuples, references, etc). - Using mutable references is almost certain UB except for a few unusable special cases (spawning a single thread only) - There are many convenient types in Rust which do not have a stable ABI (`&[T]`, `(T, U)`, etc). Are there some types that do not have a stable representation but can be relied on having an identical representation for sequential compilation with a given rustc version? If so are there any way we could pass them safely between host and device code compiled with the same rustc version? - [ ] This unstable feature is one of the last stoppers to using `nvptx64-nvidia-cuda` on stable Rust. The target seems to still have a few bugs (#38789). Should this feature be kept unstable to avoid usage of `nvptx64-nvidia-cuda` until it has been verified to be usable. - [ ] How should shared be supported? Is it necessary to do that from the go? ### Notes - It is not possible to emulate kernels with `#[naked]` functions as the `.entry` directive needs to be emited for nvptx kernels.
T-compiler,B-unstable,O-NVPTX,C-tracking-issue,S-tracking-design-concerns,S-tracking-needs-summary
low
Critical
198,433,925
TypeScript
Erronous documentation for property decorators?
At https://www.typescriptlang.org/docs/handbook/decorators.html ..it reads under "Property Decorators" ``` If the property decorator returns a value, it will be used as the Property Descriptor for the member. NOTE  The return value is ignored if your script target is less than ES5. ``` I'm running a simple example with target ES6 ```typescript function MyPropDesc() { return function (targetProto: Object, propName: string | symbol) { return { get: function() { console.log('in getter') } } } } class SomeClass { @MyPropDesc() someMember; } ``` However, this doesn't seem to work. Also, when debugging this, my property decorator is being called from Reflect.js's `DecoratePropertyWithoutDescriptor` which ignores the result from the descriptor. And...typescript requires the decorator to return `void` or `any`. Documentation mistake?
Docs
low
Critical
198,536,686
go
cmd/dist: run all tests unless explicitly disabled on a platform
Every now and again a test isn't enabled on a platform where it should be (for example: https://github.com/golang/go/commit/161cd34f788ee9c6b61565eb6f865434bc135306). A leading culprit of this is feature checks that only run a test if the GOOS/GOARCH combination is in a list: ```go pair := t.gohostos + "-" + t.goarch switch (pair) { case "android-arm", "darwin-arm", ...: // run test default: // don't run test } ``` If a GOOS/GOARCH combination isn't correctly added to one of the many lists like this, then the related tests simply won't run. This is not always obvious. I think it would be good to refactor test.go so that it always defaults to running a test unless explicitly told not to for a given platform (preferably with an issue referencing the missing feature). This will make it harder to accidentally forget to enable a test.
help wanted,NeedsFix
low
Minor
198,556,887
vscode
Evaluate selected expression on hover while debugging?
_This is a feature request._ Would it be possible to add the feature of evaluating a highlighted JS expression on hover while debugging? This is something that was recently added to Chrome DevTools and is very useful. It would be nice to have this same feature added to VS Code as well. ### Hovering over a single variable (works in VS Code): ![image](https://cloud.githubusercontent.com/assets/3431954/21621155/62843030-d1bd-11e6-8174-2c6a005e3c93.png) ### Hovering over a highlighted expression (doesn't work in VS Code): ![image](https://cloud.githubusercontent.com/assets/3431954/21621178/79fa08e8-d1bd-11e6-8031-092c64ab4693.png) Thanks!
feature-request,debug,typescript
medium
Critical
198,567,609
angular
formControlName could not be used with component transclusion
``` [x] bug report => search github for a similar issue or PR before submitting ``` Version: 2.4.1 A component with selector parent-component has this: ``` <form [formGroup]="myFormGroup"> <ng-content></ng-content> </div> ``` And it is inserted in another template with: ``` <parent-component> <input formControlName="myControl"> </parent-component> ``` Angular says the control is used without a form.
feature,state: Needs Design,freq2: medium,area: forms,feature: under consideration
high
Critical
198,598,234
vscode
Allow extension commands to define the behaviour when Alt modifier is pressed
When you declare a `command` for an extension, it appears in `Command Palette` and you can select/use it with `Return Key`/`Mouse Click`. But there are some _core commands_ that has _special behavior_ when you combine with `Ctrl`, like `Open on the Side`. I would like to have the ability to declare a command and have the _normal_ and _alternative_ behaviors, just like that. Thanks in advance
feature-request,api,quick-open
medium
Major
198,607,320
create-react-app
RFC: Support for eslint-plugin-compat
Recently I've been working on an eslint plugin called [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat/) that lints support for API's by using the caniuse db. [It seems there is demand from the community](https://twitter.com/mxstbr/status/816220545796730880) for this plugin. Wonder if it has a place in create-react-app. Would a PR for it be welcome? **Here's a demo of it in action** ![demo of plugin usage](https://raw.githubusercontent.com/amilajack/eslint-plugin-compat/master/eslint-plugin-compat-demo.gif) Also planning to add integration with `babel-preset-env` and `browserlist`
issue: proposal
medium
Major
198,621,100
youtube-dl
Soundcloud results in 403 error
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.02*. 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.01.02** ### 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 --- Verbose output: ``` $ youtube-dl -v https://soundcloud.com/efkv/hair [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-v', u'https://soundcloud.com/efkv/hair'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.01.02 [debug] Python version 2.7.9 - Linux-4.5.2-armada375-armv7l-with-Debian-8 [debug] exe versions: ffmpeg 2.8.9, ffprobe 2.8.9 [debug] Proxy map: {} [soundcloud] efkv/hair: Resolving id [soundcloud] efkv/hair: Downloading info JSON ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); 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. File "/home/rafa/bin/youtube-dl/youtube_dl/extractor/common.py", line 406, in _request_webpage return self._downloader.urlopen(url_or_request) File "/home/rafa/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) ```
bug,cant-reproduce
low
Critical
198,704,427
TypeScript
tsc CLI: option to always exit with 0 exit code
It would be nice if the tsc command had an option to always exit with a 0 exit code when there were compile errors. I want to run something in my script after compiling. Currently I have to do this: ``` bash set -e # script stuff set +e tsc … set -e ``` However this workaround means all errors from `tsc` will be silently ignored, not just compile errors.
Suggestion,Awaiting More Feedback
medium
Critical
198,714,723
angular
@Directive @Hostbinding cannot set @Input of @Component
**I'm submitting a bug** ``` [X] bug report => search github for a similar issue or PR before submitting [ ] 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** This is an issue similar to #10499. There seems to be a problem whereby an `@Directive` cannot set an `@Component` input property. Meaning if you apply a directive to the component's tag and have said directive set the component's input property using an `@Hostbinding` it throws the following error: `Can't bind to 'X' since it isn't a known property of 'X'.` **Expected behavior** I hoped it would be possible to set an Component's input property using a simple Directive. Though I would also understand that if this is by design. If it's by design then i think the error message reported back to the user should be improved as it doesn't clearly indicate why it isn't work as the programmer might expect it to work. **Minimal reproduction of the problem with instructions** https://plnkr.co/edit/V2KBlhbv7AciGfEi0lkE **What is the motivation / use case for changing the behavior?** There are a few use cases that would be simplified by having the ability for having an `@Directive` being able to set the component's Input property without modifications to the source Component. One of the use cases highlighted in the example above resolves around the md-input from @angular/material2 (using an external library over which you have no influence). Where a `[disabled]` property can be set indicating if the component is disabled. We have wanted to use this together with an role checking directive to disable / enable an input based on the user's role / permissions. There are of course other ways like wrapping the `md-input` and all of the other input's @angular/material2 provides in our own custom input value access-or components which would do this for us but we thought it would be easier to go down this route instead of wrapping all other inputs. * **Angular version:** 2.0.X 2.4.1 * **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] all * **Language:** [all | TypeScript X.X | ES6/7 | ES5] all
hotlist: error messages,freq2: medium,area: core,core: inputs / outputs,core: host and host bindings,type: confusing,P4,area: docs
medium
Critical
198,769,125
kubernetes
Remove client side validation in kubectl
As evidenced by https://github.com/kubernetes/kubernetes/pull/38071, client side validation made some assumptions that were broken (assuming that types across different groups will not have the same name), and fixing so that future clients get the correct behavior while still allowing legacy clients to work has been much more labor intensive than if we had not done this on the client. We should remove all client side validation in favor of server side equivalents. Now that kubectl create and update pass direct to the server, all that must be moved is detection of unspecified fields, which can be provided by the API server directly. The minimal change would be to automatically do a swagger schema pass on the api server on any JSON input in the versioned, data form. Internal clients use protobuf which already has affordances for handling unrecognized fields, and are less impacted by this issue. @kubernetes/sig-api-machinery-misc @kubernetes/sig-cli-misc
sig/api-machinery,sig/cli,priority/important-longterm,lifecycle/frozen
medium
Critical
198,780,818
rust
rustc generates a lot of llvm ir for small programs due to inline generated drops
Building https://github.com/jrmuizel/webrender/blob/sample-min/sample-min/src/main.rs ends up generating 12MB of LLVM IR (25MB of LLVM IR with debug info turned on). This seems like an excessive amount and it has a big impact on build times.
C-enhancement,A-codegen,A-destructors,I-compiletime,T-compiler,C-optimization
low
Critical
198,782,347
rust
add test: cross compiling core for `no_std` targets
For these targets - `thumbv6m-none-eabi` - `thumbv7m-none-eabi` - `thumbv7em-none-eabi` - `thumbv7em-none-eabihf` - `nvptx-nvidia-cuda` - `msp430-none-elf` - `msp430x-none-elf` - `nvptx64-nvidia-cuda` These targets have zero tests in tree. Let's at least test cross compiling `core` for them to catch LLVM / codegen related regressions. This would have catched #38824 before it landed in master. cc @alexcrichton @brson Does a run-make test sounds OK for this? Do we have at least one bot configured with `--enable-llvm-assertions`?
A-testsuite,C-enhancement,E-needs-test,T-dev-tools,WG-embedded
low
Major
198,818,752
You-Dont-Know-JS
java super constructor is not automatically called
section https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/ch3.md#subclass-constructor states: Not all class languages have the subclass constructor automatically call the parent constructor. C++ does, but Java does not. -- IMO Java subclasses DO call the superclass constructor automatically. Unlike Javascript, Java by default automatically calls super() _without_ any arguments.
for second edition
medium
Minor
198,820,821
go
compress/bzip2: Reader behavior diverges from C library
A review of the standard library implementation and the C implementation reveals the following divergent behaviors: * Reader does not reject missing terminating repeator value in RLE1 stage. Reproducer: ```425a6831314159265359e16e6571000001840020002000211846e0bb9229c284870b732b88``` * Reader chokes in RLE1 stage with suboptimal use of repeater codes: Reproducer: ```425a6831314159265359f59a903a000004c40040002000200020a9a082138bb9229c28487acd481d00``` * Reader chokes when given an under-subscribed prefix tree. Unlike DEFLATE, the bzip2 format does not "require" that prefix trees be canonical and complete. This issue is harder to fix without using the exact same prefix implementation as the C library (as most other language ports do). Reproducer: ```425a683131415926535958fdd3b000000008007fe02000228630100300797bed2c7a82ee48a70a120b1fba7600``` C version used: [bzip2-1.0.6](http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz)
NeedsFix
low
Minor
198,854,760
opencv
SyntaxError: invalid syntax on has_mat = len(list(filter(lambda x: x[0] in {"Mat", "vector_Mat"}, args))) > 0
[ 96%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h Traceback (most recent call last): File "/app/opencv-3.2.0/modules/python/python3/..//src2/gen2.py", line 4, in <module> import hdr_parser, sys, re, os File "/app/opencv-3.2.0/modules/python/src2/hdr_parser.py", line 855 has_mat = len(list(filter(lambda x: x[0] in {"Mat", "vector_Mat"}, args))) > 0 ^ SyntaxError: invalid syntax make[2]: *** [modules/python3/pyopencv_generated_include.h] Error 1 make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 make: *** [all] Error 2
bug,category: build/install
low
Critical
198,873,081
youtube-dl
Download only 1mb of file and use title in filename
I am using the below to download only 1 mb of the file. `youtube-dl -v URL -o - | head -c 1000000 > output.mp4` can i use %(title)s.%(ext)s instead of output.mp4
request
low
Major
198,931,457
rust
Mut borrow lifetime expanded to the enclosing function
Both Rust stable (v1.14) and nightly (468227129 2017-01-03), regardless of optimization flags, will expand the lifetime of an `&mut` borrow to the enclosing function in a fairly specific case. Here's a minimal snippet that will trigger the bug: ``` fn foo<'a>(_: &'a mut [&'a str; 0]) {} fn bar(_: &mut [&str; 0]) {} fn main() { let mut a = []; foo(&mut a); bar(&mut a); } ``` rustc fails with `cannot borrow 'a' as mutable more than once at a time`. This bug still happens if the array is replaced by at least `Vec`s and `HashMap`s. However, it compiles fine if `foo` takes a slice instead of an array, or if either or both inner and outer lifetime constraints are removed from `foo`'s argument. I don't know if this is relevant or not, but I compiled my original code with `-Z dump-mir` both before and after the commit that hit this bug, with both stable and nightly, and the dumped mir for the function that does the borrows is the same in all instances.
C-enhancement,A-borrow-checker,T-compiler
low
Critical
199,005,797
neovim
Alternate file wrongly setup
- `nvim --version`: NVIM v0.2.0-280-ge21aef1e1 - Vim (version: ) behaves differently? No - Operating system/version: Arch Linux - Terminal name/version: Sakura - `$TERM`: xterm-256color ### Actual behaviour the alternate file is setup to be the current file ### Expected behaviour the alternate file should be empty ### Steps to reproduce using `nvim -u NORC` - start nvim - open a file - `echo expand('%:p')` is the same as `echo expand('#:p')` **Notes**: - if the file being opened is given in argument (`nvim /path/to/file`), then `expand('#:p')` is empty as expected - It's not a big deal but we have 2 inconsistent cases - I use this: `set statusline+=%=%{!empty(expand('#:t'))?'#'.expand('#:t').'\ ❭\ ':''}` and obviously the reported alternate file is the same as the current one which is unneeded information
bug-vim
low
Minor
199,016,843
flutter
Request: API for changing the color of status bar
I need to change status bar color to `blue[700]` and app bar color to `blue[500]` _without gradient_, but existing flutter material widgets do not support it. https://developer.android.com/reference/android/view/Window.html#setStatusBarColor(int)
c: new feature,framework,f: material design,P3,team-design,triaged-design
medium
Critical
199,055,934
go
doc: reproduce the screencast with the default GOPATH
"[How to write code](https://golang.org/doc/code.html#GOPATH)" document includes a [screencast](https://www.youtube.com/watch?v=XCsL89YtqCs) to explain the workspaces and the go tool. We may need to reproduce it to avoid setting GOPATH. A similar cast is also required for the Windows users. Even though a large portion of our existing and potential users are Windows users, our core material is lacking references. /cc @adg @campoy @broady
Documentation,NeedsInvestigation
low
Minor
199,067,674
TypeScript
No completions for `extends` clause for members of a namespace containing only interfaces and types followed by expression
When attempting to get completions from `tsserver` for the members of a namespace that only exports interfaces and types (such as `typescript/lib/protocol.d.ts`) within an `extends` clause that is followed by an expression, `tsserver` returns no completions. **TypeScript Version:** 2.1.4 **Code** Given the following file (we'll call `test.ts`): ```ts function foo() { } namespace Bar { export interface Baz { } } interface Blah extends Bar. foo(); ``` If completions are requested for the end of the line beginning `interface Blah`: ``` {"seq":4733259223085117,"type":"request","command":"completions","arguments":{"file":"test.ts","line":9,"offset":28,"prefix":""}} ``` No completions will be returned: ``` {"seq":0,"type":"response","command":"completions","request_seq":4733259223085117,"success":false,"message":"No content available."} ``` However, if a concrete type is included in the namespace, completions work. For instance, if the contents of the file are changed to the following: ```ts function foo() { } namespace Bar { declare const one: number; export interface Baz { } } interface Blah extends Bar. foo(); ``` When completions are requested: ``` {"seq":6078778290829809,"type":"request","command":"completions","arguments":{"file":"test.ts","line":10,"offset":28,"prefix":""}} ``` Completions are returned: ``` {"seq":0,"type":"response","command":"completions","request_seq":6078778290829809,"success":true,"body":[{"name":"Baz","kind":"interface","kindModifiers":"export","sortText":"0"}]} ``` Similarly, if the `extends` clause is followed by a declaration, completions will be returned: ```ts namespace Bar { export interface Baz { } } interface Blah extends Bar. function foo() { } foo(); ``` Completions are requested: ``` {"seq":1722172452472771,"type":"request","command":"completions","arguments":{"file":"test.ts","line":6,"offset":28,"prefix":""}} ``` And completions are returned: ``` {"seq":0,"type":"response","command":"completions","request_seq":1722172452472771,"success":true,"body":[{"name":"Baz","kind":"interface","kindModifiers":"export","sortText":"0"}]} ```
Bug
low
Minor
199,079,829
go
net/http: half-closed connection triggers request cancellation
Please answer these questions before submitting your issue. Thanks! #### What did you do? https://play.golang.org/p/DnXwH5qJkD #### What did you expect to see? A client that sends a request followed immediately by a FIN can read a response from the server. #### What did you see instead? The half-close is detected and the request is cancelled immediately. #### Does this issue reproduce with the latest release (go1.7.4)? No #### System details ``` go version go1.8beta2 darwin/amd64 GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/benburkert" GORACE="" GOROOT="/Users/benburkert/sdk/go1.8beta2" GOTOOLDIR="/Users/benburkert/sdk/go1.8beta2/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qs/qkt9twmx4qg379d6f8kxl1vm0000gn/T/go-build530443777=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" 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" GOROOT/bin/go version: go version go1.8beta2 darwin/amd64 GOROOT/bin/go tool compile -V: compile version go1.8beta2 X:framepointer uname -v: Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 ProductName: Mac OS X ProductVersion: 10.12.2 BuildVersion: 16C67 lldb --version: lldb-360.1.70 ```
help wanted,NeedsInvestigation
low
Critical
199,102,001
go
cmd/compile: improve code generation for temporary slice copy and inlining
Please answer these questions before submitting your issue. Thanks! ### What version of Go are you using (`go version`)? go version go1.8beta2 darwin/amd64 ### What operating system and processor architecture are you using (`go env`)? ``` GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/rasky/Sources/go" GORACE="" GOROOT="/usr/local/Cellar/go/1.8beta2_1/libexec" GOTOOLDIR="/usr/local/Cellar/go/1.8beta2_1/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lw/jdbk7p_d4gj6qpydczpbw2080000gn/T/go-build116611858=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" 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? ```go func DebugPerf(mem []byte, x int) { op := binary.LittleEndian.Uint32(mem[x:]) fmt.Println(op) } ``` ### What did you expect to see? When inlining, the temporary slice could be fully elided. Moreover, a single bound-check on `x+3` would be sufficient. ### What did you see instead? ``` test.go:9 0x1086bc1 488b442470 MOVQ 0x70(SP), AX test.go:9 0x1086bc6 488b4c2460 MOVQ 0x60(SP), CX test.go:9 0x1086bcb 4839c8 CMPQ CX, AX test.go:9 0x1086bce 0f879c000000 JA 0x1086c70 test.go:9 0x1086bd4 4829c1 SUBQ AX, CX test.go:9 0x1086bd7 488b542468 MOVQ 0x68(SP), DX test.go:9 0x1086bdc 4829c2 SUBQ AX, DX test.go:9 0x1086bdf 48ffca DECQ DX test.go:9 0x1086be2 48c1fa3f SARQ $0x3f, DX test.go:9 0x1086be6 4883f2ff XORQ $-0x1, DX test.go:9 0x1086bea 4821d0 ANDQ DX, AX test.go:9 0x1086bed 4883f903 CMPQ $0x3, CX test.go:9 0x1086bf1 7676 JBE 0x1086c69 test.go:9 0x1086bf3 488b4c2458 MOVQ 0x58(SP), CX test.go:9 0x1086bf8 8b0401 MOVL 0(CX)(AX*1), AX ``` Basically, the last line (with AX=x) plus a single bound-check would be sufficient.
Performance,compiler/runtime
low
Critical
199,120,417
youtube-dl
Download an Ongoing YouTube Live Stream from the Start
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.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.01.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) - [ ] Site support request (request for adding support for a new site) - [ ] Feature request (request for a new functionality) - [X] Question - [ ] Other --- The command I'm using to download the YouTube Livestream is `youtube-dl --no-part -f [ID] [URL]` Now, this works completely fine. However, it only starts downloading from the present and continues from there. Is there any way to get it to start downloading from the beginning of the stream and then when it gets to the present, just continue downloading alongside the stream?
request
medium
Critical
199,172,930
neovim
recognize single "Shift" keystroke
- `nvim --version`: 0.2 (In future) - Vim (version: ) behaves differently? no - Operating system/version: Windows 7, 8, 10, etc. - Terminal name/version: - `$TERM`: ### Actual behaviour I don't know. ### Expected behaviour Recognize Capslock as a hotkey; recognize a single Shift stroke as a hotkey; recognize Alt-Enter stroke as a hotkey ### Steps to reproduce using `nvim -u NORC` I don't know. ``` nvim -u NORC ```
enhancement,gui,tui,input,complexity:low
low
Minor
199,177,084
three.js
EdgesGeometry shows unnecessary cords
##### Description of the problem The EdgesGeometry takes all the cords shared between faces and if the faces are not coplanar (or their "dot" is less than the thresholdDot) then it shows them as edges. The problem is that in some cases a cord is the sum of two other cords in two different faces. In this case the cord is shown as edge even if its's not. This is the wireframe: ![screen shot 2017-01-06 at 12 02 01](https://cloud.githubusercontent.com/assets/5675600/21715998/01b68580-d408-11e6-911c-d43090dbc16d.png) and this is with the EdgesGeometry: ![screen shot 2017-01-06 at 12 01 44](https://cloud.githubusercontent.com/assets/5675600/21715997/01b2fcf8-d408-11e6-9175-f8628cd184c6.png) I'm thinking we should, for each cord, check if there is a vertex in it, and if so, split the face in two using that vertex. Any idea on how we could do it? ##### Three.js version - [x] Dev - [x] r82 - [ ] ... ##### Browser - [x] All of them - [ ] Chrome - [ ] Firefox - [ ] Internet Explorer ##### OS - [x] All of them - [ ] Windows - [ ] Linux - [ ] Android - [ ] IOS
Enhancement
low
Major
199,180,320
TypeScript
Declare local variable as optional
Every time I type an undefinable variable, I think I typed something wrong: ```ts let a: string | undefined; ``` Why do I think I did something wrong? It's because I never add `undefined` type to a union type as above except in variable declarations. Don't you think it is time, introduce the optional operator to local variable declarations as well? ```ts let a?: string; ``` The above syntax feel very natural and idiomatic typescript for me.
Suggestion,Awaiting More Feedback
high
Critical
199,220,623
rust
Reverse the stack traces
A big improvement to the speed at which I can find the origin of a panic would be to reverse the order of the stack trace. At the moment the last line of the stack trace is always `main`. This means the stack trace is written deep->shallow, or in reverse(!) chronological order: ``` 1: 0x10977219c - function_that_caused_the_panic 2: 0x1097738ee - foo 3: 0x109773590 - bar 4: 0x109773cf6 - baz 5: 0x109773b94 - badger 6: 0x109757669 - main ``` What you are generally looking for is the place that caused the panic (e.g. the line with an `assert!` or `panic!` on it), and so I think it would make sense to have that line *last* so that it is easy to find. This is particularly important when the call stack is deep and it fills your terminal. [Here is a more in-depth argument for this](http://yellerapp.com/posts/2015-01-22-upside-down-stacktraces.html). So my suggestion is: reverse the stack trace to print the stack frames in chronological order, shallow->deep, with `main` on the top and the stack frame with the panic at the end: ``` 6: 0x109757669 - main 5: 0x109773b94 - badger 4: 0x109773cf6 - baz 3: 0x109773590 - bar 2: 0x1097738ee - foo 1: 0x10977219c - function_that_caused_the_panic ``` I realize this can become quite the bikeshedding religious war, and maybe this has been discussed before – if so, I apologize. Still, until the blog post above brought it up I didn't realize that most languages – including Rust – was doing it wrong, and that there was a better way. In C++ I switched the order I print stack traces about a year ago, and since then it has saved me a lot of scrolling. *EDIT*: I've created a forum thread about this here: https://users.rust-lang.org/t/reverse-stack-trace-order/8786
C-feature-request
medium
Major
199,242,964
go
doc/articles/wiki: misleading error handling in Writing Web Applications tutorial
Please answer these questions before submitting your issue. Thanks! ### What version of Go are you using (`go version`)? 1.7 ### What operating system and processor architecture are you using (`go env`)? GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/nick/golang" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c9/n428syrn3xl63_wf458yzw9w0000gq /T/go-build862609477=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" CGO_ENABLED="1" ### What did you do? On line 66 of this example: https://golang.org/doc/articles/wiki/final.go If ExecuteTemplate begins to write to the http.ResponseWriter before an error is thrown, http.Error will not properly return an error to the user. New Gophers will see this (as I did) and assume ExecuteTemplate will never write to the buffer if an error is thrown. This is not correct. Example case: https://play.golang.org/p/E_-jtdCLjk ### What did you expect to see? Write to a temporary buffer first, if no error is caught then write that to the http.ResponseWriter. ### What did you see instead? http.Error(w, err.Error(), http.StatusInternalServerError)
Suggested,Documentation,NeedsFix
low
Critical
199,252,677
vscode
Allow to cycle through previous typed values in quick input picker
- VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:49:23.350Z) - OS Version: Windows_NT ia32 6.1.7601 - Extensions: |Extension|Author|Version| |---|---|---| |read-only-indicator|alefragnani|0.4.0| |alignment|annsk|0.3.0| |bettertab|arenl|1.0.1| |Doxygen|bbenoist|1.0.0| |python|donjayamanne|0.5.5| |EditorConfig|EditorConfig|0.3.4| |vscode-great-icons|emmanuelbeziat|1.1.36| |matlab|Gimly81|0.4.0| |status-bar-tasks|GuardRex|0.1.2| |vscode-dimmer|hoovercj|2.1.0| |docthis|joelday|0.3.6| |cpptools|ms-vscode|0.9.3| |vscode-clearcase|OpenNingia|1.4.1| |vscode-icons|robertohuertasm|4.3.0| |theme-cyanicpastels|SamuelLampa|0.0.9| |indenticator|SirTori|0.2.1| |vscode-hexdump|slevesque|1.1.4| |code-spell-checker|streetsidesoftware|0.13.3| |comment-snippets|Tobiah|0.2.0| |dark-plus-material|vangware|0.1.4| |change-case|wmaurer|1.0.0| |highlight-trailing-white-spaces|ybaumes|0.0.2| --- Steps to Reproduce: 1. Press Ctrl-G. 2. Press Alt-Up. Nothing happens. When doing this in search it shows the last value enterred. Please implement history for goto command similarly to search & replace.
feature-request,quick-pick
low
Minor
199,264,608
rust
Deriving Debug on an enum with uninhabited type triggers warning
```rust // no warning #[derive(Debug)] enum Void {} // warns about unreachable pattern #[derive(Debug)] enum Foo { Bar(u8), Void(Void), } ``` Caused by https://github.com/rust-lang/rust/pull/38069 <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":null}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->
C-enhancement,A-lints,T-compiler
medium
Critical
199,268,811
go
doc: contribute.html doesn't mention GOROOT_BOOTSTRAP
Users should be able to find everything they need to know to contribute to Go by reading contribute.html. There's no path from that page to learning about GOROOT_BOOTSTRAP, since GOROOT_BOOTSTRAP is only mentioned from the unlinked https://golang.org/doc/install/source Fix.
Documentation,help wanted,NeedsInvestigation
medium
Critical
199,276,367
vscode
Multiselect via ctrl+d case insensitivity makes it useless
- VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:41:20.664Z) - OS Version: Linux x64 4.4.38-1-MANJARO - Extensions: |Extension|Author|Version| |---|---|---| |Go|lukehoban|0.6.51| --- Steps to Reproduce: consider this block of code: ``` accountQryConn *grpc.ClientConn accountQryClient proto.AccountQueryClient ``` when I select 'account' and hit alt+d a few times it will select it like this. ![2017-01-06-150041_626x115_scrot](https://cloud.githubusercontent.com/assets/1015732/21731141/eb1079a8-d420-11e6-89a9-280b0f8d463b.png) this is fine, but when I do this, I am doing it to replace it with something else. So I'll start typing: ![2017-01-06-150136_731x106_scrot](https://cloud.githubusercontent.com/assets/1015732/21731163/09140b68-d421-11e6-913e-a0bf92e9ed67.png) but now my case is broken for my second string. This is fine in a small example, but very annoying. Currently the case matches whatever is highlighted in the search widget. Behold what happens if I turn off case sensitivity: ![2017-01-06-150329_1605x153_scrot](https://cloud.githubusercontent.com/assets/1015732/21731213/4eb44f16-d421-11e6-8fba-8f90ed207420.png) This is incredibly annoying. I can't think of a time when you would want to multiselect case-insensitively with ctrl+d. It simply selects the wrong stuff, because in code it's always case sensitive. So depending on whatever I did last with ctrl+f, my ctrl+d either works or is annoying. I think ctrl+d should always be case sensitive, or have a button that's not search-tied that does a case sensitive string selection match across the file My two cents.
feature-request,editor-multicursor
high
Critical
199,279,855
youtube-dl
[pbs] Add support for 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.01.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.01.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 --- ### 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 <your command line> [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-v'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.01.05 [debug] Python version 2.7.12 - Linux-4.4.0-45-generic-x86_64-with-Ubuntu-16.04-xenial [debug] exe versions: none [debug] Proxy map: {} ... ``` --- ### Description of your *issue*, suggested solution and other information ``` root@my-server:/tmp# youtube-dl "http://www.pbs.org/wgbh/masterpiece/programs/series/sherlock-s4/" -F [pbs] Downloading JSON metadata [pbs] sherlock-s4: Downloading webpage Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 444, in main File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 434, in _real_main File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1791, in download File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 443, in _real_extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/pbs.py", line 425, in _extract_webpage File "/usr/lib/python2.7/re.py", line 141, in match return _compile(pattern, flags).match(string) TypeError: expected string or buffer ```
site-support-request
low
Critical
199,291,319
go
x/build: make a bot review CLs for common mistakes (like Tricorder)
Tracking bug to write a bot to review CLs for common mistakes: * properly-formatted references to CLs and bugs * conventional subject ("pkg/name: lowercase verb, not period at end") * gofmt * missing copyright headers And whatever else we add in the future. (forked from email thread https://groups.google.com/forum/#!topic/golang-dev/KpHMoePhg6c) /cc @kevinburke @rsc
Builders,NeedsFix,FeatureRequest
high
Critical
199,334,403
go
x/website: revise download page (system requirements for stable/archived versions)
"the official 1.4 download doesn't work on Macs. You need to use the special 1.4 download link on the build-from-source page. It would be nice if either the official 1.4 download were updated, or if another one were added with an annotation on the downloads page." - @robpike https://github.com/golang/go/issues/18545#issuecomment-271014385 related issue: https://github.com/golang/go/issues/16352
help wanted,NeedsFix
medium
Major
199,356,321
youtube-dl
Emerald City
## 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.01.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. - [ ] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.05** ### Before submitting an *issue* make sure you have: - [ ] 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 - [ ] [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) - [ ] 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 <your command line> [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2017.01.05 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} ... <end of log> ``` --- ### 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,cant-reproduce
low
Critical
199,360,994
nvm
exec: nvm: not found
OS: Archlinux I tried run nvm through tsocks. got this: ``` rapiz@sig:~/ > tsocks nvm install node /usr/bin/tsocks: line 84: exec: nvm: not found ```
needs followup,installing nvm
low
Major
199,375,747
neovim
Add `:command -herearg`
This would be essential for developers willing to add language support similar to `:py` without altering the C code. `command -herearg Foo` should, at minimum 1. Imply `-nargs=1`. 2. Make `Foo bar baz\ b` set `<q-args>` to `"bar\x20\x20baz\\ b"` (not literally, but result of evaluation should be the same). 3. Make Foo << EOF bar \ baz b EOF set `<q-args>` to `"\x20\x20bar \\ baz\n b\n"`. (basically minimal implementation should just employ code similar to `script_host_execute`, thus `-nargs=1`).
enhancement,vimscript,provider
low
Minor
199,392,398
TypeScript
Interface with readonly property is assignable to interface with mutable property
**TypeScript Version:** 2.1.4 **Code** ```ts interface MutableValue<T> { value: T; } interface ImmutableValue<T> { readonly value: T; } let i: ImmutableValue<string> = { value: "hi" }; i.value = "Excellent, I can't change it"; // compile-time error let m: MutableValue<string> = i; m.value = "Oh dear, I can change it"; ``` **Expected behavior:** The assignment of `i` to `m` would fail, to stop us accidentally allowing `value` to be modified. **Actual behavior:** The assignment is allowed. [The current behaviour was a deliberate choice](https://github.com/Microsoft/TypeScript/pull/6532#issuecomment-174356151) so this is a breaking change (or strict flag) feature request rather than a bug report! The Handbook [has this snippet](https://www.typescriptlang.org/docs/handbook/interfaces.html): ```ts let a: number[] = [1, 2, 3, 4]; let ro: ReadonlyArray<number> = a; ro[0] = 12; // error! ro.push(5); // error! ro.length = 100; // error! a = ro; // error! ``` It notes that `a = ro` being an error is helpful. But this happens because `ReadonlyArray` has no `push` method, making it incompatible with `Array`. My example above seems "morally equivalent" to modelling the input/output flow of values with separate methods: ```ts interface MutableValue<T> { getValue(): T; setValue(v: T): void; } interface ImmutableValue<T> { getValue(): T; } declare let i: ImmutableValue<string>; i.setValue("Excellent, I can't change it"); // compile-time error let m: MutableValue<string> = i; m.setValue("Oh dear, I can change it"); ``` And sure enough, this stops the assignment of `i` to `m`. Would be great if mutable and readonly properties had the same relationship as if they were modelled by separate get/set methods (which of course they might actually be, via property getter/setters).
Suggestion,Awaiting More Feedback
high
Critical
199,416,934
go
x/exp/shiny: key repeats reported as release + press
### What did you do? This program opens an x/exp/shiny window and reports key presses: ``` package main import ( "log" "golang.org/x/exp/shiny/driver" "golang.org/x/exp/shiny/screen" "golang.org/x/mobile/event/key" ) func main() { log.SetFlags(log.Lmicroseconds) driver.Main(func(s screen.Screen) { w, _ := s.NewWindow(nil) for { e := w.NextEvent() if e, ok := e.(key.Event); ok { log.Println(e.Direction) } } }) } ``` ### What did you expect to see? According to https://github.com/golang/mobile/blob/master/event/key/key.go#L50, key repeats should report key.DirNone. So when pressing and holding down a key for a while, I expect to see: ``` 11:59:49.544507 Press 11:59:50.045002 None 11:59:50.076717 None 11:59:50.107537 None 11:59:50.137585 Release ``` ### What did you see instead? Holding down a key results in repeated Release/Press events: ``` 11:59:49.544507 Press 11:59:50.045002 Release 11:59:50.045110 Press 11:59:50.076717 Release 11:59:50.076807 Press 11:59:50.107537 Release 11:59:50.107578 Press 11:59:50.137585 Release ``` ### What version of Go are you using (`go version`)? `go version go1.7.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/arne" GORACE="" GOROOT="/home/arne/bin/go" GOTOOLDIR="/home/arne/bin/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build871086202=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" ```
NeedsFix
low
Critical
199,422,372
youtube-dl
RFE: support retrieving credentials from a keyring
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.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.01.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) - [ ] Site support request (request for adding support for a new site) - [x] Feature request (request for a new functionality) - [ ] Question - [ ] Other --- ### Storing credentials in a keyring is safer than ~/.netrc Would you consider adding support for getting credentials from keyring? There's a keyring-agnostic [library](https://people.gnome.org/~stefw/libsecret-docs/py-lookup-example.html) with Python bindings.
request
low
Critical
199,486,322
rust
Missed optimization: references from pointers aren't treated as noalias
The following code results in `a` being dereferenced again for the return value: (https://godbolt.org/z/YnrzMa3oj) ```rust pub unsafe fn g(a: *mut i32, b: *mut i32) -> i32 { *a = 0; *b = 1; return *a; } ``` That is to be expected. In contrast, the same function with references avoids the load: (https://godbolt.org/z/YnrzMa3oj) ```rust pub fn g_ref(a: &mut i32, b: &mut i32) -> i32 { *a = 0; *b = 1; return *a; } ``` However, if we change the code to the following: (https://godbolt.org/z/YnrzMa3oj) ```rust pub fn g(a: *mut i32, b: *mut i32, x: *const i32) { let a = &mut *a; let b = &mut *b; *a = 10; *b = 11; return *a; } ``` then the extra dereference is *not* optimized out as it should be, because do not emit anything like `noalias` inside functions.
A-LLVM,I-slow,C-enhancement,A-codegen,P-medium,T-compiler,WG-llvm,C-optimization
medium
Critical
199,654,494
go
doc: document installation from package managers
The officially documented ways to install Go are to download the release archives from golang.org/dl, install it via msi or pkg installater or installing Go from the source. Even though we only support these options, a large portion of Go users are already depending on package managers to install Go and even more to desire that they can depend on package manager installations [[*](http://go-talks.appspot.com/github.com/freeformz/talks/20160712_gophercon/talk.slide#6)]. Currently, we have community-drive approach to maintain and release Go packages and this model seems to be working for some and widely used to install Go (32% of the installers already use brew and Linux package managers already). To improve this experience, I propose the following: * Keep package maintainers in sync during the releases and make sure that they are unblocked. * Document these packages and instructions to use them on the golang.org website. * Reevaluate the material on the wiki, such as https://github.com/golang/go/wiki/Ubuntu, to make it consistent with the official documentation. /cc @bradfitz @mwhudson @rsc
Proposal-Accepted
medium
Major
199,663,029
go
doc: fix where we forgot to target Windows users
A significant amount of Go users are Windows users even though the official Go documentation is lacking references targeting the Windows users. This is frustrating the Windows and end up them relying on third party sources which are often not up to date or not documenting the best practices. This is a tracking issue to improve Windows-specific instructions in docs. * Go through all docs to evaluate if the docs are Windows friendly. * Document instructions to set PATH a la what we have done for GOPATH, https://golang.org/wiki/SettingGOPATH. Refer to this doc where possible. * Use https://golang.org/wiki/SettingGOPATH consistently everywhere. * Produce a screencast similar to https://www.youtube.com/watch?v=XCsL89YtqCs for Windows users. /cc @bradfitz @cbro @rsc
Documentation,help wanted,OS-Windows,NeedsFix
medium
Major
199,677,482
opencv
DShow: Crossbar implementation prevents multiple capture channels of same type
Regarding this file: https://github.com/opencv/opencv/blob/master/modules/videoio/src/cap_dshow.cpp In capture cards that feature an analogue crossbar for multiple video inputs, this driver expects each muxed input to have a different input type. Unfortunately, this prevents capture cards that have multiple inputs of the same type from working on more than one channel. Specifically: I have a capture card with two composite inputs, and am unable to use this driver to change the crossbar setting.
feature,category: videoio
low
Minor
199,703,118
go
proposal: encoding/binary/v2: Read (or a new call) should return number of bytes read
Please answer these questions before submitting your issue. Thanks! ### What version of Go are you using (`go version`)? 1.7.4 ### What operating system and processor architecture are you using (`go env`)? linux/amd64 linux/arm darwin/amd64 ### What did you do? I want to use `binary.Read()` to marshall data to/from network byte-order. I must keep track of my offset from the beginning of the stream (I'm decoding DNS records, which sometimes refer to strings found at offsets-from-0 farther back as a form of compression). I would prefer not to require the use of an `io.ReadSeeker` just for the sake of discovering my current offset. ### What did you expect to see? I expected `binary.Read()` to return the number of bytes read, as all of the `io.Read` implementations do. ### What did you see instead? It doesn't! This seems like a silly oversight, but also not a big or difficult change. I created [a trivial library](https://github.com/sayotte/binary) to replace the function. In retrospect, it would be better to have a differently-named function in the upstream Golang `binary` package so that Go-1.x compatibility isn't broken. `binary.Read` could be a wrapper which just drops the bytesRead return value.
v2,Proposal
low
Critical
199,711,653
TypeScript
async/await: nowait keyword?
I have a large project that has now been migrated over from javascript to typescript and we're very pleased with the results. Bugs have fallen dramatically with the improved compiler support in combination with rigorously written code. Ours is a server-side product that runs under node (ts-node, actually). By its nature, it is highly asynchronous, so the move to Typescript had the major benefit of providing us access to async/await. It has been working really well, and dramatically reduced our code size and complexity. The one problem it has introduced is that we occasionally miss putting an "await" keyword in front of calls to methods returning promises (i.e., other async functions) when inside an async function. This "send and forget" is something that one occasionally might want to use, but for the most part, this creates a lot of chaos in our design pattern, as in most cases, the call is to something that will complete asynchronously, but most of the time we need to wait for that to complete. (That method cannot be synchronous because it depends on external services that are asynchronous.) It is not uncommon in our case to have 5 or 10 await statements in a single method. A missing "await" keyword can be hard to find -- especially when the method being called doesn't return anything that is needed by the caller. (If it returns something, type-checking will usually catch the mismatch between the type of the Promise<type> returned from the call.) Ideally, we could have a "nowait" keyword that would go where one would otherwise put an "await" to indicate to the Typescript compiler that the design intent is to explicitly NOT WAIT for the called method to be completing. The tsc compiler could have a new flag that controls whether to create a warning if a method call returns a Promise that is missing either "await" or "nowait". The "nowait" keyword would have no effect whatsoever on the compiled code.
Suggestion,Awaiting More Feedback
high
Critical
199,751,466
opencv
opencv does not build on Mac OS X 10.12.2 with Xcode 8.2
my cmake version is 3.1.0 execute the shell: python ../platforms/ios/build_framework.py ios then output: ``` -- Setting up iPhoneOS toolchain for IOS_ARCH='armv7' -- iPhoneOS toolchain loaded -- The CXX compiler identification is unknown -- The C compiler identification is unknown -- Configuring incomplete, errors occurred! See also "/Users/moon/dev/cpp-lib/opencv-master/build/ios/build/armv7-iPhoneOS/CMakeFiles/CMakeOutput.log". See also "/Users/moon/dev/cpp-lib/opencv-master/build/ios/build/armv7-iPhoneOS/CMakeFiles/CMakeError.log". -master/build/ios/build/armv7-iPhoneOS CMake Error at CMakeLists.txt:98 (project): No CMAKE_CXX_COMPILER could be found. CMake Error at CMakeLists.txt:98 (project): No CMAKE_C_COMPILER could be found. ============================================================ ERROR: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DIOS_ARCH=armv7', '-DCMAKE_TOOLCHAIN_FILE=/Users/moon/dev/cpp-lib/opencv-master/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DENABLE_NEON=ON', '/Users/moon/dev/cpp-lib/opencv-master', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode']' returned non-zero exit status 1 ============================================================ Traceback (most recent call last): File "../platforms/ios/build_framework.py", line 88, in build self._build(outdir) File "../platforms/ios/build_framework.py", line 82, in _build self.buildOne(t[0], t[1], mainBD, cmake_flags) File "../platforms/ios/build_framework.py", line 138, in buildOne execute(cmakecmd, cwd = builddir) File "../platforms/ios/build_framework.py", line 34, in execute retcode = check_call(cmd, cwd = cwd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DIOS_ARCH=armv7', '-DCMAKE_TOOLCHAIN_FILE=/Users/moon/dev/cpp-lib/opencv-master/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DENABLE_NEON=ON', '/Users/moon/dev/cpp-lib/opencv-master', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode']' returned non-zero exit status 1 ```
feature,category: build/install,platform: ios/osx
low
Critical
199,756,928
You-Dont-Know-JS
Making *You Don't Know JS* easier to read
@getify, I love your work on this amazing book! I know the topic of making *You Don't Know JS* has been brought up in the past, but I was hoping to open up some more discussion on it. - https://github.com/getify/You-Dont-Know-JS/issues/635 - https://github.com/getify/You-Dont-Know-JS/issues/831 - https://github.com/getify/You-Dont-Know-JS/issues/869 - https://github.com/getify/You-Dont-Know-JS/issues/537 - https://github.com/getify/You-Dont-Know-JS/issues/524 - https://github.com/getify/You-Dont-Know-JS/issues/725 - https://github.com/getify/You-Dont-Know-JS/issues/630 From https://github.com/getify/You-Dont-Know-JS/issues/635, it appears the main issue with using gitbooks is that it allows PDF exports, which O'Reilly does not permit.I was wondering if there's a way to leverage gitbooks or a similar technology, in a way that does not violate agreements with publishers. Here are a few thoughts - [Gitbook CLI](https://github.com/GitbookIO/gitbook-cli) lets you easily package and serve books written in Markdown. It requires a `SUMMARY.md` file to be supplied, listing chapters and paths to corresponding files. The tool does not automatically publish to [gitbook.com](gitbook.com), nor does it automatically export to pdf (although the option to export to pdf does exist). - Running `gitbook build` creates a directory containing the book packaged as html files. Users can read the book by opening `index.html`. This directory can be included in this repository, or served elsewhere ([Github Pages](https://pages.github.com) could be a neat solution). Including only the output of the command (html files) in the repo ensures end users do not have the ability to easily export to pdf. - Another option to make this more accessible could be to include the `SUMMARY.md` file and a docker setup that runs `gitbook serve` in a docker container. An end user can simply run `docker-compose up` to serve the book locally and be able to read the book inside a browser. What do you and the wider community think about this? I'm happy to provide more information or examples if required. I know the contribution guide mentions that this repo is not primarily intended to optimize reading experience. Given that, what are your thoughts on forks?
for second edition
low
Major
199,760,450
react
[Fiber] Should we clear an error boundary's update queue whenever it captures an error?
Seems like we should at least do this on the root.
Component: Core Utilities,Type: Discussion,React Core Team
low
Critical
199,792,519
go
net: dns lookup sometimes fails with "no such host" when there are too many open files
#### What did you do? My network-intensive code would sometimes fail resolving domain names, returning "no such host" using the default resolver (pure go).The domains that fail resolving are valid domains that are successfully resolved using dig and the same dns server address. I noticed that increasing the number of open files limit fix the issue. I managed to reproduce the failure with: https://play.golang.org/p/MEZUS8h-o5 ``` go build test.go ulimit -n 20 # Set open file limit to something low $ ./test 2017/01/10 11:01:11 lookup munic.io on 127.0.1.1:53: dial udp 127.0.1.1:53: socket: too many open files $ ./test 2017/01/10 11:01:11 lookup munic.io on 127.0.1.1:53: dial udp 127.0.1.1:53: socket: too many open files $ ./test 2017/01/10 12:01:12 lookup munic.io on 127.0.1.1:53: no such host ``` #### What did you expect to see? Always "too many open files" #### What did you see instead? Sometimes Lookup returns "no such host" when it shouldn't. #### Does this issue reproduce with the latest release (go1.7.4)? I first noticed the problem with 1.7.3. I reproduced the problem on 1.8beta2. #### System details ``` go version go1.8beta2 linux/amd64 GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/costanzj/projects/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-build335463609=/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" GOROOT/bin/go version: go version go1.8beta2 linux/amd64 GOROOT/bin/go tool compile -V: compile version go1.8beta2 X:framepointer uname -sr: Linux 4.4.0-38-generic Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial /lib/x86_64-linux-gnu/libc.so.6: GNU C Library (Ubuntu GLIBC 2.23-0ubuntu5) stable release version 2.23, by Roland McGrath et al. gdb --version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 ```
Unfortunate,help wanted,NeedsFix
medium
Critical
199,793,299
go
cmd/compile: fixedbug/issue10958.go failures
The `fixedbug/issue10958.go` test, introduced in 7f1ff65c3947b916cc4d0827fd8c1307d7efd7bf ( cmd/compile: insert scheduling checks on loop backedges), is flaky. ### What version of Go are you using (`go version`)? `go version devel +7f1ff65 Mon Jan 9 21:01:29 2017 +0000 linux/amd64` ### What operating system and processor architecture are you using (`go env`)? ```GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="XXX/gocode" GORACE="" GOROOT="XXX/go1.7/go" GOTOOLDIR="XXX/go1.7/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build124360425=/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? Ran `all.bash` 3 times on a CentOS 6.5 server. ### What did you see? It failed reliably with: ``` ##### ../test # go run run.go -- fixedbugs/issue10958.go signal: killed ``` It happened on the linux/mips64 builder too: https://build.golang.org/log/3f4be6b0c792fd179683d0046a2e6f178f8928d2
Testing,NeedsInvestigation,compiler/runtime
medium
Critical
199,882,355
TypeScript
Compiler API Example in Wiki fails to run as described
<!-- BUGS: Please use this template. --> I am not able to use example provided at https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#using-the-type-checker. It throws following exception: ``` -- [email protected] node docGenerator.js interface.ts C:\Users\...\node_modules\typescript\lib\typescript.js:33364 if (location.kind === 70 /* Identifier */) { ^ TypeError: Cannot read property 'kind' of undefined at Object.getTypeOfSymbolAtLocation ```
Docs
low
Critical
199,909,743
go
x/net/http2: support consuming PUSH_PROMISE streams in the client
Go 1.8 will contain support for servers to produce PUSH_PROMISE streams, but there is no support for clients to receive them. Specifically, it would be nice if proxies built with net/http/httputil's ReverseProxy to be able to proxy server pushes.
Proposal,Proposal-Accepted,FeatureRequest
high
Critical
199,912,938
rust
Add some mechanism for catching structured exceptions on Windows
There are a number of places where we are forced to catch these exceptions in Gecko (see MOZ_SEH_TRY). The usual reason is for handling some bug in code that we have no control over. Structured exceptions are also used for naming threads on Windows so it would be nice to have that too.
O-windows,C-feature-request
low
Critical
199,931,497
go
cmd/gofmt: Slice literal condensed to one line and comment moved outside if comment is last line
Perhaps a duplicate of #9460, but the issue discussion says it's restricted to `for` statements, and at the very least this is another symptom of the same problem. ### What version of Go are you using (`go version`)? go 1.7.3 ### What operating system and processor architecture are you using (`go env`)? go playground In my work, it's common to have a list of cases I want to run, and comments are a good way to remove them selectively. All of the following conditions format as is ```` // All on one line cases := []int{1, 2, 3} ```` ```` // Cases each on own line cases := []int{ 1, 2, 3, } ```` ```` // Trailing comment in the list cases := []int{ 1, 2, //3, } ```` ```` // Trailing comment with newline at the start cases := []int{ 1, 2, 3, //4, } ```` ```` // All items on the same line, with first commented cases := []int{ // 1 2, 3, 4} ```` But, in the specific case where there is no newline between the start of the slice and the slice items, and the comment is on a newline between the items and the trailing brace, the comment is moved outside of the slice literal. Specifically: ```` cases := []int{1, 2, 3, //4, } ```` Formats to: ```` cases := []int{1, 2, 3}//4, ```` Furthermore, newlines are kept if there are multiple trailing comments ```` cases := []int{1, 2, 3, //4, //5, } ```` is formatted to ```` cases := []int{1, 2, 3}//4, //5, ```` This is undesirable formatting, particularly this last case since the newline comment feels uncoupled from the literal.
NeedsFix
low
Minor
199,966,281
go
net: poor performance of Dial & friends
@bradfitz asked me to file a bug as a continuation of https://groups.google.com/forum/#!topic/golang-nuts/52gePwVq2sc ### What version of Go are you using (`go version`)? 1.7.3 ### What operating system and processor architecture are you using (`go env`)? The numbers below are all from a 24-core Intel machine, running Linux with Go 1.7.3, cross compiled from OS X. The machine has a multi-queue nic with RSS enabled. ### What did you do? Attempt ~100k TCP connections per second to remote hosts (same local network) using DialContext(). https://gist.github.com/nomis52/7b8405644132a09d2e8f9b8f769297cb ### What did you expect to see? At least 10k TCP connections/second per core, scaling close to linearly with cores. Ideally with errors rates close to that seen in C. ### What did you see instead? GOMAXPROCS=1 can't sustain 10k conns/ section without triggering connection timeouts at a 400ms deadline. Similarly GOMAXPROCS=24 can't sustain 100k conns / second. Full email below. ---------- My problem domain is such that I need to make a large number of TCP connections from a small set of hosts to many other hosts (targets), on a local network. The connections are short lived, usually <200ms and transfer <100 bytes in each direction, I need to do about 100k connections / second per source host. The numbers below are all from a 24-core Intel machine, running Linux with Go 1.7.3, cross compiled from OS X. The machine has a multi-queue nic with RSS enabled. The targets are multiple machines running Go servers listening on 200 ports each (to avoid 5-tuple exhaustion). My Go code [1] spawns N go routines, each of which calls net.Dial(), performs the transaction and then sleeps for 1s. With this approach, setting GOMAXPROCS=1 can't sustain 10k conns/ section without triggering connection timeouts at a 400ms deadline. Similarly GOMAXPROCS=24 can't sustain 100k conns / second. Removing the context timeout passed to Dial() improves performance to the point where GOMAXPROCS=1 can do 10k conns/second at a 1% timeout rate with a 200ms deadline. I've written a C++ solution that uses N-threads, each calling epoll(). Targets are assigned to threads and then the sockets stay local to the thread for the duration of the transaction. On the same host a single thread can do 20k conns/second with a 0.12% timeout rate at a 200ms deadline. 6 threads with 10k conn/s each produce <2% of timeouts @ 200ms and with 16 threads, 10k each, <2% exceed 200ms and <0.5% of requests exceed 300ms. I believe the Go solution suffers from at least two issues: i) net.Dial() is fairly expensive, both in terms of allocations & syscalls. [2] ii) syscalls cause the Go routine to be rescheduled, bouncing the work for a single socket across CPU cores, hurting locality. Correct me if I'm wrong here but from my reading that's what occuring. I've tried a number of workarounds: - Use net.DialTCP() at GOMAXPROCS=4, 40k conns/second all requests complete in <200ms. That's an improvement but it doesn't allow me to provide a timeout. - exposing net.tcpDial() directly gives 5% timeouts @200ms with GOMAXPROCS=4, 40k conn/s second. Setting GOMAXPROCS=24 produces a 0% timeout rate, and can scale up to 80k conn/s before timeouts start appearing (1% @ 100k conns/s). This is the best option I've found so far but requires use of an internal API. - using syscall.Socket() directly. The problem here is receiving notification when the socket is writable (connected). There doesn't appear to be a way to hook into the netpoller. I wrote a solution using syscall.EPoll() directly but that had even worse performance than the native Go solution. Does anyone have suggestions on speeding this up? I'd prefer to keep this component in written in Go but I'm running out of options to meet the performance & efficiency targets. [1] https://gist.github.com/nomis52/7b8405644132a09d2e8f9b8f769297cb [2] Results from https://github.com/prashantv/go-bench/blob/master/dial_test.go BenchmarkDial/dialer.DialContext-8 1000 1344 B/op 28 allocs/op BenchmarkDial/net.Dial-8 3000 863 B/op 20 allocs/op BenchmarkDial/net.DialTCP-8 2000 638 B/op 15 allocs/op BenchmarkDial/net.DialTimeout-8 2000 1344 B/op 28 allocs/op BenchmarkDial/net.dialTCP-8 1000 1120 B/op 23 allocs/op
Performance,help wanted,NeedsInvestigation
low
Critical
199,967,386
go
cmd/compile: performance problems with many long, exported identifiers
### What version of Go are you using (`go version`)? 1.7, 1.8+ ### What operating system and processor architecture are you using (`go env`)? win64 and nix64 ### What did you do? Tried to compile 150MB of code in a single package. Really it was a simple main.go that referenced this huge package and I executed "go build" but it is the compile executable that consumed ridiculous resources. But this even happens in my case when I get the code down to half that size (~75 MB). Not removing inlining and/or optimizations only delays the extreme resource usage, it does not remove it. ### What did you expect to see? A successful result and timid RAM usage that does not climb to extreme proportions and "streams" the build limited only by disk space of the result. ### What did you see instead? Consumed proportional amount of memory to code size, running out of memory (Win) or swapping forever until receiving a kill signal (Nix). I am afraid I cannot provide the large set of code at the immediate moment. But if necessary, I can build a go generator that generates a ton of interfaces, structs, and functions. Orig thread: https://groups.google.com/forum/#!topic/golang-nuts/sBBkQ1_xf2Q.
ToolSpeed,NeedsInvestigation
medium
Major
200,061,092
TypeScript
Add support for diagnostic severities
TypeScript has added compiler options for lint level checks like `noUnusedParameters` or `noUnusedLocals` in tsconfig.json (which is goodness). Today when such an option is enabled then the corresponding issues are reported by TypeScript in the same way as semantic or syntax errors. There is no notion of severity. ## Background We are using tslint to develop VS Code and we have used tslint rules to detect unused locals. TSLint rule failures are reported in VS code as warnings and we had the setup that lint style issue are shown as warnings and the typescript issues (syntax, semantic) are shown as errors. Now that typescript added more lint style checks we no longer get the distinction when developing between lint level warnings and semantic errors. The situation has become worse with tslint 4.0, there tslint has started to deprecate rules which are covered by TypeScript compiler options. This makes good sense, but it means we are now starting to see 'unused locals' reported as errors and no longer as warnings as we did before. ## Suggestion Support that the user can define in the tsconfig.json whether a check enabled by compiler option should be reported as `error` or `warning`. `eslint` supports to configure the severity of an option. Here is an example the [eslint documentation](http://eslint.org/docs/user-guide/configuring): ```json { "rules": { "eqeqeq": "off", "curly": "warn", "quotes": ["error", "double"] } } ``` // CC @waderyan @mjbvz
Suggestion,Needs Proposal,VS Code Tracked
high
Critical
200,078,616
neovim
Fold improvements discussion
I've been working to improve the terminal folding display and some things I think are LGTM: - [x] multibyte display (so one can use '│' to replace the pipe,'▸' instead of + ▾ etc) see ![2017-01-11-130542_956x613_scrot](https://cloud.githubusercontent.com/assets/886074/21848343/92813ca8-d800-11e6-91b3-4eb969ec599f.png) - [x] don't repeat initial folding character on wrapped lines - [x] with the current code it should be easy to adjust dynamically the foldcolumn width depending on the nesting fold depth - [x] character customization ? it's easy to change foldcolumn characters in the source but that might be a nice setting to have ? In fillchars ? - [ ] inline folds https://github.com/neovim/neovim/issues/9817 https://github.com/neovim/neovim/pull/12194 - [x] ex_fold should use visual block - [ ] support foldexpr - [ ] ability to save/restore folds with columns (`put_folds` , use https://github.com/vim/vim/issues/6004 or the API https://github.com/neovim/neovim/pull/11523) - [x] use 2 shades to differentiate the text on a line before/after the inline fold (added `FoldedLight` highlight) - [ ] deal with foldopen (now disabled to ease testing) - [ ] deal with concealcursor (folds ) otherwise cursor can move past end of line - [ ] (warn for wrong pos in match_add ) - [ ] how to display inline folds on the foldcolumn ? (no display ?) - [ ] `:2,1fold` fails with `fdm=marker` because foldCreate uses start/end instead of start_rel/end_rel - [ ] take into account column when using zo,zc etc. - [ ] ability to click on an inline fold But some aspects I am less confident with and would like some input: - [ ] ~~multicell display ? I wonder if some multicell character can improve the foldcolumn look enough to justify the addition. Which character would you like (I could only find that one '+') ?~~ - [ ] add nvim_create_fold() to API ? https://github.com/neovim/neovim/pull/11523 - [ ] help with folds UI externalization ? GUIs could draw better folds for sure. could be solved by api Nb: as a reminder for myself: lines displayed on screen are generated by win_line and fold_line. Both functions write their result in `current_ScreenLine` which is copied later at the right offset. fold_line fills `current_ScreenLine` via `copy_text_attr` calls but this function doesn't support multibytes characters. `screen_puts_len` is a powered up version of `copy_text_attr` that support multibytes characters BUT it can't write to 'current_ScreenLine' because it can't compute its offset.
enhancement,needs:design,needs:discussion
low
Major
200,105,807
angular
Exception/Error In Resolvers (Router) can not be catched in the subscription to "activatedRoute.data"
<!-- IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING --> **I'm submitting a ...** (check one with "x") ``` [X ] bug report => search github for a similar issue or PR before submitting [ ] 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** <!-- Describe how the bug manifests. --> I'm using the Router with Resolver interfaces to get some data form a service (backend) before creating a component which will render the data (subscribing to it). If an exception occurs in the Resolver the application breaks. (Error: Uncaught (in promise)) **Expected behavior** <!-- Describe what the behavior would be without the bug. --> If there is an exception in the Resolver i expect the subscribe error function to be called but the ErrorObservable appears in the "activatedRoute.data.value" instead. ![image](https://cloud.githubusercontent.com/assets/12108584/21853282/c68edfb2-d816-11e6-8573-9adc8e898020.png) ``` // some component ngOnInit() { this.activatedRoute.data .subscribe( (data) => { this.data = data.data] || {}; console.log('data was set to ' + this.data) }, (error) => { /// we never get here, no matter there was a Promise.reject(), throw Error(), etc. console.log('ups! Error getting data') alert(error); }); } // some resolver resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): BehaviorSubject<any>|Observable<any>|Promise<any>|any { return Observable.throw('This always fails'); } ``` **Minimal reproduction of the problem with instructions** check out the plunker [http://plnkr.co/edit/MaiM6T1COr2ppB2AMANx](http://plnkr.co/edit/MaiM6T1COr2ppB2AMANx) <!-- If the current behavior is a bug or you can illustrate your feature request better with an example, 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?** <!-- Describe the motivation or the concrete use case --> Catch and treat exceptions within the target component **Please tell us about your environment:** <!-- Operating system, IDE, package manager, HTTP server, ... --> * **Angular version:** 2.0.X 2.3.1 <!-- Check whether this is still an issue in the most recent Angular version --> Yes * **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] <!-- All browsers where this could be reproduced --> All * **Language:** [all | TypeScript X.X | ES6/7 | ES5] TypeScript 2.1.1 * **Node (for AoT issues):**`node --version` =
feature,freq3: high,area: router,feature: under consideration
medium
Critical
200,192,074
go
proposal: spec: use zero receiver for value method embedded via nil pointer
Consider this program: ```go package main import ( "fmt" ) type Pointer struct{} func (d *Pointer) IsNil() bool { return d == nil } type Danger struct { Pointer } func main() { var d *Danger fmt.Println(d.IsNil()) } ``` If a struct type embeds another struct type with pointer methods, the pointer method set of the outer struct (`*Danger` in this example) includes the pointer methods of the embedded value. However, calling these embedded methods is dangerous: the mere act of computing the address of the receiver results in a nil panic (see https://play.golang.org/p/jfrCruVC6l). (You can more clearly see that the panic occurs when computing the receiver address by using a method expression instead of actually calling the method: https://play.golang.org/p/629rZ7rs6l.) This somewhat limits the usefulness of embedding for composition, as the caller must either know the concrete type in which the struct is embedded (https://play.golang.org/p/3ciUa4kiOQ) or use reflection to check whether the concrete pointer is nil before making the call (https://play.golang.org/p/zGDh6Hk5U9). This style of embedding could be made significantly more useful by defining pointer methods on embedded structs to receive `nil` if the pointer to the struct in which they are embedded is `nil`. Specifically, I propose to add the following sentence to https://golang.org/ref/spec#Struct_types: > * If S contains an anonymous field *T, the method sets of S and *S both include promoted methods with receiver T or *T. __Evaluating a call or method value of a promoted method with a nil *S receiver evaluates the corresponding *T method with a nil *T.__ The spec is currently a bit vague on the exact semantics of calls to methods obtained by embedding. This proposal certainly represents a change to the language as implemented, but it is not obvious to me whether it is a "language change" in the Go 1 compatibility sense or merely a spec clarification.
LanguageChange,Proposal,LanguageChangeReview
medium
Major
200,201,050
kubernetes
Dynamically change loglevel of infrastracture components
etcd has the ability to increase/decrease its running loglevel which is really useful in debugging individual operations. https://coreos.com/etcd/docs/latest/v2/admin_guide.html (see "Enabling Debug Logging" section) It would be nice to support this for all of our components (apiserver, scheduler, etc.). @kubernetes/sig-api-machinery-misc
sig/api-machinery,kind/feature,lifecycle/frozen
medium
Critical
200,230,540
kubernetes
kubectl should warn user if they attempt to authenticate to the cluster using an expired certificate
<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.--> **Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): **What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.): --- **Is this a BUG REPORT or FEATURE REQUEST?** (choose one): Feature request <!-- If this is a BUG REPORT, please: - Fill in as much of the template below as you can. If you leave out information, we can't help you as well. If this is a FEATURE REQUEST, please: - Describe *in detail* the feature/behavior/change you'd like to see. In both cases, be ready for followup questions, and please respond in a timely manner. If we can't reproduce a bug or think a feature already exists, we might close your issue. If we're wrong, PLEASE feel free to reopen it and explain why. --> **Kubernetes version** (use `kubectl version`): v1.5.1 **Environment**: - **Cloud provider or hardware configuration**: Kubernetes on self-hosted private cloud - **OS** (e.g. from /etc/os-release): CoreOS 1235.6.0 - **Kernel** (e.g. `uname -a`): 4.7.3-coreos-r2 - **Install tools**: - **Others**: **What happened**: When a user with an expired client certificate attempts to use `kubectl` to interact with a cluster, they get a very unhelpful error: ``` % kubectl get pods error: You must be logged in to the server (the server has asked for the client to provide credentials) ``` After a lot of digging, the user may discover that their client certificate has expired and needs to be renewed. **What you expected to happen**: I expected to get a more helpful error. The API service returned a `401 Unauthorized`, yet this is never shown to the user, except when verbosity is bumped up. I'd like to see two improvements: * Before attempting to connect to the API service, `kubectl` checks the TLS certificate to see if it the expiration date < current time. If it has indeed expired, print a helpful message to the user. * When an API request returns a 401 Unauthorized message, print a more helpful message, perhaps something along the lines of "Server response: client is not authorized to request this resource. Please verify your authentication credentials and/or certificates for validity". **How to reproduce it** (as minimally and precisely as possible): 1. Generate a client certificate that expired before the current system time. 2. Attempt to use it with `kubectl` to interact with the cluster **Anything else do we need to know**:
priority/backlog,kind/feature,sig/auth,sig/cli,lifecycle/frozen
medium
Critical
200,250,060
kubernetes
FEATURE REQUEST: kubectl unset command
Since we have kubectl set command to configure the resources. Should we add the unset command to cancel some configs?
kind/feature,sig/cli,lifecycle/frozen
low
Major
200,311,572
clean-code-javascript
What about Magic strings?
Do you think that can be good to include something about magic strings? **Bad:** ```javascript let posts = getPostsFromCategory('sports'); ``` **Good**: ```javascript const categories = { sports: 'sports', economy: 'economy' }; let posts = getPostsFromCategory(categories.sports); ```
help wanted
low
Major
200,336,818
TypeScript
Incorrect text caret position on fourslash tester
**TypeScript Version:** master branch **Code** Modifying `tests/cases/fourslash/smartIndentOnUnclosedFunctionDeclaration04.ts`: ```ts /// <reference path='fourslash.ts' /> ////function f<A,B,C>/*1*/(/*2*/a: A, /*3*/b:/*4*/B, c/*5*/, d: C/*6*/ function verifyIndentationAfterNewLine(marker: string, indentation: number, expectedText: string): void { goTo.marker(marker); edit.insert("\r\n"); if (expectedText) { verify.textAtCaretIs(expectedText); } verify.indentationIs(indentation); } verifyIndentationAfterNewLine("1", 4, '('); verifyIndentationAfterNewLine("2", 4, 'a'); verifyIndentationAfterNewLine("3", 4, 'b'); verifyIndentationAfterNewLine("4", 8, 'B'); verifyIndentationAfterNewLine("5", 4, ','); verifyIndentationAfterNewLine("6", 4, undefined); ``` **Expected behavior:** The test must pass **Actual behavior:** ``` 1) fourslash tests tests/cases/fourslash/smartIndentOnUnclosedFunctionDeclaration04.ts fourslash test smartIndentOnUnclosedFunctionDeclaration04.ts runs correctly: Error: verifyTextAtCaretIs Expected: "(" Actual: "a" at TestState.verifyTextAtCaretIs (src\harness\fourslash.ts:1854:23) ```
Bug
low
Critical
200,362,861
angular
Issue with queries and the TemplateRef predicate
<!-- IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING --> **I'm submitting a ...** (check one with "x") ``` [x] bug report => search github for a similar issue or PR before submitting [ ] 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** There is a problem introduced after Angular 2.1.1 and that is visible in the current (2.4.3) release: Say I have one component, C1, that takes all the templates and adds them to the DOM using ngTemplateOutlet. My top component, AppComponent, uses C1 and provides a template to it that does a *ngFor loop over an array of 2 items, and just displays the item value. The number of items displayed is 3, the last one being undefined. **Expected behavior** Expected 2 items being displayed (this was the case in Angular 2.1.1). **Minimal reproduction of the problem with instructions** Please see https://plnkr.co/edit/NeTytaYG2bhjJNniED9M?p=preview. **Please tell us about your environment:** Windows 10 * **Angular version:** 2.4.3 * **Browser:** All * **Language:** Typescript
freq2: medium,area: core,core: queries,type: confusing,P3
low
Critical
200,406,121
rust
rustc always links against non-debug Windows runtime
When building [rust-mozjs](https://github.com/servo/rust-mozjs) with debug symbols enabled, the underlying C++ library links against the debug Windows runtime (`msvcrtd.lib`) rather than the regular one (`msvcrt.lib`). Unfortunately, rustc always links against `msvcrt.lib` unconditionally: https://github.com/rust-lang/rust/blob/da2ce2276873242a101f205537e7ce297d68f8dd/src/vendor/libc/src/windows.rs#L150 . This makes it [impossible](https://github.com/servo/servo/pull/14766#issuecomment-270734225) to build a debug-enabled version of rust-mozjs on Windows.
O-windows-msvc,C-feature-request,T-libs
medium
Critical
200,481,677
go
x/net/http2: make Transport return nicer error when Amazon ALB hangs up mid-response?
Please answer these questions before submitting your issue. Thanks! ### What version of Go are you using (`go version`)? $ go version go version go1.8rc1 darwin/amd64 ### What operating system and processor architecture are you using (`go env`)? Linux AMD64 ### What did you do? If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best. We have http client code that has started to return errors when the corresponding server uses HTTP2 instead of HTTP. ### What did you expect to see? Identical behavior. ### What did you see instead? `http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=NO_ERROR, debug=""`
Unfortunate
high
Critical