sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: DropdownMenu menu doesn't follow widget
Labels: f: material design,f: scrolling,a: quality,P1,team-design,triaged-design

If you put a DropdownMenu in a scrollable, then cause the DropdownMenu widget to show its menu and then scroll the scrollable (e.g. using a trackpad), the menu doesn't follow the widget. It should use a LeaderLayer/FollowerLayer to follow the text field the same way the text field toolbar does.

(Testing on main, 3.24.0-1.0.pre.104, on macOS 14.2.1 23C71 darwin-arm64.)
Repository: next.js
Issue: basePath not creating structure correctly when output set to export
Labels: bug,Output (export/standalone)

### Link to the code that reproduces this issue

https://github.com/robmarshall/next-output-export-reproduce

### To Reproduce

1. Start application using Next Build
2. Serve the application (npx serve out)

### Current vs. Expected behavior

The page.tsx file at root level should be returned at: "/app".
However it is only shown at "/" with all of its imports (styling/fav etc) broken - trying to find files at "/app".

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Home
  Available memory (MB): 32653
  Available CPU cores: 8
Binaries:
  Node: 18.17.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.3
Next.js Config:
  output: export
```


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

Output (export/standalone)

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

next dev (local), next build (local), next start (local), Vercel (Deployed)

### Additional context

When removing the output key from the Next config, and building as a standard Next app, the routing works correctly.

Next Config:

```
const nextConfig = {
  images: {
    unoptimized: true,
  },
  basePath: "/app",
  trailingSlash: true,
  output: "export",
};
```
Repository: TypeScript
Issue: Callback argument type not inferred for union of interfaces
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

`"implicitly has an" inference`

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about "inference"


### ⏯ Playground Link

https://www.typescriptlang.org/play/?target=5&ts=5.5.3#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgQQGcBPJbAJWEIFcAbGAYU1toCMcBrAHgBUAaOAFE4AXiFQo0AHxwA3gFgAUHBVwAFGigB+AFxC4AHzhI6tAVCp0YuuDwCUegG4QEAEwDcSgL5KloSLCIKGhYuAQkZJQ09ACSqFCYMNC8AuQCwmKCEtJySqrqCKgAtnr8cNjMbJx6RKQUlvRMLOzY3GlCUg5wzm6eij6K-tDwyPGheLWRDTBxaInQAAqSRQiEwClw5DIKyqpqhcAltl1LECtrXFt9A0quwNi0mBZw6NRkMAgQSHBFmGAAMggVjANu0MuJJFApGo8qonlBSgBtAC6fFhKloQMKehMRVYaDRuxUBwSSQRKkm9WiM3i8ygp3O6zKW0M4TqUSss1JyWZ6SkhJOy1W63IKKkfSUvwBWJgakRAEY+AAmPgAZlRcFVAkwEWw6iQdlE23RcAsMGoUG+3wAVNa4ErrnZ3EA

### 💻 Code

```ts
export interface AsyncResultCallback<T, E = Error> {
    (err?: E | null, result?: T): void;
}

export interface AsyncResultIterator<T, R, E = Error> {
    (item: T, callback: AsyncResultCallback<R, E>): void;
}
export interface AsyncResultIteratorPromise<T, R> {
    (item: T): Promise<R>;
}

declare function mapLimit<T, R, E = Error>(
    arr: T[],
    limit: number,
    iterator:  AsyncResultIteratorPromise<T, R> | AsyncResultIterator<T, R, E>,
): Promise<R[]>;

mapLimit([1,2,3], 3, async (n) => {
    return n ** 2;
});
```


### 🙁 Actual behavior

The type of `n` in the `mapLimit` callback is inferred as `any`:

```
Parameter 'n' implicitly has an 'any' type. (7006)
```

### 🙂 Expected behavior

I would expect the type of `n` to be inferred as `number`.

### Additional information about the issue

This example is based on the types for the `async` package:

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/b9820410f85f259cbad6065d8cb6f23f403109ac/types/async/index.d.ts#L321-L325

Note that if the type for `iterator` in `mapLimit` is changed to either just `AsyncResultIteratorPromise<T, R>` or just `AsyncResultIterator<T, R, E>` (that is, no longer a union type), things work as expected and `n` has type `number`.

I found a very old discussion of what looks to be the same issue in the `DefinitelyTyped` repo: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24297. The issue described there is exactly the one I'm facing. One commenter claimed that things worked correctly, and another commenter claimed that changing the way that `async` was imported had some effect? Neither of those sounds plausible to me.

I found some issues that may describe the same or a similar problem:

- https://github.com/microsoft/TypeScript/issues/56881
- https://github.com/microsoft/TypeScript/issues/55632
- https://github.com/microsoft/TypeScript/issues/52047
- https://github.com/microsoft/TypeScript/issues/47599

However, my knowledge of TypeScript internals/terminology isn't strong enough to say for sure that this isn't a novel issue I'm facing. If this is in fact a duplicate, please close it as such and I'll add this example to the relevant issue. Thank you!
Repository: pytorch
Issue: CMake cannot detect non-default fp16 installation path
Labels: module: build,triaged

### 🐛 Describe the bug

When installing py-torch from source using an external fp16 installation, cmake cannot find the installation path of fp16 and terminates.

### Versions

N/A

cc @malfet @seemethere
Repository: godot
Issue: Type checker can't distinguish between PackedVector2Array and Array[PackedVector2Array]
Labels: bug,topic:gdscript

### Tested versions

- Reproducible in 4.3.beta3.official [82cedc83c]

### System information

MacOS v4.3.beta3.official

### Issue description

For example, this won't throw an error:

```gdscript
var array: PackedVector2Array
var array_of_arrays: Array[PackedVector2Array]
array = array_of_arrays
```

Giving a little context to help anyone who might be scratching their heads with the same issue. 

I noticed this when working with `Geometry2D`. I was wondering why `Geometry2D.intersect_polygons()` was returning `[(0, 0)]` even though the two polygons were clearly overlapping. Turns out you get `[(0, 0)]` if you're accidentally casting `Array[PackedVector2Array]` to `PackedVector2Array`.

### Steps to reproduce

shown above

### Minimal reproduction project (MRP)

N/A
Repository: deno
Issue: Publishing JSR pkg that resolves to npm workspace member that's a JSR dep should error?
Labels: suggestion,publish

In an npm workspace that are both JSR and npm packages, perhaps an error or warning should occur when a specifier in one member resolves to the npm specifier for the other instead of the jsr specifier.
Repository: vscode
Issue: There are no commenting ranges at the current position (with range).
Labels: error-telemetry

```javascript
Error: There are no commenting ranges at the current position (with range).
at U.addCommentAtLine in src/vs/workbench/contrib/comments/browser/commentsController.ts:1135:11
at U.addOrToggleCommentAtLine in src/vs/workbench/contrib/comments/browser/commentsController.ts:1105:10
at U.cb in src/vs/workbench/contrib/comments/browser/commentsController.ts:1088:9
at d.value in src/vs/workbench/contrib/comments/browser/commentsController.ts:891:59
at le.B in src/vs/base/common/event.ts:1211:13
at le.C in src/vs/base/common/event.ts:1222:9
at le.fire in src/vs/base/common/event.ts:1246:9
at le.fire in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:2049:9
at we.onMouseUp in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:1850:58
at C.emitMouseUp in out/vs/workbench/workbench.desktop.main.js:220:22567
at D.emitMouseUp in src/vs/editor/browser/view/viewController.ts:315:24
at i.F in src/vs/editor/browser/controller/mouseHandler.ts:299:23
at <anonymous> in src/vs/editor/browser/controller/mouseHandler.ts:110:81
at callback in src/vs/editor/browser/editorDom.ts:159:4
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=a35380d6f0ff65f7c35345baafcf1c3f8a378d38&bH=181e6fa8-1784-4c4c-2120-d57ae0565a72)
Repository: vscode
Issue: Invalid array length
Labels: error-telemetry

```javascript
RangeError: Invalid array length
at Array.concat (<anonymous>)
at a.w in src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.ts:1230:74
at a.q in src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.ts:1062:26
at a.insert in src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.ts:931:10
at v.t in src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.ts:501:21
at v.applyEdits in src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.ts:381:31
at U.xb in src/vs/editor/common/model/textModel.ts:1432:31
at U.applyEdits in src/vs/editor/common/model/textModel.ts:1422:16
at s.M in src/vs/workbench/contrib/output/common/outputChannelModel.ts:283:10
at <anonymous> in src/vs/workbench/contrib/output/common/outputChannelModel.ts:241:9
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1e16e1e6214d7c44d078b1f0607b2388f29d729&bH=d884bd86-e50e-082d-dd3f-51d0dc7eb517)
Repository: vscode
Issue: Cannot read properties of undefined (reading 'domNode')
Labels: error-telemetry

```javascript
TypeError: Cannot read properties of undefined (reading 'domNode')
at X.O in src/vs/editor/browser/view.ts:411:40
at X.handleEvents in src/vs/editor/browser/view.ts:355:8
at C.w in src/vs/editor/common/viewModelEventDispatcher.ts:151:18
at C.u in src/vs/editor/common/viewModelEventDispatcher.ts:136:9
at C.t in src/vs/editor/common/viewModelEventDispatcher.ts:129:9
at C.endEmitViewEvents in src/vs/editor/common/viewModelEventDispatcher.ts:106:10
at <anonymous> in src/vs/editor/common/viewModel/viewModelImpl.ts:386:27
at listener in src/vs/editor/common/model/textModel.ts:235:38
at l.B in src/vs/base/common/event.ts:1211:13
at l.C in src/vs/base/common/event.ts:1222:9
at l.fire in src/vs/base/common/event.ts:1246:9
at ne.endDeferredEmit in src/vs/editor/common/model/textModel.ts:2512:23
at U.applyEdits in src/vs/editor/common/model/textModel.ts:1424:23
at s.M in src/vs/workbench/contrib/output/common/outputChannelModel.ts:283:10
at <anonymous> in src/vs/workbench/contrib/output/common/outputChannelModel.ts:241:9
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=f1e16e1e6214d7c44d078b1f0607b2388f29d729&bH=d9c8a53b-2543-8ad7-891f-28c5cae93b85)
Repository: ollama
Issue: How can I make the model produce consistent and stable results for the same prompt?
Labels: bug

### What is the issue?

As the title suggests, my goal is to ensure that the model produces consistent and stable output for the same prompt.
I call the native gemma2:9b docker using the ollama-python lib API. I have explicitly modified the temperature to 0 and set a fixed seed in the Options, but I found that it did not work. The model still produces different results with multiple calls.
Is there an issue with the way I am using it? Has anyone encountered the same problem?

### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

ollama version is 0.2.1
Repository: vscode
Issue: Add css variables with editor font settings
Labels: debt

There's a fair number of places in our UX code that want to render code in the same font that's used in the editor. Currently this is done with code such as:

```ts
const fontInfo = this.editor.getOption(EditorOption.fontInfo);
element.style.fontSize = `${fontInfo.fontSize}px`;
element.style.lineHeight = `${fontInfo.lineHeight / fontInfo.fontSize}`;
```

Instead I think we can use css variables for this. This should reduce duplicate code and also fix a few places where we don't correctly watch for editor config change to force re-rendering of UI elements
Repository: godot
Issue: Bottom Panel labels disappear when changing view from 2D to Script
Labels: topic:editor,needs testing

### Tested versions

- Reproducible in v4.2.2.stable.official [15073afe3]

### System information

Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Mobile) - integrated Intel(R) UHD Graphics 620 (Intel Corporation; 27.20.100.8853) - Intel(R) Core(TM) i3-8130U CPU @ 2.20GHz (4 Threads)

### Issue description

When moving from "2D" to "Script" view, the labels for the Bottom Panel disappear. This happens only when a script is open. If we close the script(s), the labels reappear. This makes it inconvenient to minimize the Bottom Panel in Script view and I often have to shift back to 2D view just to minimize it.

I am using Godot on a FHD (1920x1080) 14'' laptop screen.


### Steps to reproduce

Create a scene, save it and attach a script to it. In "2D" view, select "Audio" in Bottom Panel and change to "Script" view. If the "Script" view has a script file open, the labels in the Bottom Panel disappear and there is no way to minimize the Bottom Panel in script view except by going back to "2D" view.

https://github.com/user-attachments/assets/3834b872-7916-4eba-989e-23e2d0d664fe



### Minimal reproduction project (MRP)

[MRP.zip](https://github.com/user-attachments/files/16258302/MRP.zip)
Repository: rust
Issue: Poorly-documented safety assumptions in `unix::stack_overflow::init`
Labels: A-runtime,T-libs,A-thread,A-stack-probe

Relevant history:
- https://github.com/rust-lang/rust/issues/69524
- https://github.com/rust-lang/rust/pull/69685

It's not clear, to me, why the update of the `NEEDS_ALTSTACK` variable is occurring. I don't know everything there is to know about signal handlers, but I do know
- they are terribly underspecified
- they are surprisingly thread-specific in multithreaded programs
- yet some aspects of them remain process-wide in relevance

We have two fairly distinct codepaths for `make_handler`. In code we control, we only call one or the other (i.e. a constant input). They're really quite different functions. So it's not clear where the logical dependencies emerge between the two.
Repository: flutter
Issue: Easier use of in-app keyboards with TextInputControl
Labels: a: text input,c: new feature,framework,c: proposal,P2,team-text-input,triaged-text-input

### Use case

Many modern applications aim to provide a unique user experience by customizing the keyboard interface. This customization can improve user interaction and offer specialized input methods tailored to the application’s needs. 

Currently, implementing a custom in-app keyboard in Flutter is cumbersome and unreliable. Existing approaches, such as creating a widget for the custom keyboard and displaying it in a `Column` where first child is our form screen, and the second is keyboard , result in a glitchy and error-prone experience, especially when switching between fields with the custom keyboard and the native keyboard. This approach also doesn't work nicely with [cupertino_interactive_keyboard](https://pub.dev/packages/cupertino_interactive_keyboard).

A more seamless and integrated solution is needed to enhance the stability and usability of custom keyboards within Flutter applications.

### Proposal

```
TextField(
  keyboardType: TextInputType.custom(
    builder: (TextEditingController controller, BuildContext context) {
      return MyKeyboardWidget(
        textEditingController: controller
      );
    },
  )
)
```

In this case `MyKeyboardWidget` would be assigned to iOS [UITextField](https://developer.apple.com/documentation/uikit/uitextfield)'s [inputView](https://developer.apple.com/documentation/uikit/uiinputviewcontroller/1618192-inputview) property. On Android it would be facaded via `InputMethodService`.

The custom keyboard via exposed `TextEditingController` would be able to do anything with the textfield, like replace text, get/change cursor position - that functionality already exists.
Repository: godot
Issue: GDExtension: Obtain an unexpected Vector4 value from the array
Labels: bug,needs testing,topic:gdextension

### Tested versions

4.3 dev beta 2 or 3 

### System information

windows 11 Godot 4.3 dev 

### Issue description

```c++
processList.push_back(Vector4(0.1, 0.2, 0.3, 0.4));
Vector4 tmp = processList[0];
UtilityFunctions::print(tmp);
```
The type of  processList is Array. when i run above code,  variable tmp's value is vector4(0.1, 0.2, 0, 0).  Z and W in vector4 were reset to zero. 
![image](https://github.com/user-attachments/assets/507e2ba6-9fb0-4ef7-b868-6960a4e7059a)

and the result what was printed in console also is wrong, vector(0.1, 0.2, 0.3, 0.4) is correct,
![image](https://github.com/user-attachments/assets/235d87b3-8940-4514-9821-957560958c54)


### Steps to reproduce

https://github.com/OribitCpp/TestGdExtension.git

You can reproduce error with using above repository.
![image](https://github.com/user-attachments/assets/4ae173e7-3b05-4c7e-8e3c-43d7fbafcb21)
replace with your project root path.

mapgen.gdextension:
```
[configuration]

entry_symbol = "mapgen_library_init"
compatibility_minimum = "4.2"

[libraries]
windows.debug.x86_64 = "res://bin/windows/libmapgen.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libmapgen.windows.template_release.x86_64.dll"
web.debug.wasm32 = "res://bin/web/libmapgen.web.template_debug.wasm32.wasm"
web.release.wasm32 = "res://bin/web/libmapgen.web.template_release.wasm32.wasm"
```



### Minimal reproduction project (MRP)

; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
;   [section] ; section goes between []
;   param=value ; assign values to parameters

config_version=5

[application]

config/name="testGdextensionArrayVector4"
run/main_scene="res://node_2d.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
config/icon="res://icon.svg"
Repository: next.js
Issue: Failed to load SWC Binary for android-arm64
Labels: bug

### Link to the code that reproduces this issue

https://github.com/Dprof-in-tech/john-achimugu

### To Reproduce

Clone the repository on termux provisioned code-server in your android device
run npm install
Npm run dev
![Screenshot_2024-07-17-04-54-27-645_com android chrome](https://github.com/user-attachments/assets/44afd3a4-62f8-470d-b2c8-1d76fbc82c4d)


### Current vs. Expected behavior

It is supposed to just download the swc binary pack for android but instead it throws this error

### Provide environment information

```bash
Operating System:
  Platform: android
  Arch: arm64
  Version: #1 SMP PREEMPT Mon Feb 26 08:40:48 UTC 2024
Binaries:
  Node: 22.4.1
  npm: 10.8.1
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


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

Developer Experience

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

next dev (local), next build (local), next start (local)

### Additional context

_No response_
Repository: go
Issue: proposal: maps: add Diff, Intersect, CopyFunc, Filter funcs
Labels: Proposal

I want to propose adding new functions to the maps package:

```
// CopyFunc is like Copy, but calls the conflict function to resolve duplicate keys.
func CopyFunc[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](m1 M1, m2 M2, conflict func(K, V, V) V) {
	for k, v := range m2 {
		if v1, ok := m1[k]; ok {
			m1[k] = conflict(k, v1, v)
		} else {
			m1[k] = v
		}
	}
}

// Filter creates a new map containing only the key-value pairs that match a predicate
func Filter[M ~map[K]V, K comparable, V any](m M, keep func(K, V) bool) M {
	m2 := make(M, len(m))
	for k, v := range m {
		if keep(k, v) {
			m2[k] = v
		}
	}
	return m2
}

// Diff returns a new map containing key-value pairs present in the first map but not in the second.
func Diff[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](m1 M1, m2 M2) M1 {
	m3 := make(M1, len(m1))
	for k, v := range m1 {
		if _, ok := m2[k]; !ok {
			m3[k] = v
		}
	}
	return m3
}

// Intersect returns a new map containing key-value pairs present in both maps.
func Intersect[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](m1 M1, m2 M2) M1 {
	m3 := make(M1, len(m1))
	for k, v := range m1 {
		if _, ok := m2[k]; ok {
			m3[k] = v
		}
	}
	return m3
}
```

I'll be happy to contribute a PR with tests if this is a good idea.
Repository: vscode
Issue: serve-web not re-opening terminals on lost connection, leaking shell processes
Labels: bug,remote,confirmation-pending,terminal-persistence

<!-- ⚠️⚠️ 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.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T21:21:06.866Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
- OS Version: Mac OS X 10_15_7

Steps to Reproduce:

I'm not totally sure how to reproduce minimally or exactly.

I leave 1+ remote connections open (in a PWA on my client machine). After the laptop going to sleep or losing connection, prior to v1.91 it would reconnect upon re-establishing the ssh connection (I use autossh to auto re-connect). However, I believe starting with v1.91, it now frequently does not restore the integrated terminals or state, requiring a reload of the PWA.
To make matters worse, it seems as though those shell sessions are still running in the background. When I run `systemctl status` on the serve-web user level service, I see a growing number of shell processes (zsh in my case).

I am unable to test on insider build, due to #221883
Repository: deno
Issue: deno compile:  node addons gets error `missing symbol called`
Labels: bug,compile,node native extension

`require('xxx.node') ` will get error `missing symbol called` after deno compile.

### Version: 
```shell
deno 1.45.1 (release, aarch64-apple-darwin)
v8 12.7.224.12
typescript 5.5.2
```
### Reproduce
copy file `audio.node`: https://github.com/Mutefish0/deno-node-addons-issue/blob/master/audio.node

create `main.ts`
```typescript
import Module from 'node:module'
import path from "node:path";

const standalone = Deno.args.includes("--standalone");

export function resolvePath(url: string, metaUrl: string) {
  let baseDir = "";
  if (standalone) {
    baseDir = path.dirname(Deno.execPath());
  } else {
    baseDir = path.dirname(metaUrl);
  }
  baseDir = baseDir.replace("file://", "");
  return path.resolve(baseDir, url);
}

const mod = new Module('')

const url = resolvePath("./audio.node", import.meta.url);


if (Deno.statSync(url).isFile) {
  const m = mod.require(url);
  console.log(m);
}
```
compile and run:
```shell
deno compile  --allow-ffi --allow-read   --output ./main  ./main.ts --standalone
./main
```

then the error occurs:
<img width="351" alt="截屏2024-07-17 下午1 24 34" src="https://github.com/user-attachments/assets/801f462f-532d-4338-8d91-9e2b5128ec7b">

deno run:
```shell
deno run --allow-ffi --allow-read  ./main.ts
```
works fine:

<img width="650" alt="截屏2024-07-17 下午1 30 00" src="https://github.com/user-attachments/assets/bc119d48-06b8-4792-acac-7dfa6bfe77a2">

reproduce repo: https://github.com/Mutefish0/deno-node-addons-issue