From 2b251a2cee045d42a311df84ff2a27fd53a7d9f1 Mon Sep 17 00:00:00 2001 From: still-dreaming-1 Date: Wed, 28 Dec 2016 11:10:47 -0700 Subject: [PATCH] Fix PHP lint generic error without line number This makes php output more specific error messages. The format is the normal one ALE expects, but on some systems ALE does not work with PHP unless the display_errors=1 option is used. Without that option php will only output a generic message without a line number like "Errors parsing index.php" --- ale_linters/php/php.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim index cbbd088..573036d 100644 --- a/ale_linters/php/php.vim +++ b/ale_linters/php/php.vim @@ -34,6 +34,6 @@ call ale#linter#Define('php', { \ 'name': 'php', \ 'executable': 'php', \ 'output_stream': 'both', -\ 'command': 'php -l --', +\ 'command': 'php -l -d display_errors=1 --', \ 'callback': 'ale_linters#php#php#Handle', \})