vim-erlang-compiler
is an Erlang syntax checking and compiler plugin for
Vim.
:help vim-erlang-compiler
.If vim-erlang-compiler
shows you a compilation error even though there is no
compilation error when using your usual build tool, please follow these steps:
Compile your project with your usual build tool first (e.g., rebar compile
, rebar3 compile
or make
), and then try again with
vim-erlang-compiler
.
Reason: vim-erlang-compiler
needs the ebin
directories and app
files
to be in place, because that is how Erlang itself finds applications when
compiling the -include_lib
directives.
Execute the following command from the terminal:
$ /path/to/vim-erlang-compiler/compiler/erlang_check.erl \
--verbose /path/to/myfile.erl
Reason:
vim-erlang-compiler
uses erlang_check.erl
to compile the Erlang
source files. The --verbose
option shows more information, which might
help you to figure out the problem.
If this produces the same error, we can be sure that the problem is on the Erlang side (not the Vim side).
Check the existing open issues on GitHub. Someone may have already reported the same problem.
If none of the above helps, open a new issue with the following information:
Which build system do you use? rebar2
, rebar3
, Makefile, or nothing?
What is the piece of code that cannot be compiled?
What is the verbose output of the erlang_check.erl
script? (See
step 2.)
It helps if you can share the project which fails to compile (or a simplified version of it).
g:erlang_make_options
but it didn't take effectSee the "Reloading" paragraph in the g:erlang_make_options_rules
section in
the user documentation.
Please read the Contributing section of the
vim-erlang
README.
If you modify compiler/erlang_check.erl
, please:
update the tests in the vim-erlang
repository.
also modify vim-erlang-omnicomplete
(if you modify the
"load build information" code block)