

A WINDOWS PORT FOR FACEBOOK'S FLOW TYPE CHECKER

Flowtype Binaries for Windows

This site contains binary versions of Flow (Flowtype), the Javascript type-checker by Facebook, compiled on Windows by the OCamlPro team, using OCPWin. OCamlPro team is currently working with Facebook to port Flow on Windows. The goal here is to allow some beta-testers to try it on Windows before all this work is merged in the official Facebook repository.

Download latest version (0.19.1)

flow-0.19.1-windows-20151211.zip : Flow compiled on Dec 11, 2015, commit a3dad70. See Changes at the bottom of this page.

Installation

From binaries

To install, pick flow.exe in the archive. Refer to Flow documentation for use.

From sources

To compile and install Flow from sources, please refer to README.win32.

Simple Example

Create a JavaScript file and add some code with type errors. For example, test.js:

1 /* @flow */ 2 function foo(x) { 3 return x * 10; 4 } 5 foo('Hello, world!');

Start flow to check test.js in two steps:

(1) initialize flow with a .flowconfig file (to be done once per project):

$> flow init

(2) Check the code in the project:

$> flow check

The Flow typechecker will output errors as follow:

test.js:5 5: foo('Hello, world!'); ^^^^^^^^^^^^^^^^^^^^ function call 3: return x * 10; ^ string. This type is incompatible with 3: return x * 10; ^^^^^^ number Found 1 error

Known issues

FAQ

Please, post them on GitHub for now.

Q: While installing OCPWin, I got this message error:

This version of C:\xxxx is not compatible with the version of Windows that you're running. Check your computer's system information and then contact the software publisher.

What should I do ?

A: You probably installed the wrong version of OCPWin, check that you got the 32 or 64 bits version according to your system. Note that Hack and Flow currently only work on 64 bits systems.

Archives and Changes

flow-0.19.1-windows-20151211.zip : Flow compiled on Dec 11, 2015, commit a3dad7000a2bfbe8d60e1c6b8ce45a46a13fd0ce Update to Flow 0.19.1 Fix haste mode Fix .flowconfig (PROJECT_ROOT and accept slashed paths)

flow-windows-20151208.zip : Flow compiled on Dec 08, 2015, commit 97f864abeb1a9866d4daf8662e9a6185046880e4 Fix shared memory location on Windows 7 (see #117).

flow-windows-20151204.zip : Flow compiled on Dec 04, 2015, commit 8a35dba01005f96185d25206fca0f181fa0cfe8b Feature complete Almost all tests passed except those using haste mode. File system watching Multicore support and shared memory

flow-simple-windows-20141127.zip : Flow compiled on Nov 27, 2014, commit 33155d2065a021851151a8b96e7af7a8c2ab90de Tested Ok: flow server , flow start , flow status , flow stop , flow suggest file.js Fixed issue with server termination Fixed issue with file-system monitoring Fixed issues with filenames

flow-simple-windows-20141120.zip : Flow compiled on Nov 20, 2014, commit 33155d2065a021851151a8b96e7af7a8c2ab90de Should work without Cygwin Server mode added, most functions should now work. 32 bit version compiled using MinGW too. The library files are embedded in the executable.

flow-simple-windows-20141119.zip : Flow compiled on Nov 19, 2014, commit 33155d2065a021851151a8b96e7af7a8c2ab90de: First version. Works only under Cygwin, with no multicore support. Server mode does not work. No data persistency. 32 bit version compiled with MSVC, 64 bit version with MinGW. The FLOWLIB variable should be set to point to the directory containing Flow library files.



Resources