Undefined variable: g:gutentags_options_file #16

Closed
AntoineD opened this Issue Mar 16, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@AntoineD

Gutentag,
I've just installed gutentags and I get this error:

Error detected while processing function gutentags#setup_gutentags..<SNR>89_update_tags..gutentags#cta
gs#generate:
line   26:
E121: Undefined variable: g:gutentags_options_file
E116: Invalid arguments for function len(g:gutentags_options_file)
E15: Invalid expression: len(g:gutentags_options_file)
Error detected while processing function gutentags#setup_gutentags:
line   45:
E171: Missing :endif

The doc does not mention a g:gutentags_options_file setting, did I miss something?

@madssj

This comment has been minimized.

Show comment
Hide comment
@madssj

madssj Mar 16, 2015

You missed something, the docs mention it.

Happened for me as well, using NeoBundle. Setting the variable to an empty string seems to silence the error.

There're no references to the variable, but there are checks for it's existence, and the use of something called g:gutentags_options_file later in the ctags.vim module.

The following will make gutentags not choke:

" Silences #16 in gutentag
let g:gutentags_ctags_options_file = ''
let g:gutentags_options_file = ''

madssj commented Mar 16, 2015

You missed something, the docs mention it.

Happened for me as well, using NeoBundle. Setting the variable to an empty string seems to silence the error.

There're no references to the variable, but there are checks for it's existence, and the use of something called g:gutentags_options_file later in the ctags.vim module.

The following will make gutentags not choke:

" Silences #16 in gutentag
let g:gutentags_ctags_options_file = ''
let g:gutentags_options_file = ''
@AntoineD

This comment has been minimized.

Show comment
Hide comment
@AntoineD

AntoineD Mar 16, 2015

Thanks @madssj :-)

I just skimmed the docs and missed that g:gutentags_ctags_options_file was mandatory.
That could be stated more clearly at the beginning of the docs.

Thanks @madssj :-)

I just skimmed the docs and missed that g:gutentags_ctags_options_file was mandatory.
That could be stated more clearly at the beginning of the docs.

@AntoineD AntoineD closed this Mar 16, 2015

@ludovicchabant

This comment has been minimized.

Show comment
Hide comment
@ludovicchabant

ludovicchabant Mar 16, 2015

Owner

That variable is not mandatory, it was indeed a bug :) Fixed with 09bb38c.

Owner

ludovicchabant commented Mar 16, 2015

That variable is not mandatory, it was indeed a bug :) Fixed with 09bb38c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment