这是一个创建于 3998 天前的主题,其中的信息可能已经有所发展或是发生改变。
比如我在编译一段python代码的时候,打印出下面的track:
python test.py
Traceback (most recent call last):
File "test.py", line 16, in <module>
bl = nbcb.BanksGetter().fetchBankList();
File "/home/ccheng/workspace/PromotionScrachServer/scratch/nbcb.py", line 17, in fetchBankList
print self.getTitleByUrl("http://www.nbcb.com.cn/xyk/thsh/nb/03/31706.shtml");
File "/home/ccheng/workspace/PromotionScrachServer/scratch/nbcb.py", line 58, in getTitleByUrl
soup = self.getSoup(url);
File "/home/ccheng/workspace/PromotionScrachServer/scratch/base.py", line 22, in getSoup
f = openUrl(url);
NameError: global name 'openUrl' is not defined
make: *** [test] Error 1
那么因为设置了errorformat, 那么vim自动跳转到了File "test.py", line 16, in <module>
bl = nbcb.BanksGetter().fetchBankList();这一行,可是我真正关心的是 File "/home/ccheng/workspace/PromotionScrachServer/scratch/base.py", line 22, in getSoup
f = openUrl(url); 这一行,所以每次在编译报错的时候我都会用:cla跳转到最后一个error进行查看,有什么办法能够解决这个问题吗?