tpope / vim-cucumber

Vim Cucumber runtime files
http://www.vim.org/scripts/script.php?script_id=2973
324 stars 63 forks source link

Incorrect error display for Cucumber #26

Closed czak closed 10 years ago

czak commented 10 years ago

I'm using :compiler cucumber + :make (or :Make with vim-dispatch) to run my cukes. For some reason, a successful pass will always be shown as having an error:

Feature: Success

  Scenario: Success     # features/success.feature:2
    When I do something # features/steps.rb:1
    Then I succeed      # features/steps.rb:4

1 scenario (<<< THIS LINE MARKED AS ERROR)
2 steps
0m0.016s

See demo below:

cucumber-incorrect-errors

I'm using MacVim snapshot 73 (VIM 7.4.258) with bundled cucumber.vim compiler matching this one here.

Other compilers - e.g. rspec - work fine and only mark errors where there are any.

Any idea why this is happening?

tpope commented 10 years ago

What is :verbose set efm??

czak commented 10 years ago
errorformat=%W%m (Cucumber::Undefined),%E%m (%.%#),%Z%f:%l,%Z%f:%l:%.%#
      Last set from ~/.vim/bundle/vim-dispatch/autoload/dispatch.vim
czak commented 10 years ago

Tried the same after removing vim-dispatch from my bundle. Incorrect behavior with cucumber remains.

errorformat=%W%m (Cucumber::Undefined),%E%m (%.%#),%Z%f:%l,%Z%f:%l:%.%#

(no "Last set from..." line this time)

czak commented 10 years ago

My .vimrc

tpope commented 10 years ago

What does the plain output of cucumber look like?

czak commented 10 years ago
$ cucumber
Feature: Success

  Scenario: Success     # features/success.feature:2
    When I do something # features/steps.rb:1
    Then I succeed      # features/steps.rb:4

1 scenario (1 passed)
2 steps (2 passed)
0m0.010s
czak commented 10 years ago

Works great, thanks a lot!