From d624e32b9e577045391c5606f628b0fc94179f1a Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Wed, 10 Sep 2014 12:07:10 +0100 Subject: [PATCH] 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. --- syntax_checkers/erlang/erlang_check_file.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/erlang/erlang_check_file.erl b/syntax_checkers/erlang/erlang_check_file.erl index fc11607e..367c110e 100755 --- a/syntax_checkers/erlang/erlang_check_file.erl +++ b/syntax_checkers/erlang/erlang_check_file.erl @@ -32,7 +32,7 @@ main([FileName, "-rebar", Path, LibDirs]) -> %io:format("~p~n", [LibDirs1]), compile(FileName, LibDirs1); -main([FileName, LibDirs]) -> +main([FileName | LibDirs]) -> compile(FileName, LibDirs). compile(FileName, LibDirs) ->