Insert mode tab without text fails

Bug #1258777 reported by simendsjo on 2013-12-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Invalid
Undecided
Unassigned

Bug Description

Using git head.

Any time I press tab when ultisnips cannot find any snippets (including when I'm at the first character on the line), I get the following error. This means I cannot use tab for indentation in insert mode.

0An 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://bugs.launchpad.net/ultisnips/+filebug.

Following is the full stack trace:
Traceback (most recent call last):
  File "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py", line 23, in wrapper
    return f(self, *args, **kwds)
  File "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py", line 546, in expand
    self._handle_failure(self.expand_trigger)
  File "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py", line 826, in _handle_failure
    _vim.command("return SuperTab(%s)" % _vim.escape(mode))
  File "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/_vim.py", line 104, in command
    return as_unicode(vim.command(as_vimencoding(s)))
error: Vim(return):E117: Unknown function: SuperTab

SirVer (sirver) wrote :

Your version of supertab seems outdated - UltiSnips requires a relatively recent one.

Changed in ultisnips:
status: New → Invalid
SirVer (sirver) wrote :

setting to invalid, if you think this is not correct, please comment.

I don't have supertab installed...
On Dec 7, 2013 6:30 PM, "SirVer" <email address hidden> wrote:

> Your version of supertab seems outdated - UltiSnips requires a
> relatively recent one.
>
> ** Changed in: ultisnips
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1258777
>
> Title:
> Insert mode tab without text fails
>
> Status in UltiSnips - The Ultimate Snippet Solution for Vim:
> Invalid
>
> Bug description:
> Using git head.
>
> Any time I press tab when ultisnips cannot find any snippets
> (including when I'm at the first character on the line), I get the
> following error. This means I cannot use tab for indentation in insert
> mode.
>
> 0An 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://bugs.launchpad.net/ultisnips/+filebug.
>
> Following is the full stack trace:
> Traceback (most recent call last):
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 23, in wrapper
> return f(self, *args, **kwds)
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 546, in expand
> self._handle_failure(self.expand_trigger)
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 826, in _handle_failure
> _vim.command("return SuperTab(%s)" % _vim.escape(mode))
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/_vim.py",
> line 104, in command
> return as_unicode(vim.command(as_vimencoding(s)))
> error: Vim(return):E117: Unknown function: SuperTab
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ultisnips/+bug/1258777/+subscriptions
>

SirVer (sirver) wrote :

That seems unlikely, that branch is only taken if you do:

https://github.com/SirVer/ultisnips/blob/master/plugin/UltiSnips/__init__.py#L805

Check for the the settings of

g:SuperTabMappingForward

and find out where it is set. Seems like you have at least a partial supertab installation floating around.

Changed in ultisnips:
status: Invalid → Incomplete
simendsjo (simendsjo) wrote :

Ok, you were right. On one of my computers, I had it installed using the
distro repository. Sorry about this.

On Sat, Dec 7, 2013 at 8:05 PM, SirVer <email address hidden> wrote:

> That seems unlikely, that branch is only taken if you do:
>
>
> https://github.com/SirVer/ultisnips/blob/master/plugin/UltiSnips/__init__.py#L805
>
> Check for the the settings of
>
> g:SuperTabMappingForward
>
> and find out where it is set. Seems like you have at least a partial
> supertab installation floating around.
>
>
>
> ** Changed in: ultisnips
> Status: Invalid => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1258777
>
> Title:
> Insert mode tab without text fails
>
> Status in UltiSnips - The Ultimate Snippet Solution for Vim:
> Incomplete
>
> Bug description:
> Using git head.
>
> Any time I press tab when ultisnips cannot find any snippets
> (including when I'm at the first character on the line), I get the
> following error. This means I cannot use tab for indentation in insert
> mode.
>
> 0An 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://bugs.launchpad.net/ultisnips/+filebug.
>
> Following is the full stack trace:
> Traceback (most recent call last):
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 23, in wrapper
> return f(self, *args, **kwds)
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 546, in expand
> self._handle_failure(self.expand_trigger)
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/__init__.py",
> line 826, in _handle_failure
> _vim.command("return SuperTab(%s)" % _vim.escape(mode))
> File
> "/home/simendsjo/dotfiles/laptop/home/simendsjo/.vim/vimfiles/bundle/ultisnips/plugin/UltiSnips/_vim.py",
> line 104, in command
> return as_unicode(vim.command(as_vimencoding(s)))
> error: Vim(return):E117: Unknown function: SuperTab
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ultisnips/+bug/1258777/+subscriptions
>

SirVer (sirver) wrote :

Okay, glad this is figured out.

Changed in ultisnips:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers