facebook / flow

Adds static typing to JavaScript to improve developer productivity and code quality.
https://flow.org/
MIT License
22.08k stars 1.86k forks source link

flow-bin 0.71.0 fails to start #6218

Closed craigbeck closed 1 year ago

craigbeck commented 6 years ago
$ npx flow version
Flow, a static type checker for JavaScript, version 0.71.0

$ npx flow
Launching Flow server for /Users/craigbeck/dev/premise-frontend-v3
Spawned flow server (pid=5171)
Logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.log
Monitor logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.monitor_log
Lost connection to the flow server (3 retries remaining)
Launching Flow server for /Users/craigbeck/dev/premise-frontend-v3
Spawned flow server (pid=5219)
Logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.log
Monitor logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.monitor_log
Lost connection to the flow server (2 retries remaining)
Launching Flow server for /Users/craigbeck/dev/premise-frontend-v3
Spawned flow server (pid=5237)
Logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.log
Monitor logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.monitor_log
Lost connection to the flow server (1 retry remaining)
Launching Flow server for /Users/craigbeck/dev/premise-frontend-v3
Spawned flow server (pid=5282)
Logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.log
Monitor logs will go to /private/tmp/flow/zSUserszScraigbeckzSdevzSpremise-frontend-v3.monitor_log
Lost connection to the flow server (0 retries remaining)
Out of retries, exiting!

and contents of logs:

[2018-04-26 22:18:33.136] argv=/Users/craigbeck/dev/premise-frontend-v3/node_modules/flow-bin/flow-osx-v0.71.0/flow start --temp-dir /tmp/flow /Users/craigbeck/dev/premise-frontend-v3
[2018-04-26 22:18:33.192] Watching paths: 
    /Users/craigbeck/dev/premise-frontend-v3
    /Users/craigbeck/dev/premise-frontend-v3/packages
[2018-04-26 22:18:33.197] Initializing Server (This might take some time)
[2018-04-26 22:18:33.197] executable=/Users/craigbeck/dev/premise-frontend-v3/node_modules/flow-bin/flow-osx-v0.71.0/flow
[2018-04-26 22:18:33.197] version=0.71.0
[2018-04-26 22:18:33.201] Parsing
Unhandled exception: Unix.Unix_error(Unix.EPIPE, "write", "")
Raised at file "src/core/lwt.ml", line 3008, characters 20-29
Called from file "src/unix/lwt_main.ml", line 42, characters 8-18
Called from file "src/server/server.ml", line 257, characters 6-54

Exception: Unix.Unix_error(Unix.EPIPE, "write", "")
Potential backtrace:
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/procs/worker.ml", line 96, characters 4-37
Unix.Unix_error(Unix.EPIPE, "write", "")
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/utils/sys/timeout.ml", line 28, characters 12-18
Exception: Unix.Unix_error(Unix.EPIPE, "write", "")
Potential backtrace:
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/procs/worker.ml", line 96, characters 4-37
Unix.Unix_error(Unix.EPIPE, "write", "")
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/utils/sys/timeout.ml", line 28, characters 12-18
Exception: Unix.Unix_error(Unix.EPIPE, "write", "")
Potential backtrace:
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/procs/worker.ml", line 96, characters 4-37
Unix.Unix_error(Unix.EPIPE, "write", "")
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/utils/sys/timeout.ml", line 28, characters 12-18
Exception: Unix.Unix_error(Unix.EPIPE, "write", "")
Potential backtrace:
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/procs/worker.ml", line 96, characters 4-37
Unix.Unix_error(Unix.EPIPE, "write", "")
Raised by primitive operation at file "unix.ml", line 257, characters 7-34
Called from file "hack/utils/marshal_tools.ml", line 144, characters 6-67
Called from file "hack/utils/marshal_tools.ml", line 157, characters 4-63
Called from file "hack/utils/sys/timeout.ml", line 28, characters 12-18

monitor log:

Apr 26 22:18:33.091 [info] argv=/Users/craigbeck/dev/premise-frontend-v3/node_modules/flow-bin/flow-osx-v0.71.0/flow start --temp-dir /tmp/flow /Users/craigbeck/dev/premise-frontend-v3
Apr 26 22:18:33.091 [info] Creating a new Flow server
Client and server are different builds. Flow server is out of date. Exiting
mrkev commented 6 years ago

@gabelevi rip

nmote commented 6 years ago

Is it possible that you have something else competing to try to launch a different Flow version? Maybe you have Nuclide or VSCode running and one of them is trying to start a different version?

SamChou19815 commented 1 year ago

The issue was fixed a while ago.