sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: FancyZones - Wuthering Waves unable to snap
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

Open Wuthering Waves (Game)
Press Shift to snap, snap doesn't show up, nor does it work

### ✔️ Expected Behavior

Wuthering Waves snapping like any other game/application i have, it works with Genshin Impact, Star Rail, Edge, Chrome, Telegram.. it works for everything except Wuthering Waves

### ❌ Actual Behavior

Wuthering Waves doesn't snap, nor does the HUD of snapping shows. it just doesn't work. i don't know why

### Other Software

Wuthering Waves v1.3 (Game)
Repository: godot
Issue: Calling Multiplayer.MultiplayerPeer.Close() on a server with compression does not free the port
Labels: bug,topic:network

### Tested versions

- Reproducible in Godot 4.3

### System information

Windows 11

### Issue description

I am unsure if this is a bug or if i'm just missing something, but calling `Multiplayer.MultiplayerPeer.Close();`on the server does not free the port. 

This happens only if compression is enabled, no matter the compression mode.

### Steps to reproduce

- Create a server
```c#
ENetMultiplayerPeer peer = new ENetMultiplayerPeer();
Error e = peer.CreateServer(8001);
if (e != Error.Ok){
	GD.Print("Error when creating server: " + e);
	return;
}
		
/* Commenting this line prevents the bug */
peer.Host.Compress(ENetConnection.CompressionMode.RangeCoder);

Multiplayer.MultiplayerPeer = peer;
```

- Stop the server
```c#
Multiplayer.MultiplayerPeer.Close();
```
At this point, the port is still used by godot:
![image](https://github.com/user-attachments/assets/603d507c-5657-4bd5-bb0d-2f63149d2893)


- Create the server again using the same code in step 1

This trigger an error and outputs:
`Error when creating server: CantCreate`


### Minimal reproduction project (MRP)

[new-game-project.zip](https://github.com/user-attachments/files/17451211/new-game-project.zip)
Repository: rust
Issue: rewrite documentation for htmldocck
Labels: T-rustdoc,C-enhancement,A-docs,C-bug

the documentation is at https://github.com/rust-lang/rust/blob/a2a1206811d864df2bb61b2fc27ddc45a3589424/src/etc/htmldocck.py#L4-L119

it has several issues:
* [ ] it is hard to find, not linked to from rustc-dev-guide
* [ ] it has not be updated to reflect the fact the syntax has changed from `// @foo` to `//@ foo`.
* [ ] says "only absolute paths are supported", but then requires xpaths to start with `//`, not `/`.
Repository: PowerToys
Issue: Copy as UNC
Labels: Idea-New PowerToy

### Description of the new feature / enhancement

When working on a company network that has mapped drive letters, it can be frustrating when browsing to a path, copying the path and after pasting the mapped drive letter is included rather than the UNC path, as the UNC path is required. 

### Scenario when this would be used?

When a user has an in-house or Line of business application and the software requires the use of the UNC path vs the mapped drive path, it can save time and frustration for the user rebuilding the path.   This would normally need, pasting the mapped drive path into a text editor, then looking up where the mapped drive points, then getting the start of the UNC path \\\\Server\share and appending that to the rest of the path for the mapped drive text and when the user has to do this many times during the day, Copy as UNC just as Copy as Path could save lots of time, the use case is very similar however it applies to network shares vs local paths. 

### Supporting information

I have built a proof of concept for this feature to help demonstrate the idea: https://github.com/RamblingGeekUK/Copy-as-UNC
Repository: opencv
Issue: OpenCV Members not recognized by PyLint
Labels: bug,category: python bindings

### System Information

# Summary

when working with cv2 and saving files, PyLint does complain it cannot find the cv2 members, hence, flooding the Problems tab with messages, which are in fact no problem at all. Below is a MWE to reproduce some of the messages.

### Detailed description

Tested it without being an extension, by directly installing the latest version. Seems to cause the same issue, nevertheless:
```console
pylint --version
```               
pylint 3.3.1
astroid 3.3.5
Python 3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]

```console
pylint opencv_mwe_pylint_err.py
```
************* Module object_tracker.opencv_mwe_pylint_err
opencv_mwe_pylint_err.py:5:6: E1101: Module 'cv2' has no 'VideoCapture' member (no-member)
opencv_mwe_pylint_err.py:6:25: E1101: Module 'cv2' has no 'createBackgroundSubtractorMOG2' member (no-member)
opencv_mwe_pylint_err.py:10:22: E1101: Module 'cv2' has no 'findContours' member (no-member)
opencv_mwe_pylint_err.py:11:21: E1101: Module 'cv2' has no 'RETR_EXTERNAL' member (no-member)
opencv_mwe_pylint_err.py:11:40: E1101: Module 'cv2' has no 'CHAIN_APPROX_SIMPLE' member (no-member)
opencv_mwe_pylint_err.py:14:0: E1101: Module 'cv2' has no 'destroyAllWindows' member (no-member)

------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

```console
pip list
```
...
opencv-python      4.10.0.84

### Steps to reproduce

```python
"""Minimum Working Example showing the issue that PyLint does not recognize cv2 Members"""

import cv2

cap = cv2.VideoCapture("test.mp4")
background_substractor = cv2.createBackgroundSubtractorMOG2()

ret, frame = cap.read()
foreground_mask = background_substractor.apply(frame)
contours, hierarchy = cv2.findContours(
    foreground_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE
)

cv2.destroyAllWindows()
cap.release()

```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: rust
Issue: Crater runs for 1.83
Labels: S-waiting-on-review,T-release

Note: Please do not conduct triage on these runs without discussing how to do so with a release team member first. Thanks!
Repository: awesome-mac
Issue: 🎉 Add Mailmate
Labels: addition

### 🪩 Provide a link to the proposed addition

https://freron.com

### 😳 Explain why it should be added

Mailmate is one of the strongest Mail clients for Mac. It has Spam Sieve integrated and has a very powerful tagging and search function. Nothing matches Mailmate's search.

### 📖 Additional context

_No response_

### 🧨 Issue Checklist

- [X] I have checked for other similar issues
- [X] I have explained why this change is important
- [X] I have added necessary documentation (if appropriate)
Repository: go
Issue: x/net/trace: registered routes conflict with "GET /"
Labels: NeedsDecision

### Go version

go version go1.23.2 darwin/arm64

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

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/alex/Library/Caches/go-build'
GOENV='/Users/alex/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/alex/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/alex/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.23.2/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.23.2/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='on'
GOTELEMETRYDIR='/Users/alex/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/alex/Code/test-trace-bug/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/lg/kw6gcgh126lf1nw8q7wjssc00000gn/T/go-build2664326740=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

https://go.dev/play/p/oQEzMhqVvwn

When I added dependency "cloud.google.com/go/storage" (or any other google library that has sub dependency of "golang.org/x/net/trace") + handler func with "GET /", go run panics with error: 

`panic: pattern "GET /" (registered at /Users/alex/Code/test-trace-bug/main.go:12) conflicts with pattern "/debug/requests" (registered at /Users/alex/go/pkg/mod/golang.org/x/net@v0.29.0/trace/trace.go:130):`

`GET / matches fewer methods than /debug/requests, but has a more general path pattern`


### What did you see happen?

output of the go run command with the example program(https://go.dev/play/p/oQEzMhqVvwn)
```
-> % go run main.go
panic: pattern "GET /" (registered at /Users/alex/Code/test-trace-bug/main.go:12) conflicts with pattern "/debug/requests" (registered at /Users/alex/go/pkg/mod/golang.org/x/net@v0.29.0/trace/trace.go:130):
	GET / matches fewer methods than /debug/requests, but has a more general path pattern

goroutine 1 [running]:
net/http.(*ServeMux).register(...)
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/net/http/server.go:2797
net/http.HandleFunc({0x1059e1273?, 0x1069f3860?}, 0x0?)
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/net/http/server.go:2791 +0x9c
main.main()
	/Users/alex/Code/test-trace-bug/main.go:12 +0x50
exit status 2
```

### What did you expect to see?

Expected build to work. 

Let me know if this is an error related to x/net/trace or google cloud storage package.
Repository: deno
Issue: [ERR_HTTP2_SOCKET_UNBOUND]: The socket has been disconnected from the Http2Session
Labels: bug,node compat

Version: Deno 2.0.2 (stable, release, aarch64-apple-darwin)

I am working with Pulumi's Automation API and whenever I call `stack.preview()` or `stack.up()` which relies heavily on gRPC, I'm getting this error:

```
>>> Error in Http2Server Error [ERR_HTTP2_SOCKET_UNBOUND]: The socket has been disconnected from the Http2Session
    at Object.get (node:http2:92:19)
    at Http2Server.<anonymous> ([project's path]/node_modules/@grpc/grpc-js/src/server.ts:1638:25)
    at Http2Server.emit (ext:deno_node/_events.mjs:393:28)
    at Http2Server.<anonymous> (node:http2:1214:14)
    at Http2Server.emit (ext:deno_node/_events.mjs:393:28)
    at TCP._onconnection [as onconnection] (node:net:1127:8)
    at TCP.#accept (ext:deno_node/internal_binding/tcp_wrap.ts:358:12)
    at eventLoopTick (ext:core/01_core.js:175:7) {
  code: "ERR_HTTP2_SOCKET_UNBOUND",
  name: "Error"
}
```

This is the error Im getting from Pulumi when executing `stack.preview()`:
```
error: failed to discover plugin requirements: connection error: desc = "error reading server preface: read tcp 127.0.0.1:55811->127.0.0.1:55807: use of closed network connection"
Previewing update (dev)
```
- as you notice, the error seems like a result of Deno's issue with gRPC (socket being disconnected from the Http2Session)
Repository: deno
Issue: 🐛 WinOS/WSL-1 ~ running `deno install` with Deno.Command has errors
Labels: bug,windows,install

Version: Deno 1.44.0+, including Deno 2.0+

Under WinOS/WSL-1, executing `deno install ...` using Deno.Command has errors and takes a very long time to complete.

```shell
$ time deno install -Afg https://cdn.jsdelivr.net/gh/rivy/deno.dxx@4a5f3bba/eg/args.ts
✅ Successfully installed args
/home/toor/.deno/bin/args

real    0m0.160s
user    0m0.250s
sys     0m0.125s

$ time deno eval "const c = new Deno.Command('deno', { args: ['install','-Afg','https://cdn.jsdelivr.net/gh/rivy/deno.dxx@4a5f3bba/eg/args.ts'] }); const p = c.spawn(); await p.output();"
Could not initialize cache database '/home/toor/.cache/deno/dep_analysis_cache_v2', deleting and retrying... (locking protocol

Caused by:
    Error code 15: Database lock protocol error)
Failed to open cache file '/home/toor/.cache/deno/dep_analysis_cache_v2', opening in-memory cache.
✅ Successfully installed args
/home/toor/.deno/bin/args

real    0m33.035s
user    0m0.219s
sys     0m0.266s
```

The change happened when upgrading from 1.43.6 to 1.44.0.

The slow-down and error don't occur in WSL-2.

Maybe just add a simple WSL-1 check and fallback immediately to the in-memory cache for that case? That should fix the error and the majority of speed issue if a further refactor isn't desired.

Alternatively, some flag to avoid the database probe might help as the user could check for WSL-1 and use `deno install ...` is a more system efficient manner.
Repository: ui
Issue: [bug]: SheetTitle Error on Sidebar
Labels: bug

### Describe the bug

Hi everyone,

I found a small bug in the mobile view of the sidebars. The mobile sidebar is build on top of the sheet component and therefore requires a SheetTitle.

The error is:
`DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users.

If you want to hide the `DialogTitle`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/dialog

> To resolve the issue, you can either add the SheetTitle or use the Radix VisuallyHidden component to hide the Sheet Title.

` <VisuallyHidden.Root>
              <SheetTitle>Menu</SheetTitle>
            </VisuallyHidden.Root>`

In particular: The sidebar.tsx has the following code:
`    if (isMobile) {
      return (
        <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>
          <SheetContent
            data-sidebar="sidebar"
            data-mobile="true"
            className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
            style={
              {
                "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
              } as React.CSSProperties
            }
            side={side}
          >
            <VisuallyHidden.Root>
              <SheetTitle>Menu</SheetTitle>
            </VisuallyHidden.Root>
            <div className="flex h-full w-full flex-col">{children}</div>
          </SheetContent>
        </Sheet>
      )
    }`
    
    Just add it above the div to visually hide it but fix the sheet error,
<img width="797" alt="screeshot" src="https://github.com/user-attachments/assets/be556648-a9fd-45e4-b31b-a9fe653fb158">


### Affected component/components

sidebar.tsx

### How to reproduce

1. Use mobile sidebar

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
-
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: terminal
Issue: CMD's `start` command and `Start-Process pwsh` opens all new tabs in new second instance of WT, despite settings
Labels: Issue-Bug,Product-Terminal,Area-Windowing

### Windows Terminal version

1.20.11781.0

### Windows build number

10.0.19044.5011

### Other Software

_No response_

### Steps to reproduce

Edit: This can also be done from Powershell using `start-process pwsh` (and likely `start powershell`)

1. Open Windows Terminal with no other instances already running.
2. In that same window, open Command Prompt profile (unless it is your default launch profile)
3. Execute `start` command.
4. Execute `start` command from the same window as step 3.
5. Execute `start` command on the new spawned window from steps 3 or 4.

### Startup settings:

![Image](https://github.com/user-attachments/assets/c985748c-c155-4dae-b762-87d7f3b5e40e)


### Expected Behavior

- With step 3, `start` should open a new tab in the same window we just opened.
- With step 4, `start` should open a new tab in the same window we just opened, again.
- With step 5, if executing `start` from a new window, it should open a new tab in that same window.
- If step 3 and 4 go as expected, step 5 shouldn't even exist.

### Actual Behavior

- With step 3, `start` opens a new tab in a new window. (unexpected)
- With step 4, `start` opens a new tab in the same new window opened in step 2. (unexpected)
- With step 5, `start` in the same new window as step 3 opens a new tab in the same new window opened in step 3 (this one works as expected).
Repository: ollama
Issue: When server is bound to 0.0.0.0, it should allow also communication redirected by netsh to localhost (issue specific to with WSL2)
Labels: feature request,windows,wsl

I have ollama server running within WSL2, on Win10. I want to access it from outside. The WSL2 needs to extra tricks to get the network traffic to reach it.

When I set a netsh rule that takes the outside traffic (allowed by Win firewall) and redirects to "WSL2-IP":11434
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=64065 connectaddress=172.18.200.13 connectport=11434

it all works when ollama config has this:
Environment="OLLAMA_HOST=0.0.0.0"

I can connect to: http://"machine IP":64065
and get ollama to respond!

But the problem is that the WSL2 IP is dynamic and will change .. so ideally I would use this netsh rule:
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=64065 connectaddress=localhost connectport=11434
and just keep ollama listening only on localhost

but this somehow does not work and the communication is lost.

Interestingly enough using localhost in netsh for open-webui sever works well!

Maybe I miss some issue but I could not find another solution to this.
Repository: opencv
Issue: approxPolyN is not found in python OSX version '4.10.0'
Labels: bug

### System Information

OpenCV python version: 4.10.0
Operating System / Platform: MacOS Sonoma 14.4.1 (23E224)
Python version: 3.12.5

### Detailed description

When I try to call cv2.approxPolyN the method is not found.  cv.2approxPolyDP works fine.

### Steps to reproduce

1. import cv2

2. try to call approxPolyN

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: ui
Issue: [bug]: Astro Dark Mode Guide Flicker
Labels: bug

### Describe the bug

Based on the current dark mode setup guide for Astro, `https://ui.shadcn.com/docs/dark-mode/astro`, there's a flicker of the dark mode  on the page as seen in the video below.

The flicker happens and is noticeable when my theme is set to dark or system (that is dark mode).

The issue seems to be tied to the `src/components/ModeToggle.tsx` component and the dark mode state changes.

Basically, the theme is initially set to "theme-light" in `React.useState`,
```tsx
  const [theme, setThemeState] = React.useState<
    "theme-light" | "dark" | "system"
  >("theme-light");
```

I tried to console.log the theme in the second `React.useEffect` check where the dark mode is set on the `documentElement` and realised that initially, it's set to "theme-light" which comes from the initial theme state and then, it's later set to the dark(as seen in the console in the video). This causes a flicker as the theme will first be set to light mode by removing the dark class from the `documentElement` and then later added. Even though, it's quite fast, it's still noticeable as a flicker on the page.

I suggest an update to the documentation by initially setting the theme to null (so in typescript, we can accept null as one of the union types), then performing a null check and only updating the `documentElement` if the theme is not null. This fixes the issue of flicker in dark mode. Updated code below:
```tsx
  const [theme, setThemeState] = React.useState<
    "theme-light" | "dark" | "system" | null
  >(null);

  React.useEffect(() => {
    const isDarkMode = document.documentElement.classList.contains("dark");
    setThemeState(isDarkMode ? "dark" : "theme-light");
  }, []);

  React.useEffect(() => {
    if (theme !== null) {
      const isDark =
        theme === "dark" ||
        (theme === "system" &&
          window.matchMedia("(prefers-color-scheme: dark)").matches);
      document.documentElement.classList[isDark ? "add" : "remove"]("dark");
    }
  }, [theme]);
```

[Screen recording 2024-10-20 21.59.36.webm](https://github.com/user-attachments/assets/3e4c56ae-03f9-4255-b97e-0e0ab27e6c42)


### Affected component/components

Dark Mode

### How to reproduce

1. Go to [shadcn astro installation](https://ui.shadcn.com/docs/installation/astro) to set up a new astro project with shadcn.
2. Setup dark mode with the [shadcn astro dark mode](https://ui.shadcn.com/docs/dark-mode/astro) documentation.
3. Change your theme to dark mode and refresh page

### Codesandbox/StackBlitz link

https://stackblitz.com/edit/withastro-astro-awu25v?file=src%2Fcomponents%2FModeToggle.tsx

### Logs

```bash
// console logs

{
    "theme": "theme-light"
}

{
    "theme": "dark"
}
```


### System Info

```bash
-
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: Inconsistent `DENO_INSTALL_ROOT` behaviour
Labels: bug,good first issue,install

Version: Deno 2.0.0

As stated in the documentation, `DENO_INSTALL_ROOT` should default to `$HOME/.deno/bin`. However, in `get_installer_root`, it defaults to simply `$HOME/.deno` (https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L117-L137), and the `bin` is only added later (https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L212-L218, https://github.com/denoland/deno/blob/473e3069de4bf5877a6f1140aa0462e05f745536/cli/tools/installer.rs#L430-L436). This causes some weird behaviour when `DENO_INSTALL_ROOT` is set (for example, if it is set to `$HOME/.deno/bin`, packages will be installed to `$HOME/.deno/bin/bin`).
Repository: react
Issue: Bug: exhaustive-deps rule doesn't report for useInsertionEffect
Labels: Status: Unconfirmed

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: 18
eslint-plugin-react-hooks version: 4.6.2

## Steps To Reproduce

Run eslint. with eslint-plugin-react-hooks with the following two code:

1. useEffect:

```jsx
const App = ({ id }: { id: string }) => {
  useEffect(() => {
    document.title = id;
  }, []);
};
```

2. useInsertionEffect:

```jsx
const App = ({ id }: { id: string }) => {
  useInsertionEffect(() => {
    document.title = id;
  }, []);
};
```

## The current behavior

The plugin reports a warning for the first case and doesn't for the second.


## The expected behavior

For both cases the plugin should report a warning.


As a workaround, I currently have to update the config:

```
        'react-hooks/exhaustive-deps': [
          'warn',
          {
            additionalHooks: 'useInsertionEffect',
          },
        ],
```