preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.1k stars 485 forks source link

Tagbar says it can not find exuberant ctags even when it is installed. #793

Closed dcDeba closed 2 years ago

dcDeba commented 2 years ago

$ which ctags /remote/us01home56/deba/e_ctags/bin//ctags

$ ctags --version Universal Ctags 5.9.0(p5.9.20211003.0), Copyright (C) 2015 Universal Ctags Team Universal Ctags is derived from Exuberant Ctags. Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Oct 5 2021, 12:13:29 URL: https://ctags.io/ Optional compiled features: +wildcards, +regex, +gnulib_regex, +iconv, +option-directory, +xpath, +packcc, +optscript

Tagbar: Exuberant ctags not found at '/remote/us01home56/deba/e_ctags/bin/'! Please check your g:tagbar_ctags_bin setting.

I have already set g:tagbar_ctags_bin setting in my .vimrc let g:tagbar_ctags_bin = '/remote/us01home56/deba/e_ctags/bin/'

alerque commented 2 years ago

I think you need to set the whole path to your executable, not just to the directory it is in:

let g:tagbar_ctags_bin = '/remote/us01home56/deba/e_ctags/bin/ctags'
dcDeba commented 2 years ago

Okay, that worked. Thanks!