FlowIDE
FlowIDE copied to clipboard
Current Flow rejects --retry-if-init, so diagnostics fail
With current Flow (0.334.0) the diagnostics call always fails: Flow rejects --retry-if-init.
The plugin runs
flow check-contents --from nuclide --root /tmp/fl --json --retry-if-init false /tmp/fl/a.js
and Flow 0.334.0 answers Unknown option: --retry-if-init (exit code 64; the output is that text line followed by a JSON error), so call_cli in flowide/cli.py raises ValueError: No JSON object could be decoded instead of returning the check result. The same command without --retry-if-init false returns the normal JSON (flow check-contents --from nuclide --root /tmp/fl --json /tmp/fl/a.js reports the incompatible-type error). The same option is passed for autocomplete and coverage.
Found while testing with a copy of the package that has the import problem from the other issue fixed.