prosyslab-classroom / is893-2020-fall

6 stars 7 forks source link

Merlin Error: Unbound module Llvm #19

Closed luxroot closed 4 years ago

luxroot commented 4 years ago

Maybe it's trivial thing to someone, but I'm annoyed with error message says "Unbound module Llvm" To solve this, we need to edit src/.merlin file

and add a line PKG llvm right after EXCLUDE_QUERY_DIR

After editing src/.merlin like this

EXCLUDE_QUERY_DIR
PKG llvm
blah blah ~

We can make most of some type-checking, and auto-completion feature for Llvm module. (which is a feature of merlin package) The most important thing is that we're free from error messages.

Sorry for making an issue late at night.

tomtomjhj commented 4 years ago

I've been using ocaml-lsp (which uses merlin under the hood) and that has never been an issue for me. What do you use for editing?

luxroot commented 4 years ago

I've been using ocaml-lsp (which uses merlin under the hood) and that has never been an issue for me. What do you use for editing?

I'm using vim and dotfiles of professor. Maybe I'm the only one having issues..

KihongHeo commented 4 years ago

Can you first double check that you are using the correct OCaml switch (opam switch)? Also run make first.

Let me know if you still have the same issue.

luxroot commented 4 years ago

It seems like I haven't run make at first time. My bad..