sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: crypto/x509: Certificate.Verify does not consistently return UnknownAuthorityError
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.19.6 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/rittneje/.cache/go-build"
GOENV="/home/rittneje/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/rittneje/go-workspace/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/rittneje/go-workspace"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/jrittner/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/rittneje/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.6"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/rittneje/go-workspace/src/certtest/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3903595383=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

I made three certificates - root, intermediate, and leaf. The intermediate is already expired. I then ran `Certificate.Verify` on the leaf certificate.

https://go.dev/play/p/WIWEm7L0Bel

### What did you expect to see?

I expected to get back an `x509.CertificateInvalidError` wrapped inside an `x509.UnknownAuthorityError`.

### What did you see instead?

I got back an unwrapped `x509.CertificateInvalidError`. Consequently, the resulting error message has insufficient context.

This is due to a scoping/shadowing bug in `Certificate.buildChains`.
https://github.com/golang/go/blob/dd16258f48bc9e328ef2086a49da0432fe46f413/src/crypto/x509/verify.go#L926-L933

That `err` is the named return value from the outer scope. So at the end of the function, because it is non-nil, it is never wrapped.
https://github.com/golang/go/blob/dd16258f48bc9e328ef2086a49da0432fe46f413/src/crypto/x509/verify.go#L955-L957
Repository: tensorflow
Issue: Missing Window GPU prebuilt binary for 2.11.0
Labels: stat:awaiting tensorflower,type:bug,type:build/install,subtype:windows,TF 2.11

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

binary

### Tensorflow Version

tf 2.11

### Custom Code

No

### OS Platform and Distribution

Windows

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-2.11.0.zip is missing, which is breaking TensorFlow Rust for Windows with GPU: https://github.com/tensorflow/rust/issues/400
```


### Standalone code to reproduce the issue

```shell
N/A
```


### Relevant log output

_No response_</details>
Repository: go
Issue: x/net/idna: VerifyDNSLength is not rejecting empty labels
Labels: NeedsInvestigation

### What did you do?
https://go.dev/play/p/YZC2LJAeSLm

### What did you expect to see?
Result consistent with https://unicode.org/reports/tr46/#ToASCII

> If the VerifyDnsLength flag is true, then verify DNS length restrictions.

> The length of each label is from 1 to 63.

```
profile.ToASCII(www..com.) = www..com. idna: invalid label "www..com."
profile.ToASCII(www..ćóḿ.) = www..xn--kda3b580m. idna: invalid label "www..ćóḿ."
profile.ToASCII(www.example..) = www.example.. idna: invalid label ""
profile.ToASCII(www.éxamplé..) = www.xn--xampl-9raf.. idna: invalid label ""
```

### What did you see instead?
```
profile.ToASCII(www..com.) = www..com. idna: invalid label "www..com."
profile.ToASCII(www..ćóḿ.) = www..xn--kda3b580m. idna: invalid label "www..ćóḿ."
profile.ToASCII(www.éxamplé..) = www.xn--xampl-9raf.. idna: invalid label ""
```
Repository: flutter
Issue: Support 'Program Files' on windows.
Labels: c: new feature,tool,platform-windows,c: proposal,a: build,P3,team-tool,triaged-tool

I am helping people in [flutter-chat.dev](http://flutter-chat.dev) to ramp up with flutter. The  issue with space in the path 'Program Files' is a serious adoption friction point.

Yes, https://docs.flutter.dev/get-started/install/windows has this warning:

<img width="706" alt="Screenshot 2023-02-27 at 9 14 20 PM" src="https://user-images.githubusercontent.com/12115586/221760404-1949760e-5640-4746-9ef1-dc153ab3e7f9.png">

However, people do not see it and thus spend time and energy and get frustrated facing issues and trying to figure it out.

'Program Files' is a standard for applications in windows and many users choose it as installation path.
Repository: material-ui
Issue: More customization in the theme palette
Labels: support: question,customization: theme

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

With the palette, it would be great to nest more than primary, secondary, error, warning, info & success. 

Trying to mimic Material Design 3's palette system, they have primary, secondary, tertiary, neutral and neutral variant groups and nested within them they have the colour, the contrasting text colour, a component colour and the contrasting text colour for the component. I'm not looking for the MUI team to adopt this system into their components, however, the flexibility to build on top of the palette base with customized key spaces to then be used in the component customization would be an incredibly useful upgrade.

Thanks for all your hard work

### Examples 🌈

https://lh3.googleusercontent.com/1VEzJeGNEMYFspRMrdyVNxE0DNaAdSKdmKq677OqhjAvN3BSULi4rdIDf87d6cAWlBfsb9i3KjV193jUN8AkSu6f1lp2I8UpwU3BC8VZjEWY=s0

https://lh3.googleusercontent.com/hUTHYEawiLWeC2Pkg9ekmgGRLmG4BH7O5cbKw9IJaILfOwB0PqTNzxFvqXBFKRqIZ2pVMYwnE_YzW_zM7HR5RVSVAp3Efx7_KESRth2oda8=s0

https://lh3.googleusercontent.com/Aq1Nj4pUsz9KSCTZfzIy3zZmVc7xsTB4ujc2ufzPUo8aU6iYjiJitr4EpGaXXuJ2tzkOzwc-AXcLdU6l2Q61-5_j4OE0yG9CPQWfon8sivso=s0

https://m3.material.io/styles/color/the-color-system/key-colors-tones

### Motivation 🔦

building more unique pages with colour customization yet maintaining design system principles
Repository: godot
Issue: Editor scene tree navigation and selection using keyboard is not intuitive
Labels: enhancement,topic:editor,usability

### Godot version

4.0 rc6

### System information

Windows 11

### Issue description

1. Scene tree area loses focus when you hover the mouse to the scene(game) view.
2. Navigating with the arrow keys do not highlight selected node and gizmo is not shown for that node.
3. Shift + arrow does not select multiple nodes.
![Recording 2023-02-28 at 14 43 55](https://user-images.githubusercontent.com/40219740/221764876-68331775-1997-43fe-85bf-74aa37fe1d37.gif)


### Steps to reproduce

1. Scene tree area loses focus when you hover the mouse to the scene view.
  - Select scene tree view with the mouse.
  - Hover over the scene view.
  - It loses focus so you can't use arrow keys to navigate scene tree.
2. Navigating with the arrow keys do not highlight selected node and gizmo is not shown for that node.
  - Selected node using mouse has a blue background and the transform gizmo is shown in the scene view.
  - If you use arrow key to select a node in a scene tree, it has no blue background and the gizmo of the node you previously selected with the _mouse_ is still shown.
3. Shift + arrow does not select multiple nodes.
  - Shift + mouse click can select multiple nodes.
  - Shift + arrow up / down does not select multiple nodes. In fact it does nothing.

### Minimal reproduction project

N/A
Repository: godot
Issue: Godot is brought to front while checking for files to import, disrupting workflow with other programs
Labels: bug,platform:windows,topic:editor,usability

### Godot version

4.0.rc6.mono

### System information

Windows 10

### Issue description

Godot window grabs focus and is brought to front when checking for files to import, which it usually does when I click back into Godot, but sometimes it chooses to do this when I click away to a different program. That program then gets hidden behind Godot and I have to click on it again to actually show it. Sometimes I get stuck fighting with Godot because it keeps taking focus while I am trying to work in another program.

Is it necessary for Godot to grab focus when looking for new files to import? If it didn't do that this issue would go away. It didn't do that in 3.5.

### Steps to reproduce

Some of the behavior I have seen I am not able to reproduce consistently, but I can reproduce the 'click on it again' problem:

Stack Godot and another program on top of each other, both maximized.
With the other program in focus and on top, click on Godot to focus it, then click on the other program again.
The other program pops up briefly, then Godot takes focus again.
Sometimes this repeats when clicking on the program again.

### Minimal reproduction project

N/A
Repository: react
Issue: Bug: ErrorBoundary remounts children when errors are caught
Labels: Type: Discussion,Component: Reconciler

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

In the `render` block of a `ErrorBoundary` component the `props.children` is remounted when `getDerivedStateFromError` derives a new state (or `componentDidCatch` sets a state).

Is this a special case ? Setting the state in any other manner (e.g `componentDidUpdate` doesn't have this behavior). I don't see this behavior documented in the React docs.

Thanks!

React version: 18.2.0 (Happens on 17.0.2 as well).

## Steps To Reproduce

1. In the code example increment the counter past 5 and the child component unmounts and mounts, the child state also resets

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example: https://codesandbox.io/s/nifty-platform-wub9wn?file=/src/App.tsx

<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->

## The current behavior
`props.children` unmounts and mounts.

## The expected behavior
`props.children` rerenders.
Repository: node
Issue: Wrong error report message for expression {})
Labels: repl

### Version

v19.7.0

### Platform

_No response_

### Subsystem

_No response_

### What steps will reproduce the bug?

```
$ node
> {})
({}))
    ^
Uncaught SyntaxError: Unexpected token ')'
```

### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior?

```
> {})
{})
    ^
Uncaught SyntaxError: Unexpected token ')'
```

### What do you see instead?

```
> {})
({}))
    ^
Uncaught SyntaxError: Unexpected token ')'
```

### Additional information

We got similar result with expression `{}]`
Repository: flutter
Issue: Incorrect RichText height for blank text.
Labels: framework,engine,a: typography,has reproducible steps,P2,found in release: 3.7,found in release: 3.8,team-engine,triaged-engine

Hello!
I use RichText with TextStyle: fontSize 14 & height 2
If RichText contains text in TextSpan, the line height is 28=> OK
But with blank text, the line height is 29?

![image](https://user-images.githubusercontent.com/33158253/221778874-3f38d6d5-5b0d-4531-a11b-bfab3c351e85.png)
![image](https://user-images.githubusercontent.com/33158253/221779505-2475195f-e0fe-4708-a59c-7cd06718eb7b.png)
![image](https://user-images.githubusercontent.com/33158253/221779479-d4156f44-2b35-4b1b-860c-a6872099a50f.png)

I found a problem that might be the same and it was fixed, but I still get this bug.
https://github.com/flutter/flutter/issues/16400
Repository: go
Issue: all: test failures with `bad file number` or `exec format error` on solaris-amd64-oraclerel
Labels: OS-Solaris,NeedsInvestigation,Tools

```
#!watchflakes
post <- builder == "solaris-amd64-oraclerel" && (log ~ `bad file number` || log ~ `exec format error`)
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/a7bd9e65505636e9a89ba8cda06aa96b71b5ff8e)):

    --- FAIL: TestDefinition (22.48s)
        integration_test.go:193: gopls definition a.go:7:2: exited with code 2, want success: true (gopls definition a.go:7:2: exit=2 stdout=<<./a.go:3:6-7: defined here as func f()>> stderr=<<panic: /opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/bug/bug.go:56: internal error reading shared cache: RLock /opt/golang/.cache/gopls/18b62982/analysis/6b/6b316992556c8430def264891a46ec93579ccbc5189907222dcd2b789e667b3c: bad file number
    
            goroutine 2162 [running]:
            golang.org/x/tools/internal/bug.Report({0xc000048160, 0xaa}, 0x0)
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/bug/bug.go:71 +0x468
            golang.org/x/tools/internal/bug.Errorf({0xf2a0f8?, 0x93ec461a8964f2de?}, {0xc002927c70?, 0x3c7b669e782bcd2d?, 0xee80be?})
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/bug/bug.go:56 +0x3f
            golang.org/x/tools/gopls/internal/lsp/cache.analyzeImpl({0x116c950?, 0xc003282190}, 0xc000cf2280, {0xc001d3c350, 0x2, 0x2}, {0xc0007b0790, 0xc})
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/analysis.go:454 +0x774
            golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).analyze.func1({0x116c950?, 0xc003282190?}, {0xeda6a0?, 0xc000cf2280?})
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/analysis.go:339 +0x5a
            golang.org/x/tools/internal/memoize.(*Promise).run.func2.1()
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:187 +0xa9
            runtime/trace.WithRegion({0x116c950?, 0xc003282190?}, {0xc0024f4180, 0x14}, 0xc0005e4f90)
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/trace/annotation.go:141 +0xe3
            golang.org/x/tools/internal/memoize.(*Promise).run.func2()
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:180 +0x145
            created by golang.org/x/tools/internal/memoize.(*Promise).run
            	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/internal/memoize/memoize.go:179 +0x1ea
            >>)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: kubernetes
Issue: Probe tests are flaking often on some jobs
Labels: priority/important-soon,sig/node,kind/failing-test,triage/accepted

### Which jobs are failing?

It is a follow up from https://github.com/kubernetes/kubernetes/pull/115856#issuecomment-1447807752

Looks like liveness probes are failing with different symptoms. Looks like the failures are happening for  different probe types.

### Which tests are failing?

https://storage.googleapis.com/k8s-triage/index.html?test=liveness 

Preliminary analysis indicates it may be a Windows issue:

/sig windows
/sig node

### Since when has it been failing?

Don't know.

### Testgrid link

_No response_

### Reason for failure (if possible)

One test failure from https://github.com/kubernetes/kubernetes/pull/115856#issuecomment-1447807752. Seems like probes worked OK and reported failure. But kubelet didn't react on this failure and haven't restarted the Container at all.

There are other cases when for some reason kubelet keeps restarting container, even before any probes were started. Perhaps some issue with agnhost.

### Anything else we need to know?

_No response_

### Relevant SIG(s)

/sig windows
/sig node
Repository: godot
Issue: Instance version of `DirAccess.copy_absolute()` and `DirAccess.copy()` doesn't work with relative paths
Labels: bug,topic:core,confirmed

_Production edit: The original report was about several limitations which are explained in the docs and should be discussed in a feature proposal. There had been one bug involved in the MRP, so the issue was renamed to reflect that bug._

---

### Godot version

4.0rc6

### System information

Manjaro Linux using i3, Foward+

### Issue description

Either I'm doing a dumb mistake or they are not working at all.

Whenever I try to use `DirAccess.copy_absolute()` or `DirAcess.copy()` I either get error 12 (`ERR_FILE_CANT_OPEN`) if I'm using an absolute path or error 7 (ERR_FILE_NOT_FOUND) if I'm using a relative path.

But if I try to use the exact same paths on `DirAccess.open()` or `FileAccess.open()` they all work OK
![image](https://user-images.githubusercontent.com/13070158/221809985-af94e635-fd17-426b-9147-166f96087a85.png)


### Steps to reproduce

- Create a folder in an empty project
- try to copy icon.svg to that folder using `DirAccess.copy_absolute()` or `DirAccess.copy()`

or see MRP below

### Minimal reproduction project
[copy_not_working.zip](https://github.com/godotengine/godot/files/10848683/copy_not_working.zip)

To make testing easier the MRP has a plugin that adds a tool menu to execute the function below:
![image](https://user-images.githubusercontent.com/13070158/221809584-7359965a-9028-4ad4-a7c7-aad79ffcb561.png)

```
func _copy_icon() -> void:
	var error := DirAccess.copy_absolute("res://icon.svg", "res://to/")
	print("error trying to copy file: %s"%[error])
	var file := FileAccess.open("res://icon.svg", FileAccess.READ_WRITE)
	print("error opening file: %s"%[file.get_open_error()])
	var dir_error := DirAccess.copy_absolute("res://folder_to_copy/", "res://to/")
	print("error trying to copy dir: %s"%[dir_error])
	var dir := DirAccess.open("res://folder_to_copy/")
	print("error opening 'res://folder_to_copy/': %s"%[dir.get_open_error()])
	var error_not_absolute := dir.copy("test.txt", "res://to/")
	print("error trying to copy 'test.txt' with 'copy' on and opened dir, and not from static 'copy_absolute': %s"%[error_not_absolute])
	print(dir.get_files())
```
it will try to copy either files or folders with `copy_absolute()` or just `copy()`, printing the errors and then trying to access the same files/folders and printing the OK errors.
Repository: angular
Issue: docs: Document the properties of Angular-returned Observables in the API docs
Labels: P3,area: docs

### Describe the problem that you experienced

The return type of an Observable-producing function or property documents the type of values emitted by the Observable. For example, overload 15 of HttpClient.get() returns `Observable<T>` with T being the requested type of the JSON parsed response. 

However, there is more to an Observable contract that is of interest to the API user:

* does it eventually complete?
* how many values are emitted before completion?
* when exactly does it emit?
* Is it a "cold" or "hot" Observable - i.e., do I trigger a side effect like with HttpClient on each subscription?
* Do I get the latest value on subscription (as is the case with [ActivatedRoute](https://angular.io/api/router/ActivatedRoute).params) or do I only get new events (like [AbstractControl.valueChanges](https://angular.io/api/forms/AbstractControl#valueChanges))?
* What is the type of error? (`HttpErrorResponse` in case of `HttpClient`)
* Does something special happen when you unsubscribe?

### Enter the URL of the topic with the problem

_No response_

### Describe what you were looking for in the documentation

_No response_

### Describe the actions that led you to experience the problem

_No response_

### Describe what you want to experience that would fix the problem

It would be helpful to have every documented `Observable` return value in the Angular API to answer these questions in a structured, uniform way in the API docs. `AbstractControl.valueChanges` is a positive example of that:

> A multicasting observable that emits an event every time the value of the control changes, in the UI or programmatically. It also emits an event each time you call enable() or disable() without passing along {emitEvent: false} as a function argument.

An example for above overload of `HttpClient.get` could be:

> An `Observable` that dispatches a new HTTP request on each subscription. If successful, emits the response body parsed as JSON, then completes. In case of an error, signals an error of type [HttpErrorResponse](https://angular.io/api/common/http/HttpErrorResponse). Cancels the request on unsubscribe.

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

```true
This issue is related to #46542 , but not exclusively about the HTTP service. Rather, like @Tomassito [commented](https://github.com/angular/angular/issues/46542#issuecomment-1214223880), it is a general issue with Observables provided by Angular:

> Yes, there should be definitely more information on what to expect from the observables exposed by angular services, especially the httpClient. Do docs even mention the fact that an http request auto completes?
```
Repository: godot
Issue: [API] Typed array default values inconsistencies
Labels: bug,topic:gdextension

### Godot version

4.0-RC6

### System information

Windows 10

### Issue description

While adapting api generation for godot kotlin I encountered inconsistencies for typed arrays.  
Sometime default value is formatted like non typed arrays (with `[]`), sometime it includes type description (with `Array[Type]([])`).  
Here are some examples from generated api:
```json
{
	"name": "data",
	"type": "typedarray::PackedByteArray",
	"default_value": "[]"
}
```
```json
{
	"name": "exclude",
	"type": "typedarray::RID",
	"default_value": "Array[RID]([])"
}
```

### Steps to reproduce

Build RC6 and generate extension api json.

### Minimal reproduction project

N/A