vscode-reasonml icon indicating copy to clipboard operation
vscode-reasonml copied to clipboard

Windows WLS : Autocomplete on JSX not working

Open dotgreg opened this issue 7 years ago • 0 comments

Thanks first for that great extension and work!

I happen to have a problem on windows. I installed ocamlmerlin using wsl and mostly everything is working as expected. (insight, linting, autocomplete)

Only one thing, that is actually impacting productivity quite a bit when using reason react : the autocomplete seems working fine when using pure reason code, but as soon as I want to include a jsx component, it wont suggest anything.

so if I want to use <Testcomponent onClick={...}/> for example, Im expecting when typing <T having <Testcomponent /> as suggestion, but nothing pops up. (note here that, outside jsx, I can type "Te" and it will suggest me "Testcomponent")

Properties suggestions wont popup neither (if typing <Testcomponent o I would expect onClick as suggestion, but nothing pops up.

Once the component is typed, merlin/bsb recognizes it and gives me the linting I expect, so the problem is only on the autocomplete on jsx part.

 $which ocaml
/home/dotgreg/.opam/4.02.3/bin/ocaml
$which ocamlmerlin
/home/dotgreg/.opam/4.02.3/bin/ocamlmerlin

example of current situation : 1

example of what is expected (from an example in typescript + react) :

2

Thanks for your help and hard work!

dotgreg avatar Nov 21 '18 10:11 dotgreg