Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun script runner fail to execute prisma #1191

Closed
ArnaudBarre opened this issue Sep 1, 2022 · 10 comments
Closed

bun script runner fail to execute prisma #1191

ArnaudBarre opened this issue Sep 1, 2022 · 10 comments
Labels
bug Something isn't working needs repro Needs an example to reproduce

Comments

@ArnaudBarre
Copy link
Contributor

Version

0.1.10

Platform

Mac intel

What steps will reproduce the bug?

bun add prisma@4.1.0
bun prisma
bun prisma -v

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

Always

What is the expected behavior?

Same as yarn

◭  Prisma is a modern DB toolkit to query, migrate and model your database (https://prisma.io)

Usage

  $ prisma [command]
[...]
prisma                  : 4.1.0
@prisma/client          : 4.1.0
Current platform        : darwin
[...]

What do you see instead?

error: Failed to run "prisma" due to error ChildExecFailed
0.1.10

Also reproduced in 0.1.9 and 0.1.4

Additional information

No response

@ArnaudBarre ArnaudBarre added bug Something isn't working needs repro Needs an example to reproduce labels Sep 1, 2022
@xhyrom
Copy link
Collaborator

xhyrom commented Sep 2, 2022

Because node's child_process is not implemented (https://cs.github.com/?scopeName=Prisma&scope=repo%3Aprisma%2Fprisma&q=child_process)

@xhyrom
Copy link
Collaborator

xhyrom commented Sep 2, 2022

Duplicate of #595

@xhyrom xhyrom marked this as a duplicate of #595 Sep 2, 2022
@xhyrom xhyrom closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
@marchellodev
Copy link

Prisma seems to be working now. There are still some problems now

@Zhomart
Copy link

Zhomart commented Jan 5, 2023

It's still happening, even though #595 is implemented.

$ bun --version
0.4.0

$ bun run prisma generate
error: Failed to run "prisma" due to error ChildExecFailed

@Jarred-Sumner Jarred-Sumner reopened this Jan 5, 2023
@Jarred-Sumner
Copy link
Collaborator

The bug is that waitpid is returning ECHILD when it shouldn't be. It could be a signal handler causing an issue. Need to read more to understand why this happens

@zzjin
Copy link

zzjin commented Jan 20, 2023

Same error here with:

bun upgrade
bun v0.5.1 is out! You're on 0.4.0
error Failed to verify bun ChildExecFailed)

But bun is upgraded to v0.5.1, just show this error message.

@OmLanke
Copy link

OmLanke commented Jan 20, 2023

Same error here with:

bun upgrade
bun v0.5.1 is out! You're on 0.4.0
error Failed to verify bun ChildExecFailed)

Same with me. Intel MacOS Monterey

@ArnaudBarre
Copy link
Contributor Author

ArnaudBarre commented Jan 20, 2023

I opened another issue for the upgrade issue: #1860

@Zhomart
Copy link

Zhomart commented Jan 21, 2023

bun run prisma generate works on v0.5.1!

image

@ArnaudBarre
Copy link
Contributor Author

Closing the issue but FWI I'm not able to run Prisma fully in bun because Buffer.alloc is undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro Needs an example to reproduce
Projects
None yet
Development

No branches or pull requests

7 participants