-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoCoverage broken in recent commit #824
Comments
So the issue, as I believe is due to https://github.com/fatih/vim-go/pull/801/files#diff-4 This line has recently changed from:
To:
Which appears to be a typo, as the call to call is only executed when ShellError is non-zero - i.e. when there's an error. The issue should be straight forward to fix in this case, but there's other logic errors in the change which may need to be reviewed (L93, maybe lint.vim on L67) |
@mattn - can you look over this and verify if this is a problem? |
No
bang command should be set v:shell_errors always. maybe error occur at another part. |
Can you double check the logic in coverage.vim too, line 57 and 93: https://github.com/fatih/vim-go/pull/801/files#diff-4 |
Ah, sorry. My fix is bad. However I found some bug from your points. Thanks |
strange. I can't reproduce it . do you install vimproc? or not? |
These are the steps I used to reproduce: main.go
main_test.go
Checkout vim 1.6 in vim-go:
You should then see the main func statements change to the colour green. Close the file and checkout later commit:
The test should pass, but the statements should not change to the colour green this time. The following patch then fixes the issue:
|
The proposed patch could easily be |
Thanks figure out. Could you please try below.
like
And check with |
Ah, one more. please check actual value of |
Yes the test passes, but the coverage isn't shown. I think you maybe debugging in the wrong area, look at the lines that changed: From:
To:
In the first case, the call to overlay only occurs when |
Actual behavior
Checkout f830d0d and try to use GoCoverage
Tests run, but coverage report doesn't appear.
See also PR #801
Expected behavior
Write here what you're expecting ...
Steps to reproduce:
Please create a reproducible case of your problem. Re produce it
with a minimal
vimrc
with all plugins disabled and onlyvim-go
enabled:
Configuration
Add here your current configuration and additional information that might be
useful, such as:
vimrc
you used to reproduce: NAThe text was updated successfully, but these errors were encountered: