sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: react__WEBPACK_IMPORTED_MODULE_15__.use is not a function when using React's new "use" hook
Labels: feature request,help wanted,react,nextjs

### Discussed in https://github.com/storybookjs/storybook/discussions/20061

<div type='discussions-op-text'>

<sup>Originally posted by **SleeplessOne1917** December  2, 2022</sup>
I'm using React's experimental [`use` hook](https://www.davebitter.com/articles/i-want-to-react-use-this) with Next.js for my project. It's a fairly new feature and I've had trouble finding information on it, so I'm not surprised that storybook hasn't done anything about it yet. When Storybook tries using a component with that hook, it breaks with the error in the title. What can I do in the meantime to keep my stories working until this feature is officially supported?</div>
Repository: flutter
Issue: Golden test subfolder for failure files
Labels: a: tests,c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

Thank u for such a useful test framework
same question was discuss at the [issue 47228](https://github.com/flutter/flutter/issues/47228)

to keep image files well organised i use subfolders for each test and, as for me, it is make sense to have the same directory structure for `failures` folder.

Also, as was mentioned, at the [issue 47228](https://github.com/flutter/flutter/issues/47228) keeping same directory structure for `failures` folder will helps exclude override failure files with same name.

Current behaviour :
- `tests/goldens/test_name/test_image.png`
- `tests/failures/test_image.png`

Expecting behaviour:
- `tests/goldens/test_name/test_image.png`
- `tests/failures/test_name/test_image.png`
Repository: tensorflow
Issue: Stop exposing `tensorboard` console script in standard Tensorflow package?
Labels: comp:tensorboard,type:build/install,subtype: ubuntu/linux,TF 2.11

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

Build/Install

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

No

### Source

binary

### Tensorflow Version

2.11.0

### Custom Code

No

### OS Platform and Distribution

OpenSUSE Leap 15.3

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
The *tensorflow_cpu* Python package exposes the `tensorboard` command, leading to a duplicate declaration of the corresponding entry point. For environments where such duplicate commands are considered bad behavior, an exception has to be added.

There is some documentation on this inside the corresponding code: https://github.com/tensorflow/tensorflow/blob/3b43530ab8d9513f78368652e22558b4a1286ee4/tensorflow/tools/pip_package/setup.py#L183-L188 Doing a `git blame`, this seems to have been introduced in https://github.com/tensorflow/tensorflow/commit/05c491d30888088873fedfbe81bca378c8c3fc87, which does not seem to provide any additional details on it as well.

For me this sounds like an issue which should rather be fixed within *pip* instead of working around this in *tensorflow* for multiple years. Having a quick look at the issue tracker there, I could not find an issue which describes such a behavior. Has anything been done to possibly fix this/get this fixed for *pip*?
```


### Standalone code to reproduce the issue

```shell
`grep -r "tensorboard.main:run_main" .`, where `.` is the directory of the virtual environment the TensorFlow and TensorBoard packages have been installed inside. This will produce a result inside `entry_points.txt` for `tensorboard` and `tensorflow_cpu`.
```


### Relevant log output

_No response_</details>
Repository: opencv
Issue: OpenCV shows white screen when using cv2.setWindowProperty(“Image”, cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
Labels: bug,category: highgui-gui,platform: ios/osx

### System Information

OpenCV version: 4.7.0.68
Operating System / Platform: macOS Ventura 13.1, Apple Macbook Air M1
Python version 3.9.15

### Detailed description

When trying to set the window to fullscreen using cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN), the window shows a [white screen](https://imgur.com/a/lkTWDuY) instead of the webcam capture/image file that is being read. When the line of code is commented out, the window correctly shows webcam capture/image file.

I've downgraded opencv-python to version 4.4.0.46 and it works, but I still want to know if anyone else is facing the same issue

### Steps to reproduce

1. Reading image file
```python
import cv2

img = cv2.imread('path/to/image')
cv2.namedWindow("Image", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

cv2.imshow("Image", img)
cv2.waitKey(0)
```

2. Displaying webcam image
```python
import cv2
cap = cv2.VideoCapture(0)

cv2.namedWindow("Image", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

while cap.isOpened():
    success, image = cap.read()

    cv2.imshow("Image", image)

    if cv2.waitKey(1) & 0xFF == 27:
      break


cv2.destroyAllWindows()
cap.release()
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: pytorch
Issue: ddp vs fsdp
Labels: oncall: distributed,module: fsdp

### 🐛 Describe the bug


I used fsdp+ShardedGradScaler to train my model. Compared with apex. amp+ddp, the precision of my model has decreased.

The ddp is like
```
model, optimizer = amp.initialize(model, optimizer,
                                      num_losses=len(task2scaler),
                                      enabled=opts.optimizer["fp16"], opt_level='O2')

model = DDP(model, device_ids=[get_local_rank()], output_device=get_local_rank(), find_unused_parameters=False)
with amp.scale_loss(loss, optimizer, delay_unscale=delay_unscale,
                    loss_id=task2scaler[name]) as scaled_loss:
    
    scaled_loss.backward()
```
and the fsdp is like
```
model = FSDP(model,
                 auto_wrap_policy=t5_auto_wrap_policy,
                 mixed_precision=MixedPrecision(
        param_dtype=torch.bfloat16,
        # Gradient communication precision.
        reduce_dtype=torch.bfloat16,
        # Buffer precision.
        buffer_dtype=torch.bfloat16,
    ),
                 device_id=torch.cuda.current_device(),
                 sharding_strategy=ShardingStrategy.SHARD_GRAD_OP,  # ZERO2
                 backward_prefetch=BackwardPrefetch.BACKWARD_PRE)
```

What is possible reason?

### Versions

。

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: excalidraw
Issue: custom `ThemeToggle` menu item should be rendered despite `props.theme`
Labels: package:excalidraw

If host app renders `<MainMenu.DefaultItems.ThemeToggle/>`, it should render regardless of `props.theme`.

Use case: in Plus we control theme outside the editor, but we still want the toggle button to be present in the editor.

On that note, we should expose `props.onChange` on the `ThemeToggle` component, as well.
Repository: material-ui
Issue: [ESM] Vite + vitest + @mui/material v5.11.0 - createPalette.js:1 seems to be an ES Module but shipped in a CommonJS package. 
Labels: package: system,enhancement

When using vite@4.0.4 and vitest@0.26.3 with @mui/material. 

Starting with  "@mui/material": "5.11.0",

I am getting the following error:

```bash
Module /<project_name>/node_modules/@mui/material/styles/createPalette.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "@mui/material" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.

As a temporary workaround you can try to inline the package by updating your config:

// vitest.config.js
export default {
  test: {
    deps: {
      inline: [
        "@mui/material"
      ]
    }
  }
}
```

Following the advice from the error message does not fix the issue.

For the time being I reverted back to "@mui/material": "5.10.17" - the tests run without any issue.

Any advice on how to use the current version?
Repository: godot
Issue: Incorrect indentation in lambda as function arg
Labels: bug,topic:gdscript

### Godot version

4.0beta7

### System information

Win 10 (the same on MacOS)

### Issue description

In my project, I create declarative instructions by using objects/lambdas. Like this:
```gdscript
LifecycleModifier.UponActivator(activator, [
  UnitSearcher.get_units(),
  UnitSearcher.filter(UnitFilters.only_enemies_to(unit))
])
```
However, lambda functions seem to have weird indentation rules:

```gdscript
LifecycleModifier.UponActivator(activator, [
  UnitSearcher.get_units(),
  UnitSearcher.filter(func (unit):
    return unit.hp < 100
    ) # For some reason it should be like that, not 1 tab before
])
```
Since this bracket belongs to the `UnitSearcher.filter` call, I believe it should be like this:
```gdscript
LifecycleModifier.UponActivator(activator, [
  UnitSearcher.get_units(),
  UnitSearcher.filter(func (unit):
    return unit.hp < 100
  )
])
```

### Steps to reproduce

Just copy-paste the code above and remove 1 indentation 

### Minimal reproduction project

---
Repository: react
Issue: Bug: eslint react-hooks/exhaustive-deps should not quote nor localize the dependency list in the output
Labels: Type: Feature Request,Component: ESLint Rules

React version: 18

## Steps To Reproduce

1. Create a useCallback or useEffect hook with missing deps
2. enable react-hooks/exhaustive-deps eslint rule

## The current behavior

>   161:6  error  React Hook useCallback has missing dependencies: 'isTablet', 't', and 'theme.sizes.spacing'. Either include them or remove the dependency array  react-hooks/exhaustive-deps

## The expected behavior

>   161:6  error  React Hook useCallback has missing dependencies: [ isTablet, t, theme.sizes.spacing ]. Either include them or remove the dependency array  react-hooks/exhaustive-deps

By rendering it that way we can simply copy and paste the list into our code rather than changing the copied list after the fact.
Repository: godot
Issue: After clicking the Profiler chart, the profiler stops working
Labels: discussion,topic:editor,usability

### Godot version

3.5.1mono

### System information

windows10

### Issue description

After clicking the performance profiler chart, the performance profiler stops working,game is stuck.The stop button of the performance profiler is grayed out, the chart does not continue to lengthen, and at this time, by clicking "×" in the upper right corner of the game window, you cannot actually close the game. You must click "Stop" in the upper right corner of the editor to close the game.
![image](https://user-images.githubusercontent.com/119792950/211325326-0f41aa11-2d60-4de2-b72d-c17a8c14bbc8.png)


### Steps to reproduce

Open a project
Open the Performance profiler
Run the game in editor
Go to Performance profiler
Click the chart
Encountered the same situation as "Issue description" says

### Minimal reproduction project

No
Repository: godot
Issue: Can't scroll horizontally through the Profiler's charts
Labels: bug,enhancement,topic:editor

### Godot version

3.5.1mono

### System information

windows10

### Issue description

Can't scroll horizontally through the Profiler's charts, which I think can be confusing when you need to analyze longer data
![屏幕截图 2023-01-09 220338](https://user-images.githubusercontent.com/119792950/211326085-67597f21-5233-48e8-a458-0703282d0397.png)


### Steps to reproduce

See "Issue description" 

### Minimal reproduction project

No
Repository: three.js
Issue: Octree should allow each leaf to store more than 8 triangles
Labels: Suggestion

### Description

The current `Octree` implementation in three.js is often slow and can use up a lot of memory when dealing with geometry containing lots of triangles, especially when some of the triangles are large. `Octree` as a data structure has no problem storing points as each point occupies only one leaf. However, in the case of triangle it can occupy multiple leaves depending on its size. This reduces the efficiency of using `Octree` to store triangles because of the overlaps. A geometry with more than 200k triangles could end up being 100+ times bigger in triangle count in `Octree` due to overlaps, taking more than 20 seconds to build and occupying a few giga bytes of memory, making it practically unusable.

### Solution

The simplest solution is to allow each leaf to store more than 8 triangles. In my test case, I increased the limit from 8 to 32, and it reduced the triangle count in `Octree` by nearly 10 times with no impact on collision detection performance.

### Alternatives

I can't think of any alternative simpler than a static increase in triangle limit.

### Additional context

_No response_
Repository: pytorch
Issue: Only the first logged trace in a given log dir is visible in tensorboard.
Labels: triaged,module: tensorboard

As per title.
Is this an expected limitation?
Repository: angular
Issue: ICU custom translation ids
Labels: feature,area: i18n,feature: insufficient votes

### Which @angular/* package(s) are relevant/related to the feature request?

localize

### Description

I would like to use custom IDs on ICU expression translations.

The following template

`<h1 i18n="@@IcuPluralTest">ICU plural test {test, plural, =0 {now} other {{{test}} minutes}}</h1>`

Results in two translations in json output format:

```
"IcuPluralTest": "ICU plural test {$ICU}",
"5042638883563958958": "{VAR_PLURAL, plural, =0 {now} other {{INTERPOLATION} minutes}}",
```

However, I have no way to assign a custom ID to the nested ICU expression

### Proposed solution

Enable a syntax like

`<h1 i18n="@@IcuPluralTest">ICU plural test {:@@IcuPluralTestNested:test, plural, =0 {now} other {{{test}} minutes}}</h1>`

that allows assigning an ID to the nested ICU expression

### Alternatives considered

As a workaround, a simple interpolation can be used in the template

`<h1 i18n="@@IcuPluralTest">ICU plural test {{testPlural}}</h1>`

with the ICU expression being defined in the .ts file using `intl-messageformat`

```
testPlural = new IntlMessageFormat($localize`:@@IcuPluralTestNested:{test, plural, =0 {now} other {# minutes}}`, $localize.locale).format(this as any);
```
Repository: vscode
Issue: Adapt the bash of busybox.
Labels: bug,help wanted,linux,good first issue,terminal-shell-bash

<!-- Please search existing issues to avoid creating duplicates, and review our troubleshooting tips: https://code.visualstudio.com/docs/remote/troubleshooting -->
<!-- Please attach logs to help us diagnose your issue. Learn more here: https://code.visualstudio.com/docs/remote/troubleshooting#_reporting-issues and here: https://code.visualstudio.com/docs/remote/vscode-server#_where-can-i-provide-feedback-or-report-an-issue -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

- VSCode Version: 1.74.2
- Local OS Version: Windows 11 Build 22621
- Remote OS Version: Alpine Linux v3.17
- Remote Extension/Connection Type: WSL

<!-- If your bug is related to Remote-SSH, please use the SSH-specific reporter: https://github.com/microsoft/vscode-remote-release/issues/new?assignees=eleanorjboyd&labels=ssh&template=a_remote_ssh_bug_form.yml&title=%5BRemote-SSH+Bug%5D%3A+ -->

- Logs:

Steps to Reproduce:

1. Start a terminal.
2. ![image](https://user-images.githubusercontent.com/54622331/210485043-10dd3a80-8b8e-4639-860d-1e2ef6b1d549.png)

I use busybox bash as `/bin/bash` (still busybox ash in essence), which is why there is no `.bashrc`.
I hope vs code server can judge whether it is a real bash before using it, if not, treat the bash as ash.
<!-- Check to see if the problem is general, with a specific extension, or only happens when remote -->
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

<!-- If your issue only appears in Codespaces, please visit: https://github.com/github/feedback/discussions/categories/codespaces-feedback -->
Repository: flutter
Issue: Determination for `kIsLineBreakingObject` a11y attribute
Labels: a: accessibility,platform-windows,a: desktop,P2,team-windows,triaged-windows

To properly implement UIA for Windows a11y, we will need to determine when a node should have the `kIsLineBreakingObject` boolean attribute set. We do not currently use it. For an interim solution, I intend to set the attribute on all nodes by default.
Repository: pytorch
Issue: ToTensor deadlock in subprocess
Labels: module: multiprocessing,triaged


🐛 Describe the bug


I load a checkpoint in main process, then I start a subprocess to call ToTensor and the subprocess hang forever.

the following codes will reproduce my problem:
```python
import numpy as np
from PIL import Image
from multiprocessing import Process
import torchvision
from torchvision.transforms import ToTensor

a = np.ones((224, 224, 3), dtype=np.uint8)
a = Image.fromarray(a, mode='RGB')
model = torchvision.models.resnet50(True)
p = Process(target=ToTensor(), args=(a,))
p.start()
p.join()
print('end')
```


### Versions

torch version: 1.12.0
torchvision version: 0.13.0

cc @VitalyFedyunin @ejguan
Repository: pytorch
Issue: Lazily start worker threads in the autograd engine
Labels: module: autograd,triaged,better-engineering,actionable

As per title.
This can be done by doing the thread startup in the `Engine::ready_queue` method when the corresponding queue is used for the first time.

cc @ezyang @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: godot
Issue: Audio playback progress times are not updated in real time
Labels: discussion,documentation,topic:audio

### Godot version

3.5.1mono

### System information

windows10

### Issue description

Audio playback progress times are not updated in real time.They are updated only every two to three frames.This is prone to errors in timing and need to be fixed.

### Steps to reproduce

Run my test project
Check the console
Each output is found to be repeated two to three times

### Minimal reproduction project

(https://github.com/godotengine/godot/files/10375421/Audio.Time.Update.Test.zip)
Repository: flutter
Issue: Allow moving bottom sheets to the top
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design


## Use case

I'm currently using a bottom sheet to display pen options for my notes app.

This works as expected when the toolbar is at the bottom, but if the user chooses for the toolbar to go at the top, the bottom sheet is still at the bottom.

This has been reported by one of my users in https://github.com/adil192/saber/issues/215 (just the circled area labelled 1 in their screenshot).

### Screenshot (bottom vs top toolbar)
<img src="https://user-images.githubusercontent.com/21128619/211371889-64274821-9d8f-4e61-9284-dd76bd1b78fb.png" alt="bottom toolbar" width=350><img src="https://user-images.githubusercontent.com/21128619/211371641-1e1fa9f4-4ddc-46f7-b539-d54e14cbef08.png" alt="top toolbar" width=350>



<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal 1

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->


```dart
showBottomSheet(
  context: context,
  alignment: Alignment.topCenter,
  // ...
);
```

## Proposal 2

```dart
showTopSheet(
  context: context,
  // ...
);
```

## Related

There's an older Flutter issue I found here: https://github.com/flutter/flutter/issues/13205
Repository: PowerToys
Issue: Remapping shortcuts to include a remapped key works inconsistently
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.66.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Recently discovered PowerToys and it is a godsend for someone who runs a mac at home but a windows computer at work.

For consistency and ergonomics I much prefer the location of the command key for functions rather than using control as it is on windows. I've swapped my keycaps around to order windows / alt / control, and done the same inside of PowerToys. Amazing! However this results in the alt + tab functionality that I use a ton being a bit more out of reach (and inconsistent with the mac command + tab). When swapping control + tab > alt + tab, and vice versa - sometimes it will work and sometimes it will not.

Upon initial setup the first time using PowerToys everything was great. Then all of a sudden (perhaps some specific app is override keyboard settings?) I lost my alt + tab rebind.
Disabling and re-enabling keyboard manager did not resolve the issue, but restarting my computer brought back the functionality. However after a bit it was gone again.
Restarting PowerToys will bring back the functionality as well.

I am running as administrator.

I'll test with the applications I have on my computer to try to find what might be overriding if that's the case. However I thought I'd post first as I generally have a multitude of apps open at the same time for development.

<img width="773" alt="powertoys" src="https://user-images.githubusercontent.com/115576386/211371841-9c2f89db-c0b9-4113-8fa4-40038df0b9eb.png">


### ✔️ Expected Behavior

Control + tab sends command for alt + tab on repositioned alt/control keys.

### ❌ Actual Behavior

Alt + tab remapping is overidden and returns to functionality as if remap never took place (individual key remaps continue to work as expected)

### Other Software

_No response_
Repository: PowerToys
Issue: Dark Mode PDFs for power toys' file Preview Pane (explorer).
Labels: Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

The preview icon/image of the file is rendered in dark mode (inverted color), this way people who use dark mode do not get their eyes blinded by the white image on the dark theme. 
in this picture, the left is how power toys now render the preview of the files, and on the right is how I wish power toys to render the preview of the files in dark mode.
![White preview PDF instead of the dark-themed preview PDF](https://user-images.githubusercontent.com/119108387/211380876-ee382825-e815-4739-a361-8419354579c8.png)

### Scenario when this would be used?

Using this feature when dark mode is used/triggered on Windows pc, especially since every company started implementing its dark mode.


### Supporting information

Check Xodo PDF reader it converts white PDFs to black PDFs, I think this is easy to implement (only inverting colors after all its work).