-
-
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
Some improvements for :GoRun #1703
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1703 +/- ##
==========================================
- Coverage 19.73% 19.69% -0.04%
==========================================
Files 57 57
Lines 4748 4757 +9
==========================================
Hits 937 937
- Misses 3811 3820 +9
Continue to review full report at Codecov.
|
Hi, Is there any suggestion for this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution.
I am unable to duplicate the bug that you describe. Can you verify that you're seeing incorrect behavior using master? What value are you using for g:go_term_mode
?
Hi @bhcleek ,
Thanks! |
With Interestingly, I can only get the terminal window shown in your screenshot if I comment out https://github.com/fatih/vim-go/blob/master/autoload/go/term.vim#L118. While I agree there is a bug, I'm unable to duplicate the bug you're describing. |
@hiberabyss Can you give #1721 a run and see if it resolves the issue you're seeing? I think the source of the bug you're seeing is a race condition that #1721 should resolve. |
:GoRun
window when run more than one time;:GoRun
.Bug Reproduce:
/tmp/gotest
/tmp/gotest/test.go
with following content:cd /tmp/gotest && nvim test.go
;:GoRun
;Following result will occur:
The root cause is that
s:on_exit
close wrong window, since window is switched ingo#term#newmode
.Thanks!