Package: vim-snippets Version: 1.0.0-7 Severity: normal Dear Maintainer,
I'm using vim-snippets and ultisnips. I'd like to use box in changelog file. time and lorem snippets worked fine. But box and bbox snippets got error. See blow.[1]. I asked local vim community. They answered that you need to add blow [2] that works fine. I understood that all.snippets do not determin what is comment in changelog. Did you reproduce this issue? [2] added in .vimrc -------- augroup CustomCommentString autocmd! autocmd FileType changelog setlocal commentstring=/*%s*/ autocmd FileType changelog setlocal comments=s1:/*,mb:*,ex:*/ augroup END --------- [1] error messages. An error occured. This is either a bug in UltiSnips or a bug in a snippet definition. If you think this is a bug, please report it to https://github.com/SirVer/ultisnips/issues/new. Following is the full stack trace: Traceback (most recent call last): File "/home/yabuki/.vim/pythonx/UltiSnips/snippet_manager.py", line 61, in wrapper return func(self, *args, **kwds) File "/home/yabuki/.vim/pythonx/UltiSnips/snippet_manager.py", line 163, in expand if not self._try_expand(): File "/home/yabuki/.vim/pythonx/UltiSnips/snippet_manager.py", line 725, in _try_expand self._do_snippet(snippet, before) File "/home/yabuki/.vim/pythonx/UltiSnips/snippet_manager.py", line 679, in _do_snippet si = snippet.launch(text_before, self._visual_content, File "/home/yabuki/.vim/pythonx/UltiSnips/snippet/definition/_base.py", line 421, in launch snippet_instance.update_textobjects() File "/home/yabuki/.vim/pythonx/UltiSnips/text_objects/_snippet_instance.py", line 79, in update_textobjects if obj._update(done): File "/home/yabuki/.vim/pythonx/UltiSnips/text_objects/_python_code.py", line 271, in _update exec(code, self._locals) # pylint:disable=exec-used File "<string>", line 2, in <module> File "<string>", line 51, in make_box File "<string>", line 47, in _get_comment_format File "<string>", line 15, in _parse_comments ValueError: not enough values to unpack (expected 2, got 1) Executed snippet code: 1 2 box = make_box(len(t[1])) 3 snip.rv = box[0] + '\n' + box[1] 4 *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_WARN Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages vim-snippets depends on: ii vim 2:8.2.0716-3 ii vim-addon-manager 0.5.10 ii vim-gtk3 [vim] 2:8.2.0716-3 ii vim-nox [vim] 2:8.2.0716-3 vim-snippets recommends no packages. vim-snippets suggests no packages. -- no debconf information