flow / flow-bin

Binary wrapper for Flow - A static type checker for JavaScript
https://flow.org
Other
536 stars 48 forks source link

Slow Server rechecks #176

Closed moroine closed 2 years ago

moroine commented 4 years ago

I'm currently experiencing slow recheck issues (it's 10x faster to just stop & start).

Flow version: 0.131.0 using types-first

.flowconfig

[ignore]
; ignore is using regex syntax
<PROJECT_ROOT>/\.circleci/.*
<PROJECT_ROOT>/config/.*
<PROJECT_ROOT>/dist/.*
<PROJECT_ROOT>/public/.*
<PROJECT_ROOT>/coverage/.*
<PROJECT_ROOT>/\..*/.*
<PROJECT_ROOT>/node_modules/.*
!<PROJECT_ROOT>/node_modules/date-fns/.*
!<PROJECT_ROOT>/node_modules/date-fns-tz/.*
!<PROJECT_ROOT>/node_modules/@nugit/.*
<PROJECT_ROOT>/node_modules/@nugit/.*\.test\.js

[include]
; include is using path (no regex)

[libs]
; libs is using path (no regex)
flow-typed

[lints]
all=error
deprecated-utility=error
implicit-inexact-object=error
ambiguous-object-type=error
sketchy-null=warn
deprecated-type=warn
unclear-type=warn
untyped-import=warn
unsafe-getters-setters=warn

[declarations]
; declarations is using regex syntax

[untyped]
; untyped is using regex syntax

[options]
; traces=3
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.mjs
module.file_ext=.json
module.file_ext=.styl
module.file_ext=.gql
module.name_mapper.extension='styl' -> 'StylModule'
module.name_mapper='^@nugit/types' -> '<PROJECT_ROOT>/node_modules/@nugit/types'
module.name_mapper='^@nugit/logger-service' -> '<PROJECT_ROOT>/node_modules/@nugit/logger-service/src/index.js'
module.name_mapper='^@nugit/env-service' -> '<PROJECT_ROOT>/node_modules/@nugit/env-service/src/index.js'
module.name_mapper='^@nugit/cache-service' -> '<PROJECT_ROOT>/node_modules/@nugit/cache-service/src/index.js'
module.name_mapper='^@nugit/core-service' -> '<PROJECT_ROOT>/node_modules/@nugit/core-service/src/index.js'
module.name_mapper='^@nugit/request-service' -> '<PROJECT_ROOT>/node_modules/@nugit/request-service/src/index.js'
module.name_mapper='^[$]public' -> '<PROJECT_ROOT>/public'
module.name_mapper='^[$]src' -> '<PROJECT_ROOT>/src'
module.name_mapper='^[$]constants' -> '<PROJECT_ROOT>/source/constants'
module.name_mapper='^[$]util' -> '<PROJECT_ROOT>/source/util'
module.name_mapper='^[$]theme' -> '<PROJECT_ROOT>/source/theme'
module.name_mapper='^[$]service' -> '<PROJECT_ROOT>/source/service'
module.name_mapper='^[$]processors' -> '<PROJECT_ROOT>/source/service/processors'
module.name_mapper='^[$]metadata' -> '<PROJECT_ROOT>/source/metadata'
module.name_mapper='^[$]icons' -> '<PROJECT_ROOT>/source/component/icons'
module.name_mapper='^[$]generalNugits' -> '<PROJECT_ROOT>/source/component/general'
module.name_mapper='^[$]nugits' -> '<PROJECT_ROOT>/source/component/nugits'
module.name_mapper='^[$]nugitsCommon' -> '<PROJECT_ROOT>/source/component/nugits/Common'
module.name_mapper='^[$]widget' -> '<PROJECT_ROOT>/source/component/widget'
module.name_mapper='^[$]types' -> '<PROJECT_ROOT>/src/types'
exact_by_default=true
experimental.const_params=true
munge_underscores=true
esproposal.optional_chaining=enable
; include_warnings=true
well_formed_exports=true
types_first=true

[strict]
nonstrict-import
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

I ran the server using flow start --debug --profile, and here are my logs: log monitor

Also I'm using https://github.com/flowtype/flow-for-vscode extension, I found out removing option Run On Edit helped but not totally. (logs here are with check on save only).

mroch commented 2 years ago

Closing out old issues. This repository is just packaging prebuilt binaries. Please report issues with Flow itself on facebook/flow