V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ufo22940268
V2EX  ›  问与答

vim在编译python之后总是跳转到到第一个error

  •  
  •   ufo22940268 · 2013-06-17 10:45:18 +08:00 · 2259 次点击
    这是一个创建于 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进行查看,有什么办法能够解决这个问题吗?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1783 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.