sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tauri
Issue: [bug] Help Menu on MacOS is empty and there is not any response when click it which will be failed to pass apple review
Labels: type: bug,platform: macOS,status: needs triage

### Describe the bug

The default help menu have empty submenu in macos desktop, it will fail to pass apple review.
<img width="563" alt="Screenshot 2024-04-03 at 9 52 48 AM" src="https://github.com/tauri-apps/tauri/assets/9312660/af01f514-99fc-4bb6-bf43-49845a160b1e">
also I try to call set_as_help_menu_for_nsapp, it doesn't work.
`if let Some(help_menu) = menu.get(tauri::menu::HELP_SUBMENU_ID) {
               _ = help_menu.as_submenu().unwrap().set_as_help_menu_for_nsapp();
}`
and 
I try to remove the help menu, crashed
`let menu = app.menu().unwrap();
        menu.remove(&menu.get(tauri::menu::HELP_SUBMENU_ID).unwrap());`

### Reproduction

1. create minimum tauri app and  npm run tauri dev on MacOS. 
2. the desktop app will start with default title bar menu. 
3. click the Help menu, there is not any drop down menu shown and Apple review will reject it.

### Expected behavior

the default help menu should have a search box under the Help menu.

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.10.0
    - yarn: 1.22.10
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: 2.0.0-beta.11
    - tauri-build [RUST]: 2.0.0-beta.9
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.0
    - tauri-cli [RUST]: 2.0.0-beta.9
    - @tauri-apps/api [NPM]: 2.0.0-beta.5
    - @tauri-apps/cli [NPM]: 2.0.0-beta.9

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:8007/
    - framework: React
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: Web Interface and API use different defaults for img2img
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

The API uses different defaults than the webinterface for some settings. The probably most surprising setting is img2img `inpainting_fill=0` (fill) in the API and `inpainting_fill=1` (original) in the inpaint webinterface.

The API also set `inpaint_full_res=True` which I think corresponds to "only masked" when a mask is given and the webinterface defaults to "full image".

### Steps to reproduce the problem

- Use API endpoints with defaults

### What should have happened?

It should behave like using the webinterface with defaults.

### Related
A similar problem in the controlnet API for the `controlnet_threshold_a/b` parameters: https://github.com/Mikubill/sd-webui-controlnet/issues/2732
The sdwebuiapi project has a copy of the API defaults in its code: https://github.com/mix1009/sdwebuiapi/issues/162
Repository: godot
Issue: BSOD Video scheduler internal error
Labels: platform:windows,topic:rendering,needs testing

### Tested versions

4.2.1-stable

### System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4080 SUPER (NVIDIA; 31.0.15.5186) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)

### Issue description

I sometimes get BSOD when pressing exactly the "Stop Running Project (F8)" button on godots UI. I work almost every day in godot and it occurs usually a few hours in after already clicking it multiple times. happens about 2-3 times per week. Tested multiple applications/games closed/opened them multiple times. only happens with godot and so far only when pressing that specific button. I will attach one of the dump files. Its BUGCHECK_CODE:  119, BUGCHECK_P1: 3000 . P1=0x3000 is also not really documented on microsofts side. Already checked for memory, faulty disk/partition, drivers (new and old). Maybe its faulty hardware, but it's kinda new and also it only happens in that specific godot scenario. maybe someone can help. thanks in advance :)
Specs:
OS: WIN 10
GPU: 4080 super (newest driver)
CPU: AMD Ryzen 7 7800X3D 8-Core Processor
MOBO: Gigabyte B650 Gaming X AX (newest BIOS)
SSD: WD_Black SN850X

[dump.txt](https://github.com/godotengine/godot/files/14856493/dump.txt)

Will update, should I get more useful info.


### Steps to reproduce

click the "Stop Running Project (F8)" after running a project.

### Minimal reproduction project (MRP)

not project specific
[BSOD.zip](https://github.com/godotengine/godot/files/14856650/BSOD.zip)
Repository: excalidraw
Issue: Performance degradation occurs when opened in a wide browser window (ultra-wide screen).
Labels: bug,performance ⚡️

It looks like when dragging an object, it lags behind the cursor more and more as the window gets bigger. I tested it in the latest versions of Arc and Chrome browsers with hardware acceleration enabled.

https://github.com/excalidraw/excalidraw/assets/61607363/69454ea0-9ab2-42c0-b184-e141f6f2523f
Repository: terminal
Issue: Manually select multiple panes to broadcast into
Labels: Issue-Feature,Area-Input,Product-Terminal

A clear and concise description of what you want to happen.
the exiting broadcating feature will send command to all windows on a same tab. i want half of my windows be one broadcast group and half of other in second or third broadcast windows but in same tab. in attached image i create a tab with 4 window. i want to broadcast command to G1 and G2 red-box only and then broadcast command to G1 and G2 in green-box but both be on same tab
![Screenshot 2024-04-03 214956](https://github.com/microsoft/terminal/assets/86443621/0e879376-e375-4148-a85e-a503cc26ec09)
Repository: vscode
Issue: SCM Input - Allow configuring scm input as a specific language
Labels: feature-request,scm

# Feature Request
I'd like a way to have the scminput always be considered markdown. This would enable:

- Syntax highlighting
- Bracket matching and other basic editor features 
- Snippets
- Other markdown IntelliSense features


Maybe we can add a setting such as `scm.inputLanguage`?
Repository: rust
Issue: `-Zdefault-hidden-visibility` causes linking errors due to intrinsic-related calls 
Labels: A-linkage,T-compiler,C-bug,A-intrinsics,requires-nightly

`-Zdefault-hidden-visibility` should affect symbols defined in a crate. References to externally-defined symbols should not have hidden visibility.

Certain intrinsics such as `compare_bytes` may emit calls to `libc.so` functions (e.g. `memcmp`). When `-Zdefault-hidden-visibility` is used, these symbol references are hidden. This leads to linking errors since an undefined hidden symbol cannot be resolved to a symbol in a dynamic library.

Repro:
```
#![feature(core_intrinsics)]

fn main() {
    let a = 0u8;
    let b = 0u8;

    println!("{}", unsafe {
        std::intrinsics::compare_bytes(&a as *const _, &b as *const _, 1)
    });
}
```

error:
```
note: /usr/bin/ld: .../rust/build/x86_64-unknown-linux-gnu/test/ui/default-hidden-visibility-intrinsic/default-hidden-visibility-intrinsic.default_hidden_visibility_intrinsic.adfc02789a1ff675-cgu.0.rcgu.o: in function `default_hidden_visibility_intrinsic::main':
           default_hidden_visibility_intrinsic.adfc02789a1ff675-cgu.0:(.text._ZN35default_hidden_visibility_intrinsic4main17hf16163bc798359ebE+0x1e): undefined reference to `memcmp'
           /usr/bin/ld: .../rust/build/x86_64-unknown-linux-gnu/test/ui/default-hidden-visibility-intrinsic/default-hidden-visibility-intrinsic: hidden symbol `memcmp' isn't defined
           /usr/bin/ld: final link failed: bad value
           collect2: error: ld returned 1 exit status
```

The flag was added in https://github.com/rust-lang/rust/pull/118417; MCP https://github.com/rust-lang/compiler-team/issues/656

While this flag isn't really intended for use on `bin` crates, I suspect crates downstream of an `rlib` or `staticlib` would have the same errors.
Repository: PowerToys
Issue: [Power Toys-Color picker]: Keyboard gets lost after last link on the pane and appears after pressing tab twice.
Labels: Issue-Bug,Product-Settings,Priority-3,Area-Accessibility,Product-Color Picker,A11yE+D,A11ySev3,A11yWCAG

### Microsoft PowerToys version

v0.79.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

ColorPicker

### Steps to reproduce

**Test environment:**
OS Build: Windows 11 Enterprise insider preview 23H2 (22631.3296) 
Power toys version: v0.79.0 

**Repro Steps:**
1. Open the Power Toys app in the desktop. 
2. Turn on narrator. 
3. Select the color picker option. 
4. Continue navigating until the last link on the page. 
5. Observe that after reaching the last link, the keyboard focus is lost after pressing tab. 
6. Press the tab key again. 
7. Notice that the keyboard focus reappears after the second consecutive tab press. 

**Note:**
This issue is repro throughout the App at every pane.

**User Experience:**
This issue significantly impacts users who rely on keyboard navigation, users will get confused, and they face problem if focus will get lost.

**Guideline Reference:**
https://www.w3.org/WAI/WCAG22/Understanding/focus-order

**Attachments:**
![keyboard focus is lost after last link and then on pressing tab twice it appears](https://github.com/microsoft/PowerToys/assets/117908911/f7dab820-eb1a-4e7e-b1a3-8eaedf846c4a)




https://github.com/microsoft/PowerToys/assets/117908911/6ff7ca0f-5e52-443d-acc3-dee21600687f



### ✔️ Expected Behavior

After navigating to the last link, the keyboard focus is lost and appears on the next control after pressing tab twice.

### ❌ Actual Behavior

Keyboard focus should not get lost after the last link it should appear on the next control just after pressing the tab key.

### Other Software

_No response_
Repository: vscode
Issue: `decodeAuthority` function mangles well-formed URL's
Labels: bug,getting-started

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.87.2
- OS Version: Windows 11

Steps to Reproduce:

1. Host VSCode web on a URL whose hostname includes `*-abcd*` (for example `<anything>-<uuid>`)
2. Open the getting started page about themes.
3. Find that the PNG's for the theme images fail to load.

When the request to load the images is made, it will pass through the [`load-resource` handler](https://github.com/microsoft/vscode/blob/23860e98f0ef8f0632a3e9727c0b6653787c5df9/src/vs/workbench/contrib/webview/browser/webviewElement.ts#L270), which uses [`decodeAuthority`](https://github.com/microsoft/vscode/blob/23860e98f0ef8f0632a3e9727c0b6653787c5df9/src/vs/workbench/contrib/webview/common/webview.ts#L76-L78). That function treats any sequence of hyphen + 4 hex-compatible characters as an encoding generated by the corresponding [`encodeAuthority`](https://github.com/microsoft/vscode/blob/23860e98f0ef8f0632a3e9727c0b6653787c5df9/src/vs/workbench/contrib/webview/common/webview.ts#L72), but of course it's perfectly possible for such a sequence to occur in a well-formed URL, and if it was part of the original URL, then `decodeAuthority` mangles the original URL and the load request will fail.
Repository: TypeScript
Issue: Shorten error spans for missing key errors reported on object literals
Labels: Suggestion,Needs Proposal

### 🔍 Search Terms

object literal, error span, squigglies, highlight, decoration, editor, range

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

When defining an object literal with a missing key, e.g. as a function input, highlight only the first line of the object literal as opposed to the entire node.

### 📃 Motivating Example

Current behavior (one parameter with missing key):

![image](https://github.com/microsoft/TypeScript/assets/10645823/ff778773-ff45-4841-92b3-f40fa329446f)


Suggested behavior (one parameter with missing key):
![image](https://github.com/microsoft/TypeScript/assets/10645823/fe9a7685-4ccd-4e4e-92ca-c9789235ea0a)


Current behavior (two parameters with missing keys):
![image](https://github.com/microsoft/TypeScript/assets/10645823/ff75f440-cf7f-414b-a7dc-0e9f542d44ab)

Suggested behavior(two parameters with missing keys):
![image](https://github.com/microsoft/TypeScript/assets/10645823/c105710b-43a8-4bd5-bb00-4e994af08432)

Here's a TS playground link with the original source:

https://tsplay.dev/N9a3qN

### 💻 Use Cases

This would make errors clearer and less jarring when defining large objects as function inputs.
Repository: ant-design
Issue: DatePicker::RangePicker interaction or highlighting for "presets"
Labels: 💡 Feature Request,Inactive

### What problem does this feature solve?

I am referring to the snd example in https://ant.design/components/date-picker#components-date-picker-demo-preset-ranges
I want to be able to show my user on initial load that he has selected a certain preset.
I understand that the component basically does just support dates but for my use-case I should be able to display a selection on the preset.

I was trying to understand the codebase, as I understand that the api does not support a "active" selection of some sort for the presets.

If someone can point me to the part in the codebase where i could figure out how to fake some css.

### What does the proposed API look like?

Ideally i want to have keys or ids ... but this is probably too much to ask, as the presets are also used with the color picker. 

```
const rangePresets: TimeRangePickerProps['presets'] = [
  { 
    label: 'Last 7 Days',
    key: 'last_7d',
    value: [dayjs().add(-7, 'd'), dayjs()]
  },
  { 
    label: 'Last 14 Days',
    key: 'last_14d',
    value:[dayjs().add(-14, 'd'), dayjs()]
  }
]

const onRangeChange = (dates: null | (Dayjs | null)[], dateStrings: string[], preset: string | null) => {
// do s.th. with the preset
    if (dates) {
      console.log('From: ', dates[0], ', to: ', dates[1]);
      console.log('From: ', dateStrings[0], ', to: ', dateStrings[1]);
    } else {
      console.log('Clear');
    }
  };

<RangePicker defaultValue={last_7d} presets={rangePresets} onChange={onRangeChange} />
```

But maybe there is at least some way to highlight the preset if it matches the current dates applyed.
Then i can make some logic around the value callback functions and set state with the "hovered" preset.

```
const [preset, setPreset] = useState("last_7d");
const rangePresets: TimeRangePickerProps['presets'] = [
  { 
    label: 'Last 7 Days',
    value: () => {
      setPreset('last_7d')
      return [dayjs().add(-7, 'd'), dayjs()]
    }
  },
  { 
    label: 'Last 14 Days',
    value: () => {
      setPreset('last_14d')
      return [dayjs().add(-14, 'd'), dayjs()]
    }
  }
]
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: go
Issue: log/syslog: generated syslog format is not RFC-compliant
Labels: NeedsInvestigation

### Go version

go version go1.22.1 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOVERSION='go1.22.1'
```


### What did you do?

I was tracking down a broken syslog implementation in an application and was surprised that the log/syslog package produces a message format that is not compliant with any of the RFCs specifying valid syslog formats (RFC 3164 and RFC 5424).

Example Code: https://go.dev/play/p/cs5p3N3RZrJ

The format produced by the example code looks like this:
```
<28>2009-11-10T23:00:00Z c33b68c01c70 demotag[11]: This is a daemon warning with demotag.
```
While full compliance with the RFCs is often not necessary, this format prevents even basic parsing of the timestamp and the sending hostname, as many implementations separate the fields by counting whitespaces (after detecting the syslog RFC variant being used).

RFC 3164 says:
- The HEADER contains two fields called the TIMESTAMP and the HOSTNAME.
- The TIMESTAMP will immediately follow the trailing ">"
- The TIMESTAMP field is the local time and is in the format of "Mmm dd
   hh:mm:ss" (without the quote marks)

RFC 5424 defines:
- SYSLOG-MSG      = HEADER SP STRUCTURED-DATA [SP MSG]
- HEADER          = PRI VERSION SP TIMESTAMP SP HOSTNAME SP - APP-NAME SP PROCID SP MSGID
- PRI             = "<" PRIVAL ">"
- PRIVAL          = 1*3DIGIT ; range 0 .. 191
- VERSION         = NONZERO-DIGIT 0*2DIGIT
- TIMESTAMP       = NILVALUE / FULL-DATE "T" FULL-TIME
- "The TIMESTAMP field is a formalized timestamp derived from [RFC3339]."

The current implementation uses the structure of the old RFC 3164 (PRI followed immediately by the TIMESTAMP), but the timestamp is in the RFC3339 format used by the new RFC 5424.

The example message with a RFC 3164 header would look like:
```
<28>Nov 10 23:00:00 c33b68c01c70 demotag[11]: This is a daemon warning with demotag.
```

The example message with a RFC 5424 header would look like:
```
<28>1 2009-11-10T23:00:00Z c33b68c01c70 demotag[11]: This is a daemon warning with demotag.
```


I would suggest to support the new RFC 5424 by adding ```1 ``` (¨1" followed by a whitespace) after the PRI field. This should help many implementations parsing syslog messages.

If this is accepted, I would be willing to contribute the necessary code changes.

### What did you see happen?

A syslog message in a format that is not compliant with RFC 3164 or RFC 5424:
```
<28>2009-11-10T23:00:00Z c33b68c01c70 demotag[11]: This is a daemon warning with demotag.
```

### What did you expect to see?

A syslog message with basic compliance with RFC 5424:
```
<28>1 2009-11-10T23:00:00Z c33b68c01c70 demotag[11]: This is a daemon warning with demotag.
```
Repository: node
Issue: docs(test-runner): missing example and explain about how to mock error
Labels: doc,good first issue,test_runner

### Affected URL(s)

https://nodejs.org/docs/latest-v20.x/api/test.html#mocking

### Description of the problem

On docs there missing explains about how to mock Error and catch it with `throws`.
Repository: PowerToys
Issue: [Power Toys-Color Picker>Shortcut]: Keyboard focus is moving two times on the save button present inside the Activation shortcut dialogue.
Labels: Issue-Bug,Product-Settings,Area-Accessibility,Needs-Triage,Product-Color Picker,A11yE+D,A11ySev3,A11yWCAG

### Microsoft PowerToys version

v0.79.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

ColorPicker

### Steps to reproduce

**Test environment:**
OS Build: Windows 11 Enterprise insider preview 23H2 (22631.3296)
Power toys version: v0.79.0

**Repro Steps:**

1. Open the Power Toys app in the desktop. 
2. Select the color picker option from left navigation pane.
3. Navigate to activation shortcut button and activate it. 
4. Press tab key and observe that keyboard focus moved to save button. 
5. Press the tab key again, notice that instead of moving to the next element, the keyboard focus returns to the "Save" button. 

**Note:**
This issue is repro throughout the App for every same kind of dialogues present at different setting options.

**User Experience:**
The excessive movement of keyboard focus on the "Save" button negatively impacts the user experience for individuals who depend on keyboard navigation methods. 
 
**Guideline Reference:**
https://www.w3.org/WAI/WCAG22/Understanding/focus-order

**Attachments:**




https://github.com/microsoft/PowerToys/assets/117908911/8fd413ef-ffb8-4bc8-8e61-539faf89c2a7



![Keyboard focus is moving two times on save button](https://github.com/microsoft/PowerToys/assets/117908911/e87b4760-08bf-4e4a-a46c-85486ecc344a)


### ✔️ Expected Behavior

Upon reaching the "Save" button using keyboard controls, pressing the tab key should move the keyboard focus to the next relevant interactive element within the interface, allowing users to continue navigating through the interface seamlessly. 

### ❌ Actual Behavior

After navigating to the "Save" button using keyboard controls, pressing the tab key causes the keyboard focus to move onto the "Save" button again, resulting in a redundant movement of focus. 


### Other Software

_No response_
Repository: PowerToys
Issue: Mouse without border will not generate key
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.79

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

1. Install PowerToys
2. Run as administrator
3. Click on New Key button


### ✔️ Expected Behavior

A key is generated

### ❌ Actual Behavior

No key is generated

### Other Software

[PowerToysReport_2024-04-03-16-09-22.zip](https://github.com/microsoft/PowerToys/files/14858078/PowerToysReport_2024-04-03-16-09-22.zip)
Repository: pytorch
Issue: We should walk torch._C and require everything have type annotations
Labels: module: internals,module: typing,triaged

Otherwise, in today's state, people add helper functions to torch._C and then someone in the future is required to add the type hints when they use it in a mypy-enabled context.

cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh @malfet @xuzhao9 @gramster