sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Run React bug
Labels: needs triage

### Hello I have a problem with react when I tryto run my web application an error appears:

> codespaces-react@0.1.0 start
> BROWSER=none WDS_SOCKET_PORT=0 react-scripts start

'BROWSER' n’est pas reconnu en tant que commande interne       
ou externe, un programme exécutable ou un fichier de commandes.
Waiting for the debugger to disconnect...

### And this his may package.json : 

{
  "name": "codespaces-react",
  "version": "0.1.0",
  "private": true,
  "homepage": "http://August7337.github.io/Quick-X",
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^14.4.3",
    "cross-env": "^7.0.3",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "^5.0.1",
    "web-vitals": "^3.1.0"
  },
  "scripts": {
    "start": "BROWSER=none WDS_SOCKET_PORT=0 react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "predeplay": "npm run build",
    "deploy": "gh-pages -d build"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "dev": "cross-env BROWSER=none yarn clean:lib && webpack --progress --colors --watch --env dev",
    "gh-pages": "^5.0.0"
  }
}

Thx 4 help
Repository: TypeScript
Issue: Move to file adds too many new lines
Labels: Bug,Fix Available,Rescheduled

# 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.
-->
refactoring, move to file

### 💻 Code

`source.ts`:
```ts
import { b } from './other';
const a = 1;
const c = a + b;
```
`target.ts`:
```ts
export const tt = 2;
```
Select `const c = a + b;`, trigger `move to file` refactoring and select `target.ts` file.

### 🙁 Actual behavior

`target.ts`:
```ts
import { a } from './source';

import { b } from "./other";

export const tt = 2;
const c = a + b;
```

### 🙂 Expected behavior

`target.ts`:
```ts
import { a } from './source';
import { b } from "./other";

export const tt = 2;
const c = a + b;
```

More examples in the test changes of #54358.
Repository: go
Issue: runtime: linux/s390x test timeout
Labels: help wanted,NeedsInvestigation,arch-s390x,compiler/runtime

```
#!watchflakes
post <- goarch == "s390x" && (`test timed out` || `panic: finalizer started .* ago .* and ran \d+ iterations, but did not return` || `failed to start: context deadline exceeded` || `WaitDelay expired before I/O complete`)
```

Broken out from #57636.

CC @golang/s390x
Repository: next.js
Issue: [NEXT-1329] next/dynamic import on serverside component does not build css modules
Labels: bug,linear: next

### 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: x64
      Version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64
    Binaries:
      Node: 16.14.0
      npm: 8.3.1
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.4-canary.8
      eslint-config-next: 13.4.3
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4
```


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

_No response_

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

https://github.com/angela-recchia/dynamic-import-css-modules.git

### To Reproduce

Run the application & navigate to `/app-router`

### Describe the Bug

no css are present if a component is included by using dynamic().
the css className is built and present in the DOM, but contains no css rules

- route 1) /app-router uses App Router and server side component
- route 2) /app-router-client uses App Router and server side component, but the route is defined as `use client`
- route 3) /pages-router uses Pages router 

No css is present in the classes built for scenario 1

[Documentation](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)  states that next/dynamic `It behaves the same way in the app and pages directories to allow for incremental migration.`

This does not seem to be the case so when reusing code created with previous next version side effect occurs.

### Expected Behavior

behavior between all scenarios is consistent; css are always generated on serverside component even if using dynamic()a

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

_No response_

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

next start, vercel

<sub>[NEXT-1329](https://linear.app/vercel/issue/NEXT-1329/nextdynamic-import-on-serverside-component-does-not-build-css-modules)</sub>
Repository: flutter
Issue: GoRouter 7.1.0 causes state restoration test to break
Labels: P2,a: state restoration,p: go_router,team-go_router,triaged-go_router

GoRouter 7.1.0 seems to be causing a sample's state restoration features to break. Context: https://github.com/flutter/samples/issues/1838

More evidence here: https://github.com/flutter/samples/pull/1840
Repository: tauri
Issue: [bug] Window focus is done prematurely in development
Labels: type: bug,priority: 3 low,platform: Windows,status: needs triage

### Describe the bug

Tauri doesn't focus when the window instance is launched, instead the focus is done prematurely during loading right after compilation which means that any focus on another window during loading will make the window appear in the background

### Reproduction

Launch compile & run and focus on any other window (VSC for example) when tauri is launched it will be in the background

[2023-05-24 15-18-11.webm](https://github.com/tauri-apps/tauri/assets/40531871/20531e27-936b-4326-97b5-192333f7c7f1)


### Expected behavior

When the window is launched (visible to the user) the focus is applied
Currently the focus is applied earlier even though the window is not visible

### Platform and versions

```text
[✘] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 113.0.1774.50
    ✘ Couldn't detect Visual Studio or Visual Studio Build Tools. Download from https://aka.ms/vs/17/release/vs_BuildTools.exe
    ✔ rustc: 1.69.0 (84c898d65 2023-04-16)
    ✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri [RUST]: 1.3.0
    - tauri-build [RUST]: 1.3.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.1
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.3.1

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: flutter
Issue: macOS EDR support - textures with wantsExtendedDynamicRangeContent
Labels: c: new feature,engine,platform-mac,c: proposal,P2,team-engine,triaged-engine

### 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

For some time mac hardware comes with display capable of showing wide range of colors resulting in kind of HDR display (similar to newer iPhones/iPads).

To make use of it on macOS you need `CAOpenGLLayer` or `CAMetalLayer` with `wantsExtendedDynamicRangeContent` set to `true`. From what I found it is currently not possible to set it in Flutter when using `Texture()` or through any kind of workaround.

### Proposal

Ideally, add `wantsExtendedDynamicRangeContent` option to `Texture()` or maybe make it a param of `TextureRegistry`.
To check if display supports EDR, one can check param on NSWindow:
`window?.screen?.maximumPotentialExtendedDynamicRangeColorComponentValue > 1.0`.

It's especially a great addition for video players but it's also useful for QR code views, photo galleries etc.
Repository: pytorch
Issue: scipy.ndimage.find_objects
Labels: feature,module: nn,triaged,needs research

### 🚀 The feature, motivation and pitch

This function a basic building block of any biomedical image analysis application.
It gives a list of tuple of slices of coordinates of labelled objects/cells within a mask image of dtype Uint16 or Uint8, assuming the image background is 0, and the labelled objects go from 1, 2, ..., max_label.

I was wondering it is possible to implement it in torch C++ using a simple TensorIterator.

Basically the simplest case would be it takes a 2D tensor of size (H, W) as input and
outputs a tensor of slices of size (N, 2) where N is the number of objects, and each row
is [slice(start,end,step), slice(start,end,step)]. 

### Alternatives

The implementation in C numpy can be found here:
https://github.com/scipy/scipy/blob/v1.10.1/scipy/ndimage/src/ni_measure.c

which uses Iterators defined here:
https://github.com/scipy/scipy/blob/v1.10.1/scipy/ndimage/src/ni_support.h

### Additional context

Can it also be extended to allow extract objects from a tensor of dimension (B, C, W, H) where B is the batch size, C the number of
channels and W is the width and H is the height.

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: pytorch
Issue: aot_export_joint_simple on plain callable (not graph module) doesn't attach stack traces
Labels: module: internals,good first issue,triaged,better-engineering,oncall: pt2,module: aotdispatch,module: pt2-dispatcher

### 🐛 Describe the bug

Repro example:

```
import torch
from torch._functorch.aot_autograd import aot_export_joint_simple
    
def f(x, weight):
    def cb(grad_out):
        y = grad_out.sin()  # stand-in for collective result
        weight.data.copy_(y)
        # Better would be:
        #   weight.data = y
        return grad_out
    r = x @ weight
    r.register_hook(cb) 
    return (r,)

gm = aot_export_joint_simple(
    f,
    [torch.randn(2, 3, requires_grad=True), torch.randn(3, 4)],
    trace_joint=True,
)
gm.print_readable()
```

gives

```
        # No stacktrace found for following nodes
```

It would be nice to get the native stack traces in this case.

### Versions

main

cc @bhosmer @smessmer @ljk53 @bdhirsh @msaroufim @wconstab @anijain2305 @zou3519 @ngimel
Repository: PowerToys
Issue: Alt + Tab alternative bcs the one for windows 11 sucks (specially for multiple screens)
Labels: Needs-Triage

### Description of the new feature / enhancement

i'm no expert in programming but the alt tab in windows 11 is really bad, it changes the order of the windows whenever you switch to an other app, so its very confusing to follow, Plus, the alt tab functionality only appears in the primary monitor wish is bad, if you want to multi task in any other screen, if someone can create a similar alt tab program without this issues, it would be freaking awesome.

### Scenario when this would be used?

making the order of the windows stable even if i change between the apps would be fantastic, bcs you will never missclick an app you didn't want and that means saving more time, also making an alt tab software in the screen you wanted is obviously great.

### Supporting information

i wish i had something to add up but i said what i want
Repository: rust
Issue: Trait fails to imply trait bounds for super trait associated types
Labels: A-trait-system,C-bug,A-implied-bounds

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
trait Trait {}

trait Super {
    type Assoc;
}
trait Sub: Super where <Self as Super>::Assoc: Trait {}

fn user<T:Sub>(t:T) {}
```

I expected to see this happen: 
It compile

Instead, this happened:
```out
Compiling playground v0.0.1 (/playground)
error[[E0277]](https://doc.rust-lang.org/stable/error_codes/E0277.html): the trait bound `<T as Super>::Assoc: Trait` is not satisfied
 --> src/lib.rs:8:11
  |
8 | fn user<T:Sub>(t:T) {}
  |           ^^^ the trait `Trait` is not implemented for `<T as Super>::Assoc`
  |
note: required by a bound in `Sub`
 --> src/lib.rs:6:48
  |
6 | trait Sub: Super where <Self as Super>::Assoc: Trait {}
  |                                                ^^^^^ required by this bound in `Sub`
help: consider further restricting the associated type
  |
8 | fn user<T:Sub>(t:T) where <T as Super>::Assoc: Trait {}
  |                     ++++++++++++++++++++++++++++++++

For more information about this error, try `rustc --explain E0277`.
error: could not compile `playground` due to previous error
```
### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->
Playground (rust 1.69.0 on May 24 2023), and

`rustc --version --verbose`:
```
rustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball)
binary: rustc
commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc
commit-date: 2023-04-16
host: x86_64-apple-darwin
release: 1.69.0
LLVM version: 15.0.7
```
Repository: go
Issue: net/http: TestTimeoutHandlerContextCanceled failures with `unexpected Write in handler`
Labels: NeedsInvestigation

```
#!watchflakes
post <- pkg == "net/http" && test == "TestTimeoutHandlerContextCanceled" && `unexpected Write in handler`
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/92c4910b378ef11cc5c8e3b703ef54ab2ac5b038)):

    --- FAIL: TestTimeoutHandlerContextCanceled (0.00s)
        --- FAIL: TestTimeoutHandlerContextCanceled/h2 (0.47s)
            serve_test.go:2542: got unexpected Write in handler: <nil>, want &{%!g(string=context canceled)}


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: godot
Issue: Signal exporting not working
Labels: bug,discussion,topic:editor

### Godot version

4.0.2.stable

### System information

windows 10

### Issue description

When you export a signal in a script and use it on a node a slot comes up on the editor to assign the value but nothing happens when its clicked

### Steps to reproduce

have a script with an export variable of type Signal


### Minimal reproduction project

n/a
Repository: deno
Issue: skiaCanvas import in worker causes worker to freeze
Labels: needs investigation

I submitted this to DjDeveloperr / skia_canvas but I'm not sure if it is a deno issue or skia_canvas.
https://github.com/DjDeveloperr/skia_canvas/issues/57

Here's a copy:

When I import skiaCanvas in a worker, the import works but then the worker does not get messages from it's parent. Importing in the parent works fine.

Two files:
skia.js:
```
import * as skiaCanvas from 'https://deno.land/x/skia_canvas@0.5.2/mod.ts'

const workerURL = new URL('./skiaWorker.js', import.meta.url).href
const worker = new Worker(workerURL, { type: 'module' })

worker.postMessage({ foo: 42 })
worker.onmessage = e => {
    console.log('main worker results', e.data)
}
```
skiaWorker:
```
// Works .. but freezes the onmessage below. Comment these out and it works
import * as skiaCanvas from 'https://deno.land/x/skia_canvas@0.5.2/mod.ts'
console.log(Object.keys(skiaCanvas))

self.onmessage = e => {
    console.log('worker msg', e.data)

    self.postMessage(e.data)
    self.close()
}
```

This runs the worker with silly messages and skiaCanvas import:

> deno run  -A  --unstable skia.js

The worker imports skiaCanvas but does not receive a message from it's parrent.

Comment out the top import/console.log and the worker runs as expected
Repository: flutter
Issue: expose _kMenuScreenPadding and hover color of popup_menu
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

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

I want to change the color of a PopupMenuButton's item when hovering on web.

```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.22000.1696], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.6)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.77.3)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.
```

### Proposal

![image](https://github.com/flutter/flutter/assets/9344207/3f3607d6-eb77-4f1a-824a-2bd5514ed802)
Repository: PowerToys
Issue: Enhance Windows Recent
Labels: Idea-New PowerToy,Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

One of my major gripes about Windows File Explorer is that it could do better at surfacing things that you saved or modified recently from other applications.  I'd love to see a powertoy that gives us this ability to find recently saved or modified files far more easily from any desktop application.  I know there are a lot of system files that change, so it would be based on folders or drives of my choosing. 

### Scenario when this would be used?

Say you save a PDF from the web and you want to find that in Adobe Explorer; when you open the Windows file dialog, there is no clue to finding it except you remembering which drive and folder you saved it.  I'd like to see a more convenient way to find the last path I was in across all local system folders.

### Supporting information

yeah, I have nothing here, except my own years and years of being a constant PC user.  I mean who wouldn't want a more convenient way to find things they recently saved?  Less clicks, less to remember.
Repository: PowerToys
Issue: [MWB] Send audio from client PC
Labels: Idea-Enhancement,Product-Mouse Without Borders

### Description of the new feature / enhancement

To be able to send sound from one PC to another, working hand in hand with the new Mouse Without Borders feature.

### Scenario when this would be used?

For me, this would be used for

1.  Watching & listening to videos on a second PC
2.  Streaming services like Hulu, Netflix, etc., on a second PC while I work on the first.
3.  For STREAMING.  As in, live streaming to Twitch or YouTube. This would be a great app for monitoring your own stream or watching others while you stream on your main PC. 

### Supporting information

I currently use a paid app (Multiplicity) to use my mouse on Multiple PC's and listen to sound from another PC.  The ability to live stream from your main PC and do other necessary things on a second PC, so as not to  burden your Main PC with the extra load is crucial for anyopne who live streams, no matter how good their rig is. This is something that is only available through one 'paid' app ( that I am aware of) and its the same app I use to control multiple PC's with my mouse. I am honestly surprised (and have been somewhat frustrated) that Windows hasn't handled both of these  'apps' on their own years ago.
Repository: storybook
Issue: [Bug]: Types are missing/unavailable for `options.storySort`
Labels: bug,help wanted,core,typescript,sev:S3

### Describe the bug

Even if I apply the `Preview` type (from @storybook/react), TypeScript doesn't know the types of the arguments to `storySort`:

```
preview.ts:33:17 - error TS7006: Parameter 'a' implicitly has an 'any' type.

33     storySort: (a, b) => {
                   ~

preview.ts:33:20 - error TS7006: Parameter 'b' implicitly has an 'any' type.

33     storySort: (a, b) => {
                      ~
```

The migration guide says that these arguments are of type `StoryIndexEntry`, but I can't find this type in the Storybook packages. I shouldn't even need to, because `storySort` should already have the correct types assigned to it.

### To Reproduce

```
import type { Preview } from '@storybook/react';

export default <Preview>{
  options: {
    storySort: (a, b) => {
      return a.title === b.title ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true });
    },
  },
};
```

### System

```shell
Environment Info:

  System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
  Binaries:
    Node: 16.19.1 - C:\Program Files\Node.js\node.EXE
    npm: 9.6.2 - C:\Program Files\Node.js\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.50)
  npmPackages:
    @storybook/addon-actions: 7.0.17 => 7.0.17
    @storybook/addon-controls: 7.0.17 => 7.0.17
    @storybook/addon-docs: 7.0.17 => 7.0.17
    @storybook/addons: 7.0.17 => 7.0.17
    @storybook/api: 7.0.17 => 7.0.17
    @storybook/components: 7.0.17 => 7.0.17
    @storybook/core-events: 7.0.17 => 7.0.17
    @storybook/react: 7.0.17 => 7.0.17
    @storybook/react-vite: 7.0.17 => 7.0.17
    @storybook/theming: 7.0.17 => 7.0.17
```


### Additional context

_No response_
Repository: PowerToys
Issue: Add new language for math and science to Quick Accent
Labels: Idea-Enhancement,Status-In progress,Product-Quick Accent

### Description of the new feature / enhancement

I would really like to add a new language for math and science to Quick Accent. 

I am a student studying, among other things, Physics and Computer Science, and Quick Accent has been really helpful for me as I often need Greek letters to use in maths equations. (π, ε, Δ, Σ, etc) and the other symbols that can be used in maths (≥, ≠, ±) but I feel like many are missing that could be very useful, but don't fit into a specific language group: ∫, ⋃, √, ∀, ∞; and there are many others that I don't think I will ever use, but since there is no dedicated option, I need to leave enabled. 

I propose that there be a separate language called "Math" or "Science" or something similar designed for English speakers who do not want access to the various language characters but would like to use the Greek letters that permeate maths and other symbols used in the same field. 

Another solution to the problem might be to allow the user to define their own language set/keyboard mapping. 


### Scenario when this would be used?

This would be super helpful for anyone who needs to type out complex math expressions and is not in an environment that supports latex, or would like to quickly write an equation. 

### Supporting information

_No response_