IDE for OCaml language
Asked Answered
O

3

33

Is there any trusted OCaml IDE other than Camelia ?

I would prefer an eclipse based IDE if existed.

Orthopedics answered 7/2, 2013 at 9:42 Comment(1)
Lot of useful content: github.com/rizo/awesome-ocamlKovach
D
32

Edit: a decade later (2022), VS Code OCaml Platform is probably the best option.

Editors

• Emacs

◦ ocaml-mode from the standard distribution

◦ alternative tuareg-mode https://forge.ocamlcore.org/projects/tuareg/

− cheat-sheet: http://www.ocamlpro.com/files/tuareg-mode.pdf

◦ camldebug intergration with debugger

◦ type feedback with C-c C-t key shortcut, needs .annot files

• Vim

◦ OMLet plugin http://www.lix.polytechnique.fr/~dbaelde/productions/omlet.html

◦ For type lookup: either https://github.com/avsm/ocaml-annot

− or http://www.vim.org/scripts/script.php?script_id=2025

− also? http://www.vim.org/scripts/script.php?script_id=1197

• Neovim

◦ Install ocaml-lsp-server in opam, add lspconfig in neovim and enable ocamllsp in lspconfig

• Eclipse

◦ OCaml Development Tools http://ocamldt.free.fr/

◦ an old plugin OcaIDE http://www.algo-prog.info/ocaide/

• TypeRex http://www.typerex.org/

◦ currently mostly as typerex-mode for Emacs but integration with other editors will become better

◦ Auto-completion of identifiers (experimental)

◦ Browsing of identifiers: show type and comment, go to definition

◦ local and whole-program refactoring: renaming identifiers and compilation units, open elimination

• Some dedicated editors

◦ OCamlEditor http://ocamleditor.forge.ocamlcore.org/

◦ ocamlbrowser inspects libraries and programs

− browsing contents of modules

− search by name and by type

− basic editing, with syntax highlighting

◦ Cameleon http://home.gna.org/cameleon/ (older)

◦ Camelia http://camelia.sourceforge.net/ (even older)

NEW: editor OCaml-top, with syntax highlighting, indentation, type display, work well on all systems.

NEW: Merlin, similar to TypeRex but works better with work-in-progress files, has front-ends to Vim and Emacs currently.

Derickderide answered 8/2, 2013 at 7:28 Comment(0)
M
12

VSCode with ReasonML / OCaml plugin:

enter image description here

Install the VSCode plugin/extension with:

enter image description here

Jetbrains / IntellijIDEA ultimate:

enter image description here

With Jetbrains, install the plugin here:

enter image description here

You get intelli-sense / auto-complete with both editors using these plugins.

Megathere answered 6/1, 2019 at 0:28 Comment(2)
I like Jetbrains products, so I pay about $150/year for IDEA Ultimate which includes all Jetbrains language plugins tmk.Megathere
I've used both VSCode and Jetbrains. VSCode's color coding seem light years away and I've gone ahead with using VSCodeEvade
P
3

Maybe you can check this topic: Looking for OCaml IDE

For eclipse based IDE you have OcaIDE

Pilgarlic answered 7/2, 2013 at 10:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.