gem-ctags不会生成任何标记

时间:2021-02-06 21:07:32

There's a problem when I use gem install gem-ctags and then gem ctags, It doesn't show any message and doesn't generate any tags on the terminal, nor is there any gem's tags in my tag file.

当我使用gem install gem-ctags然后使用gem ctags时出现问题,它没有显示任何消息,也没有在终端上生成任何标签,我的标签文件中也没有任何gem标签。

gem-ctags不会生成任何标记

This link is my dotfile, https://github.com/HexterCH/dotfile, is there anything I do wrong? Let me know if information is not enough.

这个链接是我的dotfile,https://github.com/HexterCH/dotfile,有什么我做错的吗?如果信息不够,请告诉我。

1 个解决方案

#1


0  

This is the solution from @larrylv, and it's work.

这是@larrylv的解决方案,它的工作原理。

Remove gem plugin for zshrc, it will make conflict in your gem path. after that, source zshrc file and run gem ctags again.

删除zshrc的gem插件,它会在你的gem路径中产生冲突。之后,源zshrc文件并再次运行gem ctags。

You can chase your gem path by using gem env home. It should be like /Users/<your name>/<your ruby manager>/versions/<your ruby version>/lib/ruby/gems/

你可以使用gem env home来追逐你的宝石路径。它应该像/ Users / <你的名字> / <你的ruby管理器> / versions / <你的ruby版本> / lib / ruby​​ / gems /

#1


0  

This is the solution from @larrylv, and it's work.

这是@larrylv的解决方案,它的工作原理。

Remove gem plugin for zshrc, it will make conflict in your gem path. after that, source zshrc file and run gem ctags again.

删除zshrc的gem插件,它会在你的gem路径中产生冲突。之后,源zshrc文件并再次运行gem ctags。

You can chase your gem path by using gem env home. It should be like /Users/<your name>/<your ruby manager>/versions/<your ruby version>/lib/ruby/gems/

你可以使用gem env home来追逐你的宝石路径。它应该像/ Users / <你的名字> / <你的ruby管理器> / versions / <你的ruby版本> / lib / ruby​​ / gems /