ctagsx icon indicating copy to clipboard operation
ctagsx copied to clipboard

Getting a ctagsx: No tags found <some_file> in VScode

Open sarki94g opened this issue 3 years ago • 4 comments

Not sure why the tag is not found, the specific tags that can't be found do appear in the .tags file. I double checked that the tag is followed by a tab space. tags file is 32k lines long.

sarki94g avatar Mar 16 '22 17:03 sarki94g

I should add that many tags ARE found and ctrl-t/alt-t work fine in vscode although some tags are NOT found. There are no issues in using this tags file with VIM on Linux. The tags file was created with universal-ctags

sarki94g avatar Mar 16 '22 17:03 sarki94g

Sorry, can't really help you without some sort of example/test case. Best guess is that the tags aren't completely sorted alphabetically

jtanx avatar Mar 16 '22 21:03 jtanx

Not sure what the requirements are for sorting but I used the VIM built-in to sort. That said, when reviewing the file, the UPPER case is alphabetized first followed by symbols (_, etc), and lastly lower case. Is this type of sort compatible?

sarki94g avatar Mar 17 '22 15:03 sarki94g

Another observation here: Within top_level.v there is an module instantiation with the name BLK_IRQ_TOP. Placing the cursor on that name along with ctrl-t jumps into the file (BLK_IRQ_TOP_file.v). Within the BLK_IRQ_TOP_file.v there is the line "module BLK_IRQ_TOP ......" Placing the cursor on that name and pressing ctrl-t results in "tag not found". Now I realize that this is not an actual use case but I thought it does help to characterize the behavior.

some tag names begin with: _ (underscore )or ` (backtick)

tag names will have mixed UPPER and lower case with sprinkling of underscore char "_".

sarki94g avatar Mar 17 '22 15:03 sarki94g