Help us understand the problem. What is going on with this article?

備忘録_ctags

More than 3 years have passed since last update.

ctagsを使おうとしたらエラーでtagファイルが作れなかった。
今回は解決したので未来の自分への備忘録

ctags導入

下記のフローで導入。

brew install ctags

※ちなみに「ctags-5.8_1」をいれた

ここまでは問題なし

tagファイル作れない・・・

下記コマンドを実行

ctags -R

下記のようになる

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...

ググった結果、aliasを貼ればいいらしいと気づく。

問題へ対応

aliasをはる

alias ctags="`brew --prefix`/bin/ctags"

解決

下記コマンドで無事にtagファイルができた。

ctags -R
y_sekitoba
異業種からweb業界へ転職。 基本的に備忘録がメインです。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした