Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

"Flow is type checking"... Forever! #286

Open
stephen-last opened this issue Oct 25, 2018 · 13 comments
Open

"Flow is type checking"... Forever! #286

stephen-last opened this issue Oct 25, 2018 · 13 comments

Comments

@stephen-last
Copy link

I'm running VS Code 1.28.2, flow-bin 0.82.0 installed locally, on Windows 7 Pro.

I'm trying to add Flow to an existing project (a Node command line app), which right now has 20 dependencies and 18 devDependencies (mostly Babel and ESLint). This has a file count of around 17,000 in node_modules.

I don't think this is unusual, and I would expect Flow to not have any problems with this project.

I'm trying to add type annotations to my first file and all I can see is:

flow

Never-ending "Flow is type checking"... At the moment Flow is completely unusable.

What is it type checking..? Is there any way to see the files/code that it's currently type checking..?

It definitely isn't type checking my 3 lines of annotations, so it must be type checking within node_modules, is that right..? How long should it take..?

@ArmorDarks
Copy link

I'm also getting hard times making flow-for-vscode work on Windows (10 in my case). Though, Flow itself works through a CLI as intended.

@SergioMorchon
Copy link

SergioMorchon commented Oct 26, 2018

The same happens to me :(
And there are a lot of flow processes with no CPU usage in the task manager.

@stephen-last
Copy link
Author

@SergioMorchon

Same here on the processes, there's another issue for that: #287

Are you on Windows as well..?

@SergioMorchon
Copy link

@stephen-last Yes, Windows 10.
Looks like under some conditions, flow processes go orphans or similar, because I can see:

  • A lot of flow processes in the Task manager, even after closing VSCode.
  • All of them without using CPU.
  • One of them with a considerable amounf of RAM compared to others that have the same lower RAM consumption (compared).
  • If I kill one of the small-ram process, nothing happens.
  • If I kill the larger one, then all the flow processes get killed in cascada.

And regarding VSCode flow plugin hanging forever:

  • If I open VSCode having previously those process I mentioned before, then the flow status will be forever loading. If then I kill the flow process, then a new one will be automatically spawn, using CPU and raising RAM and the plugin will load ok.
  • If I previously kill all the flow process, then VSCode flow plugin will load fine.

@stephen-last
Copy link
Author

@SergioMorchon I'm seeing exactly what you describe as well.

I have two projects setup with Flow. I seem to get 3 processes for each (more when Flow is actually doing something), one using more memory just as you describe. When I switch projects, or exit VS Code, the processes are left, still consuming memory.

When I run TASKLIST /FI "IMAGENAME eq flow.exe*" I see:

flow-processes

Running npm run flow -- stop (with flow added to scripts in package.json) does kill all the flow processes related to that project.

So... It looks like there may be an issue with the flow.stopFlowOnExit setting then, as @richardtks says in issue #281.

@SergioMorchon
Copy link

SergioMorchon commented Oct 26, 2018

This is my new friend

Get-Process -Name flow | Stop-Process

These issue is my Top 1 blocking issue that prevents me to use this plugin. Because:

@JoshRosenstein
Copy link

Ditto to @SergioMorchon experience bur was using Process Hacker 2 to to bulk Kill for certain vscode windows.

@Diggsey
Copy link

Diggsey commented Nov 3, 2018

Same issue here - windows 10.

@JoshRosenstein
Copy link

think this is related to the closed #172 issue.

@JoshRosenstein
Copy link

JoshRosenstein commented Nov 8, 2018

Seems to be just a lack of windows support, which is disappointing. booted up second computer with Ubuntu and this extension works flawlessly, compared to working with the same projects Ive opened up on my windows PC. Sucks that in order to try to make development a bit easier, you must first choose an OS before choosing which choosing tool sets. If i didnt have the flexibility to switch to linux or mac and had to stay with windows (ei. company issued computer), i would probably lean more towards typescript..

Edit**:
Just saw #287 , so far i've seen 10 processes just opening and switching files, will continue watching once i start actually start working on things.

@Tolgor
Copy link

Tolgor commented Dec 8, 2018

Same here, the extension is not usable :(
Windows 10

@cmtmc
Copy link

cmtmc commented Jan 14, 2020

Windows 10, extension stops working unpredictably. On exiting VSCode several flow.exe are hanging. How can I use the extension? Thanks!

@cmtmc
Copy link

cmtmc commented Feb 25, 2021

Win10, flow 0.145.0 hangs the same way as a year ago. Any news on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants