path to ctags

38 views
Skip to first unread message

Richard Mitchell

unread,
Jun 14, 2021, 11:14:02 AM6/14/21
to vim_mac
Recently started getting an error message when saving a .c file from ctags about an illegal option.

It is now using this path for ctags

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags

whereas the Exuberant Ctags (the one that works) is in ~/local/bin

Is the Xcode path getting set during compile?

Is there an environment variable I can change?

I compiled macvim with:

Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1

Linking: gcc -L/usr/local/lib -o Vim -lm -lncurses -liconv -framework AppKit -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr  2 2021 06:10:01)

macOS version - x86_64

Included patches: 1-2681

Richard Mitchell

unread,
Jun 14, 2021, 1:42:43 PM6/14/21
to vim_mac
taglist.vim was the responsible plugin.
Adding:

        let Tlist_Ctags_Cmd='~/local/bin/ctags'

to my .vimrc resolved the (new) issue.

Reply all
Reply to author
Forward
0 new messages