-
-
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
change to appropriate dir before quickfix parse #2401
Conversation
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 have one small request for a modification.
autoload/go/term.vim
Outdated
@@ -140,6 +145,9 @@ function! s:on_exit(job_id, exit_status, event) dict abort | |||
|
|||
call win_gotoid(self.winid) | |||
call go#list#JumpToFirst(l:listtype) | |||
|
|||
" change back to original working directory before this method start | |||
cd - |
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.
This won't do the right thing when lcd
was used instead of cd
. Would you be willing to modify this PR to follow the usual pattern that is used in vim-go (see go#term#newmdoe at https://github.com/fatih/vim-go/blob/master/autoload/go/term.vim#L28-L31 and https://github.com/fatih/vim-go/blob/master/autoload/go/term.vim#L54) for this pattern?
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.
@bhcleek totally makes sense, just pushed a commit to update with that pattern.
88391ec
to
348eff9
Compare
@bhcleek looks like this failed, but only for vim7.4 - if I'm reading this correctly it's because CodeCov could not be reached? https://travis-ci.org/fatih/vim-go/jobs/558716774 |
348eff9
to
84381f9
Compare
Thanks. |
Fixes: #2400
We now CD into the same directory builds and test are ran before populating the QuickFix or LocationList items. This fixes a problem where the hyperlinked path in the quickfix menu pointed to "./file_name" and your vim current directory is not in "./"