hackwaly / vscode-ocaml

An extension for VS Code which provides support for the OCaml language.
MIT License
170 stars 26 forks source link

missing module if build dir is not current dir #92

Open self-creative opened 7 years ago

self-creative commented 7 years ago

image

self-creative commented 7 years ago

.merline can solve it

swuecho commented 7 years ago

have similar issues.

hackwaly commented 7 years ago

@swuecho https://github.com/ocaml/merlin/wiki/project-configuration

swuecho commented 7 years ago

@hackwaly thanks for quick reply. unfortunately, still have probelm.

I have a repo https://github.com/swuecho/test_vscode, with two branch. the master branch works pefectly. (thank for this amazing package), but the 'not_work' branch do not work as expected. the difference is util.ml in it. jbuilder build main.exe will compile the the main.ml and both branch run correctly.

hackwaly commented 7 years ago

Can't reproduce your problem. image

swuecho commented 7 years ago

thanks for testing. that is weird.

➜  ~ uname -a           
Linux hao-home 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
➜  ~ code -v
1.13.1
379d2efb5539b09112c793d3d9a413017d736f89
➜  ~ 

@self-creative are you on linux too?

hackwaly commented 7 years ago

No, mine is mac. Which merlin version are you using?

swuecho commented 7 years ago

➜ ~ which ocamlmerlin
/home/hwu/.opam/4.04.0/bin/ocamlmerlin ➜ ~ opam list | ack merlin merlin 2.5.4 Editor helper, provides completion, typin

hackwaly commented 7 years ago

I have no idea with you problem. You can use MERLIN_LOG env to figure out what's wrong.

You can export the MERLIN_LOG variable, e.g. MERLIN_LOG=/tmp/merlin.log and merlin will then log all its communication with your editor in that file.

swuecho commented 7 years ago

@hackwaly thanks. the 'not_work' branch works for me now.