I'm using the Sublime Text 3 with Ruby On Rails projects.
Some time ago, I setup CTags using this tutorial.
It was fine, but suddenly stopped to work. I'm getting the following error when try to rebuild the tags of project.
/bin/sh: ctags_for_ruby: command not found
These are my files:
/usr/local/bin/ctags_for_ruby:
#!/usr/bin/env ruby
system "find . -name '*.rb' | ctags -f .tags -L -"
if File.exist? './Gemfile'
require 'bundler'
paths = Bundler.load.specs.map(&:full_gem_path).join(' ')
system "ctags -R -f .gemtags #{paths}"
end
~/Library/Application Support/Sublime Text 3/Packages/User/CTags.sublime-settings
{
"debug" : false,
"autocomplete": false,
"command" : "ctags_for_ruby",
"filters" : {
"source.python": {"type":"^i$"}
},
"definition_filters": {
"source.php": {"type":"^v$"}
},
"definition_current_first": true,
"show_context_menus": true,
"extra_tag_paths" : [ [["source.python", "windows"], "C:\\Python27\\Lib\\tags"]],
"extra_tag_files" : [".gemtags", ".tags"]
}
And the $PATH
variable includes /usr/local/bin
directory.
Why Sublime can't find/execute the ctags_for_ruby
file?