sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: electron
Issue: [Feature Request]: support to enable source maps
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Many applications are written in typescript, or when written in JavaScript are often bundled for production for improved performance. 

Nodejs supports source maps by using `--enable-source-maps` (https://nodejs.org/dist/latest-v20.x/docs/api/cli.html#cli_enable_source_maps)

However I haven't quite found a way to get this option to work in electron. 

## Things I tried

### Setting Node Options


```
NODE_OPTIONS="--enable-source-maps" my-electron-app
```


Results in an error: 

```
[200886:0621/191332.844414:ERROR:node_bindings.cc(287)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
```

### Using command line flag

```
my-electron-app --enable-source-maps
```

This doesn't seem to work


### Setting command line flag

```
app.commandLine.appendSwitch('--enable-source-maps')
```

This doesn't seem to work

### Proposed Solution

1. support enabling source maps by using `NODE_OPTIONS`
2. `app.commandLine.appendSwitch` 
3. Support source maps through electron fuses




### Alternatives Considered

Using https://www.npmjs.com/package/source-map-support, but native node source map support would be preferred


### Additional Information

_No response_
Repository: electron
Issue: [Bug]: Native spellchecker only provides suggestions in one language when multiple languages are defined
Labels: platform/windows,bug :beetle:,has-repro-gist,component/spellcheck,25-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

25.1.1

### What operating system are you using?

Windows

### Operating System Version

Windows 10 22H2

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

`dictionarySuggestions` should give suggestions for the misspelled word in the correct language that detected the misspelling.

### Actual Behavior

`dictionarySuggestions` only give suggestions in the last language in the spellcheck languages.

### Testcase Gist URL

https://gist.github.com/8c67d602682b4203906c60c89036b311

### Additional Information

In this example, the corrections should include "example"
![image](https://github.com/electron/electron/assets/609710/65aedf94-f3fa-4e8c-85cf-058dc9252438)
Repository: PowerToys
Issue: Remapping Ctrl (Left) to Caps Lock remaps Middle Mouse Button action
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.70.1

### Installation method

WinGet

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Enable Keyboard Manager
2. Remap Ctrl (Left) key to Caps Lock
3. Attempt to use Middle Mouse Button(e.g. open link in new tab in browser)

![image](https://github.com/microsoft/PowerToys/assets/6530854/ee0af400-b33f-45ee-84db-6b2de8a0fa1e)


### ✔️ Expected Behavior

Middle Mouse Button behaves as normally and performs the action

### ❌ Actual Behavior

Middle Mouse Button does not perform the requested action and does something totally different. In this specific case, it opens the Windows Project(usually Win+P) window and toggles Caps Lock.

### Other Software

_No response_
Repository: rust
Issue: rustdoc: where-clauses on tuple & unit structs and on assoc tys are weirdly styled
Labels: T-rustdoc,C-bug,A-rustdoc-ui

The styling of where-clauses on *tuple* & *unit* structs and on assoc tys weirdly differs from those on other items (structs, enums, unions, functions, impl blocks etc.) in that they don't have a smaller fonts size and are indented by 9 instead of 4 spaces (more precisely: for associated types it's *3* instead of 4 inside the `.item-decl` of the trait but 9 instead of 4 everywhere else).

### Tuple Structs

```rs
pub struct A<T>(T)
where
    T: Copy;
```

is rendered as

![Screenshot 2023-06-21 at 18-54-30 A in tup - Rust](https://github.com/rust-lang/rust/assets/14913065/df024b4e-3f1f-41a6-aa7c-c6a94a3873ed)

Compare that to

```rs
pub struct B<T>
where
    T: Copy,
{
    x: T,
}
```

![Screenshot 2023-06-21 at 18-55-31 B in tup - Rust](https://github.com/rust-lang/rust/assets/14913065/c3f5c7c8-564d-4938-9484-7ce6b9b13d4a)

### Unit Structs

```rs
#![feature(trivial_bounds)]

pub struct S
where
    String: Clone;
```

![Screenshot 2023-06-21 at 19-07-44 S in tup - Rust](https://github.com/rust-lang/rust/assets/14913065/00af25a3-86ec-4541-ba60-f0b9bca31d0a)

### Associated Types

```rs
pub struct S;

pub trait Tr {
    type F<T>
    where
        T: Clone;
}

impl Tr for S {
    type F<T> = T where T: Clone;
}
```

Inside the `.item-decl` of the trait (3 spaces, big):

![Screenshot 2023-06-21 at 20-14-21 Tr in nx - Rust](https://github.com/rust-lang/rust/assets/14913065/78fed635-5be1-4042-83da-94f0638f0641)

In section *Required Associated Types* on the page of the trait (9 spaces):

![Screenshot 2023-06-21 at 20-12-24 Tr in nx - Rust](https://github.com/rust-lang/rust/assets/14913065/ef8fa95c-26b2-4253-abd8-c138307b3120)

On the implementer's page (9 spaces, big):

![Screenshot 2023-06-21 at 20-15-58 S in nx - Rust](https://github.com/rust-lang/rust/assets/14913065/c91ca44c-c549-4994-bf56-1e156fef7ff2)

@rustbot label C-bug T-rustdoc A-rustdoc-ui
Repository: rust
Issue: Iterator assembly regression
Labels: A-LLVM,P-medium,regression-from-stable-to-stable,C-bug,I-heavy,C-optimization

### Code

I tried this code:

```rust
pub fn naive_i(start: i32, x: i32) -> i32 {
    let mut current = start - 1;
    while current % 7 != x {
        current -= 1;
    }
    current
}

pub fn iter_i(start: i32, x: i32) -> i32 {
    std::iter::successors(Some(start - 1), |v| Some(v -1 ))
        .find(|v| v % 7 == x)
        .unwrap()
}
```

I expected to see this happen: The (mostly) same assembly output between the two functions. This was the behavior on 1.69

Instead, this happened: Duplicated assembly output

### Version it worked on
Rust 1.69

### Version with regression
Rust 1.70 (and nightly)

### Godbolt link

https://godbolt.org/z/aMG7rKnYW
Repository: TypeScript
Issue: Provide support for comma insertion with snippet completion
Labels: Suggestion,Domain: Completion Lists,Rescheduled

# Bug Report
Support comma insertion with snippet completion
<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
object literal method snippet
<!--
  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.
-->

### 💻 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
interface T {
    aaa: string;
    foo(): void;
}

const obj: T = {
    aaa: ""
    /**/
}
```

### 🙁 Actual behavior

<!-- What happened, and why it was wrong -->
```ts
const obj: T = {
    aaa: ""
    foo() {
        
    },
}
```
On selecting the completion that inserts just `foo`, the comma gets inserted, but on selecting the snippet completion `foo()`, the comma is not inserted. This happens because both the comma insertion and snippet completion have their own `CompletionSource`.
### 🙂 Expected behavior

<!-- What you expected to happen instead, and why -->
```ts
const obj: T = {
    aaa: "",
    foo() {
        
    },
}
```
Repository: PowerToys
Issue: Screen blanking
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Ability to selectively blank attached display monitors.

### Scenario when this would be used?

When multiple display monitors are attached to a Windows PC, it is often useful to blank one or more monitors from the keyboard without turning them off with the power switch.

### Supporting information

Helps in lowering carbon emissions and room temperature.
Repository: electron
Issue: [Feature Request]: hiding Electron browser window from the applications windows list 
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

- I'm trying to make a browser window on the `macOS`, but I don't want to make it visible on `the application windows list`.
- On `Windows OS`, I'm using the perfect below options that did the job, and clicking on `Alt + Tab` will not show the window to the list of windows, while the same options on macOS will add the browser window to `the application windows list` via clicking on `F3` key.

```js
        focusable: false,
        transparent: true,
        alwaysOnTop: true,
        skipTaskbar: true,
        frame: false,
```

### Proposed Solution

Providing options for the browser window on `macOS` to prevent adding it to `the application windows list` as `Window OS`.

### Alternatives Considered

Any alternative options from your side will be appreciated if there.
Thanks in advance!

### Additional Information

_No response_
Repository: PowerToys
Issue: [Peek] Add video file viewing functionality - time
Labels: Needs-Triage

### Description of the new feature / enhancement

If the clip time can be added - present and total length


### Scenario when this would be used?

When viewing a video file in Peek.

### Supporting information

_No response_
Repository: PowerToys
Issue: [Peek] Add gif file viewing functionality - pause
Labels: Needs-Triage

### Description of the new feature / enhancement

If pausing of *.gif file can be added;

### Scenario when this would be used?


When viewing a gif file in Peek.

### Supporting information

When viewing a video file in Peek.
Repository: next.js
Issue: with-passport-and-next-connect redefines response `end` function as async
Labels: good first issue,examples

### Verify canary release

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

### Provide environment information

```bash
---
```


### Which example does this report relate to?

with-passport-and-next-connect

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

_No response_

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

_No response_

### Describe the Bug

Here in [with-passport-and-next-connect](https://github.com/vercel/next.js/blob/c30f21fa7713015057d06067ee5c7f5270c98fff/examples/with-passport-and-next-connect/lib/session.js#L13) `end` function is defined as `async`. This cannot be correct as it's called without `await` by the framework creating a race condition. 

This is a result of 
- Trying to override sync `end`
- Using async `@hapi\iron` apis

### Expected Behavior

This can be fixed either by saving the session somewhere else or by using a sync cryptography API.

### To Reproduce

Run the example, see `API resolved without sending a response for /api/auth/session, this may result in stalled requests.` in the console.
Repository: tensorflow
Issue: Apply Profile-Guided Optimization (PGO) on Tensorflow
Labels: stat:awaiting tensorflower,type:feature,type:performance,TF 2.12

### Describe the problem
Profile-Guided Optimization (PGO) could help with achieving additional performance with Tensorflow. I guess some parts of Tensorflow are good candidates (like https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler). Probably there are other good candidates - I am not familiar yet with the Tensorflow codebase.

Why I mentioned `tfcompile` is that PGO works especially well on compilers in practice (see [this](https://github.com/ZaMaZaN4iK/awesome-pgo) to read about the results on multiple applications).
Repository: vscode
Issue: Adopt `GlyphMarginWidget`s
Labels: feature-request,editor-widgets

Part of https://github.com/microsoft/vscode/issues/179725

We now support creating glyph margin widgets, allowing you to attach click handlers to glyph margin decorations:

https://github.com/microsoft/vscode/blob/343c389b54c0e9e5cbaa1b4de37ea513f6f61d67/src/vs/editor/browser/editorBrowser.ts#L254-L270

This should allow you to handle click events for your specific decoration, preventing issues like this: https://github.com/microsoft/vscode/issues/180789

Your component will need to manage these widgets manually via these methods:

https://github.com/microsoft/vscode/blob/343c389b54c0e9e5cbaa1b4de37ea513f6f61d67/src/vs/editor/browser/editorBrowser.ts#L1033-L1045

Please consider adopting for the following decoration types:
- [x] Diff revert arrow @hediet 
- [ ] Test decorations @connor4312 
- [ ] Breakpoint decorations @roblourens 

LMK if you have any questions, thanks!
Repository: rust
Issue: iterator for_each performance regression
Labels: A-LLVM,I-slow,P-medium,T-compiler,C-bug,regression-untriaged

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

### Code

I tried this code:

```rust
pub fn main() {
    let n = 100 as usize;
    println!("n: {}", n);
    let mut v = vec![0; n];

    for _ in 0..100_000_000 {
        v.iter_mut().for_each(|x| {
            *x = 4;
        })
    }
}
```

I expected to see this happen: Performance at least matching previous versions of Rust

Instead, this happened: On my machine, the execution time on nightly is around `2x` as long as on Rust 1.69.  The time reported by `perf stat` went from 0.35 to 0.67 seconds, and the instruction counts went up from 6.7 billion to 8.9 billion.

### Version it worked on

<!--
Provide the most recent version this worked on, for example:

It most recently worked on: Rust 1.47
-->

It most recently worked on: 1.69

### Version with regression

<!--
Provide the version you are using that has the regression.
-->

`rustc --version --verbose`:
```
rustc 1.72.0-nightly (46514218f 2023-06-20)
binary: rustc
commit-hash: 46514218f6f31ad3a1510ecc32af47e9e486c27d
commit-date: 2023-06-20
host: x86_64-unknown-linux-gnu
release: 1.72.0-nightly
LLVM version: 16.0.5


```
The regression also affects Rust 1.70, but the performance difference is not as big as on nightly.


<!--
Did the compiler crash? If so, please provide a backtrace.
-->

### Backtrace
<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
<backtrace>
```

</p>
</details>

<!--
If you know when this regression occurred, please add a line like below, replacing `{channel}` with one of stable, beta, or nightly.

@rustbot modify labels: +regression-from-stable-to-{channel} -regression-untriaged
-->
Repository: flutter
Issue: [web:a11y] revise usage of auxiliary elements in images
Labels: engine,a: accessibility,platform-web,P2,team-web,triaged-web

We have code written to deal with some quirks in ancient iOS Safari versions when creating the ARIA tree for images that uses extra elements to get focus ring sizing and positioning correctly:

https://github.com/flutter/engine/blob/f490c1d8e7ff60f5335b90a251f95ac8a3a5d036/lib/web_ui/lib/src/engine/semantics/image.dart#L26

I have a feeling that this is no longer necessary in modern Safari and can be significantly simplified. Logging this so I don't forget.
Repository: stable-diffusion-webui
Issue: [Feature Request]: Reset to Factory Default Settings
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

On the Settings --> Defaults, add an option to "Reset to Factory Defaults" - I accidentally saved the defaults and found out the prompt and negative prompts were also saved in the `ui-config.json` file. I have to manually delete the `ui-config.json` file to reset factory settings. 

### Proposed workflow

Settings --> Defaults page, add a button to reset to factory defaults.

### Additional information

_No response_
Repository: pytorch
Issue: DISABLED test_backward_ddp_outside_uneven_inputs (__main__.TensorPipeDdpUnderDistAutogradTest)
Labels: oncall: distributed,module: flaky-tests,skipped

Platforms: linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_backward_ddp_outside_uneven_inputs&suite=TensorPipeDdpUnderDistAutogradTest) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/14449736644).

Over the past 3 hours, it has been determined flaky in 2 workflow(s) with 2 failures and 2 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_backward_ddp_outside_uneven_inputs`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.


Test file path: `distributed/rpc/test_tensorpipe_agent.py`

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: go
Issue: x/tools/gopls: documentation, error messages, and mod tidy behavior can make adding a dependency confusing
Labels: gopls,Tools,gopls/metadata

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.5 windows/amd64
</pre>

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\user\AppData\Local\go-build
set GOENV=C:\Users\user\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\dev\projects\golang\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\dev\projects\golang
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\dev\Go\1.20.5
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\dev\Go\1.20.5\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.5
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\dev\projects\golang\src\projX\subProjX\go.mod
set GOWORK=C:\dev\projects\golang\src\go.work
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\user\AppData\Local\Temp\go-build1680866235=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?
I installed all my Go dev environment from zero, by Go 1.20
I set my GOPATH as env above, then I set my go.work file on the **root** from my workspace, **like the official ref says to do.**
After typing "go get github.com/any/module/example", the project are downloaded to GOMODCACHE but Golang says that "could not find the package", and I just ask "why???" 
It really uncomfortable when you follow the official reference and this happen, seems that Google engineers don't understand how workspace and dependency works, and I really don't wanna believe on it.

### What did you expect to see?
I expect see golang finding the packages after "go get"


### What did you see instead?
Golang cant find the packages under his own structure.
Repository: next.js
Issue: Nextjs image custom loader width is higher than required
Labels: bug,Image (next/image)

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: Ubuntu 20.04.0 LTS Thu Jun 22 2023 07:15:03 GMT+0530 (India Standard Time)
    Binaries:
      Node: 16.14.2
      npm: 9.4.2
      Yarn: 1.22.19
      pnpm: 8.3.1
    Relevant packages:
      next: 13.4.7
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: N/A
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

Image optimization (next/image, next/legacy/image)

### Link to the code that reproduces this issue or a replay of the bug

https://stackblitz.com/edit/nextjs-cvvomb?file=pages%2Findex.js

### To Reproduce

On loading the page the image should be loaded of size 20 rem = 320px instead it loads of 828 px. I think it somehow sends the width of the whole page. I have an app which has around 10 images of different sizes but each image is loaded for around screen size
<img width="1512" alt="Screenshot 2023-06-22 at 7 06 04 AM" src="https://github.com/vercel/next.js/assets/41507129/e3e35bdc-2215-4f45-a761-c214ec58deaa">


### Describe the Bug

The image getting loaded is of higher width which leads to a larger image being downloaded

### Expected Behavior

Download the image of proper width

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_