Closed Ian2020 closed 3 years ago
Hello @Ian2020 ! First off, sorry for taking so long to respond, I think this PR fell into the cracks of my GitHub notifications. I'll try to test this at some point this week and merge it. Thanks for contributing!
No worries, thanks!
Hey @Ian2020, tested and updated the error message to handle the case you described. I've set you as the commit author as I copy-pasted your code from this issue.
I've realised bats.vim 0.10.0 with the change, could you update and let me know if everything is working as expected?
Thanks for opening this issue and again sorry for taking so long to respond, it seems life got in the way 😅
Working for me, thanks again! :smiley:
I'm on bats 1.2.1 and the latest bats.vim.
With example test output such as this:
In the quickfix window I see only this:
It looks like maybe the output of bats has changed a little so the current errorformat is not picking everything up any more? Specifically in my example the file and line are in parenthesis but split over two lines which seems to be the problem. Also error msgs seem to have one space after the
#
rather than two now.If I tweak the errorformat in bats.vim to this:
I get what I would have expected:
It works in my case and I can submit this as a PR if it makes sense.