sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: Clear restart counter
Labels: kind/documentation,sig/node,kind/feature,lifecycle/frozen,triage/needs-information,needs-triage

/kind feature
/sig feature-requests

**What happened**:

We use the restart counter (and his frequency) to monitor our apps health

**What you expected to happen**:

It we be helpful to have an option to clear the counter and the history of the pod without deleting it.


**Environment**:
- Kubernetes version (use `kubectl version`): 1.7.2
- Cloud provider or hardware configuration**: hw
- OS (e.g. from /etc/os-release): Centos7
- Kernel (e.g. `uname -a`): 
- Install tools:
- Others:
Repository: TypeScript
Issue: Allow narrowing generic type to single element of union type
Labels: Suggestion,Awaiting More Feedback

It is a fairly common pattern to create a set of generic components, and then to use the generic component type within the system. Currently, typescript has an issue handling cases where some values of a generic component depend on others.

**TypeScript Version:**  2.4.0 / nightly (2.5.0-dev.201xxxxx)
2.4
**Code**

```ts
let index = {
    a: {
        arg: 'a',
        fn: (a: string) => {a.toUpperCase()}
    },
    b: {
        arg: 1,
        fn: (b: number) => {b + 1}
    }
}

let runFn= <K extends keyof (typeof index)>(key: K) => {
    let i = index[key]
    let arg = i.arg
    let fn = i.fn
    fn(arg) // Error: compiler doesn't understand that fn and arg will match
}
```

**Expected behavior:**
No error, since we know that `arg` and `fn` are pulled off of the same map entry.

**Actual behavior:**
`Error: cannot invoke expression whose type lacks a call signature`
Repository: rust
Issue: Tracking issue for `#[doc(cfg(…))]`, `#[doc(cfg_hide(…))]` and `doc_auto_cfg`
Labels: T-rustdoc,B-unstable,C-tracking-issue,F-doc_cfg,F-doc_auto_cfg

This is a tracking issue for the `#[doc(cfg(…))]` attribute (feature: `doc_cfg`) introduced in #43348 and `#[doc(cfg_hide(…))]` (feature: `doc_cfg_hide`) attribute introduced in #89596, along with the `doc_auto_cfg` feature introduced in https://github.com/rust-lang/rust/pull/90502.

**Steps:**

- [x] Implement: #43348
- [x] ~~Fix syntax mismatches: #84437~~ (fixed in #84442)
- [x] Adjust documentation ([see instructions on forge][doc-guide]) (https://github.com/rust-lang/rust/pull/92818)
- [ ] RFC (rust-lang/rfcs#3631)
- [ ] Stabilization PR ([see instructions on forge][stabilization-guide]): #79263

[stabilization-guide]: https://forge.rust-lang.org/stabilization-guide.html
[doc-guide]: https://forge.rust-lang.org/stabilization-guide.html#updating-documentation

(cc #1998)
Repository: go
Issue: cmd/compile: gdb 8 on windows crashes reading Go binary
Labels: OS-Windows,NeedsInvestigation

### What version of Go are you using (`go version`)?

```
> go version
go version go1.9rc2 windows/amd64
```

### What operating system and processor architecture are you using (`go env`)?

```
> go env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\kjk\src\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
```

### What did you do?

I'm trying to gather more information on #20975 which involves running the executable on windows under a debugger that understands dwarf debug info (because neither msvc nor windbg do).

I tried:
* clone repro program https://github.com/kjk/go20975 and run `build.ps1` to build it
* download gdb from `https://nuwen.net/mingw.html` and unpack under `c:\`
* run `C:\MinGW\bin\gdb.exe .\go20975.exe` to run under dbg
* enter `https://vox.com` in text box

### What did you expect to see?

When crash happens, I expected to get a human-readable callstack.

### What did you see instead?

```
[New Thread 2176.0xc90]
fatal: morestack on g0
../../src/gdb/buildsym.c:1773: internal-error: void buildsym_init(): Assertion `free_pendings == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
```

The crash happened in the program but it also crashed gdb.

It seems that DWARF information created by Go compiler breaks gdb.

```
PS C:\Users\kjk\src\go\src\github.com\kjk\go20975> C:\MinGW\bin\gdb.exe --version
GNU gdb (GDB) 8.0
```
Repository: vue
Issue: Line numbers for errors in the html parser
Labels: feature request,improvement,has PR

### What problem does this feature solve?
Errors raised by the html parser (`options.warn` in the code) don't register the location of the error.

With the location it will be much easier to debug.

For example if I forget to close an HTML tag, the compiler will complain and tell me the name of the tag. However I will have no idea where the opening tag is located. For moderately big files it's quite impractical.

### What does the proposed API look like?
In `parseHTML` we could add a property in options that will include the line at which the HTML is included in the `.vue` file. We can use this to offset the location before printing it.

As for getting the locations themselves I have no idea how to proceed. If someone can give me some pointers I may submit a pull request.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: angular
Issue: Error message for missing `*directives` is wrong and confusing
Labels: type: bug/fix,freq1: low,area: compiler,core: ng-template and *microsyntax,core: directive matching,P4,compiler: template type-checking

<!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.

ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->

## I'm submitting a...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>

## Current behavior
<!-- Describe how the issue manifests. -->
When i use **NO_ERRORS_SCHEMA** in my unit tests with structural directives which have a property binding:
```html
<div *someDirective="'some-value'"></div>
```
my tests don't work and i get an error:
![image](https://user-images.githubusercontent.com/30043712/29166363-c1b4302e-7dce-11e7-89c0-6e80a617cd2a.png)
but when i use structural directive without property binding:
```html
<div *someDirective></div>
```
it works.

## Expected behavior
<!-- Describe what the desired behavior would be. -->
I expect that behavior for structural directive with property binding when NO_ERRORS_SCHEMA configured will work the same as for the one without binding.

## Minimal reproduction of the problem with instructions
<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
Here is [plnkr demo](https://plnkr.co/Dk9O9jXszf6Zd813vdEU?p=preview)

## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->
I'm trying to unit test my component that uses custom structural directive. And i want to ignore all not required directives in my test case, rather than trying to mock them out.
Repository: go
Issue: x/tools/cmd/stringer: cannot import vendored dependencies
Labels: Tools

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

go version go1.8.3 linux/amd64

### What operating system and processor architecture are you using (`go env`)?

Ubuntu Linux, amd64

### What did you do?

Attempted to run golang.org/x/tools/cmd/stringer on package importing vendored dependencies

### What did you expect to see?

The tool work as expected

### What did you see instead?

While 'go build' and all other tools seem fine with depdencies vendored in $GOPATH/src/vendor, stringer fails with import errors:

```
$ go build plinth/auth
$ go get golang.org/x/tools/cmd/stringer
$ go generate plinth/auth
stringer: checking package: auth.go:8:2: could not import golang.org/x/net/context (can't find import: vendor/golang.org/x/net/context)
src/plinth/auth/auth.go:37: running "stringer": exit status 1
$ stringer -type Role $GOPATH/src/plinth/auth
stringer: checking package: [...]/src/plinth/auth/auth.go:8:2: could not import golang.org/x/net/context (can't find import: vendor/golang.org/x/net/context)
$ ls $GOPATH/src/vendor/golang.org/x/net/context
context.go  context_test.go  ctxhttp  go17.go  go19.go  pre_go17.go  pre_go19.go  withtimeout_test.go
```
Repository: go
Issue: net/http: ResponseWriter.Write does not error after WriteTimeout nor is ErrorLog used
Labels: NeedsFix

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

```
go version go1.8.3 darwin/amd64
```

### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/uwe/dev/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/p2/0p6x8w350vqgpvfby6wnxnhc0000gn/T/go-build935868292=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```
### What did you do?

https://play.golang.org/p/pwjZmMKleR

Create a HTTP server with a `WriteTimeout = 1 * time.Second` and a `HTTPHandler` with an artificial `time.Sleep(2 * time.Second)` and then writing out some bytes. Then start the server and run a request against this handler.

### What did you expect to see?

Writing a response after hitting `WriteTimeout` should at least do one out of the two options:

1. Return an error for `n, err := w.Write()`
2. Log a message to `http.Server.ErrorLog`

(1) would indicate that no more bytes can be written, e.g. because the connection was closed.

(2) would be similar to `w.conn.server.logf("http: multiple response.WriteHeader calls")`, e.g. `w.conn.server.logf("http: write attempt after write timeout")`.

### What did you see instead?

Neither (1) nor (2) happened.

This was confusing as I saw in my http logging middleware that response bytes have been written, but I did not understand to where/which connection; which was hard to debug.

While trying to understand how `WriteTimeout` works it seems that the http server's `ResponseWriter` is not aware of the consequences. But I would like to discuss if there are options to improve the situation/inform the user.

An example of the observed consequences with `WriteTimeout` set to `3 * time.Second` on e.g. Heroku:

```
Aug 07 12:16:48 {"level":"info","ts":1502108208.0430696,"caller":"middleware/logger.go:91","msg":"Outgoing response","request_id":"a8fe82a0-c212-4527-9cae-06e38cf46d49","status":200,"latency":9.043189693,"bytes_out":97} 
Aug 07 12:16:48 heroku/router:  at=error code=H13 desc="Connection closed without response" method=GET path="/foo" host=bar request_id=a8fe82a0-c212-4527-9cae-06e38cf46d49 fwd="54.216.3.69" dyno=web.1 connect=0ms service=9044ms status=503 bytes=0 protocol=https
```
Repository: godot
Issue: Manually Resizing Viewport Render makes a Flickering Godot Splashscreen Background 
Labels: bug,topic:rendering,confirmed

**Operating system or device - Godot version:**
Godot 2.1.3 stable
Windows 7 service pack 1

**Issue description:**
i wrote a script that will resize my Base Game Display Size Pixel Perfectly to a Screen/Window Size by having a Resize Value of Integers.

in Project Settings Display

* Game Display 144x216
* Test Screen 500x500
* set Stretch mode to Viewport

the main function that resize the render is the Viewport.set_render_target_to_screen_rect()

if you hit play it will display the sprite pixel perfectly resized to the given Window/fullscreen size. but there is a flickering Godot Splashscreen behind it. but my friend who uses Linux dosent have the flickering

**Steps to reproduce:**
Open the Project in a Windows OS and hit play.


**Link to minimal example project:**
http://www.mediafire.com/file/88hes1vm3cb902a/Test.rar

here is the Test Project
Repository: go
Issue: cmd/compile: improve codegen for nested if statements
Labels: Performance,compiler/runtime

As observed in CL 54651, these two semantically equivalent bits of code do not always compile equivalently:

```go
if a {
  if b {
   // ...
  }
}
```

```go
if a && b {
  // ...
}
```

This issue is to investigate why, and if the latter is systematically better, consider improving the former. Note that 'if a && b' gets special handling at Node -> SSA time; phiopt.go does some further related cleanup, but perhaps not enough.

cc @randall77
Repository: vscode
Issue: [GRIPE] "editor.mouseWheelScrollSensitivity" setting is not respected while making a text selection
Labels: feature-request,editor-core

the editor scrolls insanely fast while selecting large blocks of text which is quite unwieldy, so i tried to see if i could affect this behavior with the setting `editor.mouseWheelScrollSensitivity`, but it had no effect. please make a setting to control the sensitivity of scrolling while selecting text.
Repository: go
Issue: x/mobile: need API to hide Android status bar on native app
Labels: NeedsFix,mobile

### What version of Go are you using (`go version`)?
$ go version
go version go1.9rc2 linux/amd64

### What operating system and processor architecture are you using (`go env`)?
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/everton/go"
GORACE=""
GOROOT="/usr/local/go1.9rc2.linux-amd64"
GOTOOLDIR="/usr/local/go1.9rc2.linux-amd64/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build881532661=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

### What did you do?
Wrote basic Android native game using gomobile.
Need full screen support, but couldn't find API to hide status bar.

### What did you expect to see?
Full screen available for Android native game written with gomobile.

### What did you see instead?
The Android status bar.
Repository: opencv
Issue: Set manually the destination image size of LinearPolar / LogPolar
Labels: feature,category: imgproc

##### Detailed description

The methods `linearPolar` and `logPolar` return the image of the same size as the source.

I consider this behavior strange since the dimensions of the result image are ρ and φ and have nothing to do with the original image width and height.

Ideally, the radial and angular dimensions should be set manually with some reasonable defaults depending on the _maxRadius_ parameter (say, _maxRadius_ × _π∙maxRadius_ to match the average resolution of the source for LinearPolar). I don’t think, however, that changing the default behavior (and thus breaking the compatibility) is the right thing to do.

So, is it possible to just add the method overloads with the destination image size as an argument to have the ability to set it manually?
Repository: go
Issue: encoding/xml: cannot marshal self-closing tag
Labels: NeedsFix

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
go version go1.8.3 darwin/amd64

### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/xxx/.go:/Users/xxx/workspace/goproject"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/53/r61bh2fj1hg9n0w03fs__7kc0000gn/T/go-build440341166=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

### What did you do?

I want to marshal a xml struct which has a self-closing tag field. After looking up in golang doc, there isn't an official support. In [google group](https://groups.google.com/forum/#!topic/golang-nuts/guG6iOCRu08) they use string.Replace, it's ugly. It seems we could write marshal func for the custom struct, by i'm willing to see an official support like 
```
	type Person struct {
		XMLName   xml.Name `xml:"person"`
		Id        int      `xml:"id,attr"`
		FirstName string   `xml:"name>first"`
		LastName  string   `xml:"name>last"`
		Age       int      `xml:"age"`
		Height    float32  `xml:"height,omitempty"`
		Married   bool
		Address
		Comment string `xml:",comment"`
		Balabala string `xml:"balabala,allowempty"`  // i want something like this
	}
```
In xml standard, a self-closing tag is permitted.
https://www.w3.org/TR/REC-xml/#dt-empty

And empty-element tag should be used, and should only be used, for elements which are declared EMPTY.
https://www.w3.org/TR/REC-xml/#d0e2480
Repository: rust
Issue: `x.py doc` cannot work when a junction point / symbolic link cannot be created.
Labels: C-enhancement,T-bootstrap,A-docs,T-infra,C-optimization

... for instance, in a VirtualBox shared folder, which are mapped as network drive, does not support junction point on Windows, which causes `Incorrect function. (os error 1)` always.

Symbolic links (junction points) are used because:

> Here what we're doing is creating a *symlink* (directory junction on
> Windows) to the final output location. This is not done as an
> optimization but rather for correctness. We've got three trees of
> documentation, one for std, one for test, and one for rustc. It's then
> our job to merge them all together.
> 
> Unfortunately rustbuild doesn't know nearly as well how to merge doc
> trees as rustdoc does itself, so instead of actually having three
> separate trees we just have rustdoc output to the same location across
> all of them.
> 
> This way rustdoc generates output directly into the output, and rustdoc
> will also directly handle merging.

There should be other way to achieve the same effect? For example forcing `rustdoc` to output to `stage$N/$TARGET/doc` (bootstrap already wrapped `rustdoc` so it should be fine).
Repository: flutter
Issue: Colors of Image Icon
Labels: framework,a: images,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-framework,triaged-framework


I wanted to use a multi color image as my icon the way it was. But when i made it an image icon it got decolorized. How do I restore the original colors?
Repository: react
Issue: Cross-origin error passed to componentDidCatch incorrectly
Labels: Component: DOM,Type: Needs Investigation,React Core Team

tl;dr React is passing "A cross-origin error was thrown" to `componentDidCatch` when there are no cross-origin scripts.

See [this discussion thread](https://github.com/facebook/react/pull/10353#issuecomment-321528685) and [this repro case](https://github.com/tessin/tessin-mini).

I was able to confirm the behavior. A quick look at `onError` showed a null `event.error`.
Repository: TypeScript
Issue: Generating type definitions for mixin classes with protected members
Labels: Bug,Domain: Declaration Emit

**TypeScript Version:**  2.4.2

**Code:**

I'm using mixins as described by: https://github.com/Microsoft/TypeScript/pull/13743

```
export type Constructor<T> = new(...args: any[]) => T;
export function Unsubscriber<T extends Constructor<{}>>(Base: T)  {
  class Unsubscriber extends Base implements OnDestroy {
    protected unsubscribe: Subject<void> = new Subject();

    ngOnDestroy() {
      this.unsubscribe.next();
      this.unsubscribe.complete();
    }
  }
  return Unsubscriber;
}
```

If I compile this code with `"declaration": true` to get type definitions for my library, I get the following error:

```
ERROR in (truncated)/mixins.ts (...): Return type of exported function has or is using private name 'Unsubscriber'.
```

One solution is to add an interface...

```
export interface IUnsubscriber extends OnDestroy {
  unsubscribe: Subject<void>;
}
```

...and have my mixin `function` have a return type of `Constructor<IUnsubscriber>`. This works, but it forces me to make the properties/methods exposed by my mixin be `public` even in cases where I want them to be `protected`.

Short of adding `protected` members to interfaces (which I'm not sure is the right thing to do), this seems to be a limitation of the currently supported mixin strategy.
Repository: vue
Issue: Update slot content without rerendering rest of component
Labels: improvement

### What problem does this feature solve?
I have developed some components that can generate large amounts of HTML, and allow content to be added via slot. It appears that if the slot content is updated, the render function is called for the component; however, this seems like something that could be avoided through optimization which would significantly improve the performance of my component in some instances.

Is this possible?

### What does the proposed API look like?
Not proposing API changes.

<!-- generated by vue-issues. DO NOT REMOVE -->