sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Metadata names are mangled in inspector.
Labels: discussion,topic:editor

### Godot version

4.1.1 Mono stable

### System information

Ubuntu 22.04, Godot 4.1.1 Mono stable

### Issue description

Godot changes metadata key names so they follow specific capitalization and spacing rules in the inspector, but does not enforce those rules in the actual object metadata. This means the metadata names in the inspector can be very different from the metadata names on the actual objects. This will cause confusion on projects with multiple devs, large projects, and any project the dev is coming back to after taking some time off.

Not only do the actual metadata names not match `Spaced Out Pascal Case`, they _can't_ match `Spaced Out Pascal Case.` If you try to create a metadata key such as `This Key Right Here` in the inspector, it will display the error message `Metadata name must be a valid identifier` and disable the `Add` button.

### Steps to reproduce

Create any type of object and click "Add Metadata" in the inspector.

Create a few metadata key/value pairs.

`type`: String = `My Type`
`another_key`: bool = `true`

These will show in the inspector as `Type` and `Another Key`.

Try to fetch the metadata:

`your_object.get_meta("Type", "Nope")`
```Nope```

`your_object.get_meta("Another Key", "Nope")`
```Nope```

`your_object.get_meta("type", "Nope")`
```My Type```

`your_object.get_meta("Another Key", "Nope")`
```true```


### Minimal reproduction project

[metanope.tar.gz](https://github.com/godotengine/godot/files/12836128/metanope.tar.gz)
Repository: godot
Issue: GD0102 is incorrectly reported for generic types with Variant-compatible constraints
Labels: bug,topic:dotnet

### Godot version

4.1.1.stable.mono

### System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 5700 XT (Advanced Micro Devices, Inc.; 31.0.21001.45002) - AMD Ryzen 7 3800X 8-Core Processor (16 Threads)

### Issue description

The C# ExportAttribute only works on Variant-compatible types. For user-defined types, this pretty much means it needs to ultimately derive from GodotObject or be an Enum. However, this does work with generic that have these constraints on the type:

```
using Godot;

internal partial class Foo<T> : GodotObject
        where T : GodotObject
{
    [Export]
    private T _Bar;
}

internal partial class Baz<T> : GodotObject
        where T : Enum
{
    [Export]
    private T _Bar;
}
```

In the above cases, the source generator reports GD0102 from [here](https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertyDefValGenerator.cs#L165). This is because the [method](https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/MarshalUtils.cs#L86) used to find a Marshal-able type does not find one. The expected behavior is that the first case should resolve to `MarshalType.GodotObjectOrDerived` and the second case should resolve to `MarshalType.Enum`. A third case for `T[]` also fails and should resolve to `MarsharlType.GodotObjectOrDerivedArray`.

### Steps to reproduce

Create the following C# script in a Godot project.

```
using Godot;

internal partial class Foo<T> : GodotObject
        where T : GodotObject
{
    [Export]
    private T _Bar;
}

internal partial class Baz<T> : GodotObject
        where T : Enum
{
    [Export]
    private T _Bar;
}
```

### Minimal reproduction project

N/A
Repository: node
Issue: Document default unhandledRejection handler behavior
Labels: doc,process,promises

### Affected URL(s)

https://nodejs.org/api/process.html#event-unhandledrejection

### Description of the problem

The unhandledRejection event is well documented, but I'd like to know what happens by default when the author's code doesn't implement a unhandledRejection handler. Does it print an error? Does it silently fail? etc.
Repository: pytorch
Issue: backward and grad behave inconsistently w.r.t. set_ on leaf variable
Labels: module: autograd,triaged,needs research,has workaround

### 🐛 Describe the bug

```

import torch

x = torch.randn(2, requires_grad=True)
y = x.sum()
with torch.no_grad():
    x.set_(torch.randn(2))

y.backward()  # OK
print(x.grad)

x = torch.randn(2, requires_grad=True)
y = x.sum()
with torch.no_grad():
    x.set_(torch.randn(2))

print(torch.autograd.grad(y, (x,)))  # Errors!
```

I would have expected these to both pass or both error, but backward works while grad does not. I print out x.grad to show that the x.grad field is indeed filled in.

cc @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7 

### Versions

main
Repository: go
Issue: cmd/go: using `--trimpath` in `go build` removes `-ldflags` from `go version -m` output
Labels: NeedsFix,GoCommand

### What version of Go are you using (`go version`)?

<pre>
$ go version 1.21.2
</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='arm64'
GOBIN=''
GOCACHE='/Users/example/Library/Caches/go-build'
GOENV='/Users/example/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/example/repos/dev/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/example/repos/dev'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.21.2/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.21.2/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21.2'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/example/repos/dev/src/github.com/nats-io/nats-server/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/kr/7z1nxlm160ng389wq51vpktw0000gn/T/go-build4075377866=/tmp/go-build -gno-record-gcc-switches -fno-common'
</pre></details>

### What did you do?

```sh
git clone https://github.com/nats-io/nats-server
go build -ldflags="-X main.version='2.10.2'"  --trimpath .
go version -m ./nats-server | grep ldflags
```

### What did you expect to see?

```
go version -m ./nats-server | grep ldflags
	build	-ldflags="-X main.version='2.10.2'"
echo $?
0
```

### What did you see instead?

```
go version -m ./nats-server | grep ldflags
echo $?
1
```
Repository: flutter
Issue: Flutter drive --browser-dimension not working
Labels: tool,t: flutter driver,platform-web,has reproducible steps,P2,team-web,triaged-web,found in release: 3.13,found in release: 3.16

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

I am trying to run flutter web test on Chrome, with the following command:

```
flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/main_test.dart > C:\Automation_test\Report_log\log.txt \
  --browser-dimension="1920,1080" \
  -d chrome
```

### Expected results

The browser is resized to 1920 x 1080 when start.

### Actual results

The browser is NOT resized to 1920 x 1080 when start.

### Code sample

<details><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: rust
Issue: Suggest transition patterns with typestates
Labels: A-diagnostics,T-compiler,A-suggestion-diagnostics

### Code

```Rust
#![allow(unused)]

use std::marker::PhantomData;

trait AnyState {}

impl AnyState for Uninit {}
impl AnyState for Initialized {}

struct Uninit;
struct Initialized;

struct Device<State> {
    val: u32,
    phantom: PhantomData<State>
}

impl Device<Uninit> {
    fn new(phy_id: u32) -> Self { todo!() }
    fn initialize(self) -> Device<Initialized> { todo!() }
}

impl Device<Initialized> {
    fn read_data(&self) -> u32 { todo!() }
    fn deinit(self) -> Device<Uninit> { todo!() }
}

impl<S: AnyState> Device<S> {
    fn id(&self) -> u32 { self.val }
}

fn example_run_code(f: Device<Uninit>) {
    f.read_data();
}
```


### Current output

```Shell
error[E0599]: no method named `read_data` found for struct `Device<Uninit>` in the current scope
  --> src/lib.rs:33:7
   |
13 | struct Device<State> {
   | -------------------- method `read_data` not found for this struct
...
33 |     f.read_data();
   |       ^^^^^^^^^ method not found in `Device<Uninit>`
   |
   = note: the method was found for
           - `Device<Initialized>`

For more information about this error, try `rustc --explain E0599`.
```
```


### Desired output

```Shell
error[E0599]: no method named `read_data` found for struct `Device<Uninit>` in the current scope
  --> src/lib.rs:33:7
   |
13 | struct Device<State> {
   | -------------------- method `read_data` not found for this struct
...
33 |     f.read_data();
   |       ^^^^^^^^^ method not found in `Device<Uninit>`
   |
   = note: the method was found for
           - `Device<Initialized>`
hint: `Device<Uninit>::initialize()` can convert a `Device<Uninit>` to a `Device<Init>`
    f.initialize().read_data();

For more information about this error, try `rustc --explain E0599`.
```

### Rationale and extra context

The message is already quite awesome here, a nice hint would be to suggest methods that can do a conversion if it looks like a typestate. Something like:

- Check if the type definition has a generic type
- Check if the requested function exists on another variant of that type (already being done here)
- If there is a function that converts between the variants, `fn (TypeStateType<A>) -> TypeStateType<B>`. If so, suggest it

It feels like we may do something similar in some other cases
Repository: pytorch
Issue: .lldbinit formatters only work when building with clang
Labels: triaged,release notes: devx,topic: devs

# Summary
I wrote a few formatters for working c++ aten code which can be found here: https://github.com/pytorch/pytorch/blob/c2e7a0d6897bbf75239d238a49197bfd3970142e/tools/lldb/pytorch_lldb.py#L73

trying to run this command from within lldb returns None. I not entirely sure why this doesn't work with GCC but works as expected with Clang... hmmm
Repository: flutter
Issue: [Impeller] Large scale transforms prevent glyph atlas population.
Labels: engine,P2,e: impeller,team-engine,triaged-engine

## Steps to reproduce

Run the following on macOS with `--enable-impeller`:

```dart
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';

void main() {
  runApp(
    const Directionality(
      textDirection: TextDirection.ltr,
      child: _BugReport(
        child: Text('foo', style: TextStyle(fontSize: 300)),
      ),
    ),
  );
}

class _BugReport extends SingleChildRenderObjectWidget {
  const _BugReport({required super.child});

  @override
  _RenderBugReport createRenderObject(BuildContext context) => _RenderBugReport();
}

class _RenderBugReport extends RenderBox with RenderObjectWithChildMixin<RenderBox> {
  @override
  void performLayout() {
    size = constraints.biggest;
    child!.layout(constraints);
  }

  @override
  void paint(PaintingContext context, Offset offset) {
    // Modified from `makePerspectiveMatrix(0.001, 1.0, 1.0, 10.0)..translate(0.0, 0.0, -7000.0)`
    Matrix4 transform = Matrix4(
      2000,  0,       0,      0,
      0,     2000,    0,      0,
      0,        0,   -1,   9000,
      0,        0,   -1,   7000,
    );
    context.pushTransform(false, offset, transform, paintChild);
  }

  void paintChild(PaintingContext context, Offset offset) {
    context.paintChild(child!, offset);
  }
}
```

## Expected results

You expect to see the "foo" text on a black screen.  This is what you see when you run using Skia.

## Actual results

Nothing is rendered, and the following error shows up in the console:

```
[ERROR:flutter/impeller/base/validation.cc(49)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create valid atlas.
[ERROR:flutter/impeller/base/validation.cc(49)] Break on 'ImpellerValidationBreak' to inspect point of failure: Cannot render glyphs without prepared atlas.
[ERROR:flutter/impeller/base/validation.cc(49)] Break on 'ImpellerValidationBreak' to inspect point of failure: Failed to render entity.
[ERROR:flutter/shell/platform/embedder/embedder_external_view_embedder.cc(198)] Could not render into the embedder supplied render target.
```

## Flutter version

```
[✓] Flutter (Channel main, 3.16.0-6.0.pre.29, on macOS 13.6 22G120 darwin-arm64, locale en)
    • Flutter version 3.16.0-6.0.pre.29 on channel main at /Users/tvolkert/project/flutter/flutter
    • Upstream repository git@github.com:flutter/flutter.git
    • Framework revision 5207a309e8 (8 minutes ago), 2023-10-07 02:51:32 -0400
    • Engine revision 8711c1fd21
    • Dart version 3.3.0 (build 3.3.0-0.0.dev)
    • DevTools version 2.28.1
```
Repository: flutter
Issue: [Web]: Proposal to Stop downloading google font roboto when the app uses global custom font
Labels: c: new feature,platform-web,c: proposal,P2,team-web,triaged-web

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

When creating a web app, flutter automatically downloads google font roboto https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf on the client, even when the whole app uses custom fonts. Waste of the network resources, and a violation of the content security policy when only wanting to use resources of the host domain. I'm glad that flutter now has the --csp and --no-web-resources-cdn flags, they are great, but the downloading of the roboto font from google servers when not used is the last one that needs to be cleaned up. 

### Expected results

way to turn off downloading of google font when not used.

### Actual results

downloading of google font that is not being used with no way to turn it off.

### Code sample

<details><summary>Code sample</summary>

```dart

```

</details>
 

### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>



</details>
 

### Logs

<details><summary>Logs</summary>

```console

```

</details>
 

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console

```

</details>
Repository: godot
Issue: Quick Open menu is unfocused when opening from the script editor
Labels: bug,topic:core,topic:editor

### Godot version

Godot v4.2.dev6 - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - integrated Intel(R) Graphics (ADL GT2) () - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

### System information

Godot v4.2.dev6 - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - integrated Intel(R) Graphics (ADL GT2) () - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

### Issue description

This is a regression.

Expectation: I open a quick open menu, e.g. with Ctrl+Alt+O, and the line edit is immediately focused so I can start typing

Reality: The quick open menu window is unfocused.

### Steps to reproduce

1. Go in the script editor
2. Alt + Ctrl + O
3. You can see that the main window is unfocused for a moment, but then it becomes focused again (stealing focus from the new window)

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: Skip a particular version
Labels: Area-Setup/Install,Needs-Triage

### Description of the new feature / enhancement

PowerToys Settings | General | Version | "An update is available: version X" section should contain a button or tick box that would allow to skip upgrading to that version X and no longer show notifications for that particular version.
![PowerToys_skip_version](https://github.com/microsoft/PowerToys/assets/58312771/a3c4e441-e469-44ce-a2ea-e9f3f5963d90)


### Scenario when this would be used?

The user reviewed the release notes and found that the new version didn't contain any new feature that he/she would use and didn't want to spend time upgrading and wouldn't be annoyed by repeating notifications of the same release.

### Supporting information

_No response_
Repository: terminal
Issue: option to extend background to tab row
Labels: Issue-Feature,Help Wanted,Product-Terminal,Area-Theming

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement
currently the background images option does not affect the background of the tab row.
an option to extend the background image to the tab row would be nice

![wt](https://raw.githubusercontent.com/BPplays/images/main/issues/wt/wt-tb/V2_Screenshot_2023-10-07_035011.webp)
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).


# Proposed technical implementation details (optional)
-->
<!-- 
A clear and concise description of what you want to happen.
-->
Repository: godot
Issue: Godot Freeze after minimizing
Labels: bug,topic:editor

### Godot version

4.1.2

### System information

v4.1.2.stable.official [399c9dc39]

### Issue description

Every time I close Godot by minimizing or change tabs to another Windows app its starts to freeze and I cant click some features in it.

### Steps to reproduce

[instancing_starter.zip](https://github.com/godotengine/godot/files/12837645/instancing_starter.zip)


### Minimal reproduction project

[instancing_starter.zip](https://github.com/godotengine/godot/files/12837646/instancing_starter.zip)
Repository: PowerToys
Issue: Automate relocation of pagefile.sys, hiberfile.sys, and temp file locations to sacrificial 2nd SSD for reducing SSD wear.
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

The idea is to reduce the amount of writes/rewrites to a main SSD by automating the move of as many temp files and temp file locations - from  pagefile.sys, hiberfile.sys to internet cache files to a secondary sacrificial SSD. 

### Scenario when this would be used?

This would help preserve the longevity of a main C-drive SSD by relocating the bulk of the slow but often writes/rewrites to a second and presumably smaller/cheaper SSD (perhaps preferentially with a higher TBW or more wear resistant NAND construction.

### Supporting information

Though there is a great deal of information on the internet about how to manually make such individual moves, there is no one tool (that I'm aware of) that simplifies the process, and that would automate the relocation of the bulk of temp, cache, and short-lived files to another location.  I presume some logic would have to go along with this like checking that such an advanced power-toy change would be applicable to a system (available SSD etc).  I presume such an SSD could also be transparently mounted  via syslinks, and there'd have to be some sort of check/relocation incase that SSD failed and disappeared, or went into fault-tolerate read-only mode.
Repository: TypeScript
Issue: Incorrect inference of mapped substitution type in conditional involving a union of arrays (regression)
Labels: Bug,Help Wanted

### 🔎 Search Terms

"inference", "conditional type", "substitution type", "mapped type", "type constraint", "array", "union type"

### 🕗 Version & Regression Information

This changed between versions 5.0.4 and 5.1.6

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.1.6#code/C4TwDgpgBAShB2BDAthAJlAvFAThRaA9vADYhQAUA3lANoDWAXFAAo6GQ6gDSEIAuswDOwHAEt4AcygBfKAB8oAV3hoIAMwnoAlLX4AofaEhQAYoUIAeACpQIAD2AI0Q3PiKlyFNhwhcQvOSKKmqa8Dp6CrAIKOgAfFj6UMlQtg5Oqq5wSKgYAPxQAOIQwIFClnAAjkpieGg2cQnMVTV1DYbG0MWlfOUwdo7OWTG5Cdg0tNxQElD0fITqsIKz84swk-yyhgD028pCiJIQRuDQAIJYZhaWtADkiLd5-Am7dABEiG8GnVAAQpfmKy0GiIPLMW4AI1usmeUFetA+XyAA

### 💻 Code

```ts
type Renamed = readonly ({ [k: PropertyKey]: string } | undefined)[]

type Foo<T extends readonly (PropertyKey | undefined)[] | Renamed> =
    T extends Renamed ? GetKeys<Required<T>> : Required<T>
//                              ~~~~~~~~~~
// Type 'Required<T>' does not satisfy the constraint 'Renamed'

type GetKeys<R extends Renamed> = { [K in keyof R]: keyof R[K] }

// usage
type A = Foo<['a'?]> // ["a"]
type B = Foo<[{ a?: 'b' }]> // ["a"]
```


### 🙁 Actual behavior

TS fails to see that `Required<T extends Renamed>` extends `Renamed`.


### 🙂 Expected behavior

It should compile.

### Additional information about the issue

Substitute `readonly (PropertyKey | undefined)[]` with something that is not an array and the problem disappears. 

I get the same error when I do `GetKeys<Id<T>>` with `type Id<T> = { [K in keyof T]: T[K] }`.

`Extract<Required<T>, Required<Renamed>>` silences the error, but `Extract<Required<T>, Renamed>` does not.