sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Textfield's autofocus in modal does not works with StrictMode and ReactDOM.createRoot
Labels: bug 🐛,component: text field

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

When switching to `ReactDOM.createRoot`, opening a Dialog containing a TextField with `autofocus`, the field is not focused.

### Expected behavior 🤔

_No response_

### Steps to reproduce 🕹

reproducer: reproducer : https://codesandbox.io/s/dreamy-kowalevski-8eu5fb?file=/src/index.js

### Context 🔦

The Dialog + field
```
export default function App() {
  const [openPopup, setOpenPopup] = useState(false);
  return (
    <>
      <Button onClick={() => setOpenPopup(true)}>
        Open Modal
      </Button>
      <Dialog open={openPopup}>
        <DialogContent>
          <TextField autoFocus />
        </DialogContent>
      </Dialog>
    </>
  );
}
```


When initializing the project with the previous version of react it worked. But react triggered the deprecation about switching to `ReactDOM.createRoot`
```
import { render } from "react-dom";
render(
  <StrictMode>
    <App />
  </StrictMode>,
  document.getElementById("root")
);
```

When switching to `ReactDOM.createRoot` it does not worked
```
ReactDOM.createRoot(document.getElementById("root")).render(
  <StrictMode>
    <App />
  </StrictMode>
);
```

But, if I remove the `StrictMode`, it work
```
ReactDOM.createRoot(document.getElementById("root")).render(
  <App />
);
```

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
  Binaries:
    Node: 17.9.0 - /usr/bin/node
    Yarn: 3.1.1 - /usr/local/bin/yarn
    npm: 8.10.0 - /usr/bin/npm
  Browsers:
    Chrome: 102.0.5005.61
    Firefox: 91.10.0esr
  npmPackages:
    @emotion/react: ^11.9.0 => 11.9.0 
    @emotion/styled: ^11.8.1 => 11.8.1 
    @mui/base:  5.0.0-alpha.83 
    @mui/icons-material: ^5.8.2 => 5.8.2 
    @mui/material: ^5.8.2 => 5.8.2 
    @mui/private-theming:  5.8.0 
    @mui/styled-engine:  5.8.0 
    @mui/system:  5.8.2 
    @mui/types:  7.1.3 
    @mui/utils:  5.8.0 
    @types/react: ^18.0.10 => 18.0.10 
    react: ^18.1.0 => 18.1.0 
    react-dom: ^18.1.0 => 18.1.0 
    typescript: ^4.7.2 => 4.7.2 

```
</details>
Repository: pytorch
Issue: Efficiency of unary operations on CPU for large tensors
Labels: module: performance,triaged

### 🐛 Describe the bug

It seems that doing
```python
out = x.clone()
x.op_()
```
is between a 5% and a 15% faster than doing `x.op()` on tensors floats of size 10^8:
```
[-------------- Unary Ops --------------]
             |  out of place  |  in-place
4 threads: ------------------------------
      abs    |       58       |     52   
      sqrt   |       69       |     54   
      tanh   |      114       |    105   
      atan   |      124       |    115   
      cos    |       84       |     74   
      erf    |       83       |     73   
      log    |       74       |     63   
      log1p  |      603       |    598   
      neg    |       59       |     53   

Times are in milliseconds (ms).
```
When the tensors are smaller (10^7 elements or less), in my machine, the out of place version is comparable or faster than the in-place version. I have not found where's the exact cut-off for this behaviour, but by the looks of it, it may have something to do with pagination 

The script:
```python
from itertools import product

import torch
from torch.utils.benchmark import Compare, Timer


def get_timer(op, fn):
    x = torch.rand((10000, 10000), device="cpu")

    stm = fn(op)
    print(stm)

    timer = Timer(
        stm,
        globals={"x": x},
        label="Unary Ops",
        sub_label=op,
        description="in-place" if "clone" in stm else "out of place",
        num_threads=4)

    return timer.blocked_autorange(min_run_time=5)


def get_params():
    ops = ("abs", "sqrt", "tanh", "atan", "cos", "erf", "log", "log1p", "neg")
    fns = (lambda fn: f"x.{fn}()", lambda fn: f"out = x.clone(); out.{fn}_()")
    for op, fn in product(ops, fns):
        yield op, fn


compare = Compare([get_timer(*params) for params in get_params()])
compare.trim_significant_figures()
compare.print()
```

### Versions

master

cc @VitalyFedyunin @ngimel
Repository: react
Issue: Bug: `useId()` not working inside `<Suspense>`
Labels: Status: Unconfirmed

`useId()` doesn't return a stable ID when used inside `<Suspense>`.

```js
function App() {
  return (
    <React.Suspense fallback={<p>I'm lazy loaded...</p>}>
      <LazyComponent />
    </React.Suspense>
  )
}

function LazyComponent() {
  const id = useId()
  console.log('id:', id)

  // The usual `throw promise` technique
  // ...
}
```

Expected behavior: The logged ID `id: :r0:` to stay `:r0:` (i.e. the ID is stable).

Current behavior: The logged ID changes: `id: :r0:`, then `id: :r1:`, then `id: :r2:`, etc.

React version: `18.1.0`.

## Reproduction

See [github.com/brillout/react-bug-useId-suspense](https://github.com/brillout/react-bug-useId-suspense#readme).

CodeSandbox: https://codesandbox.io/s/github/brillout/react-bug-useId-suspense?file=/index.tsx

## Additional Context

This is a blocker for [useAsync](https://github.com/brillout/react-streaming#useasync), [Telefunc](https://telefunc.com/) and probably many other React tools.
Repository: rust
Issue: "can't find crate" errors are easy to miss because they result in many more follow-up errors
Labels: A-diagnostics,T-compiler,D-verbose

Given a crate that depends on `bytes 1.1.0`, trying to `cargo build --target target_that_is_not_installed` results in

```
error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-unknown-redox` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-unknown-redox`

error[E0463]: can't find crate for `compiler_builtins`

error[E0463]: can't find crate for `alloc`
  --> /home/jplatte/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.1.0/src/lib.rs:78:1
   |
78 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0463]: can't find crate for `std`
  --> /home/jplatte/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.1.0/src/lib.rs:81:1
   |
81 | extern crate std;
   | ^^^^^^^^^^^^^^^^^ can't find crate
   |
   = note: the `x86_64-unknown-redox` target may not be installed
   = help: consider downloading the target with `rustup target add x86_64-unknown-redox`

error[E0463]: can't find crate for `core`
 --> /home/jplatte/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-1.1.0/src/buf/buf_impl.rs:5:5
  |
5 | use core::{cmp, mem, ptr};
  |     ^^^^ can't find crate
  |
  = note: the `x86_64-unknown-redox` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-unknown-redox`
```

followed by a few more ``can't find crate for `core` `` errors, followed by around **500** additional errors about individual items from the standard library not being found. The first of these appear very fast, so it's inconvenient (and sometimes impossible due to scrollback limitations) to actually find the relevant errors at the start.

I think at least one of two things should happen here:

* Failing to find a critical crate like `core` or `std` should abort compilation immediately
* If an external crate (or a module?) can't be resolved, don't report errors about symbols not being found that were meant to be imported from there
Repository: rust
Issue: bad diagnostic on using `impl Trait` in recursive function
Labels: A-diagnostics,T-compiler,A-impl-trait

Given the following code: [[link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6b309eac6df6ba52dfd8aef5d60ba3b8)]

```rust
struct Tree<'a> {
    nested: std::collections::BTreeMap<&'a str, Tree<'a>>,
}

impl<'a> Tree<'a> {
    fn flatten(&self) -> impl Iterator<Item = &Tree<'a>> {
        std::iter::once(self).chain(self.nested.values().flat_map(|tree| tree.flatten()))
    }
}
```

The current output on stable is:

```
error: hidden type `impl Iterator<Item = &Tree<'a>>` differed from previous `std::iter::Chain<std::iter::Once<&Tree<'a>>, FlatMap<std::collections::btree_map::Values<'_, &str, Tree<'a>>, impl Iterator<Item = &Tree<'a>>, [closure@src/lib.rs:7:67: 7:88]>>`
 --> src/lib.rs:7:9
  |
7 |         std::iter::once(self).chain(self.nested.values().flat_map(|tree| tree.flatten()))
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
note: previous hidden type bound here
 --> src/lib.rs:7:9
  |
7 |         std::iter::once(self).chain(self.nested.values().flat_map(|tree| tree.flatten()))
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

and on nightly:

```
error: concrete type differs from previous defining opaque type use
 --> src/lib.rs:7:9
  |
7 |         std::iter::once(self).chain(self.nested.values().flat_map(|tree| tree.flatten()))
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |         |
  |         expected `std::iter::Chain<std::iter::Once<&Tree<'a>>, FlatMap<std::collections::btree_map::Values<'_, &str, Tree<'a>>, impl Iterator<Item = &Tree<'a>>, [closure@src/lib.rs:7:67: 7:88]>>`, got `impl Iterator<Item = &Tree<'a>>`
  |         this expression supplies two conflicting concrete types for the same opaque type
```

Ideally this code should compile, but if it cannot be made to compile than the compiler error should use lesson compiler jargon (e.g., "opaque type").
Repository: material-ui
Issue: [docs] Undocumented `'default'` color
Labels: breaking change,package: material-ui

Some components (at least [IconButton](https://mui.com/material-ui/api/icon-button/#props) and [Chip](https://mui.com/material-ui/api/chip/#props)) mention `'default'` as the default color:
<img width="797" alt="Screen Shot 2022-06-03 at 15 30 14" src="https://user-images.githubusercontent.com/7543552/171853974-6852462a-c1c8-46b9-86fc-cec5bf166b48.png">

But the meaning of this color value is not explained anywhere in the docs. The other color values are explained in the [palette documentation](https://mui.com/material-ui/customization/palette/#palette-colors).
Repository: flutter
Issue: Detect whether flutter web app is running on iPad
Labels: a: tablet,would be a good package,platform-web,P3,team-web,triaged-web

There is a similar problem already solved: https://github.com/flutter/flutter/issues/80505

But after trying this solution, I found that for some reason for the iPad it does not work. 
Perhaps because the iPad works on iPadOs now, but there is no such type in TargetPlatform.
Repository: flutter
Issue: ImageProvider is not working with Html-WebRenderer and image data from a sublist
Labels: framework,engine,platform-web,e: web_html,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-web,triaged-web

When using an ImageProvider together with Html-WebRenderer, decode of the Html-WebRenderer does not support a Uint8List from a sublist.
Reason: To create the HtmlBlob an ImmutableBuffer is used. ImmutableBuffer fails (silently) to create from a sublist.

## Steps to Reproduce
https://dartpad.dartlang.org/?id=01a575ef748e6649387bbfd8e1f60ca4
Repository: material-ui
Issue: anchorOrigin and transformOrigin can create delay on what menuItem is (visually) selected.
Labels: bug 🐛,component: menu

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

When adding an anchorOrigin OR transformOrigin prop to a Menu so that it pops over the button it can create a visual glitch. If your mouse is on a certain area it can select the wrong menuItem briefly before changing. It is sometimes only a small area where the mouse has to be for it to take effect but I've managed to exaggerate the effect (somehow) in the code-sand-box linked below, so that it often fails to select the correct menuItem straight away.

I've checked the console log on my own project and if I click while the wrong menuItem is selected it does actually select the correct item, so it's purely visual.

https://codesandbox.io/s/positionedmenu-demo-material-ui-forked-j8d0vt?file=/demo.tsx:1070-1180

![new_gif_cropped](https://user-images.githubusercontent.com/80394290/171857361-b34803ff-54b4-44bf-8444-12906004d256.gif)



### Expected behavior 🤔

Correct menuItem is visually selected straight away.

### Steps to reproduce 🕹

Steps:

1. Use a <Menu />
2. Add an anchorOrigin or transformOrigin
3. Use these to position the popup over the menu
4. Click the button, try the mouse in different locations to reach the sweet spot (usually when your mouse is overlapping two of the menuItems).


### Context 🔦

I'm trying to create a custom menu type where the menu pops over the button with a default item located directly over the button and others in the list above or below.

### Your environment 🌎

Brave Browser
Latest OsX on Mac
Repository: pytorch
Issue: Feature request: Integer system decompositions
Labels: feature,triaged,module: linear algebra

I have started to work more and more with integer systems in PyTorch so it would be nice if `linalg` provided some common integer system decompositions (e.g., Hermite or Smith normal forms are obvious choices).

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: pytorch
Issue: Feature Request: Hessenberg and Schur decompositions
Labels: feature,triaged,module: linear algebra

There are a handful of eigenproblem decompositions that I would like to use but are not provided by PyTorch (e.g. Hessenberg and Schur). This is one area where PyTorch noticeably lags behind other applications and libraries.

- [ ] Schur Decomposition (`torch.linalg.schur`)

[Julia](https://docs.julialang.org/en/v1/stdlib/LinearAlgebra/#LinearAlgebra.schur)
[MATLAB](https://www.mathworks.com/help/matlab/ref/schur.html)
[SciPy 
](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.schur.html)

- [ ] Hessenberg Decomposition (`torch.linalg.hessenberg`)

[Julia](https://docs.julialang.org/en/v1/stdlib/LinearAlgebra/#LinearAlgebra.hessenberg)
[MATLAB](https://www.mathworks.com/help/matlab/ref/hess.html)
[SciPy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.hessenberg.html)

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: pytorch
Issue: TorchScript inference get intermediate result?
Labels: oncall: jit,feature

### 📚 The doc issue

https://discuss.pytorch.org/t/how-to-get-the-intermediate-output-from-torchscript/152981

Seems many people ask a solution for this, any documentation about it? Does it able to do so? This is really needed!!

### Suggest a potential alternative/fix

_No response_
Repository: material-ui
Issue: Drawer `transitionDuration` property refers to its content only
Labels: new feature,component: drawer

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Setting the `transitionDuration` property on `persistent Drawer` refers only to its content transition, but not to the drawer as a whole.

![Issue image](https://i.imgur.com/qvs3yW5.gif)

### Expected behavior 🤔

Setting the `transitionDuration` property on `persistent Drawer` doesn't refer only to its content transition, but to the pushing of the page too.

### Steps to reproduce 🕹

https://codesandbox.io/s/drawer-transitionduration-bug-ujg9d2?file=/demo.tsx

### Context 🔦

I have a drawer which is laggy and the intermittency can be seen even for small transitionDuration values.
I would like the page to be pushed at the same time as the content, not faster nor slower.

### Your environment 🌎

Default CodeSandbox configuration.
Repository: svelte
Issue: Styling subcomponents based on import
Labels: css

### Describe the problem

I'd like to be able to override some styles (margins, paddings, colors) for a component I import in a higher order component. 


### Describe the proposed solution

Styled components allow for higher level components to override styles (as long as they all are styled components). 
I think we could add something similar to svelte, since we know what generated classname a component has on compiletime, so we'd be able to replace the selector with the proper classname.

```
<style>
import Link from './Link.svelte'
</style>

<Link ... />

<style>
  {Link}:hover {
    fill: rebeccapurple;
  </style>
```

### Alternatives considered

Passing custom property solutions are available, but that would require the imported component to expose all the possible values.

### Importance

would make my life easier
Repository: flutter
Issue: After changing macOS `PRODUCT_NAME` in AppInfo.xcconfig the app will not build until the build folder is cleaned
Labels: tool,platform-mac,a: desktop,P2,team-macos,triaged-macos

`BUNDLE_NAME` is set to `PRODUCT_NAME` which gets used by Xcode to name the bridging header. And if you've already built with the old name, you get an error like:
```
Xcode/DerivedData/Runner-ctretxpfaeypegasfqwbmrjkizyw/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/This_Gallery-Swift.h: No such file or directory
```
Where the name I set is `This_Gallery`.

I cleaned `Product > Clean Build Folder` which deleted the header generated by Xcode, then built again so it generated the new one.  Then it ran with the new name:
<img width="148" alt="Screen Shot 2022-06-02 at 9 58 06 AM" src="https://user-images.githubusercontent.com/682784/171683957-0e5207d8-81f7-4526-88ec-b0d7012ac4e8.png">

There might be a real fix, but maybe the clean at least should be called out [in the docs](https://docs.flutter.dev/deployment/macos#configuring-the-apps-name-bundle-identifier-and-copyright)?

_Originally posted by @jmagman in https://github.com/flutter/flutter/issues/105157#issuecomment-1145098418_
Repository: flutter
Issue: Use ANGLE as the GL integration point for Android
Labels: c: new feature,team,platform-android,engine,P3,team-android,triaged-android

Android has some instructions on how to do this at: https://chromium.googlesource.com/angle/angle/+/HEAD/doc/DevSetupAndroid.md
Repository: godot
Issue: Drop down menu of Animations flickers/disappears when Adding Animation in AnimationNodeStateMachine
Labels: bug,topic:editor,usability,needs testing,topic:animation

### Godot version

3.5.rc3.official

### System information

Linux X11 64-bit - Pop_OS 

### Issue description

This has happened to me at least 3x working in the AnimationTree editor in less than hour. Right clicking to open up the drop down menu, and hovering over the "Add Animation ->" option, causes the animation list menu to open, but it immediately disappears if the mouse moves at all. While this is happening, it is impossible to select an animation to add.
![AnimationTreeIssue](https://user-images.githubusercontent.com/788630/171910839-97fcded5-841f-45c6-9519-e7938e96ef66.gif)
Clicking out of the Godot editor and coming back into it has resolved the issue for me, but not every time.

Let me know if I can provide any more information.

### Steps to reproduce

Working in the AnimationNodeStateMachine editor, this has happened to be 3x in the span of an hour. Still haven't found the exact steps to reproduce. Will update this if I figure it out.
Update: I believe clicking Expand Bottom Panel is related.

### Minimal reproduction project

_No response_
Repository: godot
Issue: Building Editor for Android or JavaScript in Github actions throws missing X11 packages in log but compiles
Labels: bug,platform:web,platform:android,topic:buildsystem,confirmed

### Godot version

3.x branch  af8a02d

### System information

ubuntu-20.04

### Issue description

For my Godot 3.x custom build I tried building Editor for Android/JavaScript using Github workflows and in the log I see missing package errors but it compiles fine.

NOTE: I only tested this in 3.x branch and I tried using `x11=no` option but I don't think is available for 3.x branch

JavaScript Editor
![image](https://user-images.githubusercontent.com/99937119/171910515-30af9774-5a9b-4dbb-992d-5bce5a91b5b1.png)

Android Editor shows this
![image](https://user-images.githubusercontent.com/99937119/171910359-ce959b27-ffbd-486e-9bdb-b35667983308.png)

Notice even though it says aborting it builds correctly.

I assume is detecting platform as Linux and assumes we are building and X11 application and cannot find the deps and throws errors in log but they are not actually needed so build succeeds.

I manage to fix it by manually installing the required package but then it asks for a different one. In fact it asks for about 5 packages in total before is satisfied and can be fixed by actually adding them. 

```
       - name: Install deps
         run: |
           sudo apt-get install libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl-dev
```

They look like X11 libraries. 

### Steps to reproduce

Shows up when building Editor for Android or JavaScript in Github action workflows.

### Minimal reproduction project

No project needed since is a build issue.
Repository: pytorch
Issue: Mac M1 Build Failure on DEBUG=1
Labels: needs reproduction,module: build,triaged,module: macos,module: arm

### 🐛 Describe the bug

DEBUG=1 python setup.py install

> ld: can't open file, errno=1 file 'caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/frontend/exit_transforms.cpp.o' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


### Versions

PyTorch version: 1.13.0a0+git61a83fc
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.4 (arm64)
GCC version: Could not collect
Clang version: 13.0.0 (clang-1300.0.27.3)
CMake version: version 3.22.1
Libc version: N/A

Python version: 3.9.12 (main, Apr  5 2022, 01:52:34)  [Clang 12.0.0 ] (64-bit runtime)
Python platform: macOS-12.4-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.13.0a0+git61a83fc
[conda] numpy                     1.22.3           py39h25ab29e_0  
[conda] numpy-base                1.22.3           py39h974a1f5_0  
[conda] torch                     1.13.0a0+git141238a          pypi_0    pypi


cc @malfet @seemethere @albanD