当前位置: 首页 > 工具软件 > Ctags > 使用案例 >

ctags 报错

纪畅
2023-12-01
Exception in thread Thread-9:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./ctagsplugin.py", line 96, in run
    result = func(*args, **kwargs)
  File "./ctagsplugin.py", line 686, in build_ctags
    ctags.build_ctags(cmd, tag_file)
  File "./ctags.py", line 175, in build_ctags
    if ret: raise EnvironmentError((cmd, ret, p.stdout.read()))

EnvironmentError: (u'ctags -R -f .tags', 1, 'ctags: illegal option -- R\nusage: ctags [-BFadtuwvx] [-f tagsfile] file ...\n')




只要重新设置一下ctags就行了。

在/usr/bin/目录下的ctags不是自定义的ctags.




Finished building /Users/riddick/linux-my-test/x_man/.tags
Re/Building CTags for /Users/riddick/linux-my-test/.tags: Please be patient
Exception in thread Thread-6:

ctags总是在不正确的路劲下开始检索文件,并记录。这是因为在父文件夹里面有.tags文件,只要删除父文件夹里的.tags文件就行了



CTags.sublime-settings 文件里面

"command"   :  "ctags -R -f .tags --exclude=build --exclude=output --exclude=supports\\libs", 排除文件夹 build、output、supports\\libs




 类似资料: