sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Drop-down options in Settings always follow system theme
Labels: Help Wanted,Issue-Bug,Product-Terminal,Area-SettingsUI

### Windows Terminal version

1.18.1421.0

### Windows build number

10.0.22621.1702

### Other Software

_No response_

### Steps to reproduce

1. set the WT theme to be the opposite of your system theme. In my case, system theme is light but Terminal is set to dark.
2. open Settings
3. click any option that has a drop-down.

### Expected Behavior

The application theme is followed, in my case dark.

### Actual Behavior

The system theme is followed, in my case light
(on the right is the Settings app showing that my system theme is light.)
<img width="700" alt="image" src="https://github.com/microsoft/terminal/assets/77467869/b5837f22-a80a-4b09-b469-a715abb9c1b8">
<img width="400" alt="image" src="https://github.com/microsoft/terminal/assets/77467869/9419d25d-cef7-41d8-b937-65be9c4ac073">
Repository: flutter
Issue: [web] re-evaluate our image decoding caching strategy
Labels: engine,platform-web,a: images,c: proposal,P2,team-web,triaged-web

In `flutter/lib/web_ui/lib/src/engine/image_decoder.dart`, our image codec tries to evict the underlying image decoder if it isn't used for a few seconds, and then lazily recreate it if needed. This might be complex and unnecessary, we should consider simplifying this and have the decoder simply tied to the lifetime of the codec object.
Repository: terminal
Issue: Windows Terminal Icon Issue.
Labels: Help Wanted,Issue-Bug,Area-UserInterface,Product-Terminal

### Windows Terminal version

1.16.10262.0

### Windows build number

10.0.22621.1702

### Other Software

_No response_

### Steps to reproduce

Just change the theme of Windows to dark and then again to light.

### Expected Behavior

Windows Terminal icon pinnned in desktop will change as per the theme.

![image](https://github.com/microsoft/terminal/assets/75790404/9c6908ac-416a-4087-ae7c-0336512a5899)


### Actual Behavior

It should change as per theme

https://github.com/microsoft/terminal/assets/75790404/0b4d9d2e-c3a5-4175-8dd2-132ad78f0274
Repository: svelte
Issue: Document resize observer bindings?
Labels: documentation

### Describe the problem

The feature itself appears to be just briefly mentioned in the changelog and the only sort of documentation can be found in the PR (#8022), which also does not explain what exactly the bindings refer to or what the objects contain.

### Describe the proposed solution

Add explanations for the different bindings to the main documentation.

### Alternatives considered

N/A

### Importance

nice to have
Repository: angular
Issue: Ability of variable in localized string
Labels: feature,area: i18n,feature: insufficient votes

### Which @angular/* package(s) are relevant/related to the feature request?

@angular/angular, as in latest version

### Description

Since the localize feature is present in Angular, we are allow to use variable in localize string, and it works well from the time I start to play with Angular. 

But now I have a special situation: I have a string that does not need variable in the base language, as known as source in the .xlf file, but the string need to use a variable when translate to english to make the UX better, seems like it cannot be done because I cannot access component itself without having any varable in source string

### Proposed solution

I don't really have a proper solution at this point, I'm totally ok with any solution that can perfectly solve this problem

### Alternatives considered

Seems like there are no other way to solve this problem
Repository: node
Issue: Race conditions between setTimeout() & setImmediate()
Labels: flaky-test,linux

### Test

test-timers-immediate-queue.js

### Platform

Linux x64

### Console output

```console
02:49:14 not ok 2722 parallel/test-timers-immediate-queue
02:49:14   ---
02:49:14   duration_ms: 140.40000
02:49:14   severity: fail
02:49:14   exitcode: 1
02:49:14   stack: |-
02:49:14     hit 20
02:49:14     node:assert:125
02:49:14       throw new AssertionError(obj);
02:49:14       ^
02:49:14     
02:49:14     AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
02:49:14     
02:49:14     20 !== 10
02:49:14     
02:49:14         at process.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux/test/parallel/test-timers-immediate-queue.js:56:10)
02:49:14         at process.emit (node:events:523:35) {
02:49:14       generatedMessage: true,
02:49:14       code: 'ERR_ASSERTION',
02:49:14       actual: 20,
02:49:14       expected: 10,
02:49:14       operator: 'strictEqual'
02:49:14     }
02:49:14     
02:49:14     Node.js v21.0.0-pre
```


### Build links

- https://ci.nodejs.org/job/node-test-commit-linux/nodes=fedora-last-latest-x64/52202

### Additional information

This seems to be some kinda potential race condition between `setTimeout()` and `setImmediate()` ?

For the following code, it seems `TIMEOUT` or `IMMEDIATE` either could be printed first, since over a few runs the order will flip.
```js
setTimeout(() => {
    console.log('TIMEOUT')
}, 1);
setImmediate(() => {
    console.log('IMMEDIATE');
})
```

However on my machine, the following code will always result in `TIMEOUT` being printed first - [the while loop strategy is what the test uses](https://github.com/nodejs/node/blob/d2a1f71c3e202b23c90daf86bda262f244ce517a/test/parallel/test-timers-immediate-queue.js#L40)
```js
setTimeout(() => {
    console.log('TIMEOUT')
}, 1);
const now = Date.now();
while (Date.now() - now < 2);
setImmediate(() => {
    console.log('IMMEDIATE');
})
```

I was wondering: is it possible due to some conditions on the host system, for `IMMEDIATE` to print before `TIMEOUT` in the second case?

I do not know much about the Event Loop internals, but from some rough reading, `setTimeout()` will put calbacks in the timers queue, `setImmediate()` in the I/O queue, and the timers are always checked first (https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick)

But if in the first case (`setTimeout` without while waiting loop) it is non-predictable, I wonder if there are other factors at play, which make the test flaky.
Repository: PowerToys
Issue: Peek should always on top and can possible new selected files in explorer to update Peek Content
Labels: Idea-Enhancement,Needs-Triage,Product-Peek

### Description of the new feature / enhancement

- Peek should be always on top. May be it have a option to set it.
- When select new files on Explorer. I want Peek update content to new selected.

### Scenario when this would be used?

![image](https://github.com/microsoft/PowerToys/assets/2942670/aede613e-8a27-44ec-a8e7-84debcc98e51)


### Supporting information

_No response_
Repository: go
Issue: proposal: runtime: Allow changing debug.cgocheck at runtime
Labels: Proposal

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

`debug.cgocheck` is a configuration in the runtime package which controls whether to check cgo parameter. It's set by the `GODEBUG=cgocheck=xxx`. But unlike debug variable `GODEBUG=panicnil=xxx`, the `cgocheck=xxx` is only set once and can't be changed at runtime.

If a framework requires disabling cgocheck, as there is no way to change `cgocheck=xxx` at runtime, the framework developers have to require the user to set this env var manually which is inconvenient.

At first glance, it looks like we can implement this idea by changing https://github.com/golang/go/blob/c6fd0c22dca065fbcf8f4a6516be34db408b4397/src/runtime/runtime1.go#L344 to an atomic. Then the `cgocheck=xxx` can be updated like the `panicnil`.

## Background

As mentioned in https://github.com/golang/go/issues/56378#issuecomment-1413101744, We are implementing the Envoy Golang filter extension by using cgo. Currently, we disable `cgocheck` for a better performance.

We do it by using the env var `GODEBUG=cgocheck=0`, but it is inconvenient for users to set up this variable. As discussed in https://github.com/envoyproxy/envoy/issues/25178#issuecomment-1418640312, we hope to change Go's code to allow disabling cgocheck at runtime.

Why we can't set the env var outside? Because Go's env vars are coming from the argv:
https://github.com/golang/go/blob/c6fd0c22dca065fbcf8f4a6516be34db408b4397/src/runtime/runtime1.go#L82-L96

when loading a Go library via dlopen, the argv is passed by libc with a pre-stored var (assigned in the `_init` function when the host starts). So there is no way for the host to add the env var.

Another solution is to use the `//go:debug` flag. Unfortunately, as a framework developer, we cannot control users’ main package or the compile flags.

 If such a change is acceptable, I am willing to submit it.
Repository: TypeScript
Issue: Notes about `String.replace`
Labels: Bug,Help Wanted,Domain: lib.d.ts

(Moved from rom https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1562)

I am using TypeScript 5.0.4.
I have noticed the typing of `String.replace` seem oddly convoluted.

From `lib.es5.d.ts`:
```ts
interface String {
    replace(searchValue: string | RegExp, replaceValue: string): string;
    replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
```

From `lib.es2015.symbol.wellknown.d.ts`:
```ts
interface String {
    replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
    replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
}
```

Like the first parameter is declared as an union, I would expect the second to be the same, at least in the `lib.es5` version.

Notably, this makes the following code not compile:

```ts
// The second argument is an union of replaceValue and replacer from lib.es5
const replacementSteps: ([RegExp, string | ((substring: string, ...args: any[]) => string)])[] = [
    [/(a|b)/gi, "a"],
    [/(c|d)/gi, match => match.toUpperCase()],
];

let myString = "abcdef";

for (const [searchValue, replacement] of replacementSteps)
    myString = myString.replace(searchValue, replacement); // TS2345 - the second parameter is considered invalid
```

By adding this into my declaration, the code works:

```ts
declare interface String {
    replace(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: any[]) => string)): string;
}
```

I cannot propose a solution other than my last hack, and of course the variants with `Symbol` would have to be taken into account. Please consider this just a note.

See also this: https://github.com/microsoft/TypeScript/issues/54223
Repository: pytorch
Issue: ExponentialLR unexpectedly calls `step()` when init argument `last_epoch` is larger than -1
Labels: module: optimizer,triaged,actionable,module: LrScheduler

### 🐛 Describe the bug

Currently, the init function of ``torch.optim.lr_scheduler._LRSchedule`` will call ``self.step()`` once. This causes a mismatch between the learning rate used by the optimizer and the closed_form_lr of ExponentialLR, when init argument `last_epoch` is larger than -1.

```python
import torch

model = torch.nn.Linear(3, 3)
optim = torch.optim.AdamW(model.parameters())
sched = torch.optim.lr_scheduler.ExponentialLR(optim, gamma=0.999)

optim.step()
sched.step()
print("Optim & sched:")
print(optim.state_dict())
print(optim.param_groups[0]["lr"])
print(sched.state_dict())
print(sched._get_closed_form_lr())
print("")

# As if we are restoring from a checkpoint
optim2 = torch.optim.AdamW(model.parameters())
optim2.load_state_dict(optim.state_dict())
# Init scheduler with last_epoch=0
sched2 = torch.optim.lr_scheduler.ExponentialLR(optim2, gamma=0.999, last_epoch=0)

print("Optim2 & sched2:")
print(optim2.state_dict())
print(optim2.param_groups[0]["lr"])
print(sched2.state_dict())
print(sched2._get_closed_form_lr())
print("")

```

As the result shows, ``optim2`` has lr 0.000998001, but the closed form lr of ``sched2`` is 0.000999. This behavior causes confusion and inconsistency when one resumes training from a checkpoint.


### Versions

Collecting environment information...
PyTorch version: 1.13.1
Is debug build: False
CUDA used to build PyTorch: 11.6
ROCM used to build PyTorch: N/A

cc @vincentqb @jbschlosser @albanD @janeyx99 @crcrpar
Repository: next.js
Issue: Using middleware with compress: false will result in empty page
Labels: bug,Runtime

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #22 SMP Tue Jan 10 18:39:00 UTC 2023
    Binaries:
      Node: 18.14.2
      npm: 9.5.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.4.4-canary.10
      eslint-config-next: 13.4.1
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Middleware / Edge (API routes, runtime)

### Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/festive-hamilton-7h1m0x

### To Reproduce

1. Set `compress: false` in `next.config.js` file.
2. Create a middleware.js in the root of the project. You can simply export an empty middleware function without implementing any functionality.
3. Start the dev server, and navigate to any of your page, it will become empty.
4. Removing either 1 or 2 will restore normal function.

### Describe the Bug

Using middleware with `compress: false` will result in empty page

### Expected Behavior

Output normal page.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: ant-design
Issue: Calendar 组件支持自定义 rowNum 和 colNum
Labels: Inactive,unconfirmed

### What problem does this feature solve?

现在版本在年日历的时候无法自定义布局方式，默认是3*4且无法修改。

### What does the proposed API look like?

支持用户传入props修改 rowNum colNum

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: angular
Issue: ngOnDestroy not allowed on non decorated classes used with useClass or useFactory
Labels: area: core,core: di

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

Angular requires every class using `OnDestroy` interface to be decorated with `@Injectable`. That actually makes it impossible to use `useClass` or `useFactory` together with `OnDestroy` when there is a dependency which isn't a class.
An example:
```ts
export class Test implements OnDestroy {
  constructor(private readonly num: number) {
    console.log(this.num);
  }
  
  ngOnDestroy(): void {
    console.log('Test Removed!');
  }
}

export function createTest(num: number): [InjectionToken<Test>, Provider] {
  const token = new InjectionToken<Test>('Test');
  const numToken = new InjectionToken<number>('num');

  const numProvider: Provider = {
    provide: numToken,
    useValue: num,
  };

  const provider: Provider = {
    provide: token,
    useClass: Test,
    deps: [numToken],
  };

  return [token, [numProvider, provider]];
}
```
This code will run and work. You can also see there was once a PR that allowed destroy on factory created classes: https://github.com/angular/angular/pull/23755.

The problem here is there is an error loop. `OnDestroy` won't compile here unless I add `@Injectable` but then I can't use `useClass` with the number dep as it is not known at compile time (Due to `strictInjectionParameters`).
I don't think turning off `strictInjectionParameters` is a good option as it has benefits in other cases. The better idea is allowing `OnDestroy` on all classes regardless of them being decorated or not especially as the runtime allows it.

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

```true
Class is using Angular features but is not decorated. Please add an explicit Angular decorator.(-992007)
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular 16.0.0
```


### Anything else?

Stackblitz won't reproduce the error only in a real project hence no reproduction (`strictInjectionParameters` has no effect there).
Repository: PowerToys
Issue: [Peek] Support photoshop files
Labels: Idea-Enhancement,Product-Peek

### Description of the new feature / enhancement

Now that there's a delightful, new addition to PowerToys named 'Peek', The feature can be enhanced further and made more efficient if trigger shortcut for the same could be set to just one, than a combination of keys. (e.g. Trigger shortcut for QuickLook App for previewing files on Windows).
Also, support for .ai, .psd, .psb files would be appreciated for designers like me.

### Scenario when this would be used?

While previewing files using PowerToys Peek.

### Supporting information

_No response_
Repository: vscode
Issue: Have a way to show only workspace relative path
Labels: feature-request,simple-file-dialog

The simple file dialog shows the whole path in it's input box. If you're in a workspace with a long path, this can take up a lot of space.

This can be improved:
- When a workspace is open and the path is greater than n characters, we could hide the workspace part of the path
- We can have a button + keyboard action to toggle showing the full path


FYI @ulugbekna
Repository: flutter
Issue: Spit out debug symbols for Flutter web WASM
Labels: c: new feature,tool,dependency: dart,a: debugging,platform-web,c: proposal,a: build,P2,e: wasm,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)

### Use case

https://docs.flutter.dev/platform-integration/web/wasm#run-flutter-build-web---wasm

`flutter build web --wasm` compiles a Flutter Web app using WASM, in case there are errors, tools such as Sentry are able to capture those errors and symbolicate them on the server.

For the symbolication to work, we need the debug symbols generated by the build, on Android and iOS, you can use eg `--split-debug-info`.

I have not found a way to spit out `DWARF` debug files from the WASM build unless I missed something.

### Proposal

`flutter build web --wasm` by default spits out debug files (if not DWARF, which format)?

Or add an optional parameter `flutter build web --wasm --split-debug-info=$symbols` that spits out the files in the `$symbols` folder.

Tools such as Sentry then is able to upload those debug files to its server and symbolicate the stack traces.

`flutter symbolize` should also be able to symbolicate stack traces generated by a WASM app.
Repository: storybook
Issue: [Feature Request]:Hope to add multilanguage support
Labels: feature request,ui

### Is your feature request related to a problem? Please describe

_No response_

### Describe the solution you'd like

The ability to provide external interfaces or configurations to modify the language of places such as Toolbars, and the developer handles the language mapping

### Describe alternatives you've considered

Plug-ins can be made to meet the translation needs of a single language, but this requires a lot of rework and is not free, and it is best to expose the internationalized configuration to the developer

### Are you able to assist to bring the feature to reality?

yes, I can

### Additional context

As for this feature, I tried to look it up in the issue and found that there was no relevant question. I can provide pr later, but I need to confirm that this function is not available now, so as to avoid doing invalid work
Repository: material-ui
Issue: [docs] Add docs on composing `css` with `styled`
Labels: docs,package: system,enhancement

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example:
https://codesandbox.io/s/sweet-meitner-1c6fev?file=/src/App.tsx

No steps to reproduce, just open the link above and you'll see the problem.

### Current behavior 😯

Error: `styleArg.raw is undefined`

### Expected behavior 🤔

If I understand the [emotion documentation on this](https://emotion.sh/docs/composition) correctly, it would expect an array when composing two or more sets of styles. So expected behaviour, I guess, is "it just works".

However, even if this is not correct, I feel documentation on how to actually use `css` & `styled` when imported from MUI, is kind of... Missing? Or am I overlooking it? 

### Context 🔦

It's probably also worth nothing that a `styled` component created this way, doesn't even have to be used anywhere in order for this error to show up. It breaks at the point of *declaring* the component, not at the point of *using* it somewhere. That's probably why the stack trace is quite short.

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 113.0.5672.127
    Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.50)
  npmPackages:
    @emotion/react:  11.10.6
    @emotion/styled:  11.10.6
    @mui/base:  5.0.0-alpha.124
    @mui/core-downloads-tracker:  5.11.16
    @mui/material:  5.11.16
    @mui/private-theming:  5.12.0
    @mui/styled-engine:  5.11.16
    @mui/styles:  5.12.0
    @mui/system:  5.11.16
    @mui/types:  7.2.4
    @mui/utils:  5.12.0
    @types/react:  18.2.0
    react:  18.2.0
    react-dom:  18.2.0
    typescript:  4.9.5
```
</details>

For the sake of completeness, I'm on Firefox 113, but I really don't think it matters much.
Repository: PowerToys
Issue: Keyboard Manager / Map key to enter Text
Labels: Needs-Triage

### Description of the new feature / enhancement

in keyboard manager, add the possibility to map a single key or combination of keys to ender a fixed text string

### Scenario when this would be used?

could be used to speed up a string of text the user frequently have to type. 
for example, i-m regularly using this functionality to type my email.

### Supporting information

_No response_
Repository: rust
Issue: Tracking Issue for removing `unsized_locals`
Labels: T-compiler,C-tracking-issue,F-unsized_locals

This is a tracking issue for the MCP "630" (rust-lang/compiler-team#630).
The feature gate for the issue is `#![feature(unsized_locals)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [ ] Implement the MCP (cc @rust-lang/compiler-contributors  -- can anyone write up mentoring
      instructions?)
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])

### Implementation history

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->