Comment 5 for bug 937605

Revision history for this message
SirVer (sirver) wrote : Re: [Bug 937605] Re: ultisnips 2.1 on windows throws constantly an error

Could you provide me with the output of :verbose smap, please?

On Wed, Feb 22, 2012 at 12:04:49PM -0000, Serge Ratke wrote:
>yea, it seems to be independent on what filetype is currently active, it
>even happens if no filetype is set at all. switching to english doesn't
>change anything.
>
>--
>You received this bug notification because you are subscribed to
>UltiSnips.
>https://bugs.launchpad.net/bugs/937605
>
>Title:
> ultisnips 2.1 on windows throws constantly an error
>
>Status in UltiSnips - The Ultimate Snippet Solution for Vim:
> Incomplete
>
>Bug description:
> error appears as soon as i start using vim
>
> here's the sys.version
>
> 2.7.1 (r271:86832, Feb 7 2011, 11:30:38) [MSC v.1500 32 bit (Intel)]
>
> i have deleted all my previously defined snippets. in this case the error was thrown as soon
> as i started creating a new snippet (ft=cf) with :UltiSnipsEdit
>
> here's the full tb
>
> Following is the full stack trace:
> Traceback (most recent call last):
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\__init__.py", line 23, in wrapper
> return f(self, *args, **kwds)
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\__init__.py", line 566, in expand_or_jump
> rv = self._try_expand()
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\__init__.py", line 866, in _try_expand
> self._do_snippet(snippet, before, after)
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\__init__.py", line 848, in _do_snippet
> self._jump()
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\__init__.py", line 731, in _jump
> _vim.select(self._ctab.start, self._ctab.end)
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\_vim.py", line 119, in select
> _unmap_select_mode_mapping()
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\_vim.py", line 207, in _unmap_select_mode_mapping
> all_maps = list(filter(len, eval(r"_tmp_smaps").splitlines()))
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\_vim.py", line 101, in eval
> return as_unicode(rv)
> File "C:\Users\srr\vimfiles\plugin\UltiSnips\compatibility.py", line 69, in as_unicode
> return s.decode("utf-8")
> File "C:\Python27\Lib\encodings\utf_8.py", line 16, in decode
> return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xea in position 1011: invalid continuation byte
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/ultisnips/+bug/937605/+subscriptions