Closed JohnyDays closed 8 years ago
What sorts of files are you working on?
There is an issue with Flow that can manifest this way when Nuclide asks for type coverage results in certain cases. More details on my pull request to fix it here: https://github.com/facebook/flow/pull/1903. We also need this PR in to fix this in Nuclide: https://github.com/facebook/flow/pull/1904.
Once those are released we can start using the coverage
command rather than dump-types
and avoid this problem (assuming, of course, that this is the same problem).
In the mean time, you can disable the "nuclide-type-coverage" feature in the Nuclide settings which should mitigate the problem (again, assuming it's the same one I've seen).
Yeah it definitely is flow related, because I have changed around my types, and it isn't happening anymore. As well as it not happening with my other projects.
I have quite a significant amount of types in my code, but the most relevant ones I changed when it stopped happening was that, I had around ~10 polymorphic types in several files that had the incorrect amount of type arguments, and I have corrected those.
I'm not sure if they were causing the crashes however, but that's the most relevant thing I can remember.
EDIT: It might be relevant to say that I'm using flow compiled from master, from yesterday's state
Thanks for the info. No, Flow compiled from master will still have this problem. It will only be solved when Nuclide can stop calling dump-types
for coverage info which will have to wait until the release of Flow v0.28, it looks like. And then, Nuclide doesn't currently have the machinery to call different commands based on the Flow version, so I'll either have to build that or wait to switch over by default until we want to stop supporting earlier versions of Flow.
This only happens in pathological cases where the string versions of inferred Flow types are enormous. It's not surprising that changing around your types made this problem disappear.
I do have types whose string representation is several paragraphs long 😢
Hey, I recently updated my atom to 1.8 and nuclide to 0.141.0 and I started getting an uncaught illegal access error that crashes the editor most of the time, although sometimes atom manages to recover somehow.
Atom Version: 1.8.0 System: linux 4.5.4-1-ARCH Thrown From: nuclide package, v0.141.0
Stack Trace
Uncaught illegal access
Commands
Config
Installed Packages