"runOnEdit"=true user setting and workspace setting seems to have no affect. Flow only seems to process my code when I save a file. I have a super vanilla setup. Let me know what else I can provide.
|Extension|Author|Version|
|---|---|---|
|vscode-markdownlint|DavidAnson|0.7.2|
|beautify|HookyQR|1.0.2|
|alignment|annsk|0.3.0|
|npm-intellisense|christian-kohler|1.3.0|
|path-intellisense|christian-kohler|1.4.2|
|vscode-eslint|dbaeumer|1.2.11|
|prettier-vscode|esbenp|0.17.1|
|git-project-manager|felipecaputo|1.3.2|
|flow-for-vscode|flowtype|0.7.0|
|debugger-for-chrome|msjsdiag|3.1.1|
|vetur|octref|0.6.10|
|language-stylus|sysoev|1.7.3|
|vscode-react-native|vsmobile|0.3.2|;
{
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false,
"prettier.trailingComma": "es5",
"flow.runOnEdit": true
}
Flow VS Code Output I doubt this will be helpful, but just in case[2017-05-24T13:10:51.864Z] [INFO] flow - Path to Flow: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow
[2017-05-24T13:10:52.263Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T13:10:52.359Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T13:10:52.469Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T13:10:52.469Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T13:10:52.470Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T13:10:52.470Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. JSON:
''.
[2017-05-24T13:10:52.667Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T15:15:46.225Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T15:15:46.226Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T15:15:46.226Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T15:15:46.226Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. JSON:
''.
[2017-05-24T15:15:46.437Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:24.471Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T18:35:24.476Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:24.476Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T18:35:24.477Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. JSON:
''.
[2017-05-24T18:35:24.705Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:44.307Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T18:35:44.307Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:44.307Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T18:35:44.308Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. JSON:
''.
[2017-05-24T18:35:44.424Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:46.137Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T18:35:46.138Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:35:46.138Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/plaid.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T18:35:46.138Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/plaid.js. JSON:
''.
[2017-05-24T18:35:46.238Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:45:04.570Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T18:45:04.573Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:45:04.573Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/index.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T18:45:04.573Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/index.js. JSON:
''.
[2017-05-24T18:45:04.656Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:45:08.868Z] [ERROR] flow - Unknown return code from Flow: 110
[2017-05-24T18:45:08.869Z] [INFO] flow - [unknown]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:45:08.869Z] [ERROR] flow - Flow failed: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. Error: {"exitCode":110,"stderr":"Unhandled exception: End_of_file\n","stdout":""}
[2017-05-24T18:45:08.869Z] [ERROR] flow - Invalid JSON result from flow status --json /Users/jon/github/smartpathfunctions/src/assessment.js. JSON:
''.
[2017-05-24T18:45:08.958Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:53:55.230Z] [INFO] flow - [not running]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:53:57.425Z] [INFO] flow - [init]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T18:53:57.633Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:01:33.673Z] [INFO] flow - Path to Flow: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow
[2017-05-24T19:20:29.907Z] [INFO] flow - [not running]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:20:32.137Z] [INFO] flow - [init]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:20:32.257Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:24:12.991Z] [INFO] flow - [not running]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:24:14.344Z] [INFO] flow - [init]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:24:15.218Z] [INFO] flow - [ready]: Flow server in /Users/jon/github/smartpathfunctions
[2017-05-24T19:44:21.151Z] [INFO] flow - Path to Flow: /Users/jon/github/smartpathfunctions/node_modules/.bin/flow
+1
For me, I have to change the focus to another panel and then focus back to trigger the flow check. However, If I install the flow-bin globally, even keep the "flow.useNPMPackagedFlow": true, the runOnEdit feature will work. FYI, the ps aux | grep flow shows all the flow check instances is invoked from the project's node_modules flow-bin.
Same here. Shifting the focus back and forth to a tab triggers flow.
"flow.useNPMPackagedFlow": true,
"flow.runOnEdit": true,
+1 on needing to shift focus to another tab, and then back to trigger flow (in my create-react-app project, as well as others).
Has anyone figured out how to get true real-time runOnEdit? npm install flow-bin -g did not get my runOnEdit to work as in the case of @cyl19910101
I had this problem as well, however upgrading flow-bin to 0.52 seems to have fixed it for me.
npm install -g flow-bin
Then restarting VSCode
@llamasoft-dotcom-demo thanks for the heads-up! I just updated flow-bin from 0.51 to 0.52 in my projects and runOnEdit is working perfectly now :)
flow-bin 0.54.1 installed locally. runOnEdit doesnt work
Most helpful comment
+1
For me, I have to change the focus to another panel and then focus back to trigger the flow check. However, If I install the
flow-binglobally, even keep the"flow.useNPMPackagedFlow": true, the runOnEdit feature will work. FYI, theps aux | grep flowshows all the flow check instances is invoked from the project's node_modules flow-bin.