2015-12-15 49 views
2

執行「ctags -R」後出現以下錯誤。無法在linux中創建ctags

命令 -

[email protected][/opt/soe/projects/sr_4k_10_1_x/pihu/sr1] >ctags -R 

輸出 -

/opt/tools/unsupported/bin/ctags: no input files specified. 
     Try `/opt/tools/unsupported/bin/ctags --help' for a complete list of options. 

命令 -

[email protected][/opt/soe/projects/sr_4k_10_1_x/pihu/sr1] >which ctags 

輸出 -

/opt/tools/bin/ctags 

附加信息 - 我在/ home/pihu路徑中使用了兩個文件.bashrc和.cshrc。

的.bashrc: -

export PS1="\[email protected]\h\w>" 
alias 2k4k='cd /opt/soe/projects/sr_4k_10_1_x/pihu' 
alias avm='cd /opt/soe/projects/sr_4k_10_1_x/pihu' 
export PATH=$PATH:/opt/tools/unsupported/bin:/opt/tools/bin:/tiara/local/bin:/opt/unsupported/bin:/opt/soe/lb/sr_lbtools/bin:/opt/soe/lb/sr_lbtools:/opt/soe/lb/sr_lbtools/tiara/local/bin:/usr/bin/ 

回答

0

對於-R(遞歸)選項,您仍然需要提供一個路徑:

ctags -R . 

我總是喜歡生成文件列表,我想先使用。事情是這樣的:

find . -name *.c -type f > cscope.files 
find . -name *.h -type f >> cscope.files 

然後我運行的ctags與-l選項,如:

ctags -L cscope.files 
0

追加點到ctags命令:

ctags -R .