Flow declarations requires server restart to fix library parse errors
- Lingua principale
- Rust
- Stelle
- 22.3k
- Fork
- 1.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Flow @0.34.0
Reproduce:
1- do anything that will cause a library parse error (typo, etc). Flow will return "unexpected token"
2- Fix said error, delete said line, do anything... flow will always return same error on same line
Example:
Working declare:
`declare var CONF : Object;`
Break declares:
`declare var CONF: Object;
declare class Error;`
Flow returns `Unexpected token ;: flow-decls/flow-declare.js:4`
Fix error:
`declare var CONF: Object;
declare class Error {
}`
Flow returns `Unexpected token ;: flow-decls/flow-declare.js:4`
Delete lines, leaving us with original:
`declare var CONF : Object;`
Flow returns `Unexpected token ;: flow-decls/flow-declare.js:4`
calling:
`$flow stop
$flow start`
eliminates error.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.