-
-
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
Display warning when people use an older Vim #1524
Conversation
plugin/go.vim
Outdated
echom "Please update your Vim for the best vim-go experience." | ||
echom "If you really want to continue you can set this to make the error go away:" | ||
echom " let g:go_no_version_warning = 1" | ||
echom "Note that some features may error out or behave incorrect." |
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.
incorrectly instead of incorrect.
plugin/go.vim
Outdated
" Version 7.4.1689 was chosen because that's what the most recent Ubuntu LTS | ||
" release (16.04) uses. | ||
if | ||
\ !exists('g:go_no_version_warning') && |
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.
I wouldn't be surprised is someone sets this to 0
to try to re-enable the warning. Maybe just check that it's not 1
?
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.
Lgtm, but that variable would probably be better named as go_version_warning
with a default of 1 for readability.
This shows a warning when people use an older Vim version. You can still set `g:go_no_version_warning` to override this, if people really want to continue. I don't think we need to bother documenting that setting in the help page. The version 7.4.1689 was chosen because that's what the latest Ubuntu LTS (16.04) uses, which seems like a reasonable choice. I don't mind using an older version though.
@Carpetsmoker @bhcleek
Never seen a problem with vim-go and the message freaked me out :) |
@nqv yes we do. Unfortunately Vim is moving fast and with every release, old releases tend to work less. You have the option to disable it as you know, so I think that would be the best option. Thanks for your feedback :) |
Adding to that, v1.15 is actually broken in versions before Vim 7.4.1546; see #1483. |
This shows a warning when people use an older Vim version. You can still set
g:go_no_version_warning
to override this, if people really want to continue. Idon't think we need to bother documenting that setting in the help page.
The version 7.4.1689 was chosen because that's what the latest Ubuntu LTS
(16.04) uses, which seems like a reasonable choice. I don't mind using an older
version though.