-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[READY] Fix errors with Vim versions prior to 7.4.107 when UltiSnips is not loaded #2337
Conversation
Reviewed 1 of 1 files at r1. python/ycm/youcompleteme.py, line 708 at r1 (raw file):
Is there a reason we need this version check. I mean the check in exists should work in any version. That way we can remove the try and let real errors bubble (should they occur). Just a thought Comments from Reviewable |
Reviewed 1 of 1 files at r1. python/ycm/youcompleteme.py, line 708 at r1 (raw file):
|
Errors when evaluating Vim expressions are not caught by Python try/except blocks for Vim versions older than 7.4.107. We check that the UltiSnips#SnippetsInCurrentScope function exists for these versions.
42dac2c
to
55cc3e2
Compare
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion. python/ycm/youcompleteme.py, line 708 at r1 (raw file):
|
Reviewed 1 of 1 files at r2. python/ycm/youcompleteme.py, line 708 at r1 (raw file):
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. python/ycm/youcompleteme.py, line 708 at r1 (raw file):
|
I think changing the min version probably won't solve the problem for a lot of users. In some ways I feel more happy users means less traffic on the tracker, so we might as well just merge the fix :/
|
At least, users would know that they need to update their Vim if we bump the version because they would get this message: YouCompleteMe unavailable: requires Vim 7.4.107+ when loading the plugin. If they still decide to open an issue on the tracker for this then I will be happy to close it 😈 Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Use UltiSnips#SnippetsInCurrentScope to fetch snippets. Add an entry in the FAQ about the :UltiSnipsAddFiletypes command.
Is something blocking merging this? I'm cool with it as-is, tbh. |
Closed by PR #1901. |
When UltiSnips is not loaded and the Vim version is older than 7.4.107, the following errors:
will occur each time a buffer is visited. This happens because we rely on a
try/except
block to catch these errors when evaluating theUltiSnips#SnippetsInCurrentScope
function and such blocks are not working prior to Vim 7.4.107. We handle this by checking that the function exists for these versions of Vim.Fixes #2335.
This change is