-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple instances of flow server started and not stopped #212
Comments
I have roughly the same issue on my computer, and I'm not sure it's an issue (it seems to be spawning a bunch of workers, and they wait for file changes to re-check). Are we sure this is a bug and not a feature? |
Definitely a bug in our tooling. I shouldn't have flow's server still running after i'm done working on DD. At the point of making this screenshot, I had moved away and closed the terminal and editor I had for DD work. |
according to https://flow.org/en/docs/cli/ it automatically starts a background server (and you can configure the max number of workers if you want), by design. |
Yes. Perhaps we can override |
That's a brilliant idea. Obviously won't work in case you're running something else like If it takes too much time (eg if you restart the server, it kills flow, and then it re-starts it, which takes some time), we'll always be able to revert back to the "standard" behavior. Good idea @peterbe , I'm +1 on that ;) |
Isn't this the same basic principle as #209? Should we be adding non-standard extensions and behavior in just this one project? |
I have yet to see the light (i.e. the benefit) of flow in a web app so I have to avoid a strong opinion here. |
My two cents about the flow benefits: it's just marginally better at helping you spot issues with your types (and helps while refactoring). But it's only useful in places where you don't already have some kind of type system (like proptypes for react components). If flow was "complete" (eg: didn't need an extra step to check the flow coverage), and had good and helpful error messages, and had a very good type inference, it would definitely make it more valuable. At the moment, from my limited experience, I'm not sure the ROI is interesting. On the other hand, it might be a good "foundation" to enforce if we want DD to be a "model". No strong opinions from me here either. I would definitely advocate for using Reason (or even better, Elm) to have a proper type system, if we decide that using a type system is a must have. |
Noticed something weird in my Activity Monitor, "flow".
Somewhere in our tooling we're doing it wrong. We're starting it and never stopping it.
The text was updated successfully, but these errors were encountered: