5

I have a small project to test out facebook flow. I have purposefully placed some type errors that flow picks up, and they are successfully detected when running flow check from the command line.

I would like to display them directly on Atom, when viewing the file(s), but currently it shows 0 errors (about 20 in the project when running from command line). Here is what I've done:

  • Installed flow (with brew)
  • Installed Nuclide from the Atom packages (settings shown in image below)
  • initialized an empty .flowconfig file in the project
  • Initialize each file to flow-check with /* @flow */
  • run flow check from the project directory

I have the following OS versions:

  • OSX 10.11
  • Atom 1.8.0
  • Nuclide 0.141.0
  • Flow 0.14.0

Here are my settings for Nuclide flow: Nuclide-flow Atom settings

Here is what I get when running flow on the command line: command line output Here is what I get when viewing file on Atom: enter image description here

Franz
  • 154
  • 1
  • 10
  • 1
    If all else fails, there's now another setting under "Flow" in Nuclide Settings: `Use the Flow binary included in each project's flow-bin`. Assuming you install flow-bin as part of your project's devDependencies, it might work. (This is not recommended, but alas, in my case turned out to be the only solution that actually worked.) – Tomty Oct 17 '16 at 21:02
  • I met similar problem, and "Go to definition" is not working as well. Have you solved your problem? – Allen Hsu Mar 15 '17 at 03:57

1 Answers1

5

I have actually just made it work by doing the following:

  • update flow to 0.26.0 with brew upgrade flow (or sudo brew upgrade flow if you need to)
  • disable all linter packages on Atom
  • restart atom (shutting the app completely first)
  • Restart Flow Server (Atom top bar --> Nuclide --> flow --> Restart Flow Server)
Franz
  • 154
  • 1
  • 10