Skip to content
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

Merged
merged 2 commits into from
Jul 15, 2019

Conversation

ldelossa
Copy link
Contributor

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 "./"

Copy link
Collaborator

@bhcleek bhcleek left a 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.

@@ -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 -
Copy link
Collaborator

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?

Copy link
Contributor Author

@ldelossa ldelossa Jul 15, 2019

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.

@ldelossa ldelossa force-pushed the fix-test-quickfix-path branch 2 times, most recently from 88391ec to 348eff9 Compare July 15, 2019 02:15
@ldelossa
Copy link
Contributor Author

@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

@bhcleek
Copy link
Collaborator

bhcleek commented Jul 15, 2019

Thanks.

@bhcleek bhcleek merged commit 22aa598 into fatih:master Jul 15, 2019
bhcleek added a commit that referenced this pull request Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GoTestCompile/GoTestFunc opens unexpected buffer when compile fails
2 participants