【问题标题】:Syntastic and jshint not displaying errors in vimSyntastic 和 jshint 在 vi​​m 中不显示错误
【发布时间】:2013-10-03 11:07:33
【问题描述】:

我无法让 Syntastic 在 MacVim 中处理 JavaScript 文件。如果我保存有错误的文件,则不会显示任何内容:没有误差范围。

如果我运行:SyntasticInfo,那么我会看到:

Syntastic info for filetype: javascript
Available checkers: jshint
Currently active checker(s): jshint

如果我直接运行jshint,使用:!jshint %,那么我会看到预期的错误。

【问题讨论】:

    标签: vim syntastic


    【解决方案1】:

    我有一个自定义的syntastic_javascript_jshint_conf 设置:

    let g:syntastic_javascript_jshint_conf="~/.jshintrc"
    

    ...~/.jshintrc 文件丢失。重新创建它解决了问题,现在我得到了误差范围。

    更新添加:我已向我的.vimrc 添加了一项功能,以便它跟踪“最近的”.jshintrc 文件:https://github.com/rlipscombe/vimrc/blob/master/vimrc#L176

    【讨论】:

      猜你喜欢
      • 2014-03-09
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      • 2019-06-14
      • 2011-11-06
      • 1970-01-01
      • 2016-06-30
      相关资源
      最近更新 更多