Flow declarations requires server restart to fix library parse errors
- Ngôn ngữ chính
- Rust
- Star
- 22.3k
- Fork
- 1.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.