SublimeText / CTags

CTags support for Sublime Text
MIT License
987 stars 167 forks source link

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

Closed shakeelmohamed closed 9 months ago

shakeelmohamed commented 7 years ago

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
saenom commented 6 years ago

I have the same problem

shakeelmohamed commented 6 years ago

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

stevenchanin commented 6 years ago

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"

drewish commented 5 years ago

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

drewish commented 5 years ago

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

drewish commented 9 months ago

Hey, glad to see someone is maintaining this again! Thank you!