-
Notifications
You must be signed in to change notification settings - Fork 21
Failure to run with: Error: spawn flow ENOENT #134
Comments
The first error I've seen when testing, but was unable to figure out a fix for. The second error is interesting as the exact same issue happens on Windows with older |
Erm, I just realized I did forget the specific OS in the report. I'm running Xubuntu 16.04. Yesterday I ended up installing Nuclide, and upon having an issue with flow there as well, I dropped n in favour of nvm. I'm suspicious that n creates some weirdness with paths and global npm package executables, as I was able to get flow working with Nuclide for a while yesterday (it's back to not working today, with a similar write EPIPE error in the console). |
I am having the same problem in Linux Mint 18 (which is based on Ubuntu 16.04 LTS) Atom 1.9.8 |
|
I have managed to get this, ide-flow, and Nuclide's flow stuff working at different times, using things like @arvigeus suggestion, as well as between installing/uninstalling plugins and such. I'm feeling a bit defeated by the last attempt though. Nuclide doesn't support Atom 1.9, and several things were broken, so I uninstalled that, and I update to the latest version of Node. After that, ide-flow (or maybe flow-ide, it's hard to keep them straight) and linter-flow both worked properly using the globally install flow and the default ( At this point I doubt that the problem is immediately local to any of the individual plugins, and more related to flow itself (which is still happily working from the command line), or surface flow exposes. |
@samsch You're on Xubuntu so I'm not totally sure, but something similar happened on OS X a while ago. The problem was that when Atom started up it did not have the The workaround, at least on OS X, was to always open Atom from the terminal. Try quitting Atom, and opening it again directly from the terminal and see if that fixes the problem. If it does, it's a bug in Atom itself. Otherwise, we will continue to investigate what's going on. |
@nmn Huh, that does indeed work. I hadn't paid attention to opening Atom via the app launcher vs the command line, and I tend to do both depending on what I'm working on. So yeah, I tested both, and using the app launcher I get the above errors with linter-flow (as well similar stuff from ide-flow), and flow checking fails. When I start Atom from the command line, linter-flow and ide-flow work just fine. Thanks for the tip! It looks like there was an Atom issue which is now closed. I haven't updated to Atom 1.10 yet, perhaps this is fixed there. |
Flow is installed (0.31.1) and works on the command line (server starts, and
flow
prints out flow errors).If I trigger the linter with the default flow path, I get:
This is the error in the Atom console.
If I set the flow path to my result for
which flow
(/home/sams/n/bin/flow
), then I get a different error:The console shows the same as above.
atom-ternjs and ide-flow are installed, but don't change the result enabled/disabled.
The text was updated successfully, but these errors were encountered: