Skip to content

Error on :GOTOIMPL #8

@oncer

Description

@oncer

I believe I have everything set up correctly, however I'm getting the following error when I execute :GOTOIMPL on a method declaration in a header file:

Error detected while processing function lh#cpp#GotoFunctionImpl#GrabFromHeaderPasteInSource[39]..<SNR>163_BuildFunctionSignature4impl[57]..lh#dev#start_tag_session[6]..lh#dev#__BuildCrtBufferCtags:
line   47:
E121: Undefined variable: ctags_has_end_of_functions
E15: Invalid expression: ctags_has_end_of_functions

Theoretically the variable should be defined here, in autoload/lh/dev.vim:

" Function: lh#dev#get_variables(function_boundaries [, split points ...]) {{{2
" NB: In C++, ctags does not understand for (int i=0...), and thus it can't
" extract "i" as a local variable ...
" @note depend on tags
if lh#tags#ctags_flavour() =~ 'utags'
  let c_ctags_understands_local_variables_in_one_pass   = 1
  let cpp_ctags_understands_local_variables_in_one_pass = 1
  let ctags_has_end_of_functions                        = 1
else
  let c_ctags_understands_local_variables_in_one_pass   = 0
  let cpp_ctags_understands_local_variables_in_one_pass = 0
  let ctags_has_end_of_functions                        = 0
endif

For some reason this does not happen, none of the three variables above is defined in my vim session. lh#tags#ctags_flavour() evaluates to "etags" on my system. I'm using VIM 8.1. Any ideas where this problem could be coming from?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions