A bad commit under windows

Bug #1266639 reported by Bohr Shaw on 2014-01-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Fix Committed
Undecided
Unassigned

Bug Description

The bad commit:
https://github.com/SirVer/ultisnips/commit/acc6146f56ce479df71be7ab554112057ecd9e14

The output of :py import sys; print sys.version:
2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]

Errors upon Vim starts:
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
Traceback (most recent call last):
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "<string>", line 1, in <module>
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 1143, in add_buffer_filetypes
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    self._ensure_all_loaded()
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 1122, in _ensure_all_loaded
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    self._ensure_loaded(ft)
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 1114, in _ensure_loaded
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    self._load_snippets_for(ft)
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 1078, in _load_snippets_for
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    for fn in self.base_snippet_files_for(ft):
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 1012, in base_snippet_files_for
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    if _should_reverse_search_path():
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 58, in _should_reverse_search_path
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    return not _snippets_dir_is_before_plugin_dir()
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 46, in _snippets_dir_is_before_plugin_dir
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    return paths.index(_plugin_dir()) < real_vim_path_index
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
  File "C:\Users\Bohr\.vim\bundle\ultisnips\plugin\UltiSnips\__init__.py", line 25, in _plugin_dir
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
    for i in xrange(10):
Error detected while processing function UltiSnips_FileTypeChanged:
line 2:
NameError: global name 'xrange' is not defined

SirVer (sirver) wrote :

I just pushed a fix for this. Sorry for the inconvenience. I hate py3 with a passion.

Changed in ultisnips:
status: New → In Progress
status: In Progress → Fix Committed
Brian Mock (mock-brian) wrote :

Agh, xrange strikes again! Not the first time I've been bit by that.

SirVer (sirver) wrote :

1) this bug tracker has been deprecated. The project is now on https://github.com/sirver/ultisnips - including the issues.
2) the current trunk has no xrange in no file - time to update :).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers