sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: Break the circular dependency in kubelet
Labels: priority/backlog,area/kubelet,kind/cleanup,sig/node,kind/feature,lifecycle/frozen

This is a pre-requisite issue for https://github.com/kubernetes/kubernetes/issues/84473

## Overview

![Kubelet-Dependencies](https://user-images.githubusercontent.com/6493255/68637774-a56f5380-053a-11ea-9734-cc8942ae3952.png)


+ [ ] Break the circular dependency between configMapManager, secretManager and kubelet
   + [ ] Refactor kubelet with node status plugin and registry #85672
   + [ ] Add node getter package instead of kubelet gets node

### Circular dependencies

+ ServerCertificateManager https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L763-L775
+ secretManager, configMapManager https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L552-L571
+ resourceAnalyzer https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L618
+ KubeGenericRuntimeManager https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L671-L691
+ PluginManager https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L794-L797
+ VolumeManager https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L810-L824
+ PodWorkers https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L828
+ criticalPodAdmissionHandler and PredicateAdmitHandler https://github.com/kubernetes/kubernetes/blob/a8220072eca6f7ae9972340422dfb46a57fa777b/pkg/kubelet/kubelet.go#L867-L872

/sig node
/kind cleanup
/area code-organization
/area kubelet
/cc @tallclair 
/assign
Repository: go
Issue: runtime: support GOFLAGS=-race everywhere
Labels: NeedsDecision,compiler/runtime

I'd like to set GOFLAGS=-race on a CI builder. However, some tests invoke the go tool to build for GOOS=js where -race is not supported, leading to this error:

    $ GOFLAGS=-race GOOS=js GOARCH=wasm go build std
    go build: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64

I believe unsupported flags should be ignored (unlike unknown flags).
Repository: scrcpy
Issue: Could not listen on port 27183
Labels: snap

debain10 安装后启动
```js
2019/11/03 20:47:17.095543 cmd_run.go:880: WARNING: cannot start document portal: read unix @->/run/user/1000/bus: EOF
INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server.jar: 1 file pushed. 3.0 MB/s (22546 bytes in 0.007s)
listen: Operation not permitted
ERROR: Could not listen on port 27183
```
Repository: godot
Issue: Problem releasing game to appstore
Labels: platform:ios,topic:porting

I'm developing a game with this awesome game engine and I want to release my game to appstore. My game uses FB SDK and AdMob and I managed to compile the Godot source for iOS. The game runs fine on simulator and device, But when I archived it in xcode and send it to appstore there is some problems that should be fixed. This is the app store connect error email:

ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothPeripheralUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data.

And Same for NSCameraUsageDescription and NSBluetoothAlwaysUsageDescription. My game doesn't use camera or bluetooth at all and i think it's for arkit usage in my app. I removed the privacy strings from info.plist but it didn't fix it. How can i disable using bluetooth and camera for my iOS game?
Repository: TypeScript
Issue: Please document compiler APIs
Labels: Docs

Would it be possible to get some documentation on the compiler APIs? 

I am working on some TypeScript tooling, and I am using `ts.createSourceFile()` to get the AST for a TypeScript source file. However, the tree in `SourceFile.statements` is missing some information. For example, I need to know the type of an `Expression` when a `PropertyDeclaration` only has an `initializer` but no declared `type`. I have tried `TypeChecker.getContextualType()` but it always returns `undefined`; also the implementation doesn't look right. There are internal methods like `TypeChecker.getTypeOfExpression()` that look promising, but they are not visible. Also I read some mention of 'bindings', but I haven't found a way to get them.

Another example is type resolution: When I encounter a `TypeNode` or something similar within the AST, I usually need to know about its declaration: Where does it come from? Is it local? Where is it imported from? Of course I can write that myself with some effort, but surely such logic already exists within the compiler, I just don't know where.
Repository: rust
Issue: Request: mark all integer platform intrinsics as `const`
Labels: T-lang,T-libs-api,C-feature-request,A-const-eval

The platform intrinsics for _floating point_ suffer the standard floating point problems of not being fully deterministic at all times, which is a requirement for const.

However, the platform intrinsics for _integer_ data do not suffer these problems at all. They are plain integer math operations and you can deterministically know exactly what bit pattern you'll get out for any bit pattern you send in. This means that they are eligible for becoming `const`. At compile time we could even emulate the operations if necessary.

So, we should make all of these `const`.
Repository: angular
Issue: ExpressionChangedAfterItHasBeenCheckedError is thrown by ngModel.control.disable() been called
Labels: type: bug/fix,workaround1: obvious,area: forms,state: confirmed,forms: template-driven,forms: disabling controls,forms: ngModel,forms: change detection,P4

# 🐞 bug report

### Affected Package

The issue is caused by package `@angular/forms`

### Is this a regression?

No.

### Description

I want to disable a form field with NgModel (template-driven form) dynamically with `ngModel.control.disabled()` method call in the `ngAfterViewInit()` hook. It will throw ExpressionChangedAfterItHasBeenCheckedError exception.


## 🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-forms-ngmodel-expressionchangedafterithasbeencheckederr?file=src/app/app.component.ts

## 🔥 Exception or Error
<pre><code>
ERROR
Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ng-valid: true'. Current value: 'ng-valid: false'.
</code></pre>


## 🌍  Your Environment

**Angular Version:**
<pre><code>
Angular CLI: 8.3.17
Node: 10.16.3
OS: win32 x64
Angular: 8.2.13
... common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.17
@angular-devkit/build-angular     0.803.17
@angular-devkit/build-optimizer   0.803.17
@angular-devkit/build-webpack     0.803.17
@angular-devkit/core              8.3.17
@angular-devkit/schematics        8.3.17
@angular/cli                      8.3.17
@ngtools/webpack                  8.3.17
@schematics/angular               8.3.17
@schematics/update                0.803.17
rxjs                              6.5.3
typescript                        3.5.3
webpack                           4.39.2
</code></pre>

**Anything else relevant?**
This problem also exists in `Angular 9.0.0-rc.0`.
Repository: godot
Issue: Shift and CRTL+A group selection does not work on the AnimationPlayer Copy Tracks pop up
Labels: enhancement,topic:editor,usability

**Godot version:**

_3.2 alpha 3_

**OS/device including version:**

All

**Issue description:**

When you hold the Shift key and click the bottom track and then the top track or vica versa, and just those tracks are selected rather than all of the tracks which are inbetween those two.

In addition, CTRL+A does not work either and rather should have just the sellect all functionality as already coded in for the Sellect All/None button.

**Steps to reproduce:**

Create AnimationPlayer, create animation, create at least 3 tracks, press Edit, press Copy Tracks, hold the Shift key and click on the bottom track, then the top track, or vica versa.

![shift click select fail](https://user-images.githubusercontent.com/55881826/68089757-358b0a00-fe64-11e9-8521-def6e9710475.PNG)
Repository: godot
Issue: When debugging, hovering a variable containing a lot of text makes its tooltip cover the entire screen with white
Labels: bug,topic:editor,confirmed

Godot 3.2 alpha3

When debugging, I hovered some `text` variable in my script which was containing a lot of text (hundreds of lines with some of them having hundreds of characters). Godot tried to show a tooltip with the value inside but that resulted in the tooltip covering the entire editor, curiously without any text visible in it.

I think we need to limit the size of that tooltip, or enhance debugging tooltips in general (see how Rider or Visual Studio tooltips do).
Repository: godot
Issue: Selecting multiple nodes adds empty RefCounted section in the inspector
Labels: bug,topic:editor,confirmed

**Godot version:**
3.2 alpha3

**Steps to reproduce:**
1. Create 2 nodes (best observable with Node)
2. Select both of them
3. This appears at the bottom of the inspector
![image](https://user-images.githubusercontent.com/2223172/68091347-d686be80-fe7e-11e9-853f-585ec944a61e.png)

I guess it shouldn't be there.
Repository: rust
Issue: Unhelpful error message constructing re-exported tuple struct with private fields
Labels: C-enhancement,A-diagnostics,A-visibility,T-compiler,D-confusing,D-papercut,D-incorrect

If a public tuple struct with private fields is declared in a public module, then instantiated elsewhere, the error message is helpful. For example, the code
```rust
// src/lib.rs
pub mod a {
    pub struct Triplet(usize, usize, f64);
}
```
```rust
// src/main.rs
use triplets::a::Triplet;

fn main() {
    let mut triplets = Vec::new();
    triplets.push(Triplet(0, 0, 1.0));
}
```
causes the compiler to give the following useful error message:
```
error[E0423]: expected function, tuple struct or tuple variant, found struct `Triplet`
 --> src/main.rs:5:19
  |
5 |     triplets.push(Triplet(0, 0, 1.0));
  |                   ^^^^^^^
  |                   |
  |                   constructor is not visible here due to private fields
  |                   help: a local variable with a similar name exists: `triplets`

error: aborting due to previous error
```
This tells us exactly what the problem is - that we cannot construct `Triplet` because its fields are private.

However, if the tuple struct is in a private module, but re-exported as public, the error message isn't helpful (it's even confusing). For example,
```rust
// src/lib.rs
mod a {
    pub struct Triplet(usize, usize, f64);
}
pub use a::Triplet;
```
```rust
// src/main.rs
use triplets::Triplet;

fn main() {
    let mut triplets = Vec::new();
    triplets.push(Triplet(0, 0, 1.0));
}
```
gives the compiler error
```
error[E0423]: expected function, tuple struct or tuple variant, found struct `Triplet`
 --> src/main.rs:5:19
  |
5 |     triplets.push(Triplet(0, 0, 1.0));
  |                   ^^^^^^^
  |                   |
  |                   did you mean `Triplet { /* fields */ }`?
  |                   help: a local variable with a similar name exists: `triplets`

error: aborting due to previous error
```
which confusingly suggests initialising the tuple with braces, instead of reporting that the fields are private.

Unsurprisingly, both versions work fine if the fields of `Triplet` are made public.
Repository: godot
Issue: Opening a scene when an empty scene tab is open should replace the tab
Labels: enhancement,topic:editor,usability

**Godot version:**
3.2 alpha3

**Issue description:**
When you have an empty scene open (no root, no filename assigned) and open another scene, it should replace the empty tab with that scene. You can observe such behavior e.g. in Google Chrome.
Repository: godot
Issue: preload doesn't list as dependency when in build-in script
Labels: bug,topic:editor,confirmed

**Godot version:**
3.2 alpha3

**Issue description:**
When you preload a resource in a script, it will become a dependency of this script, so e.g. when you try to delete the resource, you get a warning about that. However it's not the case with built-in scripts. They should probably add the dependency to the scene.
Repository: TypeScript
Issue: Bad `.d.ts` emit for class expression on `module.exports
Labels: Bug,Domain: Declaration Emit,Domain: JavaScript

## Repro

```js
module.exports.answer = class C {
    foo = 10;
    bar;
}
```

## Instructions

```sh
tsc --declaration --allowJS --outDir lib ./src/foo.js
```

## Current

```ts
declare class C {
    foo: number;
    bar: any;
}
export {};
```

## Expected

```ts
declare class C {
    foo: number;
    bar: any;
}
export { C as answer };
```

or

```ts
declare class C {
    foo: number;
    bar: any;
}
export var answer: typeof C;
```
Repository: rust
Issue: Incorrect trace for Item-level syntax errors in modules included by macro-generated code
Labels: A-diagnostics,A-macros,T-compiler,C-bug

Using Rust nightly 2019-11-04.

Consider a macro that generates a `mod` statement:
```rust
#[proc_macro]
pub fn generate(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
    quote::quote!(mod foo;).into()
}
```

Call this in the src/main.rs in another crate:
```rust
codegen::generate!();

fn main() {
    foo::bar();
}
```

In src/foo.rs, we have the following code:
```rust
#{inline}
pub fn bar() {
    println!("Hello world");
}
```

Note the intentional syntax error `#{inline}` instead of `#[inline]` in src/foo.rs.

Compiling this setup (reproducible example in
[upload.tar.gz](https://github.com/rust-lang/rust/files/3802516/upload.tar.gz))
with `cargo check`,
we have the following error message:

```
error: expected `[`, found `{`
 --> src\main.rs:1:1
  |
1 | codegen::generate!();
  | ^^^^^^^^^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared type or module `foo`
 --> src\main.rs:4:5
  |
4 |     foo::bar();
  |     ^^^ use of undeclared type or module `foo`
```

The second error is an indirect consequence of the first error.
But where did the "found `{`" error message come from?

Obviously, there is nothing wrong with the `codegen::generate!()` macro
(we can verify this by fixing the intentional syntax error in src/foo.rs).

So let's try manually expanding the macro call, i.e. we now replace src/main.rs:1 with
```rust
mod foo;
```

And we have the following correct error message:
```
error: expected `[`, found `{`
 --> src\foo.rs:1:2
  |
1 | #{inline}
  |  ^ expected `[`

error: aborting due to previous error
```

So this error is caused by incorrect error span detection.

I am unable to locate the exact set of syntax errors affected,
because this does not happen with every syntax error.

For example, if I replace src/foo.rs with
```rust
#[inline] // correct syntax here
pub fn bar() {
    let a = 1 // missing semicolon here
    println!("Hello world");
}
```

The resultant error message is correct:
```
error: expected `;`, found ``println``
 --> src\foo.rs:3:14
  |
3 |     let a = 1
  |              ^ help: add `;` here
4 |     println!("Hello world");
  |     ------- unexpected token
```
Repository: flutter
Issue: Google Map: Support for "Hollow" Polygons
Labels: c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

According to the Google Maps API, most libraries have support for "Hollow" Polygons. However, I could not find any such support for the Dart API. 

Does anyone know if such support is already on its way? If not I would like to make it a feature request as my current project requires this functionality.

Below I've included a link to the documentation I am referring to.
https://developers.google.com/maps/documentation/android-sdk/shapes#create_a_hollow_polygon

Thanks!
Repository: flutter
Issue: Suggestion: When installing Flutter, ask which parts to install
Labels: c: new feature,tool,P3,team-tool,triaged-tool

Hello! I have two workstations. One is a MacBook Air and the other one is a Windows/Linux desktop. I am developing using Flutter on both and I find it a waste of space to download all of the Android stuff on my Mac when I develop on Android on my Windows installation. Would it be possible to add a question related to the installation of the Android stuff? 
![Screenshot showing Android dependencies like "android-arm tools" being installed while installing Flutter](https://user-images.githubusercontent.com/9626761/68098550-f2fa1980-fec5-11e9-816f-2c1e0c88b028.png)
Repository: pytorch
Issue: a retrained and saved  jit module could not be reload.
Labels: oncall: jit,triaged

I'm try to retain a JIT module from pytorch using c++ based on Libtorch libtorch-win-shared-with-deps-1.3.0 _cpu, and save retrained module for next usage.
               the save and reload process will be like the following , but get erro while try reload.		

```cpp
		torch::serialize::OutputArchive output_archive;
		auto presavedModule = torch::jit::load("D:/localshare/data/model/model.pt");
		presavedModule.save("D:/localshare/data/model/testmodel.pt");
		auto savedModule = torch::jit::load("D:/localshare/data/model/testmodel.pt");
		savedModule.dump(true, true, true);
```
reported error:
```
Caught
expected newline but found 'number' here:
at code/__torch__/modelv2.py:75:51
import __torch__.modelv2.features.16.conv.1
import __torch__.modelv2.features.17
import __torch__.modelv2.features.17.conv
import __torch__.modelv2.features.17.conv.0
import __torch__.modelv2.features.17.conv.1
import __torch__.modelv2.features.18
class features(Module):
  __parameters__ = []
  __annotations__ = []
  __annotations__["0"] = __torch__.modelv2.features.0
                                                   ~~ <--- HERE
  __annotations__["1"] = __torch__.modelv2.features.1
  __annotations__["2"] = __torch__.modelv2.features.2
  __annotations__["3"] = __torch__.modelv2.features.3
  __annotations__["4"] = __torch__.modelv2.features.4
  __annotations__["5"] = __torch__.modelv2.features.5
  __annotations__["6"] = __torch__.modelv2.features.6
  __annotations__["7"] = __torch__.modelv2.features.7
  __annotations__["8"] = __torch__.modelv2.features.8
  __annotations__["9"] = __torch__.modelv2.features.9
Compiled from code
Type class std::runtime_error
```
Is there any sugesstion:

cc @ezyang @gchanan @zou3519 @jerryzh168 @suo
Repository: pytorch
Issue: First element in data passed to `torch.*Tensor` constructors cannot be a tensor
Labels: triaged,module: nestedtensor

## 🐛 Bug

`torch.*Tensor` constructors can accept something like `torch.LongTensor([list, tensor])` but not `torch.LongTensor([tensor, tensor])` or `torch.LongTensor([tensor, list])`.

**Exception message:**
> ValueError: only one element tensors can be converted to Python scalars

## To Reproduce

Steps to reproduce the behavior:

```py
import torch as T

x = [1, 2, 3]
y = T.tensor([4, 5, 6])

T.tensor([x, x]) # fine
T.tensor([x, y]) # fine
T.tensor([y, x]) # NOT fine
T.tensor([y, y]) # NOT fine
```

## Expected behavior

Not sure.

## Environment

 - PyTorch Version (e.g., 1.0): 1.3.0
 - OS (e.g., Linux): Windows 10 64bit
 - How you installed PyTorch (`conda`, `pip`, source): Conda
 - Build command you used (if compiling from source): N/A
 - Python version: 3.7.3
 - CUDA/cuDNN version: 
 - GPU models and configuration: 
 - Any other relevant information: 

cc @cpuhrsch
Repository: flutter
Issue: Allow TextField label fixed size
Labels: a: text input,c: new feature,framework,f: material design,P3,workaround available,team-text-input,triaged-text-input

The UI design I need to implement has fixed sizes for all text field states, focused, empty, etc. AFAIK there is no way to implement this in Flutter - the label becomes larger when the text field is empty and not focused.
See 'Notes' and 'Hourly Rate' on the screenshots below.
I can work around this with a Column/Text/TextField for now but I think it makes sense to fix this on the InputDecorator level.

```
TextField(
        controller: _controller,
        decoration: InputDecoration(
          labelText: labelText,
        ),
      );
```

![Screenshot_20191104-124255](https://user-images.githubusercontent.com/1481807/68115463-1f7f5700-ff01-11e9-804d-79e3c1fed254.png)
![Screenshot_20191104-124250](https://user-images.githubusercontent.com/1481807/68115464-2017ed80-ff01-11e9-8539-33b826340a49.png)
Repository: youtube-dl
Issue: Support for stripchat.com
Labels: site-support-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.10.29. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support 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 new site support request
- [x] I've verified that I'm running youtube-dl version **2019.10.29**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://stripchat.com/DaLie


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

It is similar to chaturbate.
Repository: rust
Issue: Tracking issue for `#![register_tool]`
Labels: A-attributes,T-lang,B-unstable,T-dev-tools,C-tracking-issue,needs-fcp,S-tracking-design-concerns

A part of https://github.com/rust-lang/rust/issues/44690.

Some tools (`rustfmt` and `clippy`) used in tool attributes are hardcoded in the compiler.
We need some way to introduce them without hardcoding as well.

https://github.com/rust-lang/rust/pull/66070 introduced a way to do it with a crate level attribute:
```rust
#![register_tool(my_tool)]

#[my_tool::anything] // OK
fn main() {}
```
The previous attempt to introduce them through command line (https://github.com/rust-lang/rust/pull/57921) met some resistance.

This probably needs to go through an RFC before stabilization.
Repository: every-programmer-should-know
Issue: A Mindmap to organize the content
Labels: Needs some ❤️

I think it'd be awesome if we had a big mindmap to organize all the topics and subtopics.