You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
Continuing the above leads to nothing, but accidental primitive keyword hits from some other files or shortcuts, like "req", etc.
Continue saving (ctrl+s):
import*asReactfrom'react';// Cannot use property `PureComponent` [1] with less than 1 type argument.classAppextends|React.PureComponent|{}
So typechecking via flow-bin is the only thing that works. Specifying the generic type(s) removes the error.
Basically everything works like this. The only completion I get is randomly fetched symbols, keywords and shortcuts. So yes, when I create a class AppGrid, it will propose me in JSX to complete App| to AppGrid, but without any understanding of the components props.
Last, a bit different example:
/* @flow */import*asReactfrom'react';typeProps={property: string,};classAppextendsReact.PureComponent<Props,void>{render(){return(<div>{this.props.p|}</div>//ctrl+space - "property" hidden between generic props);}}
Not even sure if the "property" above is recognized correctly as member of props, because it does not show up at the top and has no letter indicating the elements type (like C for class). And I have show flow autocomplete results first enabled!
edit:
With cursor at this.p| in the above example It does not propose "props", instead some generic stuff and "Props", which is dumb symbol name proposal from the type Props defined above, not flow.
Issue and Steps to Reproduce
Create file
src/App.js
and type, /* @flow */ at the top implied:Completion proposal: nothing.
Continue:
Diagnostic:
Mouse over |React| shows the same diagnostic message in a tooltip, without any extras like "import".
Continue with manual import attempt:
Continuing the above leads to nothing, but accidental primitive keyword hits from some other files or shortcuts, like "req", etc.
Continue saving (ctrl+s):
So typechecking via flow-bin is the only thing that works. Specifying the generic type(s) removes the error.
Basically everything works like this. The only completion I get is randomly fetched symbols, keywords and shortcuts. So yes, when I create a class AppGrid, it will propose me in JSX to complete App| to AppGrid, but without any understanding of the components props.
Last, a bit different example:
Not even sure if the "property" above is recognized correctly as member of props, because it does not show up at the top and has no letter indicating the elements type (like C for class). And I have
show flow autocomplete results first
enabled!edit:
With cursor at
this.p|
in the above example It does not propose "props", instead some generic stuff and "Props", which is dumb symbol name proposal from the type Props defined above, not flow.Expected Behavior
Autocomplete/import in given examples
Actual Behavior
Tell us what happens instead.
Versions
Additional Details
apm ls --installed
):├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
src
The text was updated successfully, but these errors were encountered: