sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue:  [Product-Conhost] Scrollbar issue using SetConsoleWindowInfo()
Labels: Product-Conhost,Area-Server,Issue-Bug,Priority-3

While using SetConsoleWindowInfo() function of console API to scroll console window, when console window is opened in full screen i.e. maximum window mode - window scrolls but the scroll bar doesn't update, it kind of freezes. 

Whereas, using same function in normal window mode (not full screen) everything works fine.

I have tested this in both 'Wrap text output on resize mode' on and off.

Try debugging this code for reference - https://docs.microsoft.com/en-us/windows/console/scrolling-a-screen-buffer-s-window

/cc @miniksa 
<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.

**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible.

-->

# Environment

```none
Windows build number: Microsoft Windows [Version 10.0.18363.900]
```
Repository: rust
Issue: bug: Inproper dead code warning
Labels: C-enhancement,A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:
main.rs:
```rust
mod lib;

fn main() {
    let mut v = 79;
    lib::double2(&mut v);
    println!("Hello, world! {}", v);
}
```
lib.rs:
```rust
pub(crate)fn double2(v: &mut i32){
    *v = *v * 2;
}
```
Cargo.toml
```toml
[package]
name = "tmp"
version = "0.1.0"
authors = ["AngelicosPhosphoros <xuzin.timur@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
```

I expected to see this happen: Compile without warnings.

Instead, this happened: Dead code warning for lib.rs function `double`

```
cargo build
   Compiling tmp v0.1.0 (E:\Programs\Rust\tmp\tmp)
warning: function is never used: `double2`
 --> src\lib.rs:2:14
  |
2 | pub(crate)fn double2(v: &mut i32){
  |              ^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

    Finished dev [unoptimized + debuginfo] target(s) in 1.20s
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.44.1 (c7087fe00 2020-06-17)
binary: rustc
commit-hash: c7087fe00d2ba919df1d813c040a5d47e43b0fe7
commit-date: 2020-06-17
host: x86_64-pc-windows-msvc
release: 1.44.1
LLVM version: 9.0
```
Repository: opencv
Issue: DNN OPENCL is not working on AMD GPU
Labels: category: ocl,category: dnn

I want to use GPU as DNN backend to save CPU power. It works for Intel GPU. But there is problem on AMD GPU. The following are some log.

[ INFO:0] global D:\work\opencv\opencv\modules\core\src\ocl.cpp (891) cv::ocl::haveOpenCL Initialize OpenCL runtime...

OpenCV(ocl4dnn): consider to specify kernel configuration cache directory via OPENCV_OCL4DNN_CONFIG_PATH parameter.

[ INFO:0] global D:\work\opencv\opencv\modules\core\src\ocl.cpp (433) cv::ocl::OpenCLBinaryCacheConfigurator::OpenCLBinaryCacheConfigurator Successfully initialized OpenCL cache directory: C:\Users\wangq\AppData\Local\Temp\opencv\4.3\opencl_cache\

[ INFO:0] global D:\work\opencv\opencv\modules\core\src\ocl.cpp (457) cv::ocl::OpenCLBinaryCacheConfigurator::prepareCacheDirectoryForContext Preparing OpenCL cache configuration for context: Advanced_Micro_Devices__Inc_--Baffin--2906_10

OpenCL program build log: dnn/dummy

Status -66: CL_INVALID_COMPILER_OPTIONS

-cl-no-subgroup-ifp -D AMD_DEVICE
Repository: material-ui
Issue: [Popover] Height and width animations are not working as expected due to top and left properties
Labels: bug 🐛,component: Popover

<!-- Provide a general summary of the issue in the Title above -->
Popover always positions itself using top and left properties. But if we change the height or width of the content, popover always grow vertically downwards in case of height or towards the right in case of width. 
<!--
  Thank you very much for contributing to Material-UI by creating an issue! ❤️
  To avoid duplicate issues we ask you to check off the following list.
-->

<!-- Checked checkbox should look like this: [x] -->

- [ *] The issue is present in the latest release.
- [ *] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

## Current Behavior 😯

<!-- Describe what happens instead of the expected behavior. -->

## Expected Behavior 🤔
We should be able to control the properties using which popover should position itself. Depending on the usecase, user should be able to choose a combination of top/bottom and right/left.
<!-- Describe what should happen. -->

## Steps to Reproduce 🕹
You can see the issue here.
https://codesandbox.io/s/twilight-architecture-dqn2n?file=/src/App.js
<!--
  Provide a link to a live example (you can use codesandbox.io) and an unambiguous set of steps to reproduce this bug.
  Include code to reproduce, if relevant (which it most likely is).

  You should use the official codesandbox template as a starting point: https://material-ui.com/r/issue-template

  If you have an issue concerning TypeScript please start from this TypeScript playground: https://material-ui.com/r/ts-issue-template

  Issues without some form of live example have a longer response time.
-->

Steps:

1. Click on the Open Popover button
2. Click on expand

The popover grows downwards covering the anchor element. And repositions itself when the Shrink button is clicked.

We can use a prop to supply what properties the popover should use. I would be happy to raise a PR for this.

## Context 🔦

<!--
  What are you trying to accomplish? How has this issue affected you?
  Providing context helps us come up with a solution that is most useful in the real world.
-->

## Your Environment 🌎

<!--
  Include as many relevant details about the environment with which you experienced the bug.
  If you encounter issues with typescript please include version and tsconfig.
-->

| Tech        | Version |
| ----------- | ------- |
| Material-UI | v4.10.2  |
| React       |         |
| Browser     |         |
| TypeScript  |         |
| etc.        |         |
Repository: vscode
Issue: API for custom editors handling some menu actions
Labels: feature-request,api,custom-editors

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Considering a custom editor that does not necessarily deal with text, 
it'd improve the user experience if we could have the ability to provide a customized action when menu items are triggered, 
such as `Edit->Find` and `Selection->Select All`. 

Please also consider adding to this API the ability to handle cut/copy/paste. Although we could use events such as the [copy event](https://developer.mozilla.org/en-US/docs/Web/API/Element/copy_event) for detecting this operation, a unified API for menu items relevant to custom editors seems more appropriate.

/cc @mjbvz
Repository: terminal
Issue: Figure out how to handle drag-drop in an elevated session
Labels: Help Wanted,Issue-Bug,Area-UserInterface,Product-Terminal,Issue-Task,Priority-2,External-Blocked-WinUI3

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.

**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible.

-->

# Environment

```none
Windows build number: 19041
Windows Terminal version: 1.0.1401.0
```

# Steps to reproduce

* Open Windows Terminal
* Open a second tab (the shell does not matter)
* Try to drag any tab

# Expected behavior

Tabs are attached to the mouse cursor and can be dragged to the desired location.

# Actual behavior

Nothing happens
![EPSXa3QONG](https://user-images.githubusercontent.com/6125226/85620898-b6517d00-b664-11ea-9dff-cc5391969e26.gif)

I can only reproduce this issue on my work PC. My private PC works just fine. They use the exact same settings file. Also restarting the computer or reinstalling WT does not help.
Repository: flutter
Issue: Allow configuring package path in re-entrant build rules
Labels: c: new feature,tool,a: quality,P2,team-tool,triaged-tool

There isn't really a use for this right now, but we should allow configuring --packages for all of the assemble rules via an input. Currently the globalPackagesPath is used, which is always .packages on a re-entrant run.
Repository: flutter
Issue: Huge untracked gap in timeline for E2EWidgetsFlutterBinding
Labels: a: tests,framework,d: api docs,f: integration_test,P3,team-framework,triaged-framework

I'm verifying the overhead of e2e and WidgetTester and find a weird timeline scheduling: 

With e2e binding, the timeline looks like: 
<img width="1508" alt="e2etimeline" src="https://user-images.githubusercontent.com/11715538/85623547-92774280-b636-11ea-8223-3dcc94420a74.png">

while normally it looks like (profile mode): 
<img width="1495" alt="profiletimeline" src="https://user-images.githubusercontent.com/11715538/85623545-92774280-b636-11ea-859f-a0fe22908cab.png">

and even debug mode is faster than this:
<img width="1498" alt="debugtimeline" src="https://user-images.githubusercontent.com/11715538/85624962-b8054b80-b638-11ea-8e49-a43aa5a282bb.png">

where there's a huge gap with no timeline event tracked. The json file for the above timeline graphs is here:
https://drive.google.com/drive/folders/13yhs4ebggOi8tk4WOk7Kxdd3RPaM2UDR?usp=sharing 

The above can be reproduced by: 
A minimal demo here: https://github.com/CareF/timeline_scheduling 
The profile result is given by running 
```
flutter run --start-paused --profile
```
or
```
flutter run -t test/runapp_e2e.dart --start-paused --profile
```
press `v` to open `DevTools`; and copy URL and open `Observatory` -> `debugger` -> press `c` to continue. 

The above result is tested on a Pixel 4.
Repository: flutter
Issue: HttpRequest.getString() throws ProgressEvent instead of Error or Exception (dart:html)
Labels: framework,c: API break,dependency: dart,platform-web,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-web,triaged-web

**dart:html**

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1.  Handling HttpRequest.getString() on a non-existent URL with try/catch or then/catchError.

**Expected results:** <!-- what did you want to see? -->
Will return the Error or Exception if there's an error with the URL or the file is not found.

**Actual results:** <!-- what did you see? -->
Returns an instance of ProgressEvent instead of Error or Exception.

**Workaround**
I could check if the error is an instance of ProgressEvent, and then read the currentTarget (reference to a XmlHttpRequest instance) and then the responseText or statusText or status properties to retrieve the status code, but is not intuitive or practical. Only Errors or Exception should be thrown, not instances of Event or other classes. Am I missing something?

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```

</details>
Repository: flutter
Issue: Make it easier to upload Android native debug symbols for release builds
Labels: platform-android,tool,engine,c: proposal,a: build,a: release,P1,team-android,triaged-android,:hourglass_flowing_sand:

When i want to release a new flutter app bundle to the play store. I get this error: 
"This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug."
I can't find any way to fix this. I'm new with flutter and releasing app's and getting a bit desperate... 
Any help would be fantastic.

![Aantekening 2020-06-24 224339](https://user-images.githubusercontent.com/67393064/85625730-30393480-b66c-11ea-90e3-e7c5fd0ac287.png)
Repository: go
Issue: go/build: Default does not honor `go env -w GOPATH`
Labels: NeedsInvestigation

`go/build` has no logic for reading the `GOENV` file, so it will ignore any `GOPATH` setting there.
https://github.com/golang/go/blob/7eb5941b95a588a23f18fa4c22fe42ff0119c311/src/go/build/build.go#L275-L292
Repository: flutter
Issue: A11y semantics for some Material Chips should be "checkable"
Labels: framework,f: material design,a: accessibility,customer: money (g3),P2,team-design,triaged-design

Issue #58010 pointed out that `InputChip` was missing the `button: true` semantics.

PR #60141 applies the `button: true` semantics to all Material Chips (excluding the plain [info Chip](https://api.flutter.dev/flutter/material/Chip-class.html) which is non-interactive). That PR unblocks `customer: money (g3)` and brings our Chip semantics in-line with the behavior of the reference Material components [implementations for iOS](https://github.com/material-components/material-components-ios/blob/e1aee8556d04a64cef5149d51897f44711a5b077/components/Chips/tests/unit/ChipsTests.m#L100), but on Android _some_ Material Chips [have "checkable" semantics](https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/chip/Chip.java#L268) rather than button semantics, which is behavior that we should likely replicate (for `FilterChip` and `ChoiceChip`?) in the future.
Repository: TypeScript
Issue: Expose isTypeReference function in public API
Labels: Suggestion,In Discussion

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms

isTypeReference

## Suggestion

The public compiler API exposes a `getTypeArguments` method on the type checker:

https://github.com/microsoft/TypeScript/blob/cc7cb9eadb10a56687513d4fc3a67d5210b387bb/lib/typescript.d.ts#L2107

But provides no way to check if a type is a `TypeReference`. Users of the TS compiler API have to roll their own, which is error-prone. I suggest that if `TypeReference` is exposed in the public API, there should be a way to assert whether a type is a `TypeReference`.

## Use Cases

See above

## Examples

Currently, public uses of `getTypeArguments` must do something like this to assert that a type is a `TypeReference`:

```ts
function isTypeReference(ty: ts.Type): ty is ts.TypeReference {
    return 'typeArguments' in ty;
}

const ty = getType();
if (isTypeReference(ty)) {
    getChecker().getTypeArguments(ty);
}
```

With an exposed type guards, this becomes

```ts
const ty = getType();
if (ts.isTypeReference(ty)) {
    getChecker().getTypeArguments(ty);
}
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: pytorch
Issue: Embedding with DataParallel can return "incomplete" results
Labels: module: cuda,triaged,module: data parallel

## 🐛 Bug

I have only a functional description of the bug. Still trying to make a MWE.

Sometimes when using an `Embedding` in a model with `DataParallel` I hit errors where, for example:

```py
x = ... # shape: [400, 2000]
y = self.embed(x) # shape: [11, 2000, 512]
#^ the return value of the Embedding is "incomplete" on some GPUs. Noticed it most on cuda:1, but that's probably a coincidence.
```

## To Reproduce

Steps to reproduce the behavior:

1. Have a model with `Embedding`.
1. Use `DataParallel` on the model such that you're close to saturating your system.
1. Things shouldn't end up working, if the bug is reproducible.
1. You don't need anything fancy. Just some pretrained model in `eval` mode and pass it some input.

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

DataParallel models behave functionally identically to normal models. Convergence and gradient descent questions notwithstanding.

## Environment

 - PyTorch Version (e.g., 1.0): 1.5 ~ 1.6.x-dev
 - OS (e.g., Linux): Ubuntu 16.04 LTS
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source): N/A
 - Python version: 3.7.7
 - CUDA/cuDNN version: 10.2
 - GPU models and configuration: Geforce GTX Titan X * 2
 - Any other relevant information: N/A

## Additional context

<!-- Add any other context about the problem here. -->


cc @ngimel
Repository: pytorch
Issue: RemoteModule enhancements
Labels: module: bootcamp,triaged,enhancement,module: rpc,pt_distributed_rampup

We probably need the following enhancements on top of our current [RemoteModule](https://github.com/pytorch/pytorch/blob/master/torch/distributed/nn/api/remote_module.py#L147) implementation in terms of usability:

1. ~~TorchScript support~~
2. ~~RemoteModule currently inherits from nn.Module and it's not clear how the plethora of nn.Module methods would behave with RemoteModule. Either we clarify this behavior or change RemoteModule to be standalone.~~
3. Users should have a way to invoke methods on the nn.Module remotely and retrieve appropriate information (ex: retrieve the .grad field). We probably need something like the RRef helper (https://github.com/pytorch/pytorch/pull/36619) for RemoteModules as well.
4. ~~`remote_parameters` API which returns a list of RRefs of remote parameters that can be fed into the `DistributedOptimizer`.~~
5. ~~Expose an API for users to retrieve the RRef for the underlying module. This would be useful if users would like to run custom code on the remote end for the nn.Module (ex: https://github.com/pytorch/pytorch/blob/master/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py#L591)~~
6. ~~RemoteModule should accept a `device_id` parameter so it can be placed on any device and not just CPU.~~
7. ~~Consolidate device_id and worker_name parameter to use remote device string format.~~
8. ~~[Support .train/.eval methods on RemoteModule.](https://github.com/pytorch/pytorch/issues/51480)~~
9. ~~[Place the input on the appropriate device before calling forward](https://github.com/pytorch/pytorch/issues/51670)~~
10. ~~[Support passing a RemoteModule to an RPC as an arg](https://github.com/pytorch/pytorch/issues/57516)~~

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar @jiayisuse