sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: Get Results from Multiple Models using api.
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

There should be an option to add or load multiple models in memory. So that when we pass the model name via API. It should return results from that model

### Proposed workflow

1. Go to Default model and select multiple model
2. Press Save
3. Add property model name or model hash in api for image generation like text2image etc


### Additional information

_No response_
Repository: storybook
Issue: [Bug]: `subcomponents` meta property always invalid with TypeScript Strict mode for React
Labels: bug,help wanted,block: argstable,sev:S4

### Describe the bug

When React projects TypeScript config has Strict mode enabled `subcomponents` meta property always shows TypeScript error for every subcomponent property. When Strict mode is disabled no error is happening.

<img width="530" alt="Screenshot 2023-06-21 at 12 53 52" src="https://github.com/storybookjs/storybook/assets/654597/8d43d6d8-35a7-406d-9533-e8c0eaa4c09b">
<img width="563" alt="Screenshot 2023-06-21 at 12 54 51" src="https://github.com/storybookjs/storybook/assets/654597/ed159f7e-6597-48e2-8bda-54f2801ef29c">

```
Type '({ children }: RequiredChildrenProps) => Element' is not assignable to type 'ComponentType<unknown>'.
  Type '({ children }: RequiredChildrenProps) => Element' is not assignable to type 'FunctionComponent<unknown>'.
    Types of parameters '__0' and 'props' are incompatible.
      Type 'unknown' is not assignable to type 'RequiredChildrenProps'.(2322)
```

### To Reproduce

https://stackblitz.com/edit/github-w3gat5?file=tsconfig.json,src%2Fstories%2FMainComponent.stories.tsx&preset=node

It is configured with `strict: true`.

### System

```shell
Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
  npmPackages:
    @storybook/addon-essentials: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/addon-interactions: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/addon-links: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/blocks: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/react: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/react-webpack5: ^7.1.0-alpha.37 => 7.1.0-alpha.37 
    @storybook/testing-library: ^0.1.1-next.0 => 0.1.1-next.0
```


### Additional context

Issue is not present in Storybook 6.

`subscomponents` type in Storybook 6:

```ts
subcomponents?: Record<string, React.ComponentType<any>> | undefined
```

`subscomponents` type in Storybook 7:

```ts
ComponentAnnotations<ReactRenderer, MainComponentProps>.subcomponents?: Record<string, React.ComponentType<unknown>> | undefined
```

Probably the main issue is a change from `React.ComponentType<any>` to `React.ComponentType<unknown>`.
Repository: pytorch
Issue: How to unwrap after auto_wrap in FSDP?
Labels: oncall: distributed,triaged,module: fsdp

I am currently fine-tuning a LLM (LLaMA) and would like to retrieve the gradients of each weight (parameter) after every gradient update. However, I notice that weights are (auto) wrapped into stuff like “_fsdp_wrapped_module._flat_param” during training. I need to map these wrapped weights to the original LLaMA architecture such as “self_attn.v_proj”. Any code examples?

I guess “summon_full_params()” might be the function that I look for, but I am not sure if that is correct. I also have difficulty using this function. Thanks a lot for any help!

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: next.js
Issue: App.getInitialProps runs unnecessary in case of a server error
Labels: Pages Router

### Verify canary release

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

### Provide environment information

```bash
The issue is not environment dependant.
```


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

App directory (appDir: true)

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

https://github.com/vercel/next.js/blob/canary/packages/next/src/client/index.tsx#L442

### To Reproduce

-

### Describe the Bug

This
```
return Promise.resolve(
        renderErrorProps.props?.err
          ? renderErrorProps.props
          : loadGetInitialProps(App, appCtx)
```

Should be
```
return Promise.resolve(
        renderErrorProps.err
          ? renderErrorProps.props
          : loadGetInitialProps(App, appCtx)
```

As `err` is stored not on `renderErrorProps.props`, just `renderErrorProps`.

Like this, a server error always calls `App.getInitialProps` on the client side.

### Expected Behavior

In case of a server error, `next` should not call `App.getInitialProps` on the client side.

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

_No response_

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

_No response_
Repository: TypeScript
Issue: 'this' implicitly has type 'any' in a function used within a conditional expression
Labels: Bug,Help Wanted

# Bug Report

### 🔎 Search Terms

this any implicit 2683 widen

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=5.2.0-dev.20230621#code/PTAEAEGcBcCcEsDG0Bco4FcCmAoH8A7aLWAMwENEtQBlac40Abx1FADdyAbbNGBAgHMA3K1ABbBogAWWSAApOPLHziFBASjQAjAPa6uWcgVEBfPABMsiLuVjVSGAsni6CEytFmQ6DLPJg-NCYObl5QfnVQUwAaUOVVAU0dfUNjUSsbOwcnFzdQeB96YgDilVAnAGsCXQB3Ai0IsoLIWjLRHBB0aULQC105AgByaFBa3VhKnEdnaFd3Yhh5RDdSeEE0Kpr6uIAHe3YAYVX1zYJquobmMXhSUHlC3xKVgjXNDWu2NntoDFh3FhfL4AOlBLzeMTEQMk0BkcjQjzK8n2WCOJ00UKBoAA-KAUWjXutgTC4ZBMUC0DM8u5FGFypEhB9AViWT8-u5JMhvE9-F5CnElNgNKIWUDYpjTCLonhvlhfv9QOD1mY8F0+a1xpMyVS5vlFtAAEzLdFoHlMsRshXMtig4FKwSQ6FSbyU3K6mmC+lqRmfLGWjmeblI9UCunCiWO6IqoA)

### 💻 Code

```ts
// @strict: true

interface State {
  value: string;
  matches(value: string): boolean;
}

declare function macthesState(state: { value: string }, value: string): boolean;
declare function isState(state: unknown): state is State;

// this doesn't work
function test(config: unknown, prevConfig: unknown) {
  if (isState(config)) {
    return {
      ...config,
      matches: isState(prevConfig)
        ? prevConfig.matches
        : function (value: string) {
            return macthesState(this, value);
          },
    };
  }

  return config;
}

// this works
function test2(config: State) {
  return {
    ...config,
    matches: function (value: string) {
      return macthesState(this, value);
    },
  };
}
```

### 🙁 Actual behavior

'this' implicitly has type 'any' because it does not have a type annotation.(2683)

### 🙂 Expected behavior

inferred `this` type
Repository: flutter
Issue: Trigger navigation on fourth and fifth mouse buttons
Labels: c: new feature,framework,f: gestures,c: proposal,a: desktop,P3,team-framework,triaged-framework

### 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

Currently it is common behavior of many desktop applications (especially browsers and file managers) to navigate forwards and backwards when the user presses the 4th and 5th mouse buttons (usually the buttons on the left side of an 'advanced' mouse) respectively. Unfortunately Flutter seems to be completely void of such support.

This issue specializes in the use case mentioned in: https://github.com/flutter/flutter/issues/115641

### Proposal

There are two approaches I could imagine happening:

1. Map 'mouse 4' to 'browser navigate forwards' and 'mouse 5' to 'browser navigate backwards'
2. Invoke corresponding intents directly on matching mouse button up events

I noticed there isn't any 'pop intent' happening by default when pressing <kbd>Esc</kbd> (worth another issue?). The only exception is the `DismissIntent` on dialogs. But even in this case, it doesn't support mouse buttons.

As far as I am concerned, I'm not aware of any defaults for mapping navigating backwards and forwards to shortcuts/intents, likewise for treating mouse buttons similar to keyboard keys.
Repository: flutter
Issue: Date Picker not properly compatible with October 1582.
Labels: framework,f: material design,f: date/time picker,a: internationalization,has reproducible steps,P3,found in release: 3.10,found in release: 3.12,team-design,triaged-design

https://github.com/flutter/flutter/blob/66f47e94b1aaa15b6b45a1c4804cc0bbed7d0ff7/packages/flutter/lib/src/material/date.dart#L124-L137

Date Picker not properly compatible with October 1582,  Is it necessary for Flutter to consider this special point？

This is not displayed correctly on showDatePicker
![image](https://github.com/flutter/flutter/assets/37872392/15b1029d-90d5-4440-87d3-d1a9d2d2ba4e)

This is the correct display on the Apple calendar.

![20230621210221](https://github.com/flutter/flutter/assets/37872392/9f32ace9-14c0-46bc-9a2f-030a7103aaba)
Repository: vscode
Issue: Cursor should snap to nearest sash for easy resize
Labels: feature-request,splitview-widget,grid-widget,sash-widget

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
In [i3](https://i3wm.org/) you can  hold the mod1 key then right click to snap the cursor to the closest border/sash so that you don't have hunt for border pixels to resize windows. I really think something like this should exist in vscode as well. Maybe `ctrl + right-click` and then the cursor will 'snap' to the nearest sash?
Repository: flutter
Issue: [shared_preferences] Unable to read Date type values from iOS/macOS UserDefaults
Labels: c: new feature,p: shared_preferences,package,team-ecosystem,P3,triaged-ecosystem

### 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

IOS/macOS uses plist format to store UserDefaults. This format allows to store [Date](https://developer.apple.com/documentation/foundation/nsuserdefaults#2926904) type objects. Reading UserDefaults which include this type of value in Flutter is not possible at this moment and causes crash.
Reading full UserDefaults will be useful especially in case of migration of app from native code to Flutter.

### Steps to reproduce

1. Add date to UserDefaults by native code. 
`UserDefaults.standard.set(Date.init(), forKey: "datatest1")`
2. Add shared_preferences dependency into flutter app.
3. Use SharedPreferences instance with access to all shared preferences.
`SharedPreferences.setPrefix('');`
 `await SharedPreferences.getInstance();`

### Proposal

Date type objects in UserDefaults are specific for iOS/macOS, other platforms use JSON to store preferences, and Android types match Flutter.
Date type objects in UserDefaults may be converted into timestamps and returned as numbers to Flutter.
This proposal is covered by following pull request https://github.com/flutter/packages/pull/4230 which was rejected because it was addressing other issue.
Repository: vscode
Issue: Support "additionalTextEdits" for _other_ files in CompletionItems
Labels: feature-request,suggest

Spawned from discussion in https://github.com/microsoft/vscode/issues/184924 with @jrieken...

In Dart, we currently use `command`s on `CompletionItem`s to handle the case where we need to add imports for a completion, but the imports live in a different file to the one the completion is inserted into (these are called "part files" in Dart). The existing `additionalEdits` field only allows edits in the same file.

@jrieken would like to remove the ability to add `command`s during `resolve` (because it will only run if `resolve` has completed before the completion is accepted), but this means doing more work up-front (to compute if the command is required, and the arguments) and would also increase the payload size (which can already be quite large).

Being able to add something like `additionalEdits` during `resolve` that supported edits to other files would allow VS Code to try to apply them after `resolve` completes (even if that's after the suggestion is inserted) like it does with `additionalEdits` - something that would not be possible with generic do-anything `command`s.
Repository: vscode
Issue: [wsl] Automatically give vscode wsl sh scripts +x
Labels: feature-request,WSL

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Per issue #166207, the wsl.conf setting that makes shared .ssh viable causes failure on vscode upgrade until the user gives the shell scripts the executable bit manually. This is, for what its worth, permissions working as intended, even if annoying. Would it be possible to get the update script to check and set the executable bit automatically?
Repository: next.js
Issue: unstable_cache does not deserialize dates
Labels: Pages Router

### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.12.1
      npm: 9.6.4
      Yarn: 1.22.19
      pnpm: 7.13.1
    Relevant packages:
      next: 13.4.7-canary.2
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
```


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

App directory (appDir: true), Data fetching (gS(S)P, getInitialProps)

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

https://github.com/SSardorf/next_unstable_cache_date_deserialization

### To Reproduce

1.  `npm i`
2. `npx prisma generate`
3.  `npx prisma db push`
4. `npx prisma db seed`
5. `npm run dev`

When you first run the project, you'll see that it loads correctly (cause first prisma invocation will result in non-cached data)
When you refresh, the cached data will be shown, and it'll throw an error, as `post.createdAt` is no longer a Date, but a string:
`<p>{post.createdAt.toISOString()}</p>`

### Describe the Bug

When you first run the project, you'll see that it loads correctly (cause first prisma invocation will result in non-cached data)
When you refresh, the cached data will be shown, and it'll throw an error, as `post.createdAt` is no longer a Date, but a string:
`<p>{post.createdAt.toISOString()}</p>`

### Expected Behavior

unstable_cache should correctly de-serialize Dates.


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

_No response_

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

_No response_
Repository: godot
Issue: ScrollContainer will clip not only content, but also the drop shadow defined in the theme
Labels: bug,topic:rendering,topic:gui,topic:2d

### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

Windows 10

### Issue description

When styling a ScrollContainer and adding a panel with a drop shadow to the theme, this drop shadow will only be displayed when you switch off the content clipping for the ScrollContainer - which kind of defeats the purpose of this control:

![image](https://github.com/godotengine/godot/assets/22897030/fb25dca4-9728-4cf8-95a2-ffe408ac39d3)

According to the documentation, the clip_contents setting should only affect the *children* of the control, but not the control itself - which is what I would also expect in this case: The shadow should be shown even when clip_contents is set to true.

### Steps to reproduce

Add a ScrollContainer and add a Panel with a drop shadow via theme override. The drop shadow will only be visible when you switch off clip_contents.

### Minimal reproduction project

[ClipContentWithDropShadow.zip](https://github.com/godotengine/godot/files/11819865/ClipContentWithDropShadow.zip)
Repository: flutter
Issue: [packages] Make a bot that can do version bumps
Labels: team,package,team-ecosystem,P2,triaged-ecosystem

The largest friction point for dependabot PRs to roll dependencies in packages is that in many cases they require a version bump, so someone has to manually check out the branch, run the script, and then push back to the branch. If we had a bot that watched flutter/packages PRs (for dependabot PRs and/or for an invocation of the bot in a comment) and could do those steps (e.g., via a role account that has permission to push changes) it would make dependabot PRs trivial to manage directly from the web interface.

If we have it comment-driven, it would be nice to be able to control the script params—version bump type, release note message—via comment, but even without that it would be useful (since editing an already-edited file from the web is much easier that editing a new file).
Repository: go
Issue: x/build/cmd/relui: "Upload modules to CDN" can fail and is not idempotent
Labels: Builders,NeedsInvestigation

Seeing BuildReleaseTasks.uploadModules sometimes make partial progress, then fail, and begin to retry. Retrying requires additional permissions to be able to overwrite files it has already started to upload on a previous attemt.

It doesn't seem to log or otherwise make it apparent why a retry was needed in the first place. Tracking issue to resolve this.

Also see related issue #45893 (it was closed after releasebot went away).

CC @golang/release.
Repository: godot
Issue: Debugger leaks memory after trying to display a big array (<1MiB) on breakpoint
Labels: bug,topic:rendering

### Godot version

Reproducible in: v4.0.3.stable.official [5222a99f5], v4.3.rc1, v4.3.rc2.official [3978628c6]

### System information

Windows 11 - Godot v4.0.3.stable.official - Vulkan (Forward+)

### Issue description

If an error is thrown in the same scope after we have allocated a packed array of specific size (up until 1048568 bytes) Godot leaks memory even after the game is closed. The leaked memory stays until Godot is restarted.

Also memory leaked seems unreasonably big for an array 1MiB in size.

Normal usage:
![image](https://github.com/godotengine/godot/assets/47721763/085ddf92-e793-476e-9d9a-b6f654ab582f)

After a few runs (with errors):
![image](https://github.com/godotengine/godot/assets/47721763/2400a176-e2af-4baf-9c20-b542d3230c10)

Same thing on Arch Linux (KDE, v4.3.stable.mono.arch_linux):
![image](https://github.com/user-attachments/assets/2299945a-998b-48d4-b271-2ca28cf3ec11)

After 1 single run:
![image](https://github.com/user-attachments/assets/07083bcb-5f8a-4d41-864c-954223df2ae2)

The game is not running in either of those pictures. The memory usage stays on the same level until Godot is restarted.

If the code doesn't throw any errors, the memory is cleaned up properly.

### Steps to reproduce

1. Create any scene with any node
2. Attach a script from MRP to any node
3. Wait until it crashes
4. Check memory usage in system monitor
5. Run a few times
6. Notice that it steadily goes up

### Minimal reproduction project

[real_minimal_repro.zip](https://github.com/user-attachments/files/16573139/real_minimal_repro.zip)
Repository: flutter
Issue: [go_router] Provide an API to look up active subroute in ShellRoute and StatefulShellRoute builders
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

Currently, the [go_router](https://github.com/flutter/packages/tree/main/packages/go_router) package contains simple examples of [ShellRoute](https://github.com/flutter/packages/blob/main/packages/go_router/example/lib/shell_route.dart) and [StatefulShellRoute](https://github.com/flutter/packages/blob/main/packages/go_router/example/lib/stateful_shell_route.dart), and the structure of the routers defined in these examples can be roughly described as follows:

```
GoRoute
 |-- ShellRoute (or StatefulShellRoute)
      |-- GoRoute(Books tab)
      |    |-- GoRoute(book details page)
      |
      |-- GoRoute(Shops tab)
           |-- GoRoute(shop details page)
```

The main screen of this app has an persistent navigation bar with 'Books' and 'Shops' tabs. The following paths are valid in this app:

- `/books/details/<book-id>` : Opens the details page of the specified book in the Book tab.
- `/shops/details/<shop-id>`  : Opens the details page of the specified shop in the Shops tab.

and these navigations are completely independent in each tab. In practice, however, it is quite common for a shop details page to contain a list of thumbnails of books sold in the shop, and vice versa. And typically, tapping a book's thumbnail will navigate the user to the book's details page in the current tab. One naively updates the above router for this usecase by adding new routes under each tab like:

```
GoRoute
 |-- ShellRoute (or StatefulShellRoute)
      |-- GoRoute(Books tab)
      |    |-- GoRoute(book details page)
      |    |-- GoRoute(shop details page) <-- New route
      |
      |-- GoRoute(Shops tab)
           |-- GoRoute(shop details page)
           |-- GoRoute(book details page) <-- New route
```

This new router might work fine, but has a downside that it requires to know the current active tab when `context.go` or `context.push` because we want to open the details page within the current tab.

```dart
// If the Books tab is active
context.go('/books/book-details/$bookId');
// or the Shops tab is active
context.go('/shops/book-details/$bookId');
```

My question is, is this the correct way to do that? I think it would be helpful for the developers if this package provides additional examples of usecases like the one that I've explained.

### P.S. (2023-06-29)

The desired behavior in my mind is to be able to open a page in the current active tab without including the information about the tab in the URL like:

```dart
// Opens the book details page in the currently active tab.
// We don't need to know which tab is active at this time.
context.go('book-details/$bookId');
```