LSP outside of the OCaml Platform #1562
gr1mpatr0n
started this conversation in
General
Replies: 2 comments 4 replies
-
Yes, But. The vast majority of ocamllsp users use dune, so it wouldn't be sensible for us to invest in other build systems. You will need to lead the way on this if you'd like to see this happen. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I can add a few more pointers here:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi OCamlers -
I raise a query here that has been asked before on the forums. It received a negative response, so I am satisfied if the response now is the same.
At my organisation, we do not use Dune as our build system for a plethora of reasons. I do not intend for this to be a criticism of Dune, as it clearly serves the ecosystem well. It also relates to our requirements in a large, multi-language environment. Alas, some reasons include:
dune buildfor LSP to become active (see the Rust ecosystem for how this should be managed)dynamic_include, as well as confusing limitations.We instead use BUCK2, which has good support for OCaml, in combination with some Python scripts which manage switches and creating Starlark rules based on OPAM packages. This works wonders for us - super fast builds with excellent incremental builds and caching, easy integration of PPX, JS stuff and so on.
One trade off however, is that we now have no LSP. It seems that the reason raised in the past was that the LSP communicates with Dune to understand artifact locations etc.
My question, therefore, is - is there any way we can plumb up our Buck2 build system to offer that same information for the LSP? If not, can abstractions be made so that we can do such a thing?
I look forward to your comments.
Best,
Ben
Beta Was this translation helpful? Give feedback.
All reactions