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

Error with VimDebuggerLoad and snipmate #27

Closed
jacobsandlund opened this issue Jul 17, 2011 · 17 comments
Closed

Error with VimDebuggerLoad and snipmate #27

jacobsandlund opened this issue Jul 17, 2011 · 17 comments

Comments

@jacobsandlund
Copy link

Launching MacVim through the terminal (mvim) shows these error messages.
I'm not sure how to fix them.

Error detected while processing function <SNR>15_VimDebuggerLoad:
line    2:
E117: Unknown function: <SNR>15_VimDebuggerInit
Error detected while processing function DefPython:
line  550:
Traceback (most recent call last):
  File "<string>", line 547, in <module>
  File "<string>", line 397, in __init__
NameError: global name 'VimDebugger' is not defined
Error detected while processing /Users/jtsandlund/dev/spf13-vim/.vim/bundle/snipmate/plugin/snipMate.vim:
line   31:
E117: Unknown function: funcref#Function
E116: Invalid arguments for function get(s:snipMate, 'get_snippets', funcref#Function("snipMate#GetSnippets"))
E15: Invalid expression: get(s:snipMate, 'get_snippets', funcref#Function("snipMate#GetSnippets"))
@spf13
Copy link
Owner

spf13 commented Jul 18, 2011

I believe this patch resolves this problem. Please pull and confirm.

@ngaloppo
Copy link

Interestingly, I'm getting a similar error, after applying the patch. (this is on OSX FWIW)

nico@chocomousse:~/spf13-vim (master)$ Error detected while processing function <SNR>15_VimDebuggerLoad:
line    2:
E117: Unknown function: <SNR>15_VimDebuggerInit
Error detected while processing function DefPython:
line  550:
Traceback (most recent call last):
  File "<string>", line 547, in <module>
  File "<string>", line 397, in __init__
NameError: global name 'VimDebugger' is not defined
Error detected while processing function <SNR>15_VimDebuggerLoad:
line    2:
E117: Unknown function: <SNR>15_VimDebuggerInit
Error detected while processing function DefPython:
line  550:
Traceback (most recent call last):
  File "<string>", line 547, in <module>
  File "<string>", line 397, in __init__
NameError: global name 'VimDebugger' is not defined

@Andmat7
Copy link

Andmat7 commented Jul 21, 2011

After applying the patch,I'm getting a similar error, (I'ḿ using Ubuntu 11.04)

Se ha detectado un error al procesar function 13_VimDebuggerLoad:
línea 2
E117: Función desconocida: 13_VimDebuggerInit
Se ha detectado un error al procesar function DefPython:
línea 550
Traceback (most recent call last):
File "", line 547, in
File "", line 397, in init
NameError: global name 'VimDebugger' is not defined

Tnanks

@fjk
Copy link

fjk commented Aug 20, 2011

in VimDegugger.vim: Just switching the position of function

function s:VimDebuggerLoad() ... and call s:VimDebuggerLoad()
below the function s:VimDebuggerInit() ...
works fine for me

fk

@bjartek
Copy link

bjartek commented Aug 20, 2011

fjk: your sollution also works for me to fix this bug.

@vertex
Copy link

vertex commented Aug 21, 2011

fjk's solution worked for me. thanks

@lxyu
Copy link

lxyu commented Sep 7, 2011

do you mean change it to:

function s:VimDebuggerInit()
function s:VimDebuggerLoad()
  if has('python')
    call s:VimDebuggerInit()
  endif
endfunction
call s:VimDebuggerLoad()

I still get this error:

Error detected while processing function DefPython:
line  550:
Traceback (most recent call last):
  File "<string>", line 547, in <module>
  File "<string>", line 397, in __init__
NameError: global name 'VimDebugger' is not defined
Press ENTER or type command to continue

@pythonsnake
Copy link

@lxyu
Just move line 41 "call s:VimDebuggerLoad()" to line 77, between "endfunction" and "function! g:__dbg_WatchFoldText()"

@lxyu
Copy link

lxyu commented Sep 8, 2011

It works! Thank you~

@pythonsnake
Copy link

@lxyu
You're welcome

@wontondon
Copy link

fjk's fix worked for me as well

@danybmx
Copy link

danybmx commented Oct 19, 2011

thaks @pythonsnake it works for me! :)

@pythonsnake
Copy link

@danybmx
Cool.
You should thank fjk, the solution is from him. I just explained it :-)

@khuevu
Copy link

khuevu commented Dec 29, 2011

Hi guys,
I am using the latest version of spf13-vim and I still have the error:
Error detected while processing function 13_VimDebuggerLoad:
line 2:
E117: Unknown function: 13_VimDebuggerInit
Error detected while processing function DefPython:
line 550:
Traceback (most recent call last):
File "", line 547, in
File "", line 397, in init
NameError: global name 'VimDebugger' is not defined
Anyone can help?

@samarpanda
Copy link

Open file ~/.vim/bundle/VimDebugger/plugin/VimDebugger.vim
Just move line 41 "call s:VimDebuggerLoad()" to line 77, between "endfunction" and "function! g:__dbg_WatchFoldText()"
Above fix worked for me.

Thanks.

@spf13
Copy link
Owner

spf13 commented Feb 18, 2012

fixed in the 3.0 release of spf13-vim

@spf13 spf13 closed this as completed Feb 18, 2012
@samarpanda
Copy link

Great. Will upgrade to vim 3.0
Thanks.

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