Giter VIP home page Giter VIP logo

flow-lib-loading-taking-forever's Introduction

flow library loading sometimes take too long

flow constantly takes ~45sec to ~1min to load the following 3 line library:

declare class AAA { aaa: Element }
declare class BBB { bbb: Element }
declare interface BUG extends BBB, AAA {}

This repo contains everything to reproduce the bug.

logs showing it takes ~45 sec :

[2018-02-21 22:41:41] argv=/Users/rvion/dev/repro/node_modules/flow-bin/flow-osx-v0.66.0/flow start --temp-dir /tmp/flow /Users/rvion/dev/repro
[2018-02-21 22:41:41] Watching paths:
	/Users/rvion/dev/repro
[2018-02-21 22:41:41] Initializing Server (This might take some time)
[2018-02-21 22:41:41] executable=/Users/rvion/dev/repro/node_modules/flow-bin/flow-osx-v0.66.0/flow
[2018-02-21 22:41:41] version=0.66.0
[2018-02-21 22:41:41] Parsing
[2018-02-21 22:41:41] Building package heap
[2018-02-21 22:41:41] Loading libraries
[2018-02-21 22:42:27] Resolving dependencies
[2018-02-21 22:42:28] to_merge: Focused: 2, Dependents: 0, Dependencies: 0
[2018-02-21 22:42:28] Calculating dependencies
[2018-02-21 22:42:28] Merging
[2018-02-21 22:42:28] Done
[2018-02-21 22:42:28] Checked set: Focused: 2, Dependents: 0, Dependencies: 0
[2018-02-21 22:42:28] Server is READY
[2018-02-21 22:42:28] Took 46.600281 seconds to initialize.
[2018-02-21 22:42:28] Status: OK

I

./node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.66.0

.flowconfig:

[ignore]
.*/node_modules/*

[libs]
./lib.js
./node_modules/.bin/flow ls --explain
ImplicitlyIncluded    /Users/rvion/dev/repro/package.json
ImplicitlyIncluded    /Users/rvion/dev/repro/package-lock.json
ExplicitLib           /Users/rvion/dev/repro/lib.js
ConfigFile            /Users/rvion/dev/repro/.flowconfig
killall flow
./node_modules/.bin/flow

No matching processes belonging to you were found
Launching Flow server for /Users/rvion/dev/repro
Spawned flow server (pid=87797)
Logs will go to /private/tmp/flow/zSUserszSrvionzSdevzSrepro.log
Monitor logs will go to /private/tmp/flow/zSUserszSrvionzSdevzSrepro.monitor_log
Please wait. Server is initializing (parsed files 3): -

# [... wait time ...]

๐Ÿ“ I came across this bug while tesing my ts2flow converter that generates libdefs from *.d.ts files.

flow-lib-loading-taking-forever's People

Contributors

rvion avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.