Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detected while processing function <SNR>15_select_function_wrapper: #5

Open
mattsoftware opened this issue Aug 29, 2013 · 2 comments
Open

Comments

@mattsoftware
Copy link

I have only just installed this plugin, but it appears I have either installed incorrectly, or my vim does not have the correct settings to be able to run the plugin, or I am just missing something about how to use it.

I should note I use pathogen.

First I installed vim-gitgutter, then textobj-user, then textobj-gitgutter.

Open a file which is in git, see that gitgutter is doing its job nicely. Navigate to a line that has changes (marked with a ~ in the gutter). 'v' to enter visual mode, 'ih' to get the text from textobj-gitgutter. The operation errors out with the following ...

Error detected while processing function 15_select_function_wrapper:
line 4:
E700: Unknown function: textobj#gitgutter#select_i
E15: Invalid expression: function(a:function_name)()
line 5:
E121: Undefined variable: _
E15: Invalid expression: _ is 0
Press ENTER or type command to continue

Any help would be appreciated.

Thank you.
Matt

@sunaku
Copy link
Contributor

sunaku commented Jul 17, 2014

👍 I'm having the same problem here:

Error detected while processing function 98..<SNR>140_select_function_wrapper..textobj#gitgutter#select_i:
line    1:
E117: Unknown function: GitGutter
Press ENTER or type command to continue

sunaku added a commit to sunaku/textobj-gitgutter that referenced this issue Jul 17, 2014
The GitGutter plugin's API has changed.  It has replaced the GitGutter()
function with a :GitGutter command that updates signs in current buffer.
sunaku added a commit to sunaku/textobj-gitgutter that referenced this issue Jul 17, 2014
The GitGutter plugin's API has changed.  It has replaced the GitGutter()
function with a :GitGutter command that updates signs in current buffer.
As a result, I get the following error when typing `vih` in normal mode:

    Error detected while processing function 98..<SNR>140_select_function_wrapper..textobj#gitgutter#select_i:
    line    1:
    E117: Unknown function: GitGutter
    Press ENTER or type command to continue

This patch updates our use of GitGutter() to :GitGutter to fix the bug.
@sunaku
Copy link
Contributor

sunaku commented Jul 17, 2014

I have submitted pull request #7 to fix this issue. 🍰

gilligan added a commit that referenced this issue May 9, 2015
GH-5: GitGutter() function not found during `vih`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants