Questions tagged [merlin]

Merlin is a context-sensitive autocomplete tool for OCaml.

Merlin is a context-sensitive autocomplete tool for OCaml. It provides modern IDE features and out-of-the-box support for Emacs and Vim.

External contributors added support for Visual Studio Code, Sublime Text and Atom.

Links

27 questions
1
vote
2 answers

How to make Merlin (OCaml) ignore some lines?

I use Merlin with Emacs to edit OCaml code. It normally works perfectly fine, but I wound the following problem: I'm need to use a package, built by someone else, that adds to OCaml some keywords not native to the language. Since I use the package…
Skuge
  • 1,010
  • 2
  • 11
  • 28
0
votes
1 answer

Merlin two tower model data training error (ValueError: high is out of bounds for int32)

model.compile(optimizer="adam", run_eagerly=False, metrics=[mm.RecallAt(10), mm.NDCGAt(10)]) model.fit(train, validation_data=valid, batch_size=4096, epochs=3) ValueError Traceback (most recent call…
0
votes
0 answers

Looking for outline minor mode for OCaml buffers (with Tuareg and Merlin)

I am missing one feature in emacs Tuareg mode: an outline of the current OCaml buffer with a list of top-level definitions. There is a similar feature in Proof General mode for Coq which I find very useful. If there is an additional package or some…
krokodil
  • 1,326
  • 10
  • 18
0
votes
1 answer

Partial parsing and recovery of Menhir

There is a very small calculator in Sedlex and Menhir. Now, I would like to make the calculator to be able to parse expressions like 1+. So I modified parser.mly to ... ... main: expr EOL { $1 } ; expr [@recovery (E_int 0)]: …
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
0 answers

Z3-OCaml not working: Unbound module Z3 Merlin

I am trying to use Z3 in OCaml in VSCode (Mac). To make use of it, I wrote the following code: open Z3 but it has raised me the following error: Unbound module Z3 Merlin So I understand Z3 is not installed. However, I have just run: opam install z3,…
Theo Deep
  • 666
  • 4
  • 15
0
votes
1 answer

Having problems enabling SSL on lighttpd installed on ASUSWRT router

I have an ASUS RT-AC5300 router with Merlin firmware. I installed Entware on it, then followed this article to install lighttpd: Lighttpd-web-server-with-PHP-support-through-Entware So the web server works fine through http, but after adding a…
Steven
  • 83
  • 3
  • 9
0
votes
1 answer

ocamlmerlin issue in Visual Studio Code

I've been using VSC on my MacBook Pro, but recently when I open .ml files in VSC I have started getting a message in the lower right-hand corner of the window that says "Cannot find merlin binary at 'ocamlmerlin'." Additionally, in Output I get the…
0
votes
1 answer

Cannot get utop and merlin to work with Core and Base

The packages are installed correctly. opam install core [NOTE] Package core is already installed (current version is v0.14.1) opam install base [NOTE] Package base is already installed (current version is…
0
votes
1 answer

Appropirate practices for OCaml interactive development using VScode and the terminal

I wonder which is the one comfortable way to program in Ocaml (in MAC). I am currently using the VSCode to detect the syntactic and type errors, but then I use online interpreters to compile (it creates the ml) and to run examples on it; I mean, to…
Theo Deep
  • 666
  • 4
  • 15
0
votes
1 answer

Is there any way to auto configure OCaml Merlin?

It seems that Merlin requires manually configuring it using the .merlin file. IntelliSense does not require anything like that when using VisualStudio (at least when using it with languages like C++/C#/F#). This includes finding implementations of…
namesis
  • 157
  • 10
0
votes
1 answer

Where does the automatically generated file #hello.ml# for hello.ml come from?

I am working on a file called hello.ml in Ocaml under emacs Taureg Merlin mode, and I realize there's file #hello.ml# (not hellocaml.ml~) in the same directory. I have only used the toplevel with #use "hello.ml" and called ocamlbuild during the…
user10661584
0
votes
1 answer

Merlin plugin for Ocaml with VIM : autocompile the file when saving

I recently installed Ocaml and its Merlin plugin for a university course. I am using Vim as a text editor. I have heard that it is possible to configure Merlin to compile automatically the .ml file when saving, but I can not find anything about that…
Raf
  • 9
  • 4
1
2