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

missing module if build dir is not current dir

Open self-creative opened this issue 8 years ago • 10 comments

image

self-creative avatar May 01 '17 09:05 self-creative

.merline can solve it

self-creative avatar May 01 '17 10:05 self-creative

have similar issues.

swuecho avatar Jun 16 '17 00:06 swuecho

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

hackwaly avatar Jun 16 '17 00:06 hackwaly

@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.

swuecho avatar Jun 16 '17 00:06 swuecho

Can't reproduce your problem. image

hackwaly avatar Jun 16 '17 01:06 hackwaly

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?

swuecho avatar Jun 16 '17 01:06 swuecho

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

hackwaly avatar Jun 16 '17 01:06 hackwaly

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

swuecho avatar Jun 16 '17 01:06 swuecho

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.

hackwaly avatar Jun 16 '17 02:06 hackwaly

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

swuecho avatar Jun 16 '17 05:06 swuecho