facebook / facebook/flow

version mismatch error disobeys --json

Open
#4,038 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

If the version in .flowconfig doesn't match the version being run, you get an error:

```
$ flow status ~/playground
Launching Flow server for /data/users/mroch/playground
Wrong version of Flow. The config specifies version ^0.46.0 but this is version 0.47.0
Could not start Flow server!
```

Passing `--json` doesn't return JSON. this is bad for any integration expecting JSON, like https://github.com/flowtype/flow-for-vscode/issues/72

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.