Closed Ligerx closed 5 years ago
The issue seems to be from Flow itself. An update seemed to break hover type information. https://github.com/flowtype/flow-for-vscode/issues https://github.com/flowtype/flow-for-vscode/issues/310 https://github.com/facebook/flow/issues/7723
I'm going to try downgrading flow and see if that fixes anything
Downgraded to v0.72.0 in 18e0f3d9198e205bdba91d08e171c8a450d7e563. I also disabled the LSP (language server protocol) in vscode-flow.
Hook definitions didn't get added until v0.87.0 though https://github.com/facebook/flow/releases/tag/v0.87.0
Check back in later when this gets fixed. Then upgrade flow version and reenable LSP
There seems to be a PR that was accepted to fix the issues with the latest Flow version and LSP. https://github.com/facebook/flow/commit/44f313b1ecd
After a new release gets pushed, update (v0.102.0). They seem to release pretty often. https://github.com/facebook/flow/releases
Side Note: Just as I was wrapping up typing redux, the VSCode flow plugin decided to break =( https://github.com/flowtype/flow-for-vscode/issues/341
@Ligerx You should use plugin with useLSP=true
. LSP mode is much better (feature and performance wise) compared to useLSP=false
. useLSP=false
is there mainly to support old version of flow (<0.75).
Oh hey thanks for checking in @Mayank1791989. I downgraded to 0.72 because hover type definitions weren't working in vscode, but I saw that someone fixed this for the next flow release.
So once flow and flow for vscode get their next releases, everything should be working smoothly.
Fixed in 0bdf81cc7f8842e8b0f5f6e048fb790d2fced135 and 51617294b7e01d44340c7d0ed770ad11e2d1d349
See comments in PR https://github.com/Ligerx/TachiWeb-React/pull/58
and https://github.com/Ligerx/TachiWeb-React/pull/58/commits/6df6151af76240883431919f069004a535292076