CTags icon indicating copy to clipboard operation
CTags copied to clipboard

'IndexError: list index out of range' when trying to build tags for the nodejs/node repo

Open shakeelmohamed opened this issue 7 years ago • 5 comments

If I had to guess this could be related to there being too many symbols in the the repo 😄

Building CTags for /Users/<snip>/node: Please be patient
error: An unknown error occured.
Check the console for info.
Exception in thread Thread-163:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 858, in run
  File "ctagsplugin in /Users/<snip>/Library/Application Support/Sublime Text 3/Installed Packages/CTags.sublime-package", line 92, in run
  File "ctagsplugin in /Users/<snip>/Library/Application Support/Sublime Text 3/Installed Packages/CTags.sublime-package", line 891, in build_ctags
  File "ctagsplugin in /Users/<snip>/Library/Application Support/Sublime Text 3/Installed Packages/CTags.sublime-package", line 874, in build_ctags
  File "/Users/<snip>/sublime/Installed Packages/CTags.sublime-package/ctags.py", line 326, in build_ctags
    resort_ctags(tag_file)
  File "/Users/<snip>/sublime/Installed Packages/CTags.sublime-package/ctags.py", line 360, in resort_ctags
    keys.setdefault(line.split('\t')[FILENAME], []).append(line)
IndexError: list index out of range

shakeelmohamed avatar Oct 06 '17 17:10 shakeelmohamed

I have the same problem

saenom avatar Dec 07 '17 08:12 saenom

I'm seeing this on another repo now while trying to rebuild tags.

shakeelmohamed avatar Jan 17 '18 22:01 shakeelmohamed

I was having this problem too. Doing some searching pointed out the ST3 now does it's own indexing so if you mouse over a symbol, a popup appears showing links to where that symbol is defined. Can click on those links to open the file. Or you can right click on the symbol and select "Goto Definition"

stevenchanin avatar Apr 13 '18 23:04 stevenchanin

Also running into this with ruby code. Works fine in other, smaller apps I work on though.

drewish avatar Dec 10 '18 17:12 drewish

https://github.com/SublimeText/CTags/pull/279 fixed this issue for me.

drewish avatar Dec 10 '18 18:12 drewish