ufo22940268
V2EX  ›  问与答

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

  •  
  •   ufo22940268 · Jun 17, 2013 · 2629 views
    This topic created in 4715 days ago, the information mentioned may be changed or developed.
    比如我在编译一段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进行查看,有什么办法能够解决这个问题吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5244 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:56 · PVG 11:56 · LAX 20:56 · JFK 23:56
    ♥ Do have faith in what you're doing.