我正试图在我的emacs中安装flycheck google-cpplint。但我知道这个错误:
(flycheck-mode 1)
(eval-after-load 'flycheck
'(progn
(require 'flycheck-google-cpplint)
(flycheck-add-next-checker 'c/c++-cppcheck
'c/c++-googlelint 'append)))
(custom-set-variables
'(flycheck-googlelint-verbose "3")
'(flycheck-googlelint-filter "-whitespace,+whitespace/braces"))但这行不通。我得到以下错误:
Error: (user-error "Configured syntax checker c/c++-googlelint cannot be used") 我也不知道原因。我安装了cpplint,如果从命令行使用它,它就能正常工作。有什么建议吗?
发布于 2014-07-14 18:21:03
谷歌-林特使用cpplint。为了运行语法检查,您必须告诉emacs在哪里找到cpplint.py可执行文件。
您可以找到cpplint文件这里。
然后,您需要将其添加到文件中:
(custom-set-variables
'(flycheck-c/c++-googlelint-executable "/path/to/cpplint.py"))https://stackoverflow.com/questions/22598919
复制相似问题