sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: viteConfigPath has wrong types.
Labels: bug,needs triage

### Describe the bug

`viteConfigPath` is in the wrong place according to types.

### To Reproduce

https://stackblitz.com/edit/github-sgzxbx?file=.storybook%2Fmain.ts

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.4.1
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn <----- active
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    pnpm: 8.9.2 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.62
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmPackages:
    @storybook/addon-actions: 8.0.9 => 8.0.9 
    @storybook/addon-essentials: 8.0.9 => 8.0.9 
    @storybook/addon-interactions: 8.0.9 => 8.0.9 
    @storybook/addon-links: 8.0.9 => 8.0.9 
    @storybook/react: 8.0.9 => 8.0.9 
    @storybook/react-vite: 8.0.9 => 8.0.9 
    @storybook/test: ^8.0.9 => 8.0.9 
    eslint-plugin-storybook: 0.8.0 => 0.8.0 
    msw-storybook-addon: 2.0.0 => 2.0.0 
    storybook: 8.0.9 => 8.0.9 
    storybook-dark-mode: 4.0.1 => 4.0.1
```


### Additional context

```ts
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
  ...
  framework: {
    name: '@storybook/react-vite',
    options: {
      viteConfigPath: '../configs/vite.storybook.config.ts', // <- Correct type
    },
  },
};
```

According to https://storybook.js.org/docs/builders/vite#override-the-default-configuration, this is right 
```ts
export default {
  stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
  core: {
    builder: {
      name: '@storybook/builder-vite',
      options: {
        viteConfigPath: '../customVite.config.js',
      },
    },
  },
};
```

https://github.com/storybookjs/storybook/blob/7b2ddea221a8eac43eb45a738d2408e7ef072a16/docs/snippets/common/main-config-builder-custom-config.js.mdx#L10

however, the types suggest:

```ts
framework: {
    name: '@storybook/react-vite',
    options: {
      builder: {
        viteConfigPath: '../configs/vite.storybook.config.ts', // <- which is incorrect
      }
    },
  },
```

Realted links:

https://github.com/storybookjs/storybook/blob/7b2ddea221a8eac43eb45a738d2408e7ef072a16/code/builders/builder-vite/README.md?plain=1#L65-L85

https://github.com/storybookjs/storybook/blob/7b2ddea221a8eac43eb45a738d2408e7ef072a16/code/builders/builder-vite/src/types.ts#L20-L25

https://github.com/storybookjs/storybook/blob/7b2ddea221a8eac43eb45a738d2408e7ef072a16/code/frameworks/react-vite/src/types.ts#L11-L30
Repository: vscode
Issue: Add a setting for changing the default path for "Open Folder" to be current open folder, not parent dir
Labels: feature-request,simple-file-dialog

<!-- ⚠️⚠️ 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. -->
Hi 👋

Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 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.88.1 (user setup)
- OS Version: Windows 11 Pro 23H2 - Windows_NT x64 10.0.22631

## Steps to Reproduce:

1. Use this config:

   ```json
   "files.simpleDialog.enable": true,
   "files.dialog.defaultPath": "C:\\Users\\Babak\\Documents",
   ```
   You need to change `Babak` to your OS username.
3. Open an instance of vsCode with no working directory selected.
4. Open the dialog and the Default Path will be selected and its content will be shown.
5. Press the OK button.
6. Now open the dialog again, and you will find yourself in `"C:\\Users\\Babak` instead of `"C:\\Users\\Babak\\Documents"`! (this is the problematic part).

**The above steps and the steps taken in the below video are different**. It may be confusing.

https://github.com/microsoft/vscode/assets/44144724/aeed7d66-3d48-42cf-b71c-2273934dcd49

## How important is this to fix?

Very important because it pisses me off! This damn feature does a simple and single thing, and it does it poorly, lol.

Don't tell me that it's designed this way or it's not fixable!

Fix it ASAP, PLEASE!
Repository: go
Issue: build: build failure on x_vulndb-gotip-linux-amd64-misccompile
Labels: NeedsInvestigation

```
#!watchflakes
default <- builder == "x_vulndb-gotip-linux-amd64-misccompile" && repo == "vulndb" && mode == "build"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8750206301163890289)):

    [I2024-04-19T18:12:53.290248Z 424 0 sink.go:276] SinkServer: warm-up started
    [I2024-04-19T18:12:53.292629Z 424 0 sink.go:346] SinkServer: starting HTTP server...
    [I2024-04-19T18:12:53.293459Z 424 0 sink.go:281] SinkServer: warm-up ended
    [I2024-04-19T18:12:53.293813Z 424 0 cmd_stream.go:483] rdb-stream: starting the test command - ["/home/swarming/.swarming/w/ir/cache/tools/bin/result_adapter" "go" "-v=false" "--" "/home/swarming/.swarming/w/ir/x/w/goroot/bin/go" "test" "-json" "-c" "-o" "/dev/null" "./..."]
    # golang.org/x/vulndb/cmd/vulnreport.test
    syscall.Syscall15: nosplit stack over 792 byte limit
    syscall.Syscall15<1>
        grows 288 bytes, calls syscall.SyscallN<1>
            grows 32 bytes, calls runtime.cgocall<1>
                grows 112 bytes, calls runtime.entersyscall<1>
    ...
    Warning: no '=' in invocation-link-artifacts pair: "", ignoring
    [I2024-04-19T18:16:02.033680Z 424 0 cmd_stream.go:479] rdb-stream: the test process terminated
    [I2024-04-19T18:16:02.033815Z 424 0 sink.go:371] SinkServer: shutdown started
    [I2024-04-19T18:16:02.033892Z 424 0 sink.go:349] SinkServer: HTTP server stopped with "http: Server closed"
    [I2024-04-19T18:16:02.033929Z 424 0 sink_server.go:95] SinkServer: draining TestResult channel started
    [I2024-04-19T18:16:02.113719Z 424 0 sink_server.go:97] SinkServer: draining TestResult channel ended
    [I2024-04-19T18:16:02.113772Z 424 0 sink_server.go:99] SinkServer: draining Artifact channel started
    [I2024-04-19T18:16:02.192130Z 424 0 sink_server.go:101] SinkServer: draining Artifact channel ended
    [I2024-04-19T18:16:02.192191Z 424 0 sink.go:374] SinkServer: shutdown completed successfully
    [I2024-04-19T18:16:02.192215Z 424 0 cmd_stream.go:411] rdb-stream: exiting with 1


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: vscode
Issue: Uncaught Error: Illegal value for lineNumber
Labels: error-telemetry,editor-hover

```javascript
Error: Illegal value for lineNumber
at V.getLineMaxColumn in src/vs/editor/common/model/textModel.ts:854:10
at r.computeSync in src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts:75:27
at M.computeSync in src/vs/editor/contrib/hover/browser/contentHover.ts:1092:39
at S.C in src/vs/editor/contrib/hover/browser/hoverOperation.ts:147:54
at j.a in src/vs/editor/contrib/hover/browser/hoverOperation.ts:67:89
at j.h in out/vs/workbench/workbench.desktop.main.js:152:19974
at j.g in src/vs/base/common/async.ts:1017:9
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=e170252f762678dec6ca2cc69aba1570769a5d39&bH=fb574e99-9da0-5c62-a789-9b1a5c8a5302)
Repository: vscode
Issue: Cannot read properties of null (reading 'left')
Labels: error-telemetry,editor-indent-guides

```javascript
TypeError: Cannot read properties of null (reading 'left')
at S.prepareRender in src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts:134:46
at y.prepareRender in src/vs/editor/browser/view/viewOverlays.ts:126:19
at Object.prepareRender in src/vs/editor/browser/view.ts:512:15
at Object.prepareRender in src/vs/editor/browser/view.ts:432:23
at <anonymous> in src/vs/editor/browser/view.ts:753:36
at func in src/vs/editor/browser/view.ts:676:10
at safeInvokeNoArg in src/vs/editor/browser/view.ts:753:4
at M._ [as d] in src/vs/editor/browser/view.ts:726:10
at M.execute in src/vs/base/browser/dom.ts:325:9
at pt in src/vs/base/browser/dom.ts:366:8
at animationFrameRunner in src/vs/base/browser/dom.ts:384:45
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=e170252f762678dec6ca2cc69aba1570769a5d39&bH=aaad77ce-727c-37b7-26d2-2dec1039698e)
Repository: godot
Issue: Shader instance parameter is not removed from inspector immediately when it's no longer a instance
Labels: bug,topic:editor,topic:shaders

### Tested versions

Master

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 () - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)

### Issue description

When debugging https://github.com/godotengine/godot/issues/90936, I noticed that when change the `Vector2Parameter`'s qualifier from `Instance` to `None` , the value is still present under `Instance Shader Parameters` where it should not, unless manually de-select the mesh instance and select it again.

See the gif below, also note when changed to `None`, the parameter is also present under `Shader Parameters` immediately, which is expected. 

![test2](https://github.com/godotengine/godot/assets/8315986/5eca3eae-9b5f-46d8-8e03-ce7c1e3218e2)


### Steps to reproduce

See the above description and gif.

### Minimal reproduction project (MRP)

Same as https://github.com/godotengine/godot/issues/90936
Repository: react-native
Issue: `keyboardDidChangeFrame` and `keyboardWillChangeFrame` not fires on Android
Labels: Issue: Author Provided Repro,Platform: Android,API: Keyboard,Newer Patch Available

### Description

When changing Android's Keyboard height changes, both `keyboardDidChangeFrame` and `keyboardWillChangeFrame` does not fired. Also, `<KeyboardAvoidingView />` does not apply this height change.

### Steps to reproduce

1. Install the application with 'yarn android'
2. Open the application with android device.
3. Select first input(`keyboardType="email"`)
4. Select second input(`keyboardType="numeric"`)
5. You can see KeyboardAvoidingView's padding(or height) does not changed, and also event not fired.
6. This also happens when you change keyboard to emoji keyboard.

### React Native Version

0.73.6

### Affected Platforms

Runtime - Android

### Output of `npx react-native info`

```text
WARNING: You should run npx react-native@latest to ensure you're always using the most current version of the CLI. NPX has cached version (0.73.6) != current release (0.74.0)
  
info Fetching system and libraries information...
System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 153.73 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.5.1
    path: ~/.nvm/versions/node/v20.5.1/bin/node
  Yarn:
    version: 4.0.2
    path: ~/.nvm/versions/node/v20.5.1/bin/yarn
  npm:
    version: 10.2.1
    path: ~/.nvm/versions/node/v20.5.1/bin/npm
  Watchman:
    version: 2024.03.25.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11330709
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

info React Native v0.74.0 is now available (your project is running on v0.73.6).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
```


### Stacktrace or Logs

```text
-
```


### Reproducer

https://snack.expo.dev/NySnoeN9qggfNwiGi5hyg

### Screenshots and Videos

_No response_
Repository: go
Issue: proposal: cmp: add OrFunc
Labels: Proposal

### Proposal Details

Related to https://github.com/golang/go/issues/60204 - I find `cmp.Or` very useful, although I would appreciate a variant which does not 'execute' the inputs to subsequent parameters. 

I propose a variant of this function, which itself takes in a variable number of _functions_, and executes each until one of them returns a non-zero result.

The motivation for this is to provide behaviour similar to `connect() || die('ohnoes')`  in Perl, Ruby, etc. So, each parameter is like a 'fallback' of the previous parameter. It should only be executed if the previous parameter(s) returned `zero`.

```go
// OrFunc returns the the return-value of the first argument (a function), that is not equal to the zero value.
// If no argument is non-zero, it returns the zero value.
// OrFunc is inspired by Or and Perl's`||` operator
func OrFunc[T comparable, F func() T](funcs ...F) T {
	var zero T
	for _, f := range funcs {
		t := f()
		if t != zero {
			return t
		}
	}
	return zero
}
```

See here for a working example: https://go.dev/play/p/GYr6qeT7pDg

Thanks!
Repository: ui
Issue: [bug]: Navigation Menu `div` doesn't morph along x-axis as cursor moves across `<NavigationMenuItem />`
Labels: bug

### Describe the bug

When the cursor moves from one `<NavigationMenuItem />` to another, the expected behavior is a smooth morphing of the `div`, the div snaps based on the size of the next `<NavigationMenuItem />`.

### Affected component/components

Navigation Menu

### How to reproduce

Here's a video of the expected behavior from Radix UI:

https://github.com/shadcn-ui/ui/assets/92628452/c580561a-c4a8-4c7e-a183-fe8018eb54ea

Here's the behavior from `shadcn-ui`:

https://github.com/shadcn-ui/ui/assets/92628452/780d99dc-15b0-4808-8428-2fb46c7b944a



### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Chrome, Windows
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ant-design
Issue: Badge 数字没有居中
Labels: 🐛 Bug,Inactive

### Reproduction link

[https://ant.design/components/badge-cn#badge-demo-size](https://ant.design/components/badge-cn#badge-demo-size)

### Steps to reproduce

查看

### What is expected?

居中

### What is actually happening?

没有居中

| Environment | Info |
| --- | --- |
| antd | 5.16.4 |
| React | latest |
| System | mac |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

可以很明显的看出，左右两边空间不一样
![image](https://github.com/ant-design/ant-design/assets/47104575/141d1bfc-a930-4cf8-8016-d7458c19d11c)
Repository: PowerToys
Issue: FancyZones doesn't work after returning from sleep
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

FancyZones, FancyZones Editor

### Steps to reproduce

1. Use powerToys with Fancy Zones (custom layout)
2. Put Win to sleep
3. Wake pc and try using the shortcut for Fancy Zones

### ✔️ Expected Behavior

Fancy Zones layout is displayed when clicking the Shift+Ctrl+Left Click 

### ❌ Actual Behavior

The default windows snapping zones are displayed

### Other Software

[PowerToysReport_2024-04-22-20-07-06.zip](https://github.com/microsoft/PowerToys/files/15072020/PowerToysReport_2024-04-22-20-07-06.zip)

Note that the issue did not occur in previous versions.
Note that I've tried with/without the administrator mode.
Repository: HelloGitHub
Issue: 【开源自荐】Markdown Genji：编写交互式文档的 Markdown 拓展，支持在 VitePress 中使用
Labels: JavaScript 项目

## 推荐项目

- 项目地址：https://github.com/pearmini/genji
- 类别：JavaScript
- 项目标题：Markdown Genji：编写交互式文档的 Markdown 拓展，支持在 VitePress 中使用
- 项目描述：Markdown Genji 是一个 Markdown 语法的扩展，受到了 [Observable Notebook](https://observablehq.com/) 的启发，主要用来书写交互式文档，目前支持在 [VitePress](https://genji-md.dev/getting-started) 中使用。在 Genji 中，所有指定了 _eval_ 指令的代码块（ _```js eval_）都是可以执行的，它们的执行结果会被展示在文档中。每一个文档页面都实现了一个响应式系统，使得代码块之间可以相互引用，并且当一个代码块的值更新之后，所有依赖它的代码块会重新执行并渲染，从而实现文档的交互性。目前已经受到了 D3 作者 Mike Bostock 的[认可](https://github.com/pearmini/genji/discussions/187)。
- 亮点：
  - **轻量**：不像直接在文档里面嵌入一个 [CodeSandbox](https://codesandbox.io/dashboard) 那样在视觉上和功能上引入额外的负担。
  - **简单**：虽然大部分 SSGs 通过支持直接在 Markdown 里面写 React 和 Vue 组建的方式也达到了类似“可执行代码”的效果，但是有不低的学习成本（需要学习 React/Vue 组件），同时也需要把 Plain JavaScript 代码包装进组件，引入额外代码。而 Genji 的语法是跨框架的，使用起来也更加简单。
  - **扩展性强**：Genji 不只能执行 JavaScript 代码，Genji 中的 [transform](https://genji-md.dev/features/transforms) 机制，可以很方便的在代码块执行前，把 TypeScript、Vue、React、Python 等转换成 Plain JavaScript。

- 示例代码：如下的代码，可以得到下图中的结果：
````md
```js eval code=false
size = Inputs.range([50, 300], { label: "size", value: 100, step: 1 });
```

```js eval
(() => {
  const div = document.createElement("div");
  div.style.width = size + "px";
  div.style.height = "100px";
  div.style.background = "orange";
  return div;
})();
```
````
![Mar-29-2024 19-37-59](https://github.com/ruanyf/weekly/assets/49330279/e84d203b-ba0e-453a-a568-cd1d70313eca)
- 截图：（可选）gif/png/jpg
<img width="1106" alt="iShot_2024-04-01_22 30 10" src="https://github.com/ruanyf/weekly/assets/49330279/e93ea41c-232c-4df5-85a7-f068fe91c406">
<img width="924" alt="image" src="https://github.com/521xueweihan/HelloGitHub/assets/49330279/64663aae-30ef-4435-b69c-5565d5fd2da3">

- 后续更新计划：
  - 添加跟多语法层面的支持：比如内敛表达式等等。
  - 在更多的 SSG 里面支持语法，比如 [Docusaurus](https://docusaurus.io/), [Nextra](https://nextra.site/), [Rspress](https://rspress.dev/) 。
Repository: next.js
Issue: Yjs was already imported
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/yjs-error-forked-wr5jcz

### To Reproduce

Start the dev server and start editing. The error/warn message will show up in the console everytime something was edited or when the page was refreshed.

### Current vs. Expected behavior

I expect not to see the error when I define a client component.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.3.0-canary.18 // Latest available version is detected (14.3.0-canary.18).
  eslint-config-next: 14.1.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

It seems to be the problem regarding next bundler, the router or the way how next.js handles SSR. Back in /pages router we can solve this by using `dynamic()` with `ssr: false` but we don't have such an option now.
Repository: vscode
Issue: Execute commands not handled by controllers when opening large notebooks
Labels: debt,notebook-commands

* Create a large notebook 1000 cells
* Open using VS Code API
* Wait for the promises
* Verify the notebook is active (via code)
* Select a controller via vs code commands API
Verify the selection changed event is fired in the controller (i.e. controller is definitely selected)
* Run cells via the vs code commands API 
**Bug:** Nothing happens, controller does not get the cells to be executed.

**Observations**: 
* UI is still loading the notebook.
* Hence it seems as though command handlers are not wiredup/not handled until the notebook UI completely loads

Not a bug, but a debt item to polish (there might be some code in the renderer thats slow to wireup the command handlers).
As tests written need to work around these issues.
Repository: PowerToys
Issue: Update is not installing
Labels: Issue-Bug,Area-Setup/Install,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

v0.80.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

The latest update is not installing (An error occurred trying to install this update)

### ✔️ Expected Behavior

That the update was installing

### ❌ Actual Behavior

Try again to download and install

### Other Software

na
Repository: vscode
Issue: Diff editor does not render custom label
Labels: bug,diff-editor

Currently the diff editor does not show the custom label in tabs / open editors view
<img width="775" alt="image" src="https://github.com/microsoft/vscode/assets/44439583/7fc36a81-a987-4275-9df5-3697b5cc919d">

// cc @hediet