Commit Graph

14 Commits

Author SHA1 Message Date
Jean-Sébastien Pédron
f19b05d301
erlang_check_file.erl: Add support for Erlang.mk
Now, it first determines the compilation "profile" (are we building tests
or the program itself?) and the build tool. Once it found it - either
rebar when there is a `rebar.config` file, or Erlang.mk when there is a
`erlang.mk` file - it calls the appropriate function to query ERL_LIBS
paths and compiler options.

The Erlang.mk function uses the `show-ERL_LIBS`, `show-ERLC_OPTS` and
`show-TEST_ERLC_OPTS` Make targets to query those informations.

Signed-off-by: Gerhard Lazu <gerhard@lazu.uk>
2017-01-13 10:17:20 +01:00
Radek Szymczyszyn
0154e9d096 Translate relative paths from non-root rebar.config files 2015-06-29 15:36:43 +02:00
Rob Ashton
3dda9b833c Apps should be used for include_lib too 2015-06-12 11:15:14 +01:00
Rob Ashton
0cde758958 replaced erlang checker with the one from vimerl that works without rebar 2015-03-18 14:13:44 +00:00
Russ Garrett
d624e32b9e Erlang: correctly handle additional LibDirs
The compile function expects a list of paths in the LibDirs parameter,
however when calling erlang_check_file.erl with an additional path (for
example when using the "g:syntastic_erlc_include_path" option), a
string would be passed instead. Because strings in Erlang are lists,
each character of the string would have been interpreted as a lib path.
2014-09-10 12:07:10 +01:00
Ahmad Sherif
c55384c0ec Transform code using pmod_pt module before checking
Helps suppressing the error "parameterized modules are no longer supported" which libraries like ChicagoBoss depend on.
2014-09-01 17:53:16 +03:00
Radek Szymczyszyn
1fcb6b89b5 Don't forget about ebin/ 2014-03-05 19:44:43 +01:00
Radek Szymczyszyn
2286363adb Properly add deps/*/include to header file path 2014-03-05 19:34:56 +01:00
Radosław Szymczyszyn
105965c821 Simplify main/1 heads 2014-03-05 19:18:41 +01:00
LCD 47
935ee1d95f Merge pull request #757 from nougad/erlang_rebar
Add possibility to specify a rebar file as parameter in erlang_check_file.erl
2013-09-19 15:47:52 -07:00
stwind
c541515007 Erlang: support files under test/ folder 2013-09-12 14:29:13 +08:00
Florian Eitel
8c698b15d1 Add possibility to specify a rebar file as parameter in erlang_check_file.erl
I want to use lib_dirs and sub_dirs from rebar file and run compile with
this paths. So I search for the next rebar.config file and pass this in
g:syntastic_erlc_include_path.

see: https://github.com/scrooloose/syntastic/issues/685
2013-08-19 09:57:27 +02:00
Olav Frengstad
f39fba1c87 Add support for nested dirs inside src/
When having nested directories (for instance `src/protocol/tm_protocol.erl`)
autocompilation would fail. This fix adds the abspath of all depdencies to
the codepath and sets compile option {i, _} to support both `deps/` and `lib/`.
2013-04-18 17:12:45 +02:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00