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

cmd/govim: do not wait more than 500ms for gopls Shutdown #1075

Merged
merged 1 commit into from
Apr 10, 2021

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Apr 9, 2021

As explained in golang.org/issue/45476, all call to Shutdown does not
properly interrupt "work" that might be in progress in gopls. This has
the effect of blocking an exit from Vim.

Workaround this for now by limiting the wait time to 500ms, which is
effectively the measure of a user's patience before anger/frustration
sets in!

As explained in golang.org/issue/45476, all call to Shutdown does not
properly interrupt "work" that might be in progress in gopls. This has
the effect of blocking an exit from Vim.

Workaround this for now by limiting the wait time to 500ms, which is
effectively the measure of a user's patience before anger/frustration
sets in!
@myitcv myitcv requested a review from leitzler April 9, 2021 16:49
@myitcv
Copy link
Member Author

myitcv commented Apr 9, 2021

cc @mvdan

@mvdan
Copy link
Collaborator

mvdan commented Apr 9, 2021

Sounds good to me. I'd even find 1s acceptable, but anything beyond that definitely not :)

Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@myitcv myitcv merged commit f114359 into main Apr 10, 2021
@myitcv myitcv deleted the cmd_govim_timeout_shutdown branch April 10, 2021 07:35
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.

None yet

3 participants