sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: incr.comp.: Investigate making the result cache updateable in-place.
Labels: C-enhancement,I-compiletime,T-compiler,A-incr-comp

Right now the compiler will always load and deserialize all query result cache entries that are still valid and then serialize and write them to back to disk again, similar to how a copying garbage collector works. The main reason for implementing the cache this way is that it is very simple.

There might be value in making the cache file updateable in-place in order to save serialization time for unchanged entries. First though, we need some profiling evidence that this would actually save a noticeable amount of time.
Repository: pytorch
Issue: [feature request] warnings for functions with unspecified dim arguments
Labels: triaged,enhancement

Hi, 

I noticed that when calling `torch.sort()` without specifying the `dim` argument results in undesired behavior when called on a tensor of dimension nx1. If `dim` is not given in `torch.sort()`, the last dimension of the input is chosen. This is documented but not desirable when the last dimension is 1. A short example for this is the following: 

```
import torch
a = torch.randn(10, 1)
print(a)
a_s, _ = torch.sort(a)
print(a_s)
```
yields the same (unsorted) tensor for both `print(a)` and `print(a_s)`
```
 1.2201
 0.0733
 1.6214
 0.6704
 0.8339
-1.1773
-0.4946
 0.4496
 0.7240
 1.2748
[torch.FloatTensor of size 10x1]


 1.2201
 0.0733
 1.6214
 0.6704
 0.8339
-1.1773
-0.4946
 0.4496
 0.7240
 1.2748
[torch.FloatTensor of size 10x1]
```

We (that is me, @Kaixhin and @bastings) would suggest to issue a warning in such a case to improve usability. 

Cheers, 
Christina
Repository: flutter
Issue: Draw repeat patterns or images with canvas with dart.ui
Labels: engine,d: api docs,a: images,P2,team-engine,triaged-engine

Please add support for repeating a pattern in a shape, similar to pattern fill support for the HTML canvas.

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern

What I would like to do is draw a small pattern using the existing lines, rects, circles, and other shapes. I would then like to use this pattern as the fill for drawing other elements on the canvas, instead of just a color.

i.e., currently I can draw a rectangle with a solid fill color like so:

```dart
  void drawRect(Rectangle<num> bounds, Color fill) {
    final paint = new Paint();
    paint.color = new Color.fromARGB(fill.a, fill.r, fill.g, fill.b);
    paint.style = PaintingStyle.fill;

    canvas.drawRect(bounds, paint);
  }
```

Instead, I would like to have something like a PantingStyle.repeat, where I can set another canvas element (or similar construct) as the source for the pattern to repeat.
Repository: rust
Issue: Error when canonicalizing path on RAM drive
Labels: O-windows,I-ICE,T-compiler,A-incr-comp,C-bug

```
R:\rust-test>rustc --version --verbose
warning: could not canonicalize path: 'R:\rust-test'
warning: could not canonicalize path: 'R:\rust-test'
warning: could not canonicalize path: 'R:\'
rustc 1.24.0 (4d90ac38c 2018-02-12)
binary: rustc
commit-hash: 4d90ac38c0b61bb69470b61ea2cccea0df48d9e5
commit-date: 2018-02-12
host: x86_64-pc-windows-msvc
release: 1.24.0
LLVM version: 4.0
```

I created a new project using 'cargo new rust-test --bin'
Imported project to Intellij and clicked run. (without Intellij fails as well, just less text)

Console:

```
C:/Users/<username>/.cargo/bin/cargo.exe run --package rust-test --bin rust-test
warning: could not canonicalize path: 'R:\rust-test'
warning: could not canonicalize path: 'R:\rust-test'
warning: could not canonicalize path: 'R:\'
   Compiling rust-test v0.1.0 (file:///R:/rust-test)
error: incremental compilation: error canonicalizing path `R:\rust-test\target\debug\incremental\rust_test-1apbc64jn2fjp`: Niepoprawna funkcja. (os error 1)

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.24.0 (4d90ac38c 2018-02-12) running on x86_64-pc-windows-msvc

note: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'src\librustc\session\mod.rs:665: Trying to get session directory from IncrCompSession `NotInitialized`', src\librustc\session\mod.rs:1141:26
stack backtrace:
   0: <std::sync::condvar::WaitTimeoutResult as core::fmt::Debug>::fmt
   1: <std::time::SystemTimeError as core::fmt::Display>::fmt
   2: std::panicking::Location::column
   3: std::panicking::Location::column
   4: std::panicking::rust_panic_with_hook
   5: <alloc::vec::Vec<(alloc::string::String, u64)> as rustc::session::config::dep_tracking::DepTrackingHash>::hash
   6: rustc::ty::context::tls::span_debug
   7: rustc::session::bug_fmt
   8: rustc::session::bug_fmt
   9: rustc::session::Session::incr_comp_session_dir
  10: rustc_incremental::persist::load::load_dep_graph
  11: rustc_driver::driver::compile_input
  12: rustc_driver::run_compiler
  13: rustc_driver::profile::dump
  14: _rust_maybe_catch_panic
  15: <rustc_driver::pretty::UserIdentifiedItem as core::fmt::Debug>::fmt
  16: <std::sync::condvar::Condvar as core::default::Default>::default
  17: std::sys::windows::thread::Thread::new
  18: BaseThreadInitThunk

error: Could not compile `rust-test`.

To learn more, run the command again with --verbose.

Process finished with exit code 101
```

'Niepoprawna funkcja.' means 'invalid function'

R is an in-memory drive created using ImDisk program.
cargo new ... cargo run works fine on external ssd drive.
So in-memory drive is probably the cause. Reporting because console output says you will appreciate it.
Repository: go
Issue: x/build/cmd/gopherbot: changes are not seen for refs/meta/config branch
Labels: Builders,NeedsInvestigation

This is due to a Gerrit config problem. gobot can’t see a change (https://go-review.googlesource.com/c/go/+/94016) and so it keeps erroring out and causing a 30s backoff.

Is there a reason why we hide our refs/meta/config from the public?

/cc @bradfitz
Repository: TypeScript
Issue: Allow trailing commas in type arguments
Labels: Suggestion,Awaiting More Feedback

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  2.7.1

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**  trailing comma template literal types generic

**Code**

```ts
class FooClass<
	A,
	B,
	C,
> {
	a: A;
	b: B;
	c: C;
}

const instance = new FooClass<
	boolean,
	number,
	string, // [ts] Trailing comma not allowed.
	>();
```

**Expected behavior:**

No errors as of #16152's resolution.

**Actual behavior:**

`Trailing comma not allowed.`

**Playground Link:** http://www.typescriptlang.org/play/#src=class%20FooClass%3C%0D%0A%09A%2C%0D%0A%09B%2C%0D%0A%09C%2C%0D%0A%3E%20%7B%0D%0A%09a%3A%20A%3B%0D%0A%09b%3A%20B%3B%0D%0A%09c%3A%20C%3B%0D%0A%7D%0D%0A%0D%0Aconst%20instance%20%3D%20new%20FooClass%3C%0D%0A%09boolean%2C%0D%0A%09number%2C%0D%0A%09string%2C%20%2F%2F%20%5Bts%5D%20Trailing%20comma%20not%20allowed.%0D%0A%09%3E()%3B

**Related Issues:**

#16152. @samal84 mentioned something like this but I couldn't parse what they meant without a code sample (is this it?). ~I'll take~ I can, if this is approved, take a stab at removing this error too.
Repository: terminal
Issue: GetKeyboardLayout is not updated during a console session
Labels: Product-Conhost,Area-Server,Issue-Bug

_From @matial on August 13, 2017 21:0_

* Your Windows build number:  version 10.0.14393

* Calling GetKeyboardLayout(0) periodically within a console application returns the handle of the keyboard layout active when starting the console. If the keyboard layout is changed while the console app is running, subsequent calls to GetKeyboardLayout do not reflect the new active layout.

* What's wrong / what should be happening instead: GetKeyboardLayout should return the handle of the last activated keyboard layout.


_Copied from original issue: Microsoft/WSL#2418_
Repository: go
Issue: net: better DNS transport for builtin DNS stub resolver
Labels: NeedsInvestigation

Split from #18588. The existing DNS stub resolver uses per-query DNS transport that would cause socket descriptor exhaustion.  It might be better to have some mechanism for DNS transport to reduce the use of socket descriptors. For UDP-based DNS transport, it might be the use of shared UDP endpoints. For TCP-based DNS transport, it might be the use of connection pooling.
Repository: TypeScript
Issue: narrowing to "never" by "if" statement does not exclude "undefined" return type
Labels: Suggestion,In Discussion

**TypeScript Version:**  2.7.1

**Search Terms:**  narrowing types never switch case if undefined strictNullChecks

**Code**

```ts
// Build this code with "--strictNullChecks" option.

function assertNever(x: never): never {
    throw new Error("not reached");
}

enum A {
    Foo, Bar
}

// There are no errors on this function.
function good(a: A): number {
    switch (a) {
        case A.Foo: return 0;
        case A.Bar: return 1;
    }
}

// This function causes the following error though "a" is "never" at the end of the function.
// error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
function bad(a: A): number {
    if (a === A.Foo) return 0;
    if (a === A.Bar) return 1;
}

// No error if explicit return of "never" is added.
function ok(a: A): number {
    if (a === A.Foo) return 0;
    if (a === A.Bar) return 1;
    return assertNever(a);
}
```

**Expected behavior:** The `bad()` function should not cause error so that `if` statement works like `switch`.

**Actual behavior:** As commented in the code, only `bad()` function causes an error.

**Playground Link:** (please check "strictNullChecks" option.)

http://www.typescriptlang.org/play/#src=function%20assertNever(x%3A%20never)%3A%20never%20%7B%0D%0A%20%20%20%20throw%20new%20Error(%22unexpected%22)%3B%0D%0A%7D%0D%0A%0D%0Aenum%20A%20%7B%0D%0A%20%20%20%20Foo%2C%20Bar%0D%0A%7D%0D%0A%0D%0Afunction%20good(a%3A%20A)%3A%20number%20%7B%0D%0A%20%20%20%20switch%20(a)%20%7B%0D%0A%20%20%20%20%20%20%20%20case%20A.Foo%3A%20return%200%3B%0D%0A%20%20%20%20%20%20%20%20case%20A.Bar%3A%20return%201%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0A%0D%0Afunction%20bad(a%3A%20A)%3A%20number%20%7B%0D%0A%20%20%20%20if%20(a%20%3D%3D%3D%20A.Foo)%20return%200%3B%0D%0A%20%20%20%20if%20(a%20%3D%3D%3D%20A.Bar)%20return%201%3B%0D%0A%7D%0D%0A%0D%0Afunction%20ok(a%3A%20A)%3A%20number%20%7B%0D%0A%20%20%20%20if%20(a%20%3D%3D%3D%20A.Foo)%20return%200%3B%0D%0A%20%20%20%20if%20(a%20%3D%3D%3D%20A.Bar)%20return%201%3B%0D%0A%20%20%20%20return%20assertNever(a)%3B%0D%0A%7D

**Related Issues:**
Repository: rust
Issue: Option::unwrap, panic!, print!, maybe others induce string relocations
Labels: A-LLVM,C-enhancement,A-codegen,T-compiler

Consider the following code:
```rust
pub fn foo(a: Option<usize>) -> usize {
    a.unwrap()
}
```

This generates the following:
```asm
example::foo:
  cmp qword ptr [rdi], 1
  jne .LBB0_1
  mov rax, qword ptr [rdi + 8]
  ret
.LBB0_1:
  push rbp
  mov rbp, rsp
  lea rdi, [rip + .Lref.2]
  call core::panicking::panic@PLT
  ud2

str.0:
  .ascii "called `Option::unwrap()` on a `None` value"

str.1:
  .ascii "/checkout/src/libcore/option.rs"

.Lref.2:
  .quad str.0
  .quad 43
  .quad str.1
  .quad 31
  .long 335
  .long 21
```

The quads under `.Lref.2` correspond to (pointer, length) pairs for both strings emitted by unwrap(). The way they are stored looks related to the call convention for `core::panicking::panic`, which looks like it just wants a pointer to a buffer containing 2 &str and 2 integers. The problem with this is that each of those pointers need relocations in the final position independent binary. And in ELF, those are large: each relocation is 2 (on 32-bits) or 3 (on 64-bits) words, so 24 bytes on 64-bits. Per string.

The same kind of thing happens with `panic!`:
```rust
pub fn foo() {
    panic!("foo")
}
```

I'll skip the assembly for the code itself, but the data looks like:
```asm
str.1:
  .ascii "/tmp/compiler-explorer-compiler118116-63-xzcrje.hzu9d/example.rs"

.Lref.2:
  .quad str.1
  .quad 64
  .long 2
  .long 5

str.4:
  .ascii "foo"
```

Do note that there is no reference to `str.4`, the corresponding (pointer, length) is actually created from code in that case:
```asm
  lea rcx, [rip + str.4]
  mov qword ptr [rax], rcx
  mov qword ptr [rax + 8], 3
```

And the same again for `print!`:
```rust
pub fn foo() {
    print!("foo")
}
```

generating this data:
```asm
str.0:
  .ascii "foo"

.Lref.1:
  .quad str.0
  .quad 3
```

A counter example is `Option::expect`:
```rust
pub fn foo(a: Option<usize>) -> usize {
    a.expect("bar")
}
```
which generates:
```asm
example::foo:
  cmp qword ptr [rdi], 1
  jne .LBB0_1
  mov rax, qword ptr [rdi + 8]
  ret
.LBB0_1:
  push rbp
  mov rbp, rsp
  lea rdi, [rip + str.0]
  mov esi, 3
  call core::option::expect_failed@PLT
  ud2

str.0:
  .ascii "bar"
```
Repository: rust
Issue: wasm32_final_outputs test fails when Cargo 0.25 is compiled from rustc 1.24.0 source tarball
Labels: A-testsuite,T-compiler,O-wasm,C-bug

When running `cargo test` from the src/tools/cargo directory in the rustc 1.24.0 source tarball, the `wasm32_final_outputs` test fails. It seems that the test is finding the rustc Cargo.toml instead of the cargo Cargo.toml and it fails because the test directory is not part of the workspace. I filed an issue with Cargo ([#4755](https://github.com/rust-lang/cargo/issues/4755)) and was instructed to file the issue against rust instead.

```
test wasm32_final_outputs ... FAILED
test transitive_dependencies_not_available ... ok
test verbose_release_build_deps ... ok
test staticlib_rlib_and_bin ... ok
test lto_build ... ok
test same_metadata_different_directory ... ok

failures:

---- wasm32_final_outputs stdout ----
	thread 'wasm32_final_outputs' panicked at 'Can't create workspace: ErrorMessage { msg: "current package believes it\'s in a workspace when it\'s not:\ncurrent:   /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/target/cit/t120/foo/Cargo.toml\nworkspace: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml\n\nthis may be fixable by adding `target/cit/t120/foo` to the `workspace.members` array of the manifest located at: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml" }', src/libcore/result.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    wasm32_final_outputs

test result: FAILED. 127 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test build'
```
Repository: pytorch
Issue: Unsafe out= keyword argument with tensors sharing storage
Labels: triaged,module: numpy,module: safe resize,module: correctness (silent)

The current `out=` behavior is unsafe. For example, if you do `a_3x3_tensor.sum(dim=1, out=y[1, 1:10])` it will try to `THTensor_(resize)` the view and in turn write to incorrect locations of `y`. 

Instead, if `out` is sharing storage, we should accept if only it 1) has correct size and 2) the range is not overlapping with the source tensors.

cc @mruberry @rgommers @zou3519 @soumith
Repository: vscode
Issue: Git - Support prompting for GPG password
Labels: help wanted,feature-request,git

- VSCode Version: 1.19.3
- OS Version: Windows 10

Hey, Git don't work in Visual Studio Code, when i have gpg signing activated.

Steps to reproduce: https://help.github.com/articles/signing-commits-with-gpg/

Does this issue occur when all extensions are disabled?: Yes
Repository: godot
Issue: Duplicated Animation Player loses connection to saved animations
Labels: bug,topic:editor,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if non-official. -->
3.0

**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
A  duplicated (Ctrl + D) Animation Player loses connection to any saved animations contained in it. 

**Steps to reproduce:**
Create a 2D node, add a Sprite and Animation Player as child nodes. Create an animation and save it to disk. Duplicate the 2D node and its children. Now change the animation in the original 2D node and save it. The corresponding animation in the duplicate 2D node Animation Player will not have updated since the connection to the saved animation is now lost. 

**Minimal reproduction project:**
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: youtube-dl
Issue: Requesting support for prepaway.com
Labels: account-needed

### 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 *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Playlist: https://www.prepaway.com/tutorials/cisco-300-210-sitcs-ccnp-security.html#curriculum
Repository: youtube-dl
Issue: Request support for www.cybrary.it
Labels: account-needed

### 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 *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Playlist: https://www.cybrary.it/course/ethical-hacking/
Repository: vscode
Issue: [folding] Code folding does not respect multi-cursor
Labels: feature-request,editor-folding

<!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode. -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.20.1
- OS Version: Windows 10

Steps to Reproduce:

1. Open a new document with the following css:  
```
.selector{
    min-width: 40px;
}

.selector.a{
    width: 468px;
    height: 60 px;
}

.selector.b{
    width: 728px;
    height: 90 px;
}

.selector.c{
    width: 160px;
    height: 600 px;
}
```

2. Highlight any occurrence of `.selector` and multiselect all occurrences with `Ctrl + D`.
3. Move all cursors to the beginning of their respective lines with `Home`
4. Attempt to execute a code fold with `Ctrl + Shift + [`

Expected Behavior:
All selectors are folded down to 
```
.selector{…}

.selector.a{…}

.selector.b{…}

.selector.c{…}
```

Actual Behavior:
Only the initially selected selector is folded. All others remain expanded.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: go
Issue: net: don't keep reading from UDP resolver after truncated packet
Labels: NeedsInvestigation

When the `host` or `dig` programs see a malformed packet from a resolver when using UDP, they fall back to using TCP.  The net package resolver does not do this; it simply ignores the malformed packet (in `(*dnsPacketConn).dnsRoundTrip` in net/dnsclient_unix.go).  This was done for #13281.  I suggest that we do the same.

This is showing up right now for me when I run `go test -test.run=TestLookupLongTXT net`.  I see this:

```
--- FAIL: TestLookupLongTXT (10.00s)
	lookup_test.go:334: lookup golang.rsc.io on 127.0.0.1:53: read udp 127.0.0.1:39779->127.0.0.1:53: i/o timeout
FAIL
FAIL	net	10.023s
```

If I run `dig -t txt golang.rsc.io` the output starts with

```
;; Warning: Message parser reports malformed message packet.
;; Truncated, retrying in TCP mode.
```

I suggest that we keep the current behavior for the `!resp.IsResponseTo(query)` case but change the behavior for an `Unpack` failure to drop right back to TCP.

CC @mdempsky
Repository: youtube-dl
Issue: Can't extract Facebook videos
Labels: cant-reproduce

[debug] Command-line args: [u'--verbose', u'https://www.facebook.com/padraocarvalheira/videos/1607606815918150/', u'--no-check-certificate']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-109-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[facebook] 1607606815918150: Downloading webpage
ERROR: Unable to download webpage: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Repository: tensorflow
Issue: Sample for report_tensor_allocations_upon_oom and RunOptions
Labels: type:docs-feature

This is a feature request.

Please add some example to the docs describing how to use report_tensor_allocations_upon_oom and other options of RunOptions

All I could find is this file:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/profiler/model_analyzer_test.py

But it is not obvious. For example, it contains:

    from tensorflow.core.protobuf import config_pb2

and then

    with session.Session() as sess:
        sess.run(c, options=config_pb2.RunOptions(
            report_tensor_allocations_upon_oom=True))

And more questions arise like: "What is config_pb2?" etc.

Thanks.
Repository: kubernetes
Issue: Validation on update and delete
Labels: sig/api-machinery,lifecycle/frozen

As it stands today, changes to validation logic can break the API if they tighten the requirements for an object.  The general case for this is:

1. Create object `X`
2. Upgrade to new server version
3. Try to update object `X` (add a label for example)
4. The update fails because of validation errors

Specifically, an object already stored within the API is considered invalid.

Another similar issue can occur on a delete which requires an update (i.e. a finalizer needs to be removed).  Since the object cannot be updated in-place, it cannot be deleted without first "fixing" it to match the current validation requirements.

This has the potential to break controllers or any autonomous process.  It makes changes to validation hard to review because you have to understand how preexisting objects will behave under the new validation.  In openshift, this constantly breaks the storage migration process which does no-op updates to all objects in the API.

A possible fix for the no-op update case would be to _not_ run validation when the input and output objects are exactly the same.

For the more complex update cases and the delete case, we could do something similar to `IsOnlyMutatingGCFields` to determine if validation can be safely skipped.

@kubernetes/sig-api-machinery-misc
Repository: vscode
Issue: Expose git diff functions outside of overflow menu
Labels: feature-request,ux

![screen shot 2018-02-16 at 2 00 08 pm](https://user-images.githubusercontent.com/156888/36331197-b6a5c006-1321-11e8-9c89-7cc24560c82f.png)

These commands like revert selected ranges etc are pretty commonly useful commands. Would make sense to extract them into buttons to the left of the overflow menu.

Consider git tools like SourceTree

![screen shot 2018-02-16 at 2 01 23 pm](https://user-images.githubusercontent.com/156888/36331252-ed167630-1321-11e8-8b62-7449e69d3d20.png)