ctagsコマンドは、「通常のファイルではない」と言って反論しません

StackOverflow https://stackoverflow.com/questions/2968542

  •  24-10-2019
  •  | 
  •  

質問

走るとき ctags -R *, 、すべてのディレクトリは通常のファイルではなく、再帰的にタグを生成するのではなくスキップするというエラーが発生します。

ctags: skipping arpa: it is not a regular file.
ctags: skipping asm: it is not a regular file.
ctags: skipping asm-generic: it is not a regular file.
ctags: skipping bits: it is not a regular file.
ctags: skipping blkid: it is not a regular file.
ctags: skipping boost: it is not a regular file.

何が問題ですか?

役に立ちましたか?

解決

に似ている これこれ, 、問題は、熱狂的なCTAGを実行していないことです。GNUEMACSを実行しています etags, 、これも提供します ctags 実行可能。走る ctags --version そして、あなたは次のようなものを見るでしょう:

ctags (GNU Emacs 23.1)
Copyright (C) 2009 Free Software Foundation, Inc.
This program is distributed under the terms in ETAGS.README

そして、あなたが男のページを見るなら、あなたはそれを見るでしょう -R 実際には同等です --no-regex. 。実際、Man Pageは再帰としてオプションとして言及していません。

   -R, --no-regex
          Don't  do  any more regexp matching on the following files.  May
          be freely intermixed with filenames and the --regex option.

シェルマジックを使用してタグを再帰的に生成する可能性がありますが、熱狂的なCTAGを期待している場合は、将来的に問題に遭遇する可能性があります。したがって、最良の解決策は、おそらく代わりに必要なCTAGをインストールすることです。

sudo apt-get install exuberant-ctags

熱狂的なCTAGは、出典からもインストールできます。

http://ctags.sourceforge.net/

他のヒント

エルビスツールがインストールされている場合に発生します。のようなものでそれらを削除します

sudo apt-get remove elvis-tools 

そして、Exuberant-Ctagsをインストールします

sudo apt-get install exuberant-ctags
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top