我尝试运行 oclint 0.7,它开始通过我的项目,但最终失败了:
Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/lqi/Projects/LQRDG/oclint-0.7/build/llvm-install/include/llvm/Support/Casting.h, line 97.
Stack dump:
0. <eof> parser at end of file
一些搜索表明这实际上是 0.7 的一个已知问题,解决方案是升级到开发版本(0.9)。我使用了 oclint 网站上的链接,并运行了与 0.7 工作相同的一组命令。我得到:
$ oclint-json-compilation-database -e Pods/** -- -max-priority-1 20 -max-priority-2 50 -max-priority-3 100 -report-type pmd -o Build/oclint.xml
而 oclint 只是坐在那里,没有输出(已经这样了一个多小时)。如果我 ctrl+c 我得到这个(如果它有用,我不知道)
File "~/Downloads/oclint-0.9.dev.648e9af/bin/oclint-json-compilation-database", line 85, in <module>
exit_code = subprocess.call(oclint_invocation, shell=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1357, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call
return func(*args)
有没有人有这个问题或任何想法我可能做错了什么?