alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 39 forks source link

`looponfail` has undefined variables #20

Closed alfredodeza closed 6 years ago

alfredodeza commented 10 years ago
E121: Undefined variable: a:2
E116: Invalid arguments for function len(a:2)
E15: Invalid expression: len(a:2)
jaesbit commented 6 years ago

I'm getting the same issue when :w if looponfail active

Error detected while processing function <SNR>82_LoopProxy[11]..<SNR>82_ThisFile:
line    5:
E121: Undefined variable: a:2
E116: Invalid arguments for function len(a:2)
E15: Invalid expression: len(a:2)
alfredodeza commented 6 years ago

@atgiovannini could you try and see if commit 88624df7f8f22f31dd54676d7f94e94696fed177 fixes this for you?

jaesbit commented 6 years ago

with this commit 82_ThisFile to 82_ThisFunction

Error detected while processing function <SNR>82_LoopProxy[9]..<SNR>82_ThisFunction:
line   20:
E121: Undefined variable: a:2
E116: Invalid arguments for function len(a:2)
E15: Invalid expression: len(a:2)
alfredodeza commented 6 years ago

Wow, totally got the wrong commit in there, sorry about that. This commit is the right one: 309beb503b19a4626fbaa39023390823bbee71c8

jaesbit commented 6 years ago

Great! it solves! you will merge with master?

alfredodeza commented 6 years ago

Fixed in master. Thanks for following up.