bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

merlin gives bad code completion occasionally #39

Closed fxfactorial closed 4 years ago

fxfactorial commented 6 years ago

I guess this is bsb-native's fault but I get bad code completion in some files in my project here: https://github.com/fxfactorial/ethereum-re

While working on the native code in indexNative.re, I get Error: Unbound module Types.

screen shot 2018-01-21 at 12 52 11 pm

The generated .merlin

####{BSB GENERATED: NO EDIT
B lib/bs
FLG -open Algebrethereum
FLG -ppx /Users/Edgar/Repos/ethereum-re/node_modules/bs-platform/lib/bsppx.exe
FLG -w -27 -g -no-alias-deps -color always
FLG -w -30-40+6+7+27+32..39+44+45+101-40+6+7-26-27+32..39-28-44+45
S /Users/Edgar/Repos/ethereum-re/node_modules/rex-json/lib/ocaml/native
B /Users/Edgar/Repos/ethereum-re/node_modules/rex-json/lib/ocaml/native
S src
B lib/bs/native/src
S src/js-code
B lib/bs/native/src/js-code
S src/native-code
B lib/bs/native/src/native-code
PKG lwt.unix cohttp.lwt result
####BSB GENERATED: NO EDIT}

Thanks and maybe I should be opening ticket on merlin but for reason?