This repository was archived by the owner on Sep 21, 2019. It is now read-only.
Work around a startup error on Vim < 7.4 #370
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #369, refs #368 (1b32e85)
Yeah, I could have left only the
vim.commandversion of the code here and had compatibility with old and new, but there are other uses of Vim 7.4+ Python API in our code and this change does not attempt to fix all of them now. This just avoids a particularly poor failure mode during Vim startup.I think we ought to officially make versions this old unsupported: detect the version and gracefully reject loading the plugin, informing the user. Serious day-to-day work on Scala projects where you'd want IDE features suggests a workstation-class environment IMO, so ensime-vim ought to be free to make assumptions accordingly. ensime-emacs is rather stringent about its requirements. Ubuntu 12.04 (as in #369) goes end-of-life in about 3 months, so it's barely server-class anymore. A possible policy could be to support the last two Vim minor versions (i.e. 8.0 and 7.4). We can discuss this more on a new issue.