merlin: show behavior with non-default context#10035
merlin: show behavior with non-default context#10035jchavarri wants to merge 2 commits intoocaml:mainfrom
Conversation
Signed-off-by: Javier Chávarri <javier.chavarri@gmail.com>
Signed-off-by: Javier Chávarri <javier.chavarri@gmail.com>
|
Yes, this is expected. There's a |
|
I see, thanks for the pointers. I could find the For additional context 😅 I am investigating how to make dune choose one context or another more dynamically, as we would like to have ocaml-lsp query dune for artifacts in a specific context (as part of the work in #10222). For this, I understand something like the Dune context configuration would not be enough because it can't be changed from the clients. What I'm not sure about is if the change would need to be added in the interface between ocaml-lsp and dune (I understand, the I could find the commands exposed by the ocaml-merlin server: dune/bin/ocaml/ocaml_merlin.ml Lines 27 to 29 in 6c40cb1 Would it be necessary to add some parameter to the |
The test shows how
dune ocaml merlinerrors out when trying to get artifacts generated in a non-default context. Not sure if this is the expected behavior, but it might be helpful to have it documented.