zoekt icon indicating copy to clipboard operation
zoekt copied to clipboard

ctags unexpected response for some C/C++ files

Open zzkzzzz opened this issue 3 years ago • 6 comments

I am using the newest ctags version. What is the correct ctags version I should use? Thanks

zzkzzzz avatar Oct 20 '22 08:10 zzkzzzz

Apologies we hardcode some stuff about which languages ctags supports, and ctags doesn't fail gracefully if there are conflicting files. I've been meaning to make this more graceful (in sourcegraph/go-ctags), will take a look soon.

keegancsmith avatar Oct 20 '22 13:10 keegancsmith

I didn't get around to this yet, I did spike some time on it though. Is this still a problem for you?

keegancsmith avatar Jan 24 '23 06:01 keegancsmith

@zzkzzzz Can I see the input file that triggered the bug?

masatake avatar Mar 27 '24 13:03 masatake

I'm getting an error when try using zoekt-index with ctags: ignoring universal:ctags or scip: error: starting ctags failed with: Unknown language "Thrift" in "languages" option

I've tried couple of ctags versions, one from install-ctags-alpine.sh and from public repo. Getting same error.

Is there any workaround for this issue? Thanks in advance.

shnipov avatar May 30 '24 16:05 shnipov

Are you sure zoekt-index is using that version of ctags installed from that script? We use that in CI so our CI would be failing if that was the case.

To be fair we should make it a little more flexible on the version of ctags used, which we can explore as a follow-up

keegancsmith avatar May 31 '24 08:05 keegancsmith

I was sure until you asked :) I've build it in a new docker container. But I'll check it again and if the problem persists I will attach my dockerfile. Thanks

shnipov avatar May 31 '24 13:05 shnipov