sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react-native
Issue: RCTUnsafeExecuteOnMainQueueSync crash
Labels: Issue: Author Provided Repro

### Description

UIKit's UIView only guarantee to run on main thread/MainActor.
But ReactNative's RCTRootView is expecting to run on main queue.
This will cause crash when using RCTRootView in UICollectionViewCell which may call init on `com.apple.uikit.datasource.diffing` (serial) queue.

### Steps to reproduce

Init a `RCTRootView` in a UICollectionViewCell.init method


### React Native Version

0.76.2

### Affected Platforms

Runtime - iOS

### Output of `npx react-native info`

```text
System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 193.73 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.2.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.0
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2024.11.11.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/kyle/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.3.0
    path: /Users/kyle/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.2
    wanted: 0.76.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
```


### Stacktrace or Logs

```text
- dataSource.apply(_:to:animatingDifferences:) (in main queue & MainThread)
- __UIDiffableDataSource _performOnApplyQueue: use dispatch_sync(diffQueue)
- ...
- RCTRootView init (in diffQueue & MainThread)
- RCTUnsafeExecuteOnMainQueueSync (crash)
```


### Reproducer

https://github.com/Kyle-Ye/RNMainQueueCrashDemo

### Screenshots and Videos

<img width="963" alt="image" src="https://github.com/user-attachments/assets/9ee7d0c8-619a-48ad-b550-b62836270784">

### Other information

The original discussion can be found at [here](https://x.com/KyleSwifter/status/1856704385285566896)

- http://blog.benjamin-encz.de/post/main-queue-vs-main-thread/
Repository: svelte
Issue: svelte component not reactive
Labels: awaiting submitter

### Describe the bug

Hi , here activeGrid is reactive state , i can see activeGrid text changes.. but GridSvg with reactive component is not re-rendering when activeGrid is changed.

    {#snippet button()}
    	<div>
            {activeGrid} - this changes , but not below
    		<GridSvg template={activeGrid} {dimension} {strokeWidth} />
    	</div>
    {/snippet}
    
    {#snippet content({ togglePopup })}
    	<div class="gridcontainer">
    		content
    	</div>
    {/snippet}
    
    <PopMenu {button} {content} />

I even tried like this template=bindable option in my GridSvg , but still its not reactive


### Reproduction

Hi , here activeGrid is reactive state , i can see activeGrid text changes.. but GridSvg with reactive component is not re-rendering when activeGrid is changed.


### Logs

_No response_

### System Info

```shell
mac
```


### Severity

blocking all usage of svelte
Repository: langchain
Issue: langchain-pinecone 0.2.0 doesn't support Python 3.13 
Labels: investigate

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

--

### Error Message and Stack Trace (if applicable)

_No response_

### Description

The current `langchain-pinecone` package (`v0.2.0`) depends on pinecone-client version `^5.0.0`. However, the latest release in the `5.0.x` series is `5.0.1`, which was last updated on **August 1, 2024**, and does not support Python 3.13.

The most recent version of `pinecone` on PyPI is `5.4.0`, released on **November 13, 2024**, and it includes support for Python 3.13.

Updating the dependency in `langchain-pinecone` to use `pinecone` version `^5.4.0` or newer would enable compatibility with Python 3.13 and ensure access to the latest features and improvements in the pinecone sdk.


https://pypi.org/project/pinecone/
https://pypi.org/project/pinecone-client/


### System Info



System Information
------------------
> OS:  Darwin
> OS Version:  Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103
> Python Version:  3.12.0 (v3.12.0:0fb18b02c8, Oct  2 2023, 09:45:56) [Clang 13.0.0 (clang-1300.0.29.30)]

Package Information
-------------------
> langchain_core: 0.3.19
> langchain: 0.3.7
> langchain_community: 0.3.7
> langsmith: 0.1.143
> langchain_experimental: 0.3.3
> langchain_openai: 0.2.8
> langchain_pinecone: 0.2.0
> langchain_text_splitters: 0.3.2

Optional packages not installed
-------------------------------
> langgraph
> langserve

Other Dependencies
------------------
> aiohttp: 3.9.5
> async-timeout: Installed. No version info available.
> dataclasses-json: 0.6.7
> httpx: 0.27.2
> httpx-sse: 0.4.0
> jsonpatch: 1.33
> numpy: 1.26.4
> openai: 1.54.4
> orjson: 3.10.11
> packaging: 24.2
> pinecone-client: 5.0.1
> pydantic: 2.9.2
> pydantic-settings: 2.6.1
> PyYAML: 6.0.2
> requests: 2.32.3
> requests-toolbelt: 1.0.0
> SQLAlchemy: 2.0.35
> tenacity: 9.0.0
> tiktoken: 0.8.0
> typing-extensions: 4.12.2
Repository: opencv
Issue: CUDA_DISABLER macro is not defined in OpenCV code
Labels: bug,category: build/install,category: gpu/cuda (contrib)

### System Information

OpenCV version: 4.10.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: GCC 11.4.0

### Detailed description

In the following code refer to `CUDA_DISABLER`.

- https://github.com/opencv/opencv/blob/4.10.0/modules/stitching/src/cuda/build_warp_maps.cu
- https://github.com/opencv/opencv/blob/4.10.0/modules/stitching/src/cuda/multiband_blend.cu

But, this macro is not defined in OpenCV code.
I found that the definition of this macro was removed in <https://github.com/opencv/opencv_contrib/pull/2554>

### Steps to reproduce

```bash
git clone https://github.com/opencv/opencv.git -b 4.10.0
cd opencv
grep -r CUDA_DISABLER
```

### 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: TypeScript
Issue: `RegExp#[Symbol.matchAll]` should return iterable of `RegExpExecArray` instead of `RegExpMatchArray`
Labels: Bug,Help Wanted,Domain: lib.d.ts

### 🔎 Search Terms

RegExp, matchAll, Symbol.matchAll, RegExpExecArray, RegExpMatchArray

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about RegExp, matchAll, Symbol.matchAll, RegExpExecArray, RegExpMatchArray

### ⏯ Playground Link

https://www.typescriptlang.org/play/?target=99#code/MYewdgzgLgBATgUxgXhgegHRoOYChSSzRwowDkAhgEbBm64BmIJAFAdDALYwgMzEZOFKMAAWAQQA2klogCUcmAG9cMNejQ8A1jBYIAHgAcEwKAgAm8BBACukqHNXr2sAJYAuGGBucqCEqicGK5g5gbqMLgAvvRMrC5cPHyIANoAygCeviCSgsJiUpIAuizECspOamiaACoZxuTevv4wAD4wNqEIDCEWZDCuEF4gsBQQEK7YYNSSSFAgMFD1SGRNfnBkGJUwCR5ePuukQSFh+tG4QA

### 💻 Code

```ts
const re = /./g
const str = 'abc'

for (const m of str.matchAll(re)) {
    // ok (expected result)
    const i: number = m.index    
}

for (const m of re[Symbol.matchAll](str)) {
    // Type 'number | undefined' is not assignable to type 'number'.
    const i: number = m.index
}
```


### 🙁 Actual behavior

While `String#matchAll` now correctly returns `RegExpStringIterator<RegExpExecArray>` (https://github.com/microsoft/TypeScript/issues/36788, fixed in https://github.com/microsoft/TypeScript/pull/55565), the identically-behaving `RegExp#[Symbol.matchAll]` still returns the incorrect type `RegExpStringIterator<RegExpMatchArray>`

### 🙂 Expected behavior

`String#matchAll` and `RegExp#[Symbol.matchAll]` to behave identically at compile time as well as runtime, i.e. both `String#matchAll` and `RegExp#[Symbol.matchAll]` to consistently return `RegExpStringIterator<RegExpExecArray>`.

### Additional information about the issue

_No response_
Repository: PowerToys
Issue: Highlight diff for PowerRename
Labels: Needs-Triage

### Description of the new feature / enhancement

Highlight only changed parts of the renamed file name (like git diff)

![Image](https://github.com/user-attachments/assets/7c8c941c-ced7-446c-8fd6-7b0a5c50b4d4)


### Scenario when this would be used?

Always.

### Supporting information

_No response_
Repository: TypeScript
Issue: Missing Boolean.toString definition and loose valueOf definition
Labels: Suggestion,Awaiting More Feedback

### ⚙ Compilation target

ES2017

### ⚙ Library

lib.es5.d.ts

### Missing / Incorrect Definition

```typescript
interface Boolean {
    toString<T extends boolean>(this: T): `${T}`
    toString(this: Boolean): `${boolean}`
    valueOf<T extends boolean>(this: T): T
    valueOf(this: Boolean): boolean
}
```
[TS Playground](https://www.typescriptlang.org/play/?#code/PTAEEsDsBcFMCcBmBDAxrUAhA9tgNrMpKAN4BQIoVV02AytPFAOYA8AKqLAB5yQAmAZ1AAjXASIA+ABTQAFuEEAuUOwCUKgAYASEuwC+mimGqhaDJpGayFyrOMKQNoHSTH5Hh46dAA3ZHgArrAA8ogcXLywAsLuEpAy8ooq6inepv5BoYg2yfYeRM5xjt76ZGSo2JCC0KLioAC8ZvDBoMixDkQA3OVkBLXIWrrFRIaNzcEAdOaMLNJqPf2iQ26dkGNNKHiCsNP0s1bzi7C1qCsj65rjcXsWcwt9J6D852sboJCwAO758fO3B2sDyWsFeBUu4xw4P+M0sQJ6j1qiBUjFaTVRu0ywTCR0RoGYKi2O3GRMxAWxOQeQA)

Related issues [#30225](https://github.com/microsoft/TypeScript/issues/30225), [#38347](https://github.com/microsoft/TypeScript/issues/38347)

### Sample Code

```TypeScript
const bool = true as boolean;


let a: `${boolean}` = true.toString();
let b: `${boolean}` = false.toString();
let c: `${boolean}` = bool.toString();
let d: `${boolean}` = new Boolean().toString();
let e: `${boolean}` = Boolean().toString();

let f: true = true.valueOf();
let g: false = false.valueOf();
```

### Documentation Link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString
https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-boolean.prototype.tostring
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf
https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-boolean.prototype.valueof
Repository: material-ui
Issue: [icons] Support converting icons to PNG
Labels: new feature,waiting for 👍,package: icons

### Steps to reproduce

[ Question doesn't need reproduction. ]


### Current behavior

I have also tried `ReactDOMServer.renderToString`, `ReactDOMServer.renderToStaticMarkup`, `ReactDOM.render` and friends to retrieve the SVG string for `sharp` to convert, which returns an invalid XM Ldocument, crashing `sharp`. Various issues opened over there.

### Expected behavior

We need PNGs for things like email which do not render SVGs.

### Context

For context, we have the $600 paid X license.

Not relevant to this ticket, but 🤷🏻 

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Edge: Chromium (128.0.2739.54)
  npmPackages:
    @emotion/react: ^11.13.3 => 11.13.3
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/core-downloads-tracker:  6.1.6
    @mui/icons-material: ^6.1.6 => 6.1.6
    @mui/material: ^6.1.6 => 6.1.6
    @mui/material-nextjs: ^6.1.6 => 6.1.6
    @mui/private-theming:  6.1.6
    @mui/styled-engine:  6.1.6
    @mui/system: ^6.1.6 => 6.1.6
    @mui/types:  7.2.19
    @mui/utils:  6.1.6
    @mui/x-data-grid:  7.22.2
    @mui/x-data-grid-premium: ^7.22.2 => 7.22.2
    @mui/x-data-grid-pro:  7.22.2
    @mui/x-internals:  7.21.0
    @mui/x-license:  7.21.0
    @types/react: ^18.3.12 => 18.3.12
    react: ^18.3.1 => 18.3.1
    react-dom: ^18.3.1 => 18.3.1
    typescript: ^5.6.3 => 5.6.3
```
</details>


**Search keywords**: icon, png, email, inline, embed, sharp, convert
Repository: rust
Issue: Add mention that `ilog2` and `checked_ilog2` can be used to get the number of bits in an integer
Labels: A-docs,T-libs

### Location

- [`{integer}::ilog2`](https://doc.rust-lang.org/nightly/core/primitive.i32.html#method.ilog2)
- [`{integer}::checked_ilog2`](https://doc.rust-lang.org/nightly/core/primitive.i32.html#method.checked_ilog2)
- [`NonZero::ilog2`](https://doc.rust-lang.org/nightly/core/num/struct.NonZero.html#method.ilog2)

### Summary

The standard library of some programming languages has a method to get the number of bits in an integer:

- [`bits.Len()`](https://pkg.go.dev/math/bits@go1.23.3#Len) in Go
- [`int.bit_length()`](https://docs.python.org/3.13/library/stdtypes.html#int.bit_length) in Python
- [`Integer.bit_length`](https://docs.ruby-lang.org/en/3.3/Integer.html#method-i-bit_length) in Ruby

The number of bits in binary representation of a positive integer $n$ is the integer part of $1 + \log_2 n$, i.e.

> $\lfloor \log_2 n \rfloor + 1$

Rust doesn't have a method like the above, but it does have [`ilog2`](https://doc.rust-lang.org/nightly/core/primitive.i32.html#method.ilog2) and [`checked_ilog2`](https://doc.rust-lang.org/nightly/core/primitive.i32.html#method.checked_ilog2). Therefore, we can get the number of bits in an integer by using `ilog2` or `checked_ilog2` as follows:

```rust
// n > 0
assert_eq!(42_u8.ilog2() + 1, 6);

// supports `n == 0`
assert_eq!(u8::MIN.checked_ilog2().map_or(0, |n| n + 1), 0);

// similar to Python's `int.bit_length()`
assert_eq!((-42_i8).unsigned_abs().ilog2() + 1, 6);
```

I don't think everyone knows that we can get the number of bits in an integer by this way.

Personally, I don't think there's any need to add a method like `bits.Len()` and `int.bit_length()` to integer types, since we can get the number of bits in an integer using $\lfloor \log_2 n \rfloor + 1$. However, since the standard library of some programming languages has a method to get the number of bits in an integer, I think this is a feature that is in some demand.

Therefore, I think it would be helpful to mention in the explanation of `ilog2` and `checked_ilog2` that the number of bits in an integer can be obtained by using $\lfloor \log_2 n \rfloor + 1$.

See also: [Rust Internals](https://internals.rust-lang.org/t/add-methods-that-return-the-number-of-bits-necessary-to-represent-an-integer-in-binary-to-the-standard-library/21870)
Repository: PowerToys
Issue: Focus/Study mode
Labels: Needs-Triage

### Description of the new feature / enhancement

This feature would stop you from using certain apps which could hamper productivity.

### Scenario when this would be used?

Useful for students or professionals looking to focus on their work/studies

### Supporting information

An app with similar functionality to Focus mode in Android phones
https://www.samsung.com/ae/support/mobile-devices/how-to-use-the-focus-mode-feature-in-android-q-with-one-ui-20/
Repository: node
Issue: resolve hook is not run for require
Labels: loaders

### Version

23.0.0

### Platform

```text
Linux hooks 6.8.0-47-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct  2 16:16:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```


### Subsystem

customization hooks

### What steps will reproduce the bug?

Set up a [module resolution hook](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve) that replaces the core `fs` import with `fake.js`. Then try to import and require `fs`, respectively. When importing, `fs` is replaced as expected. When requiring, the hook is never run.

**For the setup:**

_register.js:_
```
import { register } from 'node:module';
register('./hook.js', import.meta.url);
```

_hook.js:_
```
import { fileURLToPath } from 'node:url';
import { dirname, join } from 'node:path';

export async function resolve(specifier, context, nextResolve) {	
	const path = fileURLToPath(import.meta.url);
	const dir = dirname(path);
	
	if (/fs/.test(specifier)) specifier = join(dir, 'fake.js');

	return nextResolve(specifier, context);
};
```

_fake.js:_
```
export function readFileSync() { return 'foo'; }
```

**Now we're ready for the money part:**

_index.js_
```
import  {readFileSync} from 'fs';
import { fileURLToPath } from 'node:url';

console.log(readFileSync(fileURLToPath(import.meta.url), 'utf8')); // 'foo'
```

_index.cjs:_
```
const readFileSync = require('fs').readFileSync;

console.log(readFileSync(__filename, 'utf8')); // Prints out the source file
```

NB: `type` is set to `module` in `package.json`.

### How often does it reproduce? Is there a required condition?

Can be reliably reproduced every time.

### What is the expected behavior? Why is that the expected behavior?

Resolve hook should be run even for `require`, and replace `fs` with `fake.js`. The output should be `foo`. 

I am basing this expectation off of the documentation (emphasis mine):

[`module#resolve`](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve)
> The resolve hook chain is responsible for telling Node.js where to find and how to cache a given import statement or expression, **or require call**.

[section "enabling"](https://nodejs.org/docs/latest-v22.x/api/module.html#enabling):
> my-app.js can also be CommonJS. Customization hooks will run for any modules that it references via import **(and optionally require)**.

### What do you see instead?

`node --import=./register.js index.js` produces `foo`, as expected.

`node --import=./register.js index.cjs` prints out the source file - bad. Annotating the resolve hook with a `console.log` statement shows it is never run.

### Additional information

I have asked about this on [Stack Overflow](https://stackoverflow.com/questions/79122415/resolve-hook-not-run-for-require) but not received any answers.
Repository: deno
Issue: thread 'main' panicked at ext/cache/sqlite.rs on cache creation
Labels: needs investigation

Version: Deno 2.0.6

Script:

```ts
await caches.open("example")
```

Command: `deno run -A main.ts`

Error:

```

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 2.0.6
Args: ["deno", "run", "main.ts"]

thread 'main' panicked at ext/cache/sqlite.rs:48:10:
failed to create cache dir: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: deno_cache::sqlite::SqliteBackedCache::new
   4: deno_runtime::worker::MainWorker::from_options::{{closure}}::{{closure}}
   5: deno_cache::get_cache
   6: deno_cache::op_cache_storage_open::op_cache_storage_open<CA>::call::{{closure}}
   7: <deno_core::runtime::op_driver::futures_unordered_driver::FuturesUnorderedDriver<C> as deno_core::runtime::op_driver::OpDriver<C>>::submit_op_fallible
   8: deno_cache::op_cache_storage_open::op_cache_storage_open<CA>::v8_fn_ptr
   9: Builtins_CallApiCallbackGeneric
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```

Here is the output of the `deno info` command: 

```
DENO_DIR location: /home/pomdtr.me/.cache/deno
Remote modules cache: /home/pomdtr.me/.cache/deno/remote
npm modules cache: /home/pomdtr.me/.cache/deno/npm
Emitted modules cache: /home/pomdtr.me/.cache/deno/gen
Language server registries cache: /home/pomdtr.me/.cache/deno/registries
Origin storage: /home/pomdtr.me/.cache/deno/location_data
```

I'm not sure why deno is unable to create the cache dir. I did run:

```
chown -R pomdtr.me:pomdtr.me /home/pomdtr.me/.cache
```

And checked sure that the script was running with my pomdtr.me uid using `Deno.uid`

I can create a directory in the cache folder just fine using `mkdir`
Repository: deno
Issue: make deno installable in stackblitz
Labels: suggestion

Attempting to install Deno inside a Stackblitz Web Container fails immediately (note that currently `curl` in a Stackblitz Web Container environment doesn't support `-f` nor `-S`):

```console
❯ curl -sL https://deno.land/install.sh | sh
curl: socket hang up
```

Inspecting network traffic for the browser document via DevTools reveals that the first issue is a CORS issue:

> Access to fetch at 'https://deno.land/install.sh' from origin 'https://something.w-credentialless-staticblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I then tried pasting the contents of https://deno.land/install.sh into a file and running it directly:

```console
❯ sh install.sh
install.sh: line 7: unsupported shell syntax
```

For reference (and as the install.sh script might change with time), here is line 7:

```sh
if ! command -v unzip >/dev/null && ! command -v 7z >/dev/null; then
```

The Stackblitz Web Container shell (`/bin/jsh`/) appears to have limited functionality but as Stackblitz supports Node.js it seems to me that supporting Deno should also be feasible.

It might require some special setup from Stackblitz though. I've also created https://github.com/stackblitz/webcontainer-core/issues/1608.