ctags doesn't understand -e option (no exuberant tags option)

别说谁变了你拦得住时间么 提交于 2019-12-06 22:32:48

问题


When I type ctags -e it returns an error saying it doesn't know that command line option. I thought it should know about exuberant tags because etags works on cli.

Also, I recieve the following error: ctags: unrecognized option --langdef=arc and I have the following in my ~/.ctags file:

--langdef=arc
--langmap=arc:.arc
--regex-arc=/^\(def ([a-zA-Z1-9_*\/<>-]+)/\1/
--regex-arc=/^\(= ([a-zA-Z1-9_*\/<>-]+)/\1/
--regex-scheme=/^\(xdef ([a-zA-Z1-9_*\/<>-]+)/\1/

回答1:


etags is short for "Emacs tags", not "exuberant ctags". It sounds like you have Emacs' etags command installed, not exuberant-ctags'.




回答2:


It turns out that my system has basic ctags installed, but not exuberant-ctags. so even though some etags command existed, exuberant-ctags is still different in some way or another.

sudo apt-get install ctags fixed the problem




回答3:


sudo apt-get install exuberant-ctags 

solved the problem for me. I was running Debian Jessie on an ARM development board, cubietruck.




回答4:


On windows, Emacs comes with etags and a similar executable file called ctags. In the emacs distribution, etags.exe = ctags.exe in the bin directory. You should download Exuberant Ctags from http://ctags.sourceforge.net/ Only exuberant ctags recognize -e option.



来源:https://stackoverflow.com/questions/2580313/ctags-doesnt-understand-e-option-no-exuberant-tags-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!