3 ms·
None exist. So far the best solution is to use Emacs with [2] * merlin-mode, for autocompletion * ocp-indent, for external code formating... think running gof
by ane 11y ago
None exist. So far the best solution is to use Emacs with [2]
* merlin-mode, for autocompletion
* ocp-indent, for external code formating... think running gofmt on every enter press (surprisingly, it's fast enough unless your file is 2k lines long)
* tuareg-mode (everything else, REPL etc.)
* flycheck-ocaml for syntax checking
The "real" IDE plugins aren't even close and that's saying a lot since the hodge-podge of addons I just listed isn't
The default Emacs user experience is awful so if you're a Vim user, just install the "evil" package and enable it inside Emacs by doing M-x evil-mode, then you have Vim inside Emacs. Or use Vim, but the experience isn't as complete w.r.t. tooling[3]. There's always Spacemacs as well[1].
[1] https://github.com/syl20bnr/spacemacs https://github.com/syl20bnr/spacemacs
[2] https://github.com/the-lambda-church/merlin/wiki/emacs-from-scratch https://github.com/the-lambda-church/merlin/wiki/emacs-from-...
[3] https://github.com/the-lambda-church/merlin/wiki/vim-from-scratch https://github.com/the-lambda-church/merlin/wiki/vim-from-sc...
- teh64 11y agoThanks for the links! I am currently using Sublime Text with the merlin plugin, which is pretty good. But I guess I should learn emacs to use OCaml.
- Drup 11y agoStick with Sublime Text. As long as you have merlin, the rest doesn't matter.
- e_d_g_a_r 11y agoSecond Drup here, merlin is the key feature. (I didn't know sublime had a merlin plugin)
- teh64 11y agoYeah it's this one: https://github.com/cynddl/sublime-text-merlin https://github.com/cynddl/sublime-text-merlin (The one on Sublime Package Control is the same, but seems to be out of date and doesn't work).
- zhanwei 11y agoVim works well enough for me. I got merlin-mode, ocp-indent and syntax checker to work in vim but not REPL.