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
Prisma generate - Error: write EPIPE
on WSL <-> Windows
#3294
Comments
Can you help us reproduce this @ForbesLindesay? An example project on Github would be gold here. |
It's in a pretty big project so not super easy to extract. It seemed to be watch mode only, and the setup I was using was a ubuntu docker image. We've disabled watch mode, which seems to have fixed the issue for now. One suggestion: I think the files may end up appearing to be edited multiple times in quick succession. If you added a short (say 200ms) debounce to the file system watcher you are using, I suspect that would resolve things. Alternatively you could throttle the generate function to only run once at a time using something like https://www.npmjs.com/package/throat |
@ForbesLindesay Indeed something like that is happening probably, thanks for the feedback! |
Hey @AlaaZorkane Does this happen on first save or after leaving it for some time and then trying to save the file? |
Hey @pantharshit00 Both, leaving it or not.
EDIT: nvm, seems like the extension doesn't format/lint with no changes done to the file. |
Error: write EPIPE
Error: write EPIPE
on WSL <-> Windows
Still blocked by #4308 I bumped that one. |
Haven't reproduced with the watch command yet, however the previous comments mention generating clients in parallel. When running multiple instances of |
When using |
The error happens in Reproduced in tests in #19385. I'll fix it in that PR as well. |
Bug description
In the internal introspection CI: https://github.com/prisma/introspection-ci/issues/309#issuecomment-674075918
We ran into
Error: write EPIPE
with MacOS. Here is the internal commit: https://github.com/prisma/introspection-ci/pull/316/commits/392528c430679bfd42ac8d09e98e8d9403c1502c#diff-99e681890513b0f406b692a64ece0ddbThis has been seen before but was closed due to no reproduction: #1816
Environment:
prisma generate
commands were running in parallelError: write EPIPE
How to reproduce
fix_309
Prisma information
The text was updated successfully, but these errors were encountered: