sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: bitcoin
Issue: Porting bcc tools to libbpf
Labels: Brainstorming

@0xB10C : reviving this old discussion from some two years ago:

              @rob-scheepens agree that BPF CO-RE and libbpf is the way to go for future tracing programs. I've looked into this a while ago, but it seems libbpf doesn't support USDT tracepoints yet (see https://github.com/iovisor/bcc/issues/3007). However, there was a mention of a soon to be open sourced libusdt library developed and used in production at Meta by @anakryiko [here](https://lore.kernel.org/bpf/CAEf4BzYRLxzVHw00DUphqqdv2m_AU7Mu=S0JF0PZYN40hBvHgA@mail.gmail.com/). Looking forward to testing this once available!

_Originally posted by @0xB10C in https://github.com/bitcoin/bitcoin/issues/22006#issuecomment-1072538909_
            
Now that USDT has been implemented it would be great to give this a try. In this context, I also came across https://github.com/iovisor/bcc/issues/4404, which could help make things easier.
Repository: vscode
Issue: CacheStorage folder grows large
Labels: bug,webview,perf,electron

<!-- ⚠️⚠️ 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/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.90.1
- OS Version: Windows 11

Steps to Reproduce:

1. Check the disk space and find the `cacheStorage` takes up ~7GB (`$HOME/AppData/Roaming`)

![image](https://github.com/microsoft/vscode/assets/7588612/2dc4b4f1-a72f-4f28-9e21-c81457f92429)

Can I delete this folder or is there a better way to let VS Code to delete it?

Related #166632 -> #131226 (it is no longer under the Service Worker folder but it is still there).
Repository: vscode
Issue: Make Workspace Extensions more intuitive to find and activate
Labels: feature-request,extensions

I twice had a hard time finding the workspace extensions as I wanted to activate them. I would not have expected it to be part of the recommended extensions which is why I did not search there. I think it's fine to show it in the recommended view, but I think we can do a bit more to make it easier to find/activate. 

Some ideas:
- Have an entry in the file explorer to activate/deactivate a workspace extension
- Allow searching the extension. I am aware that this mainly searches the marketplace, but this was one of the first actions I did when looking for the workspace extensions
- Add a filter `Workspace Recommendations` or `Workspace Extensions`
- Show it in the list of installed extensions. This makes sense as it is already "installed"
Repository: electron
Issue: [Bug]: Electron crashes on new window open from renderer when sandbox = false
Labels: platform/macOS,bug :beetle:,status/confirmed,component/BrowserWindow,has-repro-gist,31-x-y,32-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

31.0.1

### What operating system are you using?

macOS

### Operating System Version

14.5

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

Open the sub window without crashing

### Actual Behavior

Combination of window.open and win.location.href = '<url>' crashes electron

### Testcase Gist URL

https://gist.github.com/sridharpg/956678f0d9a1ebe1bb5e645180552046

### Additional Information

The above gist has a sample html. Once loaded in electron, clicking on the button twice crashes electron.

1. Open the html in electron
2. Click **Open** button to open a window
3. Close the window
4. Click **Open** button again
5. Electron crash
Repository: material-ui
Issue: [migration] Provide migration guide/codemods for migrating from v4 to v6
Labels: waiting for 👍,package: codemod,v4.x,v6.x migration

### Summary

This issue is created in order to get traction of the need for providing a migration guide and/or codemods for upgrading from v4 to v6 directly. Currently around one-quarter of the downloads come from v4, however it is not clear how big a percentage of these downloads comes from projects that are never going to be migrated, planned to be migrated, or are currently being migrated v5.

I would ask anyone who is on v4 and who is looking into migrating to v6 to upvote the issue, based on the interest we may spend some time to help and provide clearer guidance or codemods to make this easier.

### Motivation

The v4 to v5 migration was reported as a very hard upgrade. If we can avoid having people to migrate to v5, just so that they can get v6, it would be great.

**Search keywords**: migration, v4, v6
Repository: tauri
Issue: [bug] `--target` option in `tauri ios build` doesn't accept target triples
Labels: type: bug,status: needs triage

### Describe the bug

The `--target` flag, contrary to all other uses across Tauri and Rust doesn't accept full target triples instead having its own selection of valid target strings.

### Reproduction

_No response_

### Expected behavior

The  `--target` flag should match the behavior of `tauri build` or `cargo build` and accept fully formed target triples

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.4.0
    - pnpm: 9.3.0
    - yarn: 1.22.22
    - npm: 9.7.2

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.20
    - @tauri-apps/api [NPM]: 2.0.0-beta.7
    - @tauri-apps/cli [NPM]: 2.0.0-beta.12

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: SolidJS
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: rust
Issue: Tracking Issue for `x86_amx_intrinsics`
Labels: A-SIMD,C-tracking-issue,A-target-feature

This issue tracks the integration of Intel `AMX` instruction family to Rust.

The feature gate for the issue is `#![feature(x86_amx_intrinsics)]`.

### Steps


- [x] Add the `target-feature` attributes and runtime detection for them
- [ ] Implement the associated intrinsics in stdarch
- [ ] Stabilization PR

### Public API

The following target features and all their associated intrinsics and types
 - `amx-tile`
 - `amx-int8`
 - `amx-bf16`
 - `amx-fp16`
 - `amx-complex`

### Implementation History
 - #126639
 - rust-lang/stdarch#1587
 - rust-lang/stdarch#1618
Repository: ant-design
Issue: RangePicker组件在onCalendarChange方法中调用form.setFieldsValue会导致时间不可选择
Labels: 🐛 Bug,help wanted,Inactive

### Reproduction link

[[![Edit on StackBlitz](https://stackblitz.com/edit/react-9se11r?file=demo.tsx,package.json,index.tsx)](https://stackblitz.com/edit/react-9se11r?file=demo.tsx,package.json,index.tsx)

### Steps to reproduce

1. 正常选择开始结束时间，点确定
2.重新打开时间选择，选择时间，发现不可以选择。选择什么时间都会跳回之前的选择时间

### What is expected?

RangePicker 可以正常选择

### What is actually happening?

RangePicker 不可以选择

| Environment | Info |
| --- | --- |
| antd | 5.18.2 |
| React | 18 |
| System | macos |
| Browser | Edge |

---
在5.13.2及之前的版本可以正常使用。应该是5.14.0重构之后出现的问题。
form.setFieldValue  这个方法可以正常使用。

之前已经被标记为 bug，issue 被误删了，重新提一个。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: excalidraw
Issue: resizing frame using Stats doesn't remove hidden frame children
Labels: frames,stats

![excal-frame-stats-resize-bug](https://github.com/excalidraw/excalidraw/assets/5153846/2e0375fc-836d-4098-8734-84b6153316fd)

/cc @ryan-di
Repository: rust
Issue: Tracking Issue for `sha512_sm_x86`
Labels: A-SIMD,C-tracking-issue,A-target-feature

This tracks the integration of Intel's `SHA512`, `SM3` and `SM4` instruction sets in Rust

The feature gate for the issue is `#![feature(sha512_sm_x86)]`.

### Steps

- [x] Add the feature to rustc
- [x] Add the target-features
- [ ] Add the intrinsics to stdarch
- [ ] Stabilization PR

### Implementation History

- #126704 
- rust-lang/stdarch#1592
Repository: node
Issue: Promise readline question results in unsettled promise on abortion
Labels: readline,promises

### Version

v22.2.0

### Platform

Linux LX-LAPII 6.9.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux

### Subsystem

node:readline/promises

### What steps will reproduce the bug?

It is not possible to properly handle a user's abortion of a promise readline question with SIGINT or Ctrl+D while rl.question waits for user input:
```
import * as readline from 'node:readline/promises';

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
});

try {
  const answer = await rl.question('>>> ');
} catch {}
```


### How often does it reproduce? Is there a required condition?

Every time when a prompt is aborted with Ctrl+C or Ctrl+D.

### What is the expected behavior? Why is that the expected behavior?

The expected behavior is to settle a promise on a readline close event, as shown in the following snippet:
```
import * as readline from 'node:readline';

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
});

let rej = () => {};
rl.on('close', () => {
  console.log('closing');
  rej();
});

const answer = await new Promise((r, j) => {
  rej = j;
  rl.question('>>> ', r);
}).catch(() => console.error('interrupted'));
```

### What do you see instead?

The promise remains unsettled, resulting in a warning that cannot be caught:
```
>>> Warning: Detected unsettled top-level await at file:///tmp/bug.mjs:9
  const answer = await rl.question('>>> ');
```

### Additional information

This issue is opened based on the discussion in [[stackoverflow] How to properly abort Node readline promise question?](https://stackoverflow.com/questions/78630248/how-to-properly-abort-node-readline-promise-question)
Repository: react-native
Issue: Finish implementing URL accessors like host, hostname, username, password
Labels: Issue: Author Provided Repro,Resolution: PR Submitted,Newer Patch Available

### Description

The window.URL object is available in Hermes but is otherwise un-implemented. All of the accessors have todo Errors. 
https://github.com/facebook/react-native/blob/43d69ee26cbf4d4cc9b64aafbcdc32f3df0f27f9/packages/react-native/Libraries/Blob/URL.js#L140-L230

### Steps to reproduce

```
const urlObj = new window.URL( validUrlString );
urlObj.hostname
// Error: URL.hostname is not implemented
```


### React Native Version

0.73.6

### Affected Platforms

Runtime - Android

### Output of `npx react-native info`

```text
Reproducible on all systems. The code has a baked-in Error and no implementation.
```


### Stacktrace or Logs

```text
This error is located at:
    in SecureContext (created by Connect(SecureContext))
    in Connect(SecureContext) (created by App)
    in RCTView (created by View)
    in View (created by App)
    in App (created by RenderApp)
    in Provider (created by RenderApp)
    in RenderApp
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in app(RootComponent), js engine: hermes
```


### Reproducer

https://snack.expo.dev/O0xP_moxLBNEHK9bXAXKl
It can't be reproduced in a browser folks. It can only be seen on hermes/Android so this is moot. 

### Screenshots and Videos

_No response_
Repository: flutter
Issue: [url_launcher] Add support for TWA (trusted web activity) on Android
Labels: platform-android,p: url_launcher,package,c: proposal,P2,team-android,triaged-android

### Use case

As a developer, I want to hide the toolbar of the browser to provide a native app like user experience.

### Proposal

launch the url in TWA mode via url_launcher
Repository: rust
Issue: `debuginfo` test suite shows zero tests being executed if pre-requisites are missing
Labels: T-bootstrap,E-medium,C-bug,A-compiletest

Most tests in compiletest use annotations to denote whether they can be run or should be ignored, for example if some pre-requisites are missing. The `debuginfo` test suite is different though: since all tests have some common pre-requisites (like requiring a debugger to be installed or not being executed with remote-test), the some checks are done by compiletest on all of them.

The problem is, compiletest then doesn't mark the tests as ignored, it just doesn't load the tests at all. For example, this is the output when trying to run the test suite with remote-test enabled:

```
Testing stage2 compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> aarch64-unknown-none)
WARNING: debuginfo tests are not available when testing with remote

running 0 tests


test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.19µs
```

This hides all information about which tests were ignored, the warning is not recorded in the build metrics or anywhere else, it's just printed to stdout by compiletest. So, unless someone reads the logs and spots that sentence, there is no way to know the tests were actually ignored.

While in the remote-test case the situation is kinda acceptable right now (at least there is a warning explaining why tests are ignored), the situation is even worse when you don't have any debugger installed on your system. In that case, this is the whole output:

```
Testing stage2 compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 0 tests


test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.19µs
```

There is no indication whatsoever of what caused the tests to be ignored, and the only way to figure out what's wrong is to read the compiletest source code and try different things until one sticks.
Repository: three.js
Issue: USDZLoader doesn't support all .usdz(usda) files. The only showcase example file works.
Labels: Loaders

### Description

Can't open normally other usda files by usdzloader. I've used the same showcase example configuration but had broken preview. Normally works only original file from threejs models/usdz/saeukkang.usdz

### Reproduction steps

1.
2.
3.


### Code

```js
// code goes here
```


### Live example

*  Run threejs showcase example app and choose http://localhost:8083/examples/?q=usdz#webgl_loader_usdz
* download USDA files and try to load via webgl_loader_usdz page

1. https://3d.si.edu/object/3d/pandereta:9dab61be-7e8a-431b-8c1d-c793e206af2e
2. https://3d.si.edu/object/3d/boots-worn-muralist-judy-baca:b87cbab8-9aa6-4caa-85a3-1492fd7dcbb2
3. https://3d.si.edu/object/3d/cuatro:b6befa3e-d257-4344-b50d-2d158aefdb76


### Screenshots

<img width="1418" alt="Screenshot 2024-06-18 at 15 07 12" src="https://github.com/mrdoob/three.js/assets/11533757/1e705a4a-5d6d-4f48-be4e-c41ee6b60979">
<img width="1761" alt="Screenshot 2024-06-18 at 15 07 27" src="https://github.com/mrdoob/three.js/assets/11533757/5249bd8d-3717-4132-b28a-422c24fb4742">
<img width="1576" alt="Screenshot 2024-06-18 at 15 08 01" src="https://github.com/mrdoob/three.js/assets/11533757/af8e4161-3c9e-4322-a298-35bdaa9c5293">



### Version

165

### Device

_No response_

### Browser

Chrome

### OS

MacOS
Repository: ollama
Issue: how to produce Embeddings model file? No examples
Labels: model request

Hi how to produce Embeddings model file? The example from GitHub doesn’t mention Embeddings 

https://github.com/ollama/ollama/blob/main/docs/modelfile.md

For example for these popular leading models?

https://huggingface.co/GritLM/GritLM-7B
https://huggingface.co/Alibaba-NLP/gte-Qwen2-7B-instruct

Leaderboard 
https://huggingface.co/spaces/mteb/leaderboard
Repository: ant-design
Issue: Skeleton unmounting throws errors in console in Preact
Labels: help wanted,Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/preact-ant-design-forked-r88f4f)

### Steps to reproduce

1) Open console;
2) Click button 'Loading' to show/hide the Skeleton;
3) Review the errors "Warning: [Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect." each time the component is unmounted.

### What is expected?

No errors are thrown in console

### What is actually happening?

2 errors are thrown in console each time the component is unmounted.

| Environment | Info |
| --- | --- |
| antd | 5.18.0 |
| React | Preact 10.22.0 |
| System | Windows |
| Browser | any |

---

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Question about  torch.lstsq and torch.linalg.lstsq
Labels: triaged,module: linear algebra

My pytorch version is 1.12.1.
I used `torch.lstsq(A, B)[0][B.shape[1]]` and `torch.linalg.lstsq(B, A).solution` and the results are different. I want to get the answer of the former. How should I use `torch.linalg.lstsq` to get it?

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @xwang233 @Lezcano
Repository: godot
Issue: Popup appears at wrong position when it has not enough space
Labels: bug,topic:gui

### Tested versions

v4.3.beta.custom_build [b43555168]

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description


https://github.com/godotengine/godot/assets/2223172/99ed1c25-cbc9-4b47-8aea-11de31531fa2



### Steps to reproduce

In the inspector, find some field that opens popup and is located very close to bottom-right corner of the screen, then right-click it.

### Minimal reproduction project (MRP)

N/A
Repository: vscode
Issue: Windows Taskbar Jump List repeats same labels because of workspace file
Labels: feature-request,windows,workbench-multiroot,workbench-os-integration

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
Our sandbox is using a multiroot workspace and a workspace file definition. The windows jump list is showing me 3-4 identical entries because it's always the same json mutliroot def file for different branches. I have to use the tooltip to know which one is which. 
Would be great if the Pinned Jump list would allow me to know which branch/folder I'm in without waiting for a tooltip.

![image](https://github.com/microsoft/vscode/assets/1581639/af2f154f-cc64-469b-bab5-59158877bdd0)
Repository: kubernetes
Issue: When Deployment is editing replicas and strategy simultaneously, it may get stuck and not continue to execute
Labels: kind/bug,sig/apps,lifecycle/rotten,needs-triage

### What happened?

When Deployment is editing replicas and strategy simultaneously, it may get stuck and not continue to execute

### What did you expect to happen?

deployment continue upgrade or scaled

### How can we reproduce it (as minimally and precisely as possible)?

1. created a deployment with a rolling upgrade and set a large number of replicas, such as 100. 
2. After creating 100 pods, use a slow rolling upgrade like RollingUpdateStrategy:  1 max unavailable, 1 max surge
 to make two active replicasets appear at the same time. 
3. While in the process of rolling upgrade (2 replicaSet), simultaneously edit the upgrade strategy of the deployment to recreate, and modify the number of replicas to 101. (kubectl apply -f xxx.yaml)
4. At this time, the deployment will be in a stuck state, and it will not be upgraded or scaled no matter how it is modified.

### Anything else we need to know?

Deployment will get stuck because of these few lines of code.

https://github.com/kubernetes/kubernetes/blob/64355780d9d945a1135a004829ab9dcc38c3911d/pkg/controller/deployment/deployment_controller.go#L665C2-L671C3

### Kubernetes version

<details>
v1.23.3
</details>


### Cloud provider

<details>

</details>


### OS version

<details>
</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: go
Issue: runtime/cgo: `cgo.Handle` examples should highlight the requirement to manually pin the handle when the handle is used after the call ends
Labels: Documentation,help wanted,NeedsFix,compiler/runtime

The documentation on for `cgo.Handle` passes a go pointer (pointer to go memory) to C, which is only allowed when the value is pinned (unable to be freed/moved). This is the case for the duration of the call when calling C functions, however in more complex systems this is not always the case. The example should be updated, or a note added, to reflect this. Users may freely copy and paste this example not realizing this requires more attention.

As an example of this happening, this happened twice during the development of go-duckdb, once by me and once by @taniabogatsch

See example:
```
package main

/*
extern void MyGoPrint(void *context);
static inline void myprint(void *context) {
    MyGoPrint(context);
}
*/
import "C"
import (
	"runtime/cgo"
	"unsafe"
)

//export MyGoPrint
func MyGoPrint(context unsafe.Pointer) {
	h := *(*cgo.Handle)(context)
	val := h.Value().(string)
	println(val)
	h.Delete()
}

func main() {
	val := "hello Go"
	h := cgo.NewHandle(val)
	C.myprint(unsafe.Pointer(&h))
	// Output: hello Go
}
```

As the required work is small I can implement this if needed.
Repository: pytorch
Issue: caffe2 removal
Labels: module: build,triaged,enhancement,better-engineering

Removing caffe2

cc @malfet @seemethere