flow / flow-bin

Binary wrapper for Flow - A static type checker for JavaScript
https://flow.org
Other
536 stars 48 forks source link

Unhandled exception: Unix.Unix_error(Unix.EINVAL, "ftruncate", "") #183

Closed richardsondx closed 2 years ago

richardsondx commented 2 years ago

Getting Unhandled exception: Unix.Unix_error(Unix.EINVAL, "ftruncate", "") when running flow

When running: yarn flow check

Unhandled exception: Unix.Unix_error(Unix.EINVAL, "ftruncate", "")
error Command failed with exit code 110.

When runnin: yarn run flow

error Command failed with exit code 12.

when running: yarn flow start

Error: Failed to start server. exited prematurely with code 2.

and log output is Unix.Unix_error(Unix.EINVAL, "ftruncate", "")

When running: yarn flow stop

Warning: no server to kill

I can confirm that no flow server is running when running: killall flow

No matching processes belonging to you were found

Versions

My system:

mroch commented 2 years ago

this is a bug in macOS. upgrade to 11.3.1 or newer

https://github.com/facebook/flow/issues/8538 for more details