How to make Reason Sublime Text 3 work with local ocaml switch?


#1

Is the reasonml sublime text plugin working for you guys? I am on red hat linux and can’t get auto-completion and error highlighting working. I have installed all the required plugins

  1. LSP
  2. Language Server
  3. Sublime Text plugins
  4. bsb 2.2.0 with reason-cli 3.1

Not sure if this helps I also have ocaml 4.06.1 installed via opam. I get autocompletion on Ocaml projects.


#2

This is fixed now. If you are using both ocaml(via local switch) and reason via npm/yarn. You need to switch the local ocaml to 4.02.3+buckle-master. Install merlin 2.5.4 in that switch and eval $(opam config env) to get the sublime text plugin working. Haven’t tried with code, but I assume it is the similar case.