Closed chenglou closed 7 years ago
I am hijacking the thread a bit. Merlin protocol changed a lot in development version. There is backward compatible mode, but which doesn't give access to new features.
So while it should work out of the box on most setups, it would be nice to port editor modes (I plan to take a look at sublime-text-merlin, but some help is welcome too :)).
Hi @chenglou, it would be nice to support Reason also. However, it seems like the parsing is done by refmt and I'm a little worried to have a single package for two different languages and two different ways of parsing (refmt using merlin & merlin directly). I assume that refmt cannot process OCaml code?
@let-def Could you point me to a list of the recent changes? Thanks!
@cynddl: you can see a WIP documentation here: https://github.com/ocaml/merlin/blob/master/doc/dev/PROTOCOL.md . I will provide you with patches asap.
@cynddl merlin has first-class support for reason; as long as it's vision 2.5.1+ and the user has the relevant reason binaries (refmt. ocamlmerlin-reason) available in $PATH everything should just work.
Sorry to bump, but we have a team member that's loathe to leave Sublime and needs to work on our Reason project. It'd be great to have a smooth merlin integration!
Just enabling Merlin on reason file should be enough to provide minimal support: in helpers.py
, is_ocaml
should returns true on reason files.
Closing this, as sublime-reason now uses LSP and also supports ocaml.
@let-def one less editor you need to test merlin on!
Hey @cynddl, I was wondering if you'd be interested in supporting Reason in your plugin? We currently have a barebone plugin here, but it'd be nice to unite the effort.