sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: Static/Public Resources Relative URL From CSS Changes Between Dev + Build
Labels: bug,needs triage

### Describe the bug

I'm having issues following how public folders work within Storybook, and how their relative URL will change when utilizing CSS. 

Minimum Code Repository Available here : https://github.com/mindingdata/storybookpublicrelativeurlrepo

This is a basic vite React project, with Storybook installed on top. 

- There is a public folder where I have added an images folder, and added an image. 
- There is a themes folder at the root level, and inside a SCSS file that references "./images/vite.svg" as a background image. 
- That scss file is imported in the preview.cjs file
- I added an index.ts file to my stories (As I am building this as a library) to export my components themselves. This also imports my scss file
- I modified the vite config to build as a library (Which it does fine). 

If I run `npm run dev` which runs Storybook in dev mode. This works fine. If I view the Button component, it correctly has the reference to ./images/vite.svg from the CSS file and no issue. 

If I run `npm run build` which is the Vite bundler for a library. It works fine because it extracts CSS and places it in the root of the dist folder, so ./images/vite.svg references correctly. 

If I run `npm run build-storybook` however. This does not work because the way that storybook OOTB publishes to storybook-static is that it adds the JS/CSS files to an "assets" folder, which because the CSS is no longer at the top level, the reference to ./images/vite.svg breaks. 

### To Reproduce

https://github.com/mindingdata/storybookpublicrelativeurlrepo

Run `npm run dev` and view the Button component with the correct background

Run `npm run build-and-host` and view the Button component that has an incorrect public reference

### System

```shell
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
  Binaries:
    Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.79)
```


### Additional context

_No response_
Repository: terminal
Issue: Opening the Command Palette from the UI doesn't work
Labels: Issue-Bug,Area-UserInterface,Product-Terminal

### Windows Terminal version

1.17.11461.0

### Windows build number

10.0.22621.0

### Other Software

_No response_

### Steps to reproduce

Try to open the Command Palette through the UI.

### Expected Behavior

The Command Palette appears.

### Actual Behavior

Sometimes the window appears for less than a second and then disappears, sometimes it doesn't appear at all (opening it using the keyboard shortcut works fine.)
Repository: deno
Issue: npm compat: unable to use "npm:drizzle-kit" cli tool
Labels: bug,node compat,node API

> **Note** Demo / reproduction repository: https://github.com/andrewbrey/deno_npm_compat_drizzle-orm



---

When attempting to use the `drizzle-orm` (https://orm.drizzle.team) tool called `drizzle-kit` to generate sql schema migrations from TypeScript model definitions **via npm-specifiers in Deno**, I encountered the following error:

```
error: Uncaught TypeError: worker.unref is not a function
    at <anonymous> (file:///home/andrew/.cache/deno/npm/registry.npmjs.org/esbuild/0.18.12/lib/main.js:2295:10)
```

The linked repository ( https://github.com/andrewbrey/deno_npm_compat_drizzle-orm ) contains a minimal setup needed to test out if `drizzle-orm` works with Deno npm-specifier based compatibility. The main point of interest is actually the `migrate` task defined in the `deno.jsonc`:

```
// deno.jsonc

{
  "tasks": {
    ...
    "migrate": "deno run -A npm:drizzle-kit generate:sqlite"
  }
}
```

in which we use npm-specifiers to invoke the `drizzle-kit` cli tool to generate sql migration files. If this were working correctly (and didn't produce the error above out of its `esbuild` dependency) I would expect the tool to successfully generate files in the`./drizzle` directory, at which point running `deno task dev` would work, though that part is not _necessarily_ the subject of this issue report.


## Notes

I am running on Linux (Pop_OS! 22.04)  and here is the output of `deno --version`

```
deno --version                                                                                                                                                                                                                                                                      
deno 1.35.1 (release, x86_64-unknown-linux-gnu)
v8 11.6.189.7
typescript 5.1.6
```
Repository: PowerToys
Issue: FIND MY MOUSE : There are white lines on the edges
Labels: Issue-Bug,Priority-3,Product-Mouse Utilities,Status-Reproducible

### Microsoft PowerToys version

0.71.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Mouse Utilities

### Steps to reproduce

![image](https://github.com/microsoft/PowerToys/assets/114159378/7a48e7ac-9e37-432c-bdee-26dd345ef600)
There are small white lines on the edges

### ✔️ Expected Behavior

Delete them

### ❌ Actual Behavior

![image](https://github.com/microsoft/PowerToys/assets/114159378/8395d6e3-7a56-47a5-b6ac-af08ca193c90)


### Other Software

_No response_
Repository: deno
Issue: Deno.bench panics with 'already mutably borrowed: BorrowError' when crypto.getRandomValues throws QuotaExceededError after another benchmark that calls crypto.getRandomValues
Labels: bug

This code throws a `QuotaExceededError`, and Deno handles it correctly. The benchmark fails, but Deno does not panic.

`ok.ts`:

```ts
Deno.bench(function cryptoGetRandomValuesUint32x100000() {
    crypto.getRandomValues(new Uint32Array(100000)); // throws QuotaExceededError
});
```

```shell
deno bench ok.ts
```

```
benchmark                               time (avg)             (min … max)       p75       p99      p995
-------------------------------------------------------------------------- -----------------------------
cryptoGetRandomValuesUint32x100000  error: QuotaExceededError: The ArrayBufferView's byte length (400000) exceeds the number of bytes of entropy available via this API (65536)
    crypto.getRandomValues(new Uint32Array(100000));
           ^
    at Crypto.getRandomValues (ext:deno_crypto/00_crypto.js:4724:9)
    at cryptoGetRandomValuesUint32x100000 (.../panic.ts:2:12)
error: Bench failed
```

However, if I add another benchmark that calls `crypto.getRandomValues`, Deno panics. The order of the benchmarks matters. `Uint8Array` does not cause the panic, but the others (`Uint8ClampedArray`, `Int8Array`, `Uint16Array`, `Int16Array`, etc.) do.

`panic.ts`:

```ts
Deno.bench(function cryptoGetRandomValuesUint32x1() {
    crypto.getRandomValues(new Uint32Array(1));
});

Deno.bench(function cryptoGetRandomValuesUint32x100000() {
    crypto.getRandomValues(new Uint32Array(100000)); // throws QuotaExceededError
});
```

```shell
RUST_BACKTRACE=1 deno bench panic.ts
```

```
benchmark                               time (avg)             (min … max)       p75       p99      p995
-------------------------------------------------------------------------- -----------------------------
cryptoGetRandomValuesUint32x1             1.8 µs/iter   (985.79 ns … 2.34 µs)   2.11 µs   2.34 µs   2.34 µs

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.35.0
Args: ["deno", "bench", "panic.ts"]

thread 'tokio-runtime-worker' panicked at 'already mutably borrowed: BorrowError', .../cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.194.0/ops_builtin_v8.rs:827:1
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: deno_core::ops_builtin_v8::op_apply_source_map::v8_fn_ptr
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```
Repository: flutter
Issue: keyboard cursor move to zero when press backspace on TextField with set maxLength (only type in Korean, Windows10 Desktop)
Labels: a: text input,framework,engine,a: internationalization,platform-windows,a: desktop,has reproducible steps,P2,found in release: 3.10,found in release: 3.13,fyi-text-input,team-windows,triaged-windows

### 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

1. I set maxLength, and MaxLengthEnforcement.enforced bleow
2. pressed Backspace after inputting more than maxLength in Korean

### Expected results

deleted last character

### Actual results

cursor move  to 0 (selection.offset = 0) suddenly.

### Code sample
TextField(
 maxLength: 10,
 maxLengthEnforcement: MaxLengthEnforcement.enforced);



### Screenshots or Video


https://github.com/flutter/flutter/assets/13592608/3b3e40aa-bc24-4ebd-b72e-2bde0a6d266e



### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208], locale ko-KR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.11.13)
[√] Android Studio (version 2022.1)
[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
[√] VS Code (version 1.80.0)
[√] Connected device (3 available)
[√] Network resources
Repository: godot
Issue: Scenes with AnimationPlayer and Animations override the properties of all instances of that scene
Labels: bug,topic:editor,topic:animation

### Godot version

4.1.stable

### System information

Windows 11 - Godot v4.1.stable - Vulkan (Forward +)

### Issue description

When instancing a scene (that contains an AnimationPlayer and an Animation that animates a sub-node that's part of that scene in a property track such as "position") multiple times, playing each animation in turn overrides each instance. This still breaks even if "local to scene" is checked for the animations.

I'd expect each instance to animate their own sub-node, and not animate a common sub-node between all instances.

### Steps to reproduce

Open the minimal reproduction project and press play to see issue at hand.

To reproduce:
1. Make a new scene based on a Node2D, and add an AnimationPlayer and a sub-Node2D (add a timer as well to trigger the animation to play)
2. Make a new animation that animates the position of the sub-Node2D
3. Add a script to the scene that sets the start and end positions of the track values to some value (values should be relative to the nodes to really show the issue)
4. Make a main scene and instance the scene twice
5. Set the timers to go off one after another, then play the scene to see the issue at hand

### Minimal reproduction project

[test_anim_broken.zip](https://github.com/godotengine/godot/files/12046751/test_anim_broken.zip)
Repository: PowerToys
Issue: FancyZone Switch Between Layouts when change monitor orientation
Labels: Needs-Triage

### Description of the new feature / enhancement

Hi, I am very appreciative of your work. 

Could you please add a function to remember different layouts when using different screen orientations? I sometimes switch my screen from landscape to potrait but I need different layouts. I wonder if FancyZone could remember different layouts for different screen orientations?

### Scenario when this would be used?

When using landscape screen I like vertical columns zones but when switching to portrait screen I like horizontal rows zones. But switching screen orientation wouldn't automatically switch the zone layout. 

### Supporting information

_No response_
Repository: PowerToys
Issue: Virtual Desktop with Animations and Enhancements
Labels: Needs-Triage

### Description of the new feature / enhancement

I would love to see a Tool to manage my virtual Desktops but in a better way than it is build in Windows itself (WIN + TAB). The most anoying thing with the built in "Virtual Desktop" is, that there is no Animation when the Desktop is switched via Keystrokes (WIN + CTRL + Arrow Left/Right). Also there is no Hint oder something on which Desktop you are. If there would be a solution to make a Feature / Tool. It would be a significant Update to my Productivity.

### Scenario when this would be used?

I often switch from Visual Studio Code to the Browser or Teams, but I often have so many Windows open that the ALT + TAB Switch often causes me to switch to the wrong Window. It would be just a big improvement for me to switch via Desktop. Also when sharing my screen with customers, I could make one Desktop to share - so the customer won't see any Windows which aren't supposed to be shared...

### Supporting information

There is already an older Tool called [Microsoft Desktop](https://learn.microsoft.com/de-de/sysinternals/downloads/desktops)

Maybe there is a way to improve this?
Repository: vscode
Issue: [Feature]: Persisting the sizes on a per-token basis for the content hover
Labels: feature-request,editor-hover

Currently the implementation of the persistance mechanism of the content hover works as follows:

---

The content hover has a default *maximum* size which is defined as follows:

const defaultMaxHeight = Math.max(this._editor.getLayoutInfo().height / 4, 250);
const defaultMaxWidth = Math.max(this._editor.getLayoutInfo().width * 0.66, 500);

Whenever the content hover is resized, the last hover dimensions are stored. Next time the content hover is shown, the maximum dimensions are updated as follows:

const currentMaxHeight = Math.max(this._editor.getLayoutInfo().height / 4, 250, lastHeight);
const currentMaxWidth = Math.max(this._editor.getLayoutInfo().width * 0.66, 500, lastWidth);

The content hover is rendered naturally within these constraints. If the lastHeight and lastWidth are smaller than the default max dimensions, then the current max dimensions are unchanged. Therefore the next rendering of the content hover will be the same as the initial rendering.

---

The potential issue with this persistance mechanism implementation is that it can cause unexpected resizing of the content hover. The proposal here is to persist the size of the content hover on a per token basis in the editor. In other words, all content hovers dimensions will be persisted on an individual basis.
Repository: excalidraw
Issue: Splash screen for PWA that is Dark Mode Friendly
Labels: enhancement,a11y

The current version of this app, shows a bright white splash screen that blinds the user at night. I experience this when using it on iOS.
It would be much better if there is a more eye friendly splash screen that would work both suring the day as well as night and won't blind me everytime I try to start the app.
Repository: TypeScript
Issue: Invalid type inference when using arrow function but normal functions is ok
Labels: Needs More Info

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

Invalid type inference with arrow function

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This changed between versions `@effect/io^0.30` and `@effect/io>=0.31`. The main change that I suspect is causing the bug is [this commit](https://github.com/Effect-TS/io/commit/7be0399d58b4b748152a79411154f40a788956f8#diff-48b693af1dfee5c1448f3a78f2672481aaa3fe67a51e8402e071d339928a8788R47).

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior.
  This should have the same code as the code snippet below, and use whichever settings are relevant to your report.

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->

At least, playground cannot import third-party lib(effect). so here, I provide some stackblitz links:

- `@effect/io <=0.30` + TS 5.1: https://stackblitz.com/edit/typescript-qiykfu (This is what I think is actual behavior)
- `@effect/io ^0.32` + TS 5.1: https://stackblitz.com/edit/typescript-wjbz9s
- `@effect/io ^0.32` + TS 5.2 (dev, next channel): https://stackblitz.com/edit/typescript-tbg3w8

### 💻 Code

<!-- Please post the relevant code sample here as well. This code and the Playground code should be the same, do not use separate examples -->
```ts

```

### 🙁 Actual behavior

If you write it as a regular function expression, the type is inferred without any problems. but writing in arrow function expressions causes problems with type inference.

### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->

In the same way that the Effect library works, the `resolve` function should be correctly typed by inferring the dependencies passed through the `effect` object, the type of the required objects, and the way the function is written. There should be no difference in the way the `resolve` function is written.
Repository: axios
Issue: file upload lack multipart
Labels: priority::low

### Describe the bug

V1.4.0

Electron 22.3.15

![image](https://github.com/axios/axios/assets/48358523/82353de9-c2f5-4ae4-ac50-3db33870a681)


### To Reproduce

_No response_

### Code snippet

_No response_

### Expected behavior

_No response_

### Axios Version

1.4.0

### Adapter Version

XHR

### Browser

Chrome

### Browser Version

_No response_

### Node.js Version

_No response_

### OS

_No response_

### Additional Library Versions

_No response_

### Additional context/Screenshots

_No response_
Repository: pytorch
Issue: [DTensor] Module parallelized with ColwiseParallel should return a sharded tensor
Labels: triaged,module: dtensor

### 🚀 The feature, motivation and pitch

I do not know why a module parallelized with ColwiseParallel returns a replicated tensor. It should return a sharded tensor according to the document.

```python
@spawn_threads_and_init_comms(world_size=WORLD_SIZE)
def demo_colwise_parallel(world_size):
    rank = dist.get_rank()
    mesh = DeviceMesh('cuda', list(range(WORLD_SIZE)))
    spec = [Replicate()]
    model = torch.nn.Linear(10, 32)

    LR = 0.25
    optimizer = torch.optim.SGD(model.parameters(), lr = LR)
    model = parallelize_module(model, mesh, ColwiseParallel())

    for i in range(ITER_TIME):
        inp = torch.randn(20, 10)
        dtensor = distribute_tensor(inp, mesh, spec)
        output = model(dtensor)
        output.sum().backward()
        print(f'Iter {i}, rank: {dist.get_rank()}, ', dtensor.to_local().shape, output.to_local().shape)
        optimizer.step()
```

log
```bash
INFO:torch.distributed.distributed_c10d:Added key: store_based_barrier_key:1 to store for rank: 0
INFO:torch.distributed.distributed_c10d:Added key: store_based_barrier_key:1 to store for rank: 1
INFO:torch.distributed.distributed_c10d:Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 2 nodes.
INFO:torch.distributed.distributed_c10d:Rank 1: Completed store-based barrier for key:store_based_barrier_key:1 with 2 nodes.
Iter 0, rank: 1,  torch.Size([20, 10]) torch.Size([20, 32])
Iter 0, rank: 0,  torch.Size([20, 10]) torch.Size([20, 32])
```

I expect `output.to_local().shape` is (20, 16) instead of the current (20, 32).


### Alternatives

_No response_

### Additional context

_No response_
Repository: flutter
Issue: [in_app_purchase] [android] Restore purchases uses queryPurchases method instead of queryPurchasesHistory
Labels: platform-android,p: in_app_purchase,package,P2,team-android,triaged-android

### Is there an existing issue for this?

- [X] I have searched the [existing package issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Apackage)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### What package does this bug report belong to?

in_app_purchase

### What target platforms are you seeing this bug on?

Android

### Have you already upgraded your packages?

Yes

### Dependency versions

<details><summary>pubspec.lock</summary>

```lock
[Paste file content here]
```

</details>


### Steps to reproduce

https://github.com/flutter/packages/blob/05efbb2470c08d65f420d45b5974f15ca01c2536/packages/in_app_purchase/in_app_purchase_android/lib/src/in_app_purchase_android_platform.dart#L194C34-L194C34

In the code it is seen that `queryPurchases` is used that wraps around https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryPurchasesAsync(com.android.billingclient.api.QueryPurchasesParams,%20com.android.billingclient.api.PurchasesResponseListener) and delivers only last currently running purchase and doesn't make a network call reusing the cache. This can result in no active purchases being provided for restoration.

Instead https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryPurchaseHistoryAsync(com.android.billingclient.api.QueryPurchaseHistoryParams,%20com.android.billingclient.api.PurchaseHistoryResponseListener) should be used to get all past purchases of the user and make an actual network call getting fresh information from Google Play.

### Expected results

https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryPurchaseHistoryAsync(com.android.billingclient.api.QueryPurchaseHistoryParams,%20com.android.billingclient.api.PurchaseHistoryResponseListener) is invoked delivering past purchases of the user

### Actual results

`queryPurhcasesAsync` is invoked delivering only last currently running purchase

### Code sample

<details><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Videos

<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>