alfredodeza / pytest.vim

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

Why not feed the location list with the errors found? #45

Closed josefson closed 7 years ago

josefson commented 7 years ago

I know you implemented next/previous/first/last functions, so this is more a doubt question than anything else. What was the reason behind the choice made here in that regard.

alfredodeza commented 7 years ago

Interesting! I had no idea about location list. I always disliked the Quickfix window because it was global. If you had a way to implement this it would be nice

josefson commented 7 years ago

Unfortunately i don't know any vimscript, i just liked your plugin a little up to the point where i tried to map the jumps to the same bindings i have for location-list movements. But i realized it could cause me pain when i have a location-list and your buffer opened. I have decided to use pytest with Dispatch for now, and since i can't do much more, here i describe bellow what i found about how to do it. From what i read on the documentation, there are these 3 commands which expect an errorfile: :lfile [errorfile] - Read and jump to 1st error. :lgetfile [errorfile] - Read and don't jump to 1st error. :laddfile [errorfile] - Add errors from errorfile to the current list, if there isn't any a new list is created. With that in mind it is also relevant that errorfile expects a error-file-format.

alfredodeza commented 7 years ago

Thanks for the extra information. Sorry to hear that this caused you to use something else