sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Deno fetch gives TLS related "reset by peer" error, on a site with what appears to be strong security
Labels: tls,needs investigation

Using `fetch` in Lume v2.4.2 (Deno Typescript static site generator app) on Deno 2.1.2, I get this error when fetching to our ops db REST API: 

> fetch TypeError: "client error connection reset by peer"

I see a lot of people have had this same or a similar problem, in various GH issues, and it appears that it is because of the underlying Rust [library](https://github.com/ctz/rustls) being used, is extra strict about TLS connections. For example: 

https://github.com/denoland/deno/issues/6427
https://github.com/denoland/deno/issues/6197
https://github.com/denoland/deno/issues/7528

When I test the connection using `curl -v` you can see the result below, and this well-known assessment site   https://www.ssllabs.com/ssltest/analyze.html?d=pro.dbflex.net returns an A rating, yet, Deno (well, the underlying library) rejects the connection. 

As a workaround, I used a different service to pull the json I am interested in, and represent it as an URL that does not require any auth / bearer tokens etc.

I am confused by this, because although TLS 1.2 is getting old, it seems like the A rating from SSLLabs should be good enough? 
Are there any workarounds on the code side, like using a different or 3rd party fetch library? 

![JRC CleanShot Microsoft Edge 2024-12-03-201735JST@2x](https://github.com/user-attachments/assets/d17ba811-dfbc-4867-ae8f-60e2ea75a3de)


```sh
❯ curl -v https://pro.dbflex.net/secure
* Host pro.dbflex.net:443 was resolved.
* IPv6: (none)
* IPv4: 208.100.33.100
*   Trying 208.100.33.100:443...
* Connected to pro.dbflex.net (208.100.33.100) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384 / [blank] / UNDEF
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=dbflex.net
*  start date: Feb 15 00:00:00 2024 GMT
*  expire date: Mar 17 23:59:59 2025 GMT
*  subjectAltName: host "pro.dbflex.net" matched cert's "*.dbflex.net"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* using HTTP/1.x
> GET /secure HTTP/1.1
> Host: pro.dbflex.net
> User-Agent: curl/8.7.1
> Accept: */*
```
Repository: vscode
Issue: Why run code first, the command seems not loaded in vscode terminal
Labels: bug,terminal-input

<!-- ⚠️⚠️ 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.95.3
- OS Version: Sequoia 15.1.1

Steps to Reproduce:

1. Click the button of `run python file` when the terminal is closed.
- The output is none. It looks like command runs before terminal get ready.
- This problem not happens on windows.
- Look the below pic.
![Image](https://github.com/user-attachments/assets/c79c28ad-2808-435e-a574-93d2b1215897)

2. Kick the button of `run python file` secondly, when the terminal is opening.
- The same command runs and get output
![Image](https://github.com/user-attachments/assets/7f50dd71-b2ec-4ffe-8a7b-4474e2e76188)


**It is very stange that why run code in vscode on mac needs twice click.**
Repository: pytorch
Issue: Support SDPA flash attention/ memory efficant attn on ROCm gfx908
Labels: module: rocm,triaged,module: sdpa

### 🚀 The feature, motivation and pitch

Currently SDPA has a flash attention backend via AOTriton for gfx90a and gfx942, but not gfx908.

CK flash attention backend used by https://github.com/ROCm/flash-attention dose work on gfx908 but this is not used by pytroch.

For fp16 gfx908 isa supports all the same instructions as gfx90a so the gfx90a kernels should work on gfx908 with no modification. For bf16 only the mfma bf16_1k instruction is missing which can be easily substituted.

It thus would be only a limited amount of work to extend support to gfx908 while bringing significant benefit to those devices.

### Alternatives

the apis provided by https://github.com/ROCm/flash-attention can be used directly.

### Additional context

gfx908 is the isa of the MI100 compute accelerator released in 2020

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd
Repository: bitcoin
Issue: qa: Broken `wallet_multiwallet.py`
Labels: Tests

On the master branch @ ebe4cac38bf6c510b00b8e080acab079c54016d6, the `wallet_multiwallet.py` test has several issues:

1. This code: https://github.com/bitcoin/bitcoin/blob/ebe4cac38bf6c510b00b8e080acab079c54016d6/test/functional/wallet_multiwallet.py#L132-L140 checks for the "Error scanning" message in the `debug.log` caused by processing the `no_access` directory. However, the same message can also be generated when parsing the `self_walletdat_symlink` directory. As a result, the current implementation is prone to producing false-positive results.

2. Parsing the `self_walletdat_symlink` directory with `bitcoind.exe` depends on how it was built. When cross-compiling, the parsing completes without system errors. On the other hand, when building natively, it raises an "unknown error" exception and logs the "Error scanning" message.

3. This code: https://github.com/bitcoin/bitcoin/blob/ebe4cac38bf6c510b00b8e080acab079c54016d6/test/functional/wallet_multiwallet.py#L132-L139 is not portable due to its use of [`os.chmod`](https://docs.python.org/3/library/os.html#os.chmod):
> **Note:** Although Windows supports [`chmod()`](https://docs.python.org/3/library/os.html#os.chmod), you can only set the file’s read-only flag with it (via the `stat.S_IWRITE` and `stat.S_IREAD` constants or a corresponding integer value).
Repository: svelte
Issue: add a way to force update a state variable
Labels: feature request

### Describe the problem

I'm using a custom made data store with realtime update. In svelte 4, when the value got updated, I was just doing `value = value` to refresh different bindings. In svelte 5 it is not possible anymore as before updating bindings, the system check if the value is the same. What more is, inside some of the object, we have our classes that are filled automatically ( think relationships ) and so it seems like svelte is not detecting the change in values. 

I'm not sure if I'm clear in what I'm explaining, but basically, I would need something to inform the system to update bindings forcefully.  

To be a bit more precise:

The system we have in my company needs to be used without svelte, so we have our own data system. We have so call "Resource" and "ResourceCollection" ( that are basically relationships ). The system handle realtime update accross client using web sockets. To get "informed" of these change we subscribe to the resource. The only way I found to make the refresh working is by doing that ( `subscribeAndDo` is internal to our system ) :

```js
  let unsub
  $effect(() => {
    unsub?.unsubscribe?.()
    unsub = account.subscribeAndDo(onDestroy, () => {
      const newAccount = account
      account = null
      account = newAccount
    })
  })
```




### Describe the proposed solution

The goal here is, whenever the props "account" change, we subscribe to it. Then whever something change in "account" the callback will be called. Here, I'm using the "trick" to make sure that svelte update the bindings. It would be great if we can have a $forceUpdate(account) instead. if that make any sense.

### Importance

would make my life easier
Repository: electron
Issue: Developer Tools doesn't open after opening and quitting second app instance
Labels: platform/windows,bug :beetle:,has-repro-comment,33-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

33.2.1

### What operating system(s) are you using?

Windows

### Operating System Version

Windows 11 Pro (26100.1742)

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

Opening Developer Tools should be possible, also when opening and quitting multiple instances of the app.

### Actual Behavior

After opening and closing a second instance of the packaged app, Developer Tools doesn't open as expected. Instead, some unformatted code is displayed.
![Image](https://github.com/user-attachments/assets/9a148b6f-0023-4a24-be74-12633d5b0977)



### Testcase Gist URL

_No response_

### Additional Information

This happens only on Windows 11 - tried on at least 3 different PCs to validate this.

I can also reproduce this with https://github.com/electron/electron-quick-start with the following steps:
1. Add electron-builder to devDependencies ```"electron-builder": "^25.1.8"```
2. Add script: ```"build": "electron-builder build --win"```
3. Add electron-builder.json with content:
````
{
  "appId": "electron-quick-start",
  "productName": "electron-quick-start",
  "directories": { "output": "release-builds/" },
  "files": ["**/*"],
  "win": {
    "target": [
      { "target": "portable", "arch": ["x64"] }
    ]
  }
}

````
4. Run: ```npm install && npm run build```
5. Open release-builds/electron-quick-start 1.0.0.exe  --> Developer Tool opens as expected.
6. Open a second instance --> While the app is loading, Developer Tool in the existing window doesn't open...
6. After the second window opened, the Developer Tool works again as expected.
7. Close one of the windows --> Developer Tool in the remaining window cannot be opened anymore.

I'm happy to provide any other debug data, if you instruct me how to get them :)
Repository: react
Issue: [React 19] dangerouslySetInnerHTML causes repaint
Labels: React 19

## Summary

Given the following component

```jsx
function App() {
  const [count, setCount] = useState(0);

  return (
    <>
      <button onClick={() => setCount((count) => count + 1)}>{count}</button>
      <div dangerouslySetInnerHTML={{ __html: "I should only paint once" }} />
    </>
  );
}
```

Clicking the button should not trigger a repaint of "I should only paint once". This works as expected in react@18.3.1 but not in react@19.0.0-rc.1 or react@0.0.0-experimental-5b0ef217-20241202.

* Browser: Chrome Version 131.0.6778.86 (Official Build) (arm64)
* OS: MacOS 15.1.1 (24B91)

## react@18.3.1

https://github.com/user-attachments/assets/3912ae19-f0b5-4425-abd4-0c376d9f8bb7

## react@0.0.0-experimental-5b0ef217-20241202

https://github.com/user-attachments/assets/d486783d-819a-40fe-a9f8-8c537009e173

[Source Code](https://github.com/lukahartwig/react-dangerouslysetinnerhtml)
Repository: rust
Issue: False positive dead code warning when using combination of array bound with constant function and trait implementation
Labels: A-diagnostics,T-compiler

### Code

```Rust
const fn test() -> usize {
    0
}

trait Test {}

impl Test for [u8; test()] {}

// NOTE: this constitutes a use
//trait _Test2 {
//    type Ty;
//}
//
//impl _Test2 for String {
//    type Ty = [u8; test()];
//}

fn test2<T: Test>() {}

fn main() {
    test2::<[u8; 0]>();

    // NOTE: this constitutes a use
    //let _x: [u8; test()] = [];
    //
}
```

### Current output

```Shell
Compiling playground v0.0.1 (/playground)
warning: function `test` is never used
 --> src/main.rs:1:10
  |
1 | const fn test() -> usize {
  |          ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: `playground` (bin "playground") generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.89s
     Running `target/debug/playground`
```

### Desired output

```Shell
None.
```

### Rationale and extra context

Seems related to #128617, but that problem has been resolved in the meantime.

### Other cases

```Rust
The code is used, so no warning should be displayed. Note that the two commented-out blocks fix the warning and *are* considered uses, so there seems to be a specific interaction with trait implementations.
```

### Rust Version

```Shell
The warning only starts showing up in Rust 1.78, and seems to show up in any build since: 

Note the difference between
https://rust.godbolt.org/z/43vh6vv7s
vs.
https://rust.godbolt.org/z/djP9qM7xa
```

### Anything else?

_No response_
Repository: vscode
Issue: Chinese characters / Emojis  input in the VS code terminal panel repeat twice
Labels: bug,terminal-input

<!-- ⚠️⚠️ 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: 
    - version: 1.95.2
    - commit: `e8653663e8840adaf45af01eab5c627a5af81807`
    - date: 2024-11-07T11:07:22.054Z
    - Electron: 32.2.1
    - ElectronBuildId: 10427718
    - Chromium: 128.0.6613.186
    - Node.js: 20.18.0
    - V8: 12.8.374.38-electron.
- OS Version: 
    - kernel: Linux x64 6.12.1-zen1-1-zen
    - os:  Arch Linux x86_64
- Maybe related software Version
    - fcitx5: 5.1.11
    - hyprland: 
        - Hyprland 0.45.2 built from branch  at commit 12f9a0d0b93f691d4d9923716557154d74777b0a  ([gha] Nix: update inputs).
        - Date: Tue Nov 19 21:47:18 2024
        - Tag: v0.45.2, commits: 5451
        - built against aquamarine 0.5.0
    - kitty: kitty 0.37.0 created by Kovid Goyal
 
Steps to Reproduce
1. Open the terminal in VS code. I test the bash and fish, they have same problem while typing Chinese characters and emojis with the terminal panel in VS code, but no problem when I open the terminal through desktop.
2. Type some Chinese characters or emojis using fcitx5 ( I haven't tested with other IME) like : 
     ``` bash
     git commit -m "Update : 这是用于测试的一条提交😀"
     ```
    If I type `这是`, `用于`, `测试`, `的`, `一条提交` and `😀` separately, the terminal will behave like:
     ``` bash
     git commit -m "Update : 这是这是用于用于测试测试的的一条提交一条提交😀😀"
     ```

The video: 

https://github.com/user-attachments/assets/5c9f53af-ab49-4c3f-8715-e77dd9362941
Repository: next.js
Issue: Loading.tsx and Suspense do not work on second page load and on
Labels: bug,Lazy Loading

### Link to the code that reproduces this issue

https://github.com/Vovch/test-next-2

### To Reproduce

1. pnpm i
2. add .env file for DB connection (Postgres)
3. pnpm dev
4. navigate to localhost:3000/dashboard
5. reload the page
6. reload the page again
7. comment out or delete the Suspense wrapper in app\dashboard\page.tsx
8. reload the page
9. reload the page again

### Current vs. Expected behavior

Expected:
On steps 4 and 5 I expect the Suspense component to be rendered correctly without delaying the page load.
Steps 8 and 9 - Expected component from loading.tsx to be shown on the screen

Current: 
The page is not loaded into the browser at all before all the components are rendered on the server (3+ seconds). Suspense or loading.tsx components are not shown.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise
  Available memory (MB): 32257  
  Available CPU cores: 8        
Binaries:
  Node: 18.20.3
  npm: 10.8.1
  Yarn: N/A
  pnpm: 9.11.0
Relevant Packages:
  next: 15.0.4-canary.36 // Latest available version is detected (15.0.4-canary.36).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.5.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Lazy Loading

### Which stage(s) are affected? (Select all that apply)

next dev (local)
next start (local)

### Additional context

I was also able to reproduce this issue with next 15.0.3 and 14.2.18.

The code was created by following the tutorial up to and including chapter 9 https://nextjs.org/learn/dashboard-app/streaming and then trying to find the issue (since I couldn't make it work while following the tutorial).

in app\dashboard\page.tsx there is a commented out string with `await new Promise(...)`. If enabled it causes the app to work correctly. The effect depends on milliseconds value passed to the timeout, higher values (1000 and on) make the best result, lower values like `500` makes the defect reproducible again.

Intermittently I'm unable to get the loaders even when navigating between the pages by links in the app even if the first loaded page is not the dashboard itself.
Repository: pytorch
Issue: Do an audit on skipfiles and mark more files as inline
Labels: module: tests,triaged,better-engineering

One of the largest pain points for developers trying to use torch.compile seems to be files in torch.* being skipped. For example in
https://github.com/pytorch/pytorch/pull/138555.

Most of these files should not be skipped; a lot of them should just be inlined. New modules should be inlined by default (they shouldn't be skipped unless there's a good reason to), and we should audit any existing modules in skiplists to see if they should actually be skipped.

cc @seemethere @malfet @pytorch/pytorch-dev-infra @mruberry @ZainRizvi
Repository: PowerToys
Issue: PowerToys v0.86.0: replacing keyboard keys not working in new release
Labels: Issue-Bug,Product-Keyboard Shortcut Manager

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

![Image](https://github.com/user-attachments/assets/02cd7c72-c3c6-456d-930a-623260af9646)

remapping the key "\" to "Ctrl" failed though it was working on previous releases

### ✔️ Expected Behavior

when pressing "\" on wireless keyboard i want the keyboard to map this key to right control (Ctrl) 

### ❌ Actual Behavior

Powertoys keep writing "\" and the mapping function is not working

### Other Software

_No response_
Repository: ui
Issue: [bug]: Dropdown issue with sticky header
Labels: bug

### Describe the bug

When I'm working with sticky header with dropdown on it, I'm having layout shift and some weird behavior. 

![Recording2024-12-03193251-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/ca7aa564-86b8-496f-81c7-0d2575738822)


It might be the case of header where the header is sticky behavior.

```
<header className="sticky top-0 z-40 m-auto w-full border-b border-b-border bg-background px-3 py-3 align-middle sm:flex sm:h-[var(--header-height)] sm:items-center sm:justify-between sm:px-6 sm:py-0">
  <div className="flex flex-1 items-center justify-between">
     <ChatButton />
     <DropdownMenu>
        <DropdownMenuTrigger asChild>
           <UserInfoButton  />
        </DropdownMenuTrigger>
        <DropdownMenuContent className="rounded-t-0 m-0 -mt-1 me-3 w-64 rounded-none rounded-bl-xl rounded-br-xl bg-white sm:me-0">
          <DropdownMenuGroup>
            <DropdownMenuItem className="rounded-md text-sm">
              <UserIcon size={18} color="black" />
              <span>Profile</span>
            </DropdownMenuItem>
            <DropdownMenuItem className="rounded-md text-sm">
              <Settings size={18} color="black" />
              <span>Settings</span>
            </DropdownMenuItem>
            <DropdownMenuItem className="rounded-md text-sm">
              <Bell size={18} color="black" />
              <span>Notification Setting</span>
            </DropdownMenuItem>
          </DropdownMenuGroup>
          <DropdownMenuSeparator />
          <DropdownMenuItem
            className="rounded-md text-sm"
            onClick={handleSignOut}
          >
            <LogOut size={18} color="black" />
            <span>Logout</span>
          </DropdownMenuItem>
        </DropdownMenuContent>
      </DropdownMenu>
  </div>
</header>
```

Please have a look into it.

### Affected component/components

Dropdown

### How to reproduce

Check above code.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Window 11
@radix-ui/react-dropdown-menu: "^2.1.2"
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues