-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover on a react prop doesn't always point to the right type #385
Comments
Same kind of problem Here I am trying to hover my In other "non-jsx" places, this it totally working as expected. Only the thing I have the cursor on is highlighted I recently started to become annoyed by this when doing a screencast (lol) I was like "now we can see what type is this var" and the effect was no good 😂 Every time I want to tackle something in this repo, I feel so dump. I don't even know how to look at. @jaredly? or maybe @anmonteiro - sorry I just looked at top 2 contributors haha |
I discussed about this with @bloodyowl and he told me that maybe the jsx ppx was the culprit because of some code locations being somehow not correct. Poke @rickyvetter This is also causing lots of various issue, like cmd+click being broken (always bringing you to react.createElement reason definition) & autocomplete completely lost & broken too. |
This is likely a question for the JSX ppx. @rickyvetter |
It seems there is a know issue on react-react reasonml/reason-react#429 |
Hey folks. Most recent version of BuckleScript (I believe >7.1.1) has a bunch of PPX changes that will make this better. There are still a couple known problems that I'm working on, if you have specific cases to report please make an issue on https://github.com/reasonml/reason-react and include BuckleScript version and ReasonReact version. This will help greatly in getting a repro and being able to address. |
Here's a screenshot of what I mean. I'm hovering over
paddingBottom
inside the call toReactDOMRe.Style.make
and the highlight is wrong and the type is also wrong.The text was updated successfully, but these errors were encountered: