You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used :GOVIMReferences to find references to an identifier
Selected the third reference using the cursor in the quickfix window
Ran :GOVIMQuickfixDiagnostics to show diagnostic errors (there was only one diagnostic error at this point)
What did you expect to see?
The diagnostic shown in the quickfix window.
What did you see instead?
Panic.
We are not correctly storing the selected index for the different modes of the quickfix window. Hence we grab the currently selected index when in references mode (3, 1-indexed) and try to use that when then showing errors (of which there is only one)
We should push/pop this state when flipping modes, but also add checks that we don't ever select past the end of the diagnostics/references.
And we should add a test for this flipping between modes.
The text was updated successfully, but these errors were encountered:
What version of Vim/Gvim are you using?
Vim/Gvim version
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat version/commit of
govim
are you using?29461d3
What is the output of
:messages
in Vim?See below
Do the Vim channel or
govim
log files show anything interesting?How did you install
govim
?n/a
What did you do?
:GOVIMReferences
to find references to an identifier:GOVIMQuickfixDiagnostics
to show diagnostic errors (there was only one diagnostic error at this point)What did you expect to see?
The diagnostic shown in the quickfix window.
What did you see instead?
Panic.
We are not correctly storing the selected index for the different modes of the quickfix window. Hence we grab the currently selected index when in references mode (3, 1-indexed) and try to use that when then showing errors (of which there is only one)
We should push/pop this state when flipping modes, but also add checks that we don't ever select past the end of the diagnostics/references.
And we should add a test for this flipping between modes.
The text was updated successfully, but these errors were encountered: