erlang-language-platform icon indicating copy to clipboard operation
erlang-language-platform copied to clipboard

Automatic Code Reload on a running node

Open cfclavijo opened this issue 10 months ago • 1 comments

erlang_ls provides a nice feature that connects the Language server with a running node, this allows you to edit a module and it will be automatically reloaded on such running node. I think this is a great feature as it allows you to have instant feedback, facilitating a "Shell-driven development".

In the case of erlang_ls, there is a configuration parameter called code_reload where you provide the node's sname

cfclavijo avatar Jun 05 '25 05:06 cfclavijo

Thanks for getting in touch @cfclavijo . In principle, this is doable. As part of ELP, an Erlang "sidecar" is started and we have a bi-directional communication with the Rust language server. What we could is, on save, optionally send a request to the Erlang sidecar which would then connect to the target node and perform a custom operation. Everything should be specified via config and the behaviour should be disabled by default. This should give a similar experience to Erlang LS.

robertoaloi avatar Jun 05 '25 12:06 robertoaloi