使诗篇输出适应Neomake

时间:2018-04-13 13:46:54

标签: php neovim errorformat neomake psalm-php

我试图想出正确的错误格式传递到Neomake,以处理来自psalm(https://github.com/vimeo/psalm)的输出。

示例输出:

|| ERROR: UndefinedClass - application/libraries/PluginManager/PluginBase.php:58:13 - Class or interface LimeSurvey\PluginManager\XML does not exist

(双栏仅在:lopen列表中可见,而不在控制台中。不知道为什么。)

错误格式我尝试过:

||\ ERROR:\ %m\ -\ %f:%l:%c

不确定我错过了什么。感谢任何提示或链接或其他任何内容。

1 个答案:

答案 0 :(得分:1)

解决了

'errorformat': '%tRROR:\ %s\ \\-\ %f:%l:%c\ \\-\ %m,%tNFO:\ %s\ \\-\ %f:%l:%c\ \\-\ %m',