5 ms·
I am currently doing some interventions in some Ocaml code written by Big Co. The world is completely different between you writing your program in your corner,
by nraynaud 8y ago
I am currently doing some interventions in some Ocaml code written by Big Co. The world is completely different between you writing your program in your corner, and stumbling in a codebase with a serious history and a task to do on it efficiently.
It's not going quickly nor easily, and there is no real help from Jetbrains IDE.
- toolslive 8y agoit should at least offer things like "show-type-of-expression-at-current-cursor-position"
- nraynaud 8y agoIt doesn't, it colors some keywords, it tries to follow symbols, but doesn't know the difference between 'let rec' and 'let', so it's tricky.
- Drup 8y agoMaybe JetBrain doesn't, but lot's of editor do, thanks to merlin, including vscode.
- nraynaud 8y agoThanks, I'll download it, but it's really disruptive to switch IDE. (I do a lot of langages at the same time hence the jetbrains suscription) edit: it's a nightmare of dependency hell to install merlin, I'm giving up for now.
- AlexCoventry 8y agoWhat package manager? `opam install merlin` should just work. OCaml has a relatively immature ecosystem, but merlin is a great tool.
- nraynaud 8y agoIt doesn't just work for me, no detailed error message I'm 3 or 4 levels down (vscode->plugin->homebrew->opam->jbuilder-> doesn't work). https://gist.github.com/nraynaud/deeacbb67c88646fd6754edba6e2196d https://gist.github.com/nraynaud/deeacbb67c88646fd6754edba6e... Sorry, I'm a bit abrasive, but I spend a lot of time with crappy tooling of all kind, sometimes I'm envious of monoproject people (and then I remember that actually I don't do well in monotony).
- djs55 8y agoI think `opam` failed to find `jbuilder` on the `$PATH`, even though (presumably) `opam` has built it and installed it in it's own `bin/` directory. Try running `eval $(opam config env)` to update the `$PATH` and trying the commands again.
- AlexCoventry 8y agoIt looks like out output some logfiles. Anything in them? Apologies, at any rate, for being wrong about it just working.
- shikoba 8y agoIt does. Install caml-mode or tuared-mode in emacs. Add -annot to ocamlc compilation flags, and type C-c C-t et voilà.
- craigsmansion 8y agoWhy are you not using emacs? Or why did you accept the job if you don't want to use emacs?