aider icon indicating copy to clipboard operation
aider copied to clipboard

ctags error

Open bsoung opened this issue 1 year ago • 5 comments

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?

bsoung avatar Jul 13 '23 07:07 bsoung

I haven't seen it before - what do you see when you type ctags --version in the terminal?

joshuavial avatar Jul 13 '23 09:07 joshuavial

This is the output I get when running ctags --version:

illegal option -- - usage: ctags [-BFadtuwvx] [-f tagsfile] file ...

bsoung avatar Jul 13 '23 11:07 bsoung

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.

joshuavial avatar Jul 13 '23 11:07 joshuavial

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?

bsoung avatar Jul 13 '23 14:07 bsoung

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

afloresescarcega avatar Jul 13 '23 16:07 afloresescarcega

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.

paul-gauthier avatar Jul 14 '23 18:07 paul-gauthier