emacs - Erlang EDTS compile options -
when using edts erlang emacs ide, doesn't seem me there much integration rebar, wondering how specify compile options can add together debug_info , {parse_transform, lager_transform}.
edts kinda works on .beams, , should able compile same options. allow me explain.
edts works notion of project (it's accualy xref server, lets assume more or less same). when open 1 source file, adds "project list", , adds other modules can find. of import here, fact doing based on .beam files. have 2 major significance.
first, if modules aren't compiled think create calls undefined functions (with exception of files opened in editor, of course).
second fact, if can find 1 time compiled binary, can read , reuse compile flags it. of course of study new files created in emacs won't have .beam options, compiled default ones.
so, if have issues way files compiled/modules can reference recompile them command line
$ ./rebar clean compile and reinitialize edts m-x edts-project-node-refresh or m-x edts-project-node-init
emacs erlang rebar
No comments:
Post a Comment