sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [google_maps_flutter] Support LocationSource
Labels: platform-android,p: maps,package,c: proposal,P3,team-android,triaged-android

Is there particular reason for not supporting this feature in google_maps plugin? It would be great if we can feed location data from another location source than builtin, not customizable, location provider in google map itself.
[Here ](https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMap#setLocationSource(com.google.android.gms.maps.LocationSource)) is the setLocationSource function description.

Thanks in advance.
Repository: rust
Issue: Leaking private structs in public functions
Labels: A-visibility,T-lang,T-compiler,C-bug

<!--
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:

```rust
use foo::bbb;

fn main() {
    let bar = bbb(); // cannot specify any type signature for `bar`
}

mod foo {
    use bar::Bar;

    pub fn bbb() -> Bar {
        Bar
    }

    mod bar {
        pub struct Bar;
    }
} 
```

I expected to see this happen: Rust complain about the leaking of private structs.

Instead, this happened: It compiles, this has caused it to creep into some crates. For instance, this is in [tonic 0.4.3](https://github.com/hyperium/tonic/issues/672)

Fixing this would likely be a harsh breaking change (as I mentioned, it's already in at least 1 crate, possibly many more). So it would probably have to live across an edition change. It's possibly too late to get a fix in for Rust 2021.

For now, I've suggested it as a [possible lint in clippy](https://github.com/rust-lang/rust-clippy/issues/7301)
Repository: create-react-app
Issue: safari loading loop for cra with HTTPS=true
Labels: needs triage,issue: bug report

Trying to load a fresh created cra app served using HTTPS=true from my iPhone leads to an endless loading loop.

### Steps to reproduce:

1.  npx create-react-app my-app --template typescript
2.  ($env:HTTPS = "true") -and (npm start)
3.  load app on iPhone using https://<IP>:3000

### Environment

npm version: 7.9.0
iPhone IOS: 14.6

### Expected behavior

app should load fine, like without HTTPS=true.

### Actual behavior

endless loading loop
Repository: create-react-app
Issue: React-scripts test command not working
Labels: needs triage,issue: bug report

### Describe the bug

`react-scripts test` command stopped working after update to ^4.0.3 from ^3.0.0.

It shows this error on terminal:

```
● Validation Error:

  Watch plugin jest-watch-typeahead/filename cannot be found. Make sure the watchPlugins configuration option points to an existing node module.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

error Command failed with exit code 1.
```

Nothing has changed on the code. Only react-scripts package. Tests were working fine before the update. 
The project is not ejected and it is not intended to be.

### Did you try recovering your dependencies?

Yes, I tried.
yarn version: 1.22.10

### Which terms did you search for in User Guide?

I've search for 'react-scripts test' and 'watchPlugins' and all I found is that I need to eject the project. I don't understand why. It was never like that. So I think that is not the solution to the problem.

### Steps to reproduce

1. Open a terminal on the CRA project root
2. Run `yarn`
3. Run `yarn test` 

### Expected behavior

I expect tests run fine. Like before updating to ^4.0.3.

### Actual behavior

`react-scripts test` command stops working after update react-scripts library to ^4.0.3 from ^3.0.0.

It shows this error on terminal:

```
● Validation Error:

  Watch plugin jest-watch-typeahead/filename cannot be found. Make sure the watchPlugins configuration option points to an existing node module.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

error Command failed with exit code 1.
```

Thank you :D
Repository: PowerToys
Issue: [Feature Request] Switching dgpu-igpu applications from the menu with the right mouse button.
Labels: Idea-New PowerToy

It is very inconvenient to enter the settings menu and specify the path to the application so that you can switch graphics for the application.
If you add such an item to the right-click menu, where you can assign a video adapter for each application, it would be much more convenient.
Nobody has done this function yet.
Repository: godot
Issue: Edit locks do not affect selection rectangle of instanced scenes
Labels: bug,topic:editor,topic:2d

**Slightly related issues**
https://github.com/godotengine/godot/issues/8322
https://github.com/godotengine/godot/issues/14462
https://github.com/godotengine/godot/pull/34359

**Godot version:**
3.3.2 stable

**OS/device including version:**
Windows 10

**Issue description:**
Instanced scenes can apparently be selected by clicking over any of the nodes within said scene.

Locking child nodes does not affect the size of the selection rectangle - but it would be very convenient if it would. It would also function in a more uniform way from a UX standpoint: clicking on locked nodes does not result in a selection.

For example, an instance could have a big Light2D around a small lantern sprite. Selecting anything in a scene with many of these lanterns is going to be a mess because of the large lights overlapping.


**Steps to reproduce:**
 - Create a scene with multiple nodes of varying sizes
 - Lock one of the nodes - that node can not be selected by clicking on it now
 - Make a new scene and instance the previous scene inside that one
 - Clicking on the area of the previously locked node now results in a selection
 
**Minimal reproduction project:**
[instance_editor_selection.zip](https://github.com/godotengine/godot/files/6574724/instance_editor_selection.zip)

![image](https://user-images.githubusercontent.com/8040820/120294450-dd7de900-c2ce-11eb-9b5f-946e64199943.png)
Image of mouse-hover over instanced scenes resulting in highlighted node names - even though the actual nodes in that area are locked within the source scene.
Repository: create-react-app
Issue: Support files with the .jsx file extension in addition to .js
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

JSX **is not** standard compliant JavaScript, so it shouldn't use the `.js` file extension.


### Describe the solution you'd like

Short term: Also support files ending on `.jsx`
Long term: Make `.jsx` the default file extension
Repository: tensorflow
Issue: Wrong gradient from complex determinant
Labels: stat:awaiting tensorflower,type:bug,comp:core,TF 2.9

**System information**
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Big Sur, Version: 11.2.3 (20D91)
- TensorFlow installed from (source or binary): pip
- TensorFlow version (use command below): 2.5.0
- Python version: 3.7

**Describe the current behavior**
I implemented a straightforward example which illustrates the issue:
I have a 2-dimensional tensor which is mapped to a complex tensor as:

x_i -> z_i = (x_i, lamb_i * x_i)

with some real values for lambda = [lambda_1, lambda_2].
Afterwards I calculate the Jacobian (with respect to x) and its determinant, which is
also easy to do as it is just a 2x2 matrix.
In the end, I take |det|^2 as final output L.

Analytically, you would now get for the gradient:
grad L = [ 2 * lambda_1 * (1+lambda_2^2), 2 * lambda_2 * (1+lambda_1^2)

So if you insert lambda_test = [ 1.0 , 2.0]
You should obtain: grad L(lambda_test) = [ 10, 8]

However, Tensorflow yields: TF-Grad = [-14, -8.8],
which obviously is completely off. 

Additionally, we also implemented a simple numerical derivative ourselves (just the basic definition of the gradient in terms of difference quotient). This calculation does yield the correct gradient (within numerical uncertainties)

**Standalone code to reproduce the issue**
The issue can be reproduced in this [gist](https://colab.research.google.com/drive/1C8PQKBWS-ykraftMqVq6MWmOjcmdQbhH?usp=sharing).
Repository: vscode
Issue: Trust editor: multiple font styles used but unsure about meaning?
Labels: bug,workspace-trust

Testing #124984

The paths section of the trust editor seems to use both `bold` and `italics` to convey information but I cannot tell easily what is what:

![image](https://user-images.githubusercontent.com/900690/120304154-cf7c9800-c2cf-11eb-8db0-f3ecacee8c72.png)
Repository: flutter
Issue: [TimePicker] Support custom format regardless of device settings
Labels: c: new feature,framework,f: material design,f: date/time picker,a: internationalization,c: proposal,team-design,triaged-design

## Steps to Reproduce

```
final TimeOfDay result =  await showTimePicker(
     context: context,
     initialTime: TimeOfDay(hour: 7, minute: 15),
     builder: (BuildContext context, _) {
       return MediaQuery(
         data: MediaQuery.of(context).copyWith(alwaysUse24HourFormat: false),
         child: _,
       );
     },
   );
   if (result != null) {
     print('Selected time: ${result.format(context)}');
   }

```

**Expected results:** <!-- what did you want to see? -->
alwaysUse24HourFormat: false , means it returns time in 12 hours
so if i select  5 am from time picker it return 5:00 am regardless of device in 24 hour format.
and if i select 5 pm  from picker  it returns 5:00 pm regardless device  in 24 hour format.
**Actual results:** <!-- what did you see? -->
if i select  5 am from time picker it return 5:00 [device in 24 hour format]
if i select  5 pm from time picker it return 5:00 pm [device in 12 hour format]
<details>
  <summary>Logs</summary>



<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.2.1, on macOS 11.0.1 20B29 darwin-x64, locale en-GB)
    • Flutter version 2.2.1 at /Users/meghdoot/Library/Android/flutter
    • Framework revision 02c026b03c (4 days ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/meghdoot/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (2 available)
    • iPhone 8 Plus (mobile) • DD25071D-FF64-4C85-89CE-8879154A1E35 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 90.0.4430.212
```

</details>
Repository: pytorch
Issue: Can't install pytorch =1.7 with python 3.8.5 on Raspberry Pi 
Labels: triaged,module: arm

## ❓ Questions and Help

I am tried installing the `PyTorch v1.7.0` on my Raspberry device from the source on `python 3.8.5` version. I followed the following commands:

**Installation of Dependencies:**
`sudo apt install libopenblas-dev libblas-dev m4 cmake cython python3-dev python3-yaml python3-setuptools`

**Building the Options:**
```
export NO_CUDA=1
export NO_DISTRIBUTED=1
export NO_MKLDNN=1 
export BUILD_TEST=0
export MAX_JOBS=4
```

**Compiled and finally Installed:**
```
git clone https://github.com/pytorch/pytorch --recursive && cd pytorch
git checkout v1.7.0
git submodule update --init --recursive
python3.8 setup.py bdist_wheel
```


It got successfully configured, compiled, and installed the PyTorch on my RPi but when I tried testing that then it threw the error for me: `ModuleNotFoundError: No module named 'torch'`

**NOTE: I am using 32bt Ubuntu OS on my Raspberry Pi with python versions 2.7, 3.7, and 3.8 installed. I want to build the PyTorch on python version 3.8 only due to other projects requirement.**

**Since, I want to run this project [ultralytics/yolov5](https://github.com/ultralytics/yolov5) which has the requirements of `python3.8`, `torch>=1.7`, and `torchvisin>=0.8` so that's why I want to build this with this versions.**

**Mine is Raspberry pi armhf**

if anyone has any idea, please help me out with this. Thanks




cc @malfet
Repository: vscode
Issue: Trust: dialogs should listen to changes
Labels: bug,workspace-trust

Here both windows have a folder opened from `Desktop` and when I trust `Desktop` in the one window I think the other window dialog should close.

Even worse, if I select to not trust in the second window, the window becomes untrusted even though the parent folder is trusted.
Repository: vscode
Issue: Trust editor: should allow multi-select of folders from the dialog
Labels: feature-request,workspace-trust

To make picking easier for users, I would have expected that I can multi-select folders to be added as trusted folders:

![image](https://user-images.githubusercontent.com/900690/120334462-f0a1b080-c2f0-11eb-8596-904b7e63b270.png)
Repository: pytorch
Issue: Support complex numbers in `at::nan_to_num`.
Labels: triaged,enhancement,module: numpy

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

The `at::nan_to_num` function currently does not accept complex inputs. This feature should make it support complex numbers.

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->

This leads to problems when implementing LU factorization using cuSOLVER since we want to convert the `nan` values returned by cuSOLVER into `0` like in this PR: https://github.com/pytorch/pytorch/pull/56887. While it is possible to call the function on the real and imaginary parts separately (as is being done [here](https://github.com/pytorch/pytorch/pull/56887/files#diff-0ad205fd94b6a871c649c3e89dac4fbbbcd89b4eac0b4ef165be7a62089576c9R1274).

However, this approach is clumsy and errors out for certain CI tests for complex128 types (some issue with garbage value in the index) as can be seen [here](https://app.circleci.com/pipelines/github/pytorch/pytorch/326838/workflows/f3de6e6b-c4e3-43af-8fcf-bc1e5972536f/jobs/13692644).

This failure is caused to the `idx_dim` in the [ScatterGatherKernel.cu](https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/cuda/ScatterGatherKernel.cu#L113) showing up as garbage only for complex128:

```
May 24 17:50:11 /var/lib/jenkins/workspace/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [0,0,0], thread: [2,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
May 24 17:50:11 idx_dim: 0 index_size: 3
May 24 17:50:11 idx_dim: 1 index_size: 3
May 24 17:50:11 idx_dim: 1074296529 index_size: 3
``` 

## Pitch

<!-- A clear and concise description of what you want to happen. -->

Given the above problems, a long-lasting solution to the problem would be make `at::nan_to_num` complaint with complex numbers.

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

Fix the function when using complex128 with real and imag separately.

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->


cc @mruberry @rgommers @heitorschueroff
Repository: vscode
Issue: Bad resize behavior crowed status bar
Labels: bug,polish,notebook-statusbar


* the regexper notebook prints the flags status bar items
* open regexp notebook and another with a long status bar item
* resize the window
* 🧀  the flag-status hides, the language status is rendered awkwardly

https://user-images.githubusercontent.com/1794099/120344447-dfa96d00-c2f9-11eb-9921-6dcdf26412f1.mov
Repository: vscode
Issue: VS Code snap for arm64 Linux
Labels: feature-request,snap

<!-- ⚠️⚠️ 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. -->
I'm using official Ubuntu Desktop 21.04 arm64 on my Raspberry Pi 4 and ~~there is no way to install VS Code~~.
Official VS Code instruction covers only Raspberry Pi OS https://code.visualstudio.com/docs/setup/raspberry-pi
Please provide snap for arm64 Linux. Currently there is only amd64 snap in snapcraft.

Edit:
I'm sorry, there is arm64 .deb installer, which I've missed, but still there is no snap.
Repository: pytorch
Issue: Ahead of time C++ Extensions should have an option to build with verbose=False
Labels: module: cpp-extensions,triaged

## 🚀 Feature
Ahead of time C++ Extensions should have an option to build without -v. `ninja -v` outputs all build commands, `ninja` without -v doesn't output all build commands.

## Motivation

Verbose output is hard to read at times. In combination with #58779, I once spent 20 minutes trying to find a build failure. Allowing extension writers to turn off the verbosity will lead to greater developer velocity.

## Pitch

We should add something like a "ninja_verbose=True" flag to `torch.utils.cpp_extension.BuildExtension`. This will tell ninja to build with or without the '-v' flag (right now, all ahead-of-time C++ extensions build using '-v': https://github.com/pytorch/pytorch/blob/afdfd2288ab839ece89e667e44777201536b2d82/torch/utils/cpp_extension.py#L1631)


cc @yf225 @glaringlee @zou3519
Repository: ant-design
Issue: Add class for popover container which the created popover rendered in its body
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Be able to select the outermost (container) div of the popover

```
<div class="antd-popover-container my-custom-class-name">
   <div>
         <div class="ant-popover ant-popover-placement-bottomRight">
           ...
        </div>
    </div>
</div>
```

Note:
The issue has been discussed here: https://github.com/ant-design/ant-design/issues/11387, but the proposed solution did not solve the problem as in some cases we need to render the popover normally in document.body.

### What does the proposed API look like?
1. Add default className to the outermost (container) div of popover with a name like 'antd-popover-container'.
2. Make it possible to add extra classes for the container through the popover component <Popover containerClassName="my-custom-class-name" />.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: react
Issue: [eslint-plugin-react-hooks] New Rule Proposal: `no-unnecessary-setstate `
Labels: Type: Feature Request,Status: Unconfirmed,Component: ESLint Rules

Hi there!

First of all, again want to extend thanks for your tireless work on creating this amazing library and supporting the ecosystem! Really big up to everyone involved! 💯 🙌

I wanted to see if the `eslint-plugin-react-hooks` project would accept a new rule: `no-unnecessary-setstate`.

I have the feeling that this may be too opinionated for the plugin, but I was sent here by ljharb from `eslint-plugin-react` after proposing it over there: https://github.com/yannickcr/eslint-plugin-react/issues/2997

---

Anyway, here goes:

**Rule proposal:** `no-unnecessary-setstate` - forbid setting state to the value of the existing state variable

I've seen this pattern also a bunch from beginners learning React. And regardless of whether you're a beginner or not, this is probably not what you want to do (even if it's an object / array).

Example of **incorrect** code:

```jsx
function Input (props) {
  const [name, setName] = useState('');	

  return (
    <input
      value={name}
      onChange={(event) => {
        setName(event.currentTarget.value);
        setName(name); // ESLint problem reported
      }}
    />
  );
}
```

Examples of **correct** code:

```jsx
function Input (props) {
  const [name, setName] = useState('');	

  return (
    <input
      value={name}
      onChange={(event) => {
        setName(event.currentTarget.value);
      }}
    />
  );
}
```

```jsx
function Input (props) {
  const [name, setName] = useState('');	

  return (
    <input
      value={name}
      onChange={(event) => {
        const name = event.currentTarget.value; // Shadowing
        setName(name);
      }}
    />
  );
}
```

---

cc @gaearon
Repository: vscode
Issue: Unclear what adding an item does
Labels: debt,notebook-layout

Testing #125013

![unclear](https://user-images.githubusercontent.com/29464607/120356246-f7accc80-c2b8-11eb-805d-2f6917e982af.PNG)
Repository: node
Issue: Improve the error message for missing modules
Labels: module,errors

Currently, the error that is produced in case of a missing module is not really user friendly:

```
node:internal/process/esm_loader:74
    internalBinding('errors').triggerUncaughtException(
                              ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'not-existing-module' imported from /Users/matteo/temp/a.mjs
    at new NodeError (node:internal/errors:363:5)
    at packageResolve (node:internal/modules/esm/resolve:698:9)
    at moduleResolve (node:internal/modules/esm/resolve:739:18)
    at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:853:11)
    at Loader.resolve (node:internal/modules/esm/loader:89:40)
    at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:73:40)
    at link (node:internal/modules/esm/module_job:72:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
```

Rust for example provide more user friendly errors:

```
error[E0432]: unresolved import `crate::constants`
 --> src/primes.rs:5:12
  |
5 | use crate::constants::{FNUM, PNUM, SMAX};
  |            ^^^^^^^^^ maybe a missing crate `constants`?
```

Note that our errors do not list which line the dependency was not specified.

What do you think? I think it would improve things long term.