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

fix error at go#def#jump_to_declaration when vim-go uses godef #2141

Merged
merged 1 commit into from
Feb 11, 2019
Merged

fix error at go#def#jump_to_declaration when vim-go uses godef #2141

merged 1 commit into from
Feb 11, 2019

Conversation

dzruyk
Copy link
Contributor

@dzruyk dzruyk commented Feb 10, 2019

Godef outputs only one line when user tries to jump to module definition,
because of that vim-go shows following error:

Error detected while processing function go#def#Jump[70]..go#def#jump_to_declaration:
line   17:
E684: list index out of range: 1
E15: Invalid expression: parts[1]

This PR fixes the issue and adds few additional checks.

@bhcleek
Copy link
Collaborator

bhcleek commented Feb 11, 2019

Thank you

@bhcleek bhcleek merged commit 40c9de2 into fatih:master Feb 11, 2019
bhcleek added a commit that referenced this pull request Feb 11, 2019
bhcleek added a commit that referenced this pull request Feb 11, 2019
@dzruyk dzruyk deleted the godef_fix branch March 17, 2019 13:17
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.

2 participants