Erroneous call to FindNearest in `.vim/.ycm_extra_conf.py`
Closed this issue · 4 comments
In dotfiles/.vim/.ycm_extra_conf.py
the function FindNearest
is sometimes called with 2 arguments instead of the 3 compulsory arguments. I don't know what to put as 3rd argument so I can't make any pull request.
Thank you for providing the file, by the way!
Thanks for reporting this! I'll look into it tonight and provide a fix ASAP.
Cheers,
Jonas
Seems like I totally forgot to answer, sorry about that! The third argument is an optional build directory, as explained in: #7
Functions FlagsForClangComplete
and FlagsForInclude
always seem to except out and return None
since FindNearest
expects 3 mandatory arguments, but only 2 are supplied.
To fix this, change the definition of the function FindNearest
in dotfiles/.vim/.ycm_extra_conf.py
from
def FindNearest(path, target, build_folder):
to
def FindNearest(path, target, build_folder=None):