aider
aider copied to clipboard
ctags error
Running into a problem and not sure if anyone's encountered it before while experimenting with ctags. Installed ctags with brew.
Repo-map: basic using 1024 tokens (error running universal-ctags: Command '['ctags', '--version']' returned non-zero exit status 1.)
Getting illegal option -- - usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
When running ctags --version
. Seems to break the repo map of course. Has anyone seen this?
I haven't seen it before - what do you see when you type ctags --version
in the terminal?
This is the output I get when running ctags --version
:
illegal option -- - usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
sounds like your install of ctags is the issue, it may be there are two versions floating around. I had to delete the default version of ctags (exuberant) on ubuntu before the universal-ctags would kick in.
type -a ctags
should show you all the places ctags is installed and which ctags
should show you the one that is being called.
Ah makes sense.
So I get
ctags is an alias for /usr/bin/ctags ctags is /usr/bin/ctags ctags is /usr/bin/ctags
This is the default version of ctags you were referring to correct?
I've had this issue before installing universal-ctags which is the ctags that is used here.
The ctags that came loaded on my system was not universal-ctags. You can read more about it here: https://aider.chat/docs/install.html#install-universal-ctags-optional
I'm going to close this issue for now, but feel free to re-open or file a new issue if you have any further problems.