Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuclide Flow not showing errors in Atom

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

like image 893
Franz Avatar asked Jun 15 '16 10:06

Franz


1 Answers

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)
like image 78
Franz Avatar answered Sep 23 '22 01:09

Franz