Closed mjmasn closed 2 years ago
OK so I ended up just adding a list of all 900 node_modules directories to [ignore]
then removed 50% at a time. Narrowed it down to https://github.com/oblador/react-native-vector-icons.
It's not clear to me that it would be their fault though, unless they're doing something very bad in their flow defs, I guess the issue is probably still in flow-bin :thinking:
The type definitions contain enums for the available icon names, allowing flow to validate the icon you are requesting exists in the requested set. For some sets (such as font awesome), these enums are can be lengthy. I wonder if the flow people changed some internals such that they now have a hard time handling such.
@alpha0010 thanks for the reply. Sounds like that might be the case, we're using material community icons as well as a custom icon font so about 3800 possible icons across the two components. Not sure if the types for the unused icon sets are still processed as well?
Have same issue on the v0.121.0
Macbook Pro, downgraded to v0.113.0
at least one of the stable that doesn't spin my fans
Closing out old issues. This repository is just packaging prebuilt binaries. Please report issues with Flow itself on facebook/flow
I'm running
flow-ide
(in LSP mode) in Atom text editor with Flow 0.95.1, although this has been a problem across a few versions.As soon as I open our React Native project in Atom, flow takes a full CPU core forever. Make any changes and it can take 3~5 minutes for the errors to update in Atom.
What's the best way to debug this? Ignoring
node_modules
in.flowconfig
works, so I'm guessing there's a file that's confusing flow in there somewhere, but then we getCannot resolve module 'react-native'
etc. errors.Is there a way to see timings for each file or something along those lines?
As I've typed out this issue CPU usage has remained at 100% of a core, with memory usage in a loop of roughly 400MB -> 800MB -> 1200MB -> 400MB etc. on a 2s interval in the system monitor.
Output of
react-native info
:Contents of
.flowconfig
(I think this is the default one from RN, plus the strict mode config)