sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Suppress cursor blinking when text is actively being printed
Labels: Help Wanted,Area-Rendering,Product-Terminal,Issue-Task,Priority-3

Here's an edge case I didn't cover in #686 - though it might warrant its own issue anyway.

# Environment

```none
Windows build number: 10.0.18362.145
Windows Terminal version (if applicable): commit 71e19cd82528d66a0a7867cbed85990cfc1685f1

Any other software?
```

# Steps to reproduce

Print a lot of text to the console. This is especially apparent with progress bars that require backspace characters.

# Actual behavior

The cursor continues to blink, or if the cursor blinking is turned off it stays on. This leads to some weird behaviour:

![2019-05-31_17-20-01](https://user-images.githubusercontent.com/34610081/58735668-1fff4900-83c9-11e9-8a0b-6fc7f0e4df47.gif)
![2019-05-31_17-27-22](https://user-images.githubusercontent.com/34610081/58735738-62288a80-83c9-11e9-9e80-123cc7631695.gif)


# Expected behavior

I'm thinking the cursor should automatically hide when printing text. I've seen this done in a few other terminal programs.
Repository: rust
Issue: Use const generics for array `Default` impl
Labels: T-lang,T-libs-api,T-compiler,A-const-generics,A-slice,Libs-Tracked,A-array

Currently, we generate array impls for every size up to 32 manually using macros, but with const generics at a suitable level of implementation, we can switch to properly parameterising over all lengths.
- [x] Replace most manual impls with const generic impls (PR: https://github.com/rust-lang/rust/pull/62435)
- [ ] Replace `Default` impl with const generic impl (more difficult due to https://github.com/rust-lang/rust/pull/60466#discussion_r280989938).
- [ ] Reimplement impls removed due to bloat using const generic impls (see https://github.com/rust-lang/rust/blob/7840a0b753a065a41999f1fb6028f67d33e3fdd5/src/libcore/array.rs#L221-L227 and https://github.com/rust-lang/rust/blob/bfdfa85e73186ef96f082980113f7ace8561efd2/src/liballoc/vec.rs#L2199-L2204)
Repository: go
Issue: x/mobile: Docs imply that methods can take structs
Labels: Documentation,NeedsInvestigation,mobile

The gomobile docs say it supports
> Any function type all of whose parameters and results have
  supported types.

I think this is incorrect: gomobile does not support code like the following

```go
type S struct {
  X int
}

type I interface {
  ReadS(s S)
}
```

Specifically, it does not appear to support passing a struct by value to a function.  (Passing an interface, or a pointer to the struct, is supported.)

Please update the docs to reflect this limitation.
Repository: TypeScript
Issue: Prioritise import suggestions from tsconfig alias over external dependencies
Labels: Suggestion,Awaiting More Feedback

I get the following list when auto-suggest kicks in:

![Screen Shot 2019-05-26 at 10 00 36 am](https://user-images.githubusercontent.com/9585787/58376827-80435480-7f9d-11e9-95c9-634dbfd6edef.png)

I always want to use the @shared alias I defined in my tsconfig file, and there appears to be no way to either omit the unwanted suggestions, or have my aliases be prioritised when auto-suggest/complete kicks in.
Repository: youtube-dl
Issue: Support multiple audio tracks / languages for southpark.de
Labels: request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.05.20. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar site feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a site feature request
- [x] I've verified that I'm running youtube-dl version **2019.05.20**
- [x] I've searched the bugtracker for similar site feature requests including closed ones


## Description

<!--
Provide an explanation of your site feature request in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->
**The Problem** is: southpark.de is offering its video content with two audio languages. First off english, as it is the original language of the series. Then in german as this is the country at which southpark.de is addressed to. When using the website to play a video, the language can be switched using a combination of javascript buttons which causes the wesite to reload and switch to the selected audio track.
 When using youtube-dl to download a video from southpark.de, there is no option (at least none that i could find) to select which audio tracks are downloaded - downloading with youtube-dl yields a video with just the local language audio track (in this case german).

**This could be fixed** by finding a way to download the english audio track.

**My proposed solution** would look this way: When downloading a video from southpark.de that is being offered in multiple languages, youtube-dl will output a video file with all available languages as seperate audio tracks embedded into it.

 Ideally, this should be done in a way so that it applies to all southpark sites for all countries, but this will sadly be impossible to test properly without proxies or similar since any southpark site always redirects to it's local site due to georestriction.
Repository: TypeScript
Issue: The Symbol interface of the compiler is undocumented
Labels: Docs

**TypeScript Version:**  master

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Symbol interface compiler

**Code**

https://github.com/microsoft/TypeScript/blob/15daf42b2c0bc4f06970c9e4688f1a93bff0f7a0/src/services/types.ts#L31

The ["Using the Compiler API" docs](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API) have examples which use Symbols, but they don't say what they are and neither do the API docs in the source.

It'd be incredibly helpful if the core compiler types were at least minimally documented, along with a few of the TypeChecker methods.

Context:
I'm trying to use the compiler API for linting and want to verify that an identifier references a particular declaration.
Repository: TypeScript
Issue: Handling AssemblyScript input files
Labels: Suggestion,Awaiting More Feedback

(Continuing from https://github.com/Microsoft/TypeScript/issues/10939)

I'd like to add another use case:

[AssemblyScript](https://github.com/AssemblyScript/assemblyscript). :)

It could be handy to have both `.ts` and `.as` files, to disambiguate the two.

For example, at the moment I have both `src/ts/` and `src/as/` folders to disambiguate the two.

It would also then be possible to have both `some-project/index.ts` and `some-project/index.as`, and which one is being imported in `import foo from 'some-project'` would depend on the file type.

The AssemblyScript guys are [currently discussing](https://github.com/AssemblyScript/assemblyscript/issues/448) how to make Node-style module resolution work, with the idea of an `asmain` field in package.json similar to `main` but for AS code, or defaulting to `assembly/index.ts` when there's no `asmain` field, because of ambiguity between AS and TS files.

Having an `assembly/` folder at the root of a project (IMO) doesn't follow the convention in the web/JS community of having a `src` folder for sources.

If not allowing custom extensions for this, would the TypeScript team rather add another official extension? Perhaps even official AS types into the mix for such files (`i32`, `i64`, `f32`, etc, instead of just `number`)?
Repository: opencv
Issue: shared:ERROR: If pthreads and memory growth are enabled, WASM_MEM_MAX must be set
Labels: category: build/install,category: javascript (js)

`/home/z/emsdk/emscripten/incoming/em++   -s WASM=1    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -pthread -Qunused-arguments -ffunction-sections -fdata-sections  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -O2  -DNDEBUG    -Wl,--gc-sections -O2   --memory-init-file 0 -s TOTAL_MEMORY=134217728 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s SINGLE_FILE=1 -s EXPORT_NAME="'cv'" -s DEMANGLE_SUPPORT=1 -s FORCE_FILESYSTEM=1 --use-preload-plugins --bind --post-js /home/z/opencv/modules/js/src/helpers.js  -Wno-missing-prototypes @CMakeFiles/opencv_js.dir/objects1.rsp  -o ../../bin/opencv_js.js @CMakeFiles/opencv_js.dir/linklibs.rsp
root:WARNING: USE_PTHREADS + ALLOW_MEMORY_GROWTH may run non-wasm code slowly, see https://github.com/WebAssembly/design/issues/1271
shared:ERROR: If pthreads and memory growth are enabled, WASM_MEM_MAX must be set
modules/js/CMakeFiles/opencv_js.dir/build.make:179: recipe for target 'bin/opencv_js.js' failed
make[3]: *** [bin/opencv_js.js] Error 1
make[3]: Leaving directory '/home/z/opencv/build_wasm'
CMakeFiles/Makefile2:1514: recipe for target 'modules/js/CMakeFiles/opencv_js.dir/all' failed
make[2]: *** [modules/js/CMakeFiles/opencv_js.dir/all] Error 2
make[2]: Leaving directory '/home/z/opencv/build_wasm'
CMakeFiles/Makefile2:1479: recipe for target 'modules/js/CMakeFiles/opencv.js.dir/rule' failed
make[1]: *** [modules/js/CMakeFiles/opencv.js.dir/rule] Error 2
make[1]: Leaving directory '/home/z/opencv/build_wasm'
Makefile:390: recipe for target 'opencv.js' failed
make: *** [opencv.js] Error 2
Traceback (most recent call last):
  File "./platforms/js/build_js.py", line 235, in <module>
    builder.build_opencvjs()
  File "./platforms/js/build_js.py", line 170, in build_opencvjs
    execute(["make", "-j", str(multiprocessing.cpu_count()), "opencv.js"])
  File "./platforms/js/build_js.py", line 23, in execute
    raise Fail("Child returned: %s" % retcode)
__main__.Fail: Child returned: 2
z@z:~/opencv$ 
`
Repository: rust
Issue: Incorrect type of stable std::os::raw pthread_t type on musl targets
Labels: T-libs-api,O-musl,C-bug

POSIX's `pthread_t` is defined in `sys/types.h` and is an opaque type that identifies a thread. 

On `glibc` it is a `c_ulong`, on `musl` it is a `*mut __thread_handle`, etc. 

However, libstd's `pthread_t` is a type alias to `libc::c_ulong`, which is incorrect on musl. AFAICT, fixing this would be a backwards incompatible change.
Repository: godot
Issue: Add warning/docs for .res/.tres for binary files
Labels: enhancement,documentation

We use the PckPacker in our project to add image resources at runtime, but they waste a lot of space when not compressed.

There should be a way to compress the .pck files made with PckPacker, like the .pck files made with the editor.
Repository: TypeScript
Issue: Inferring "this" from arrow function is {}
Labels: Suggestion,In Discussion

**TypeScript Version:**  Version 3.6.0-dev.20190601
**Search Terms:** This, Arrow, Functions, Infer, Inference, Empty, Object, Incorrect, Any

**Code**

```ts
type FunctionThisType<T extends (...args: any[]) => any> =
  T extends (this: infer R, ...args: any[]) => any ? R : any

let fn = () => {}
let value: FunctionThisType<typeof fn> = "wrong"
```

**Expected behavior:** 

```
error TS2322: Type '"wrong"' is not assignable to type 'typeof globalThis'.

Found 1 error.
```

**Actual behavior:**

```
No errors found.
```

**Playground Link:** [Playground](https://www.typescriptlang.org/play/index.html#src=type%20FunctionThisType%3CT%20extends%20(...args%3A%20any%5B%5D)%20%3D%3E%20any%3E%20%3D%0D%0A%20%20T%20extends%20(this%3A%20infer%20R%2C%20...args%3A%20any%5B%5D)%20%3D%3E%20any%20%3F%20R%20%3A%20any%0D%0A%0D%0Alet%20fn%20%3D%20()%20%3D%3E%20%7B%7D%0D%0Alet%20value%3A%20FunctionThisType%3Ctypeof%20fn%3E%20%3D%20%22wrong%22%0D%0A)

**Related Issues:** None found.
Repository: rust
Issue: Diagnostics: Consider computing the column number by counting Unicode (extended) grapheme clusters instead of Unicode scalar values
Labels: C-enhancement,A-diagnostics,A-Unicode,P-low,T-compiler,D-diagnostic-infra

```rust
fn main() {
    let _ = "μ̧"; let _ = ;
}
```

([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a38009a688ef75bfacec1cf2c2372bcf))

Actual Errors:

```
   Compiling playground v0.0.1 (/playground)
error: expected expression, found `;`
 --> src/main.rs:2:27
  |
2 |     let _ = "μ̧"; let _ = ;
  |                          ^ expected expression

error: aborting due to previous error

error: Could not compile `playground`.

To learn more, run the command again with --verbose.

```


Expected Errors:

```
   Compiling playground v0.0.1 (/playground)
error: expected expression, found `;`
 --> src/main.rs:2:26
  |
2 |     let _ = "μ̧"; let _ = ;
  |                          ^ expected expression

error: aborting due to previous error

error: Could not compile `playground`.

To learn more, run the command again with --verbose.

```

The change being the column being 26 instead of 27.  Putting `μ̧` (that is, `μ` and `̧`) should count as one character for the column number count.  If you copy `μ̧` into your browser's address bar you should see it act as one character.
Repository: vue-element-admin
Issue: 标签页取消transaction后热刷新页面空白
Labels: need repro :mag_right:

## Bug report（问题描述）

如题

#### Steps to reproduce（问题复现步骤）
1. 将`src/views/layout/components/AppMain.vue`中的`<transition name="fade" mode="out-in"><keep-alive :include="cachedViews"><router-view :key="key"/></keep-alive></transition>`修改为

```
<keep-alive :include="cachedViews"><router-view :key="key"/></keep-alive>
```

2. 对已经打开了tag的页面的vue源码进行修改, 并保存

3. 页面出现空白

#### Screenshot or Gif（截图或动态图）

![图片示例](http://cloud.zsys.online/emmm.gif)
Repository: neovim
Issue: signcolumn: auto: re-use same column for same type
Labels: enhancement,has:plan,core,column

With e.g. `:set signcolumn=auto:2` and two different plugins displaying signs, it would be nice if signs were trying to be kept in the same columns.

E.g.

```
AABB line1
AA   line2
  BB line3
AA   line4
  BB line5
```

Currently it would look like this:
```
AABB line1
AA   line2
BB   line3
AA   line4
BB   line5
```

This makes it harder to read with e.g. using [vim-gitgutter](https://github.com/airblade/vim-gitgutter) and [coveragepy.vim](https://github.com/alfredodeza/coveragepy.vim).

There have been patches in Vim already for "group"ing of signs, which could be used here, but often plugins will either re-use the same ID, or at least the same text/hl (although those might be several).
Repository: rust
Issue: cannot find crate
Labels: C-enhancement,A-diagnostics,T-compiler

Rust compiler:

rustup show
Default host: x86_64-unknown-linux-gnu

stable-x86_64-unknown-linux-gnu (default)
rustc 1.35.0 (3c235d560 2019-05-20)


Project: https://github.com/svenschmidt75/Rust, commit 78b9a8fd4740bbf8630cc0ade48346a5387f2075, authored 6/2/2019 @ 8:58 AM

File model.rs, line 139,
```
...
                    mb.a[0] = training_sample.input_activations.clone();
                    self.feedforward(mb);
                    self.backprop(mb, cost_function, known_classification);
                }
                let (dws, dbs) = self.calculate_derivatives(&mbs[..], lambda);
                self.apply_momentum(eta, rho, dws, dbs);
                self.update_network();
            }
...
```

Replace `eta` with `meta` and compile. The error refers to a missing crate which I found odd:
```
   Compiling ann v0.1.0 (/home/svenschmidt75/Develop/Rust/NeuralNetwork/lib/ann)
error[E0463]: can't find crate for `meta`
   --> lib/ann/src/ann/model.rs:139:37
    |
139 |                 self.apply_momentum(meta, rho, dws, dbs);
    |                                     ^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `ann`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `meta`
   --> lib/ann/src/ann/model.rs:139:37
    |
139 |                 self.apply_momentum(meta, rho, dws, dbs);
    |                                     ^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `ann`.

To learn more, run the command again with --verbose.

Process finished with exit code 101
```
Repository: go
Issue: x/pkgsite: render type aliases in a group
Labels: NeedsInvestigation,FeatureRequest,Tools,pkgsite

godoc renders each type alias in a dedicated `<h2>`. Please consider rendering all type aliases in one shared `<h2>` called _Type aliases_ analogously to how constants and variables are currently rendered. This way, a code refactoring that breaks up a large package by moving a class of type declarations into a dedicated package will reap the benefit of making the table of contents shorter and thus more navigable.
Repository: rust
Issue: E0391 (cycle detected): error message overly complicated, should be more similar to "let" example
Labels: C-enhancement,A-diagnostics,T-compiler,D-verbose

````rust
fn main() {
const A: i32 = 4;
const B: i32 = 5;
const C: i32 = B + C; // should be "+ A"
}
````

In this example "+C" should be "+A"  but the error message seems overly complicated to me:
````
Standard Error

   Compiling playground v0.0.1 (/playground)
error[E0391]: cycle detected when const checking if rvalue is promotable to static `main::C`
 --> src/main.rs:7:1
  |
7 | const C: i32 = B + C;
  | ^^^^^^^^^^^^^^^^^^^^^
  |
note: ...which requires checking which parts of `main::C` are promotable to static...
 --> src/main.rs:7:20
  |
7 | const C: i32 = B + C;
  |                    ^
  = note: ...which again requires const checking if rvalue is promotable to static `main::C`, completing the cycle
  = note: cycle used when running analysis passes on this crate
````

When I use `let` instead of `const`, the compiler correctly diagnoses the underlying problem and the error message is much clearer:
````rust
fn main() {
const A: i32 = 4;
const B: i32 = 5;
let C: i32 = B + C;
}
````
````
error[E0425]: cannot find value `C` in this scope
 --> src/main.rs:6:18
  |
6 | let C: i32 = B + C;
  |                  ^ help: a constant with a similar name exists: `A`

error: aborting due to previous error
````
Repository: pytorch
Issue: weight_norm is not supported in TorchScript
Labels: oncall: jit,triaged,jit-backlog

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
weight_norm(conv) will arise an error

  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\utils\weight_norm.py", line 97, in weight_norm
    WeightNorm.apply(module, name, dim)
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\utils\weight_norm.py", line 35, in apply
    del module._parameters[name]
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\jit\__init__.py", line 903, in __delitem__
    raise RuntimeError("cannot delete methods or parameters of a script module")
RuntimeError: cannot delete methods or parameters of a script module

## Environment
pytorch1.1.0, python3.7 on win10 (CPU)


cc @suo
Repository: opencv
Issue: MatOfPoint3f fromArray ArrayIndexOutOfBoundsException: length=12; index=24
Labels: bug,priority: low,category: java bindings,needs reproducer,needs investigation

##### System information (version)
- OpenCV => 3.4.2
- Operating System / Platform => Android (Java) / bug occuring in multiple Android versions

##### Detailed description
App crashing and get following errors when using OpenCV on a specific device (Android 5.1.1, Api22  armeabi-v7a)

`Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=24    
        at org.opencv.core.MatOfPoint3f.fromArray(MatOfPoint3f.java:51)
        at org.opencv.core.MatOfPoint3f.<init>(MatOfPoint3f.java:35)`

This is the method in the MatOfPoint3f.java 
```java
public void fromArray(Point3...a) {
    if(a==null || a.length==0)  
        return;  
    int num = a.length;  
    alloc(num);  
    float buff[] = new float[num * _channels];  
    for(int i=0; i<num; i++) {  
        Point3 p = a[i];  
        buff[_channels*i+0] = (float) p.x; <-- crash here  
        buff[_channels*i+1] = (float) p.y;  
        buff[_channels*i+2] = (float) p.z;  
    }  
    put(0, 0, buff); //TODO: check ret val!  
}
```

##### Steps to reproduce
Crash is happening as soon as I call the fromArray method. Here is my implementation 

```java
float lSize = 100;
m3FPoints = new MatOfPoint3f(new Point3(-lSize, lSize, 0), new Point3(lSize, lSize, 0));
```
Repository: go
Issue: os/exec: export thread id come from CreateProcess in windows
Labels: OS-Windows,NeedsInvestigation,FeatureRequest

This is feature request.

On windows, we cannot get thread id of spawned process by os/exec package without using [Tool Help Library](https://docs.microsoft.com/en-us/windows/desktop/toolhelp/tool-help-library).

But I want to use thread id returned from CreateProcess api.
Because I'd like to use [Job Objects](https://docs.microsoft.com/en-us/windows/desktop/procthread/job-objects) in our go application.
In our application, we need to create process with [CREATE_SUSPENDED](https://docs.microsoft.com/en-us/windows/desktop/ProcThread/process-creation-flags#CREATE_SUSPENDED) flag to assign job object before process starts.
But without thread id, it is difficult to get thread handle passed to [ResumeThread](https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-resumethread) for created process.

Can I add a filed `tid` to syscall.SysProcAttr, so that I can know thread id of created process?
Repository: pytorch
Issue: [caffe2] check Range Operator inputs with bug
Labels: caffe2

## 🐛 Bug
caffe2 process RangeOperator would check input dimension first, There is a bug
```
diff --git a/caffe2/operators/utility_ops.h b/caffe2/operators/utility_ops.h
index 8dd1c45..04d3726 100644
--- a/caffe2/operators/utility_ops.h
+++ b/caffe2/operators/utility_ops.h
@@ -1376,7 +1376,7 @@ class RangeOp : public Operator<Context> {
     T step = 1;

     for (int i = 0; i < InputSize(); ++i) {
-      CAFFE_ENFORCE_EQ(Input(0).dim(), 0, "All inputs must be scalar.");
+      CAFFE_ENFORCE_EQ(Input(i).dim(), 0, "All inputs must be scalar.");
     }

     switch (InputSize()) {
```



## Environment


 - PyTorch Version (1.2)
Repository: rust
Issue: Value mangling
Labels: C-enhancement,T-compiler,A-const-generics,requires-nightly,F-adt_const_params

For const generics, we will eventually allow arbitrary `structural_match` values as generic arguments. Thus, we need to figure out how to mangle them. At the moment, only unsigned integers are supported.

`min_const_generics`
- [x] Unsigned integers
- [x] `bool` (https://github.com/rust-lang/rust/pull/77452)
- [x] Signed integers
- [x] `char`

`adt_const_params`
- [ ] Tuples and arrays
- [ ] Complex data types

cc @eddyb @yodaldevoid