{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/841","labels_url":"https://api.github.com/repos/bbatsov/projectile/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/projectile/issues/841/comments","events_url":"https://api.github.com/repos/bbatsov/projectile/issues/841/events","html_url":"https://github.com/bbatsov/projectile/issues/841","id":100531068,"number":841,"title":"projectile-tags-command is not getting any values. ","user":{"login":"ReneFroger","id":5211845,"avatar_url":"https://avatars.githubusercontent.com/u/5211845?v=3","gravatar_id":"","url":"https://api.github.com/users/ReneFroger","html_url":"https://github.com/ReneFroger","followers_url":"https://api.github.com/users/ReneFroger/followers","following_url":"https://api.github.com/users/ReneFroger/following{/other_user}","gists_url":"https://api.github.com/users/ReneFroger/gists{/gist_id}","starred_url":"https://api.github.com/users/ReneFroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReneFroger/subscriptions","organizations_url":"https://api.github.com/users/ReneFroger/orgs","repos_url":"https://api.github.com/users/ReneFroger/repos","events_url":"https://api.github.com/users/ReneFroger/events{/privacy}","received_events_url":"https://api.github.com/users/ReneFroger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-12T12:24:21Z","updated_at":"2015-12-24T16:49:50Z","closed_at":null,"body":"With the package `projectile`, I use `projectile-regenate-tags`. At the name already says, it regenates the TAGS-table of the current project on the project root.\r\n\r\nIt works likke a charm. However, I noticed not all files are included, the files with `.inc`-extension. I would make it so.\r\n\r\nA good command for this could be the following:\r\n\r\n    ctags -f TAGS -e -R --langmap=php:+.inc.foo.bar --list-maps=php\r\n\r\nI would like that `projectile-regenate-tags` use these parameters. When looking up the source code of `projectile-regenate-tags`, I found the following:\r\n\r\n    (defun projectile-regenerate-tags ()\r\n    \"Regenerate the project's [e|g]tags.\"\r\n    (interactive)\r\n    (if (boundp 'ggtags-mode)\r\n        (progn\r\n            (let* ((ggtags-project-root (projectile-project-root))\r\n                (default-directory ggtags-project-root))\r\n            (ggtags-ensure-project)\r\n            (ggtags-update-tags t)))\r\n        (let* ((project-root (projectile-project-root))\r\n            (tags-exclude (projectile-tags-exclude-patterns))\r\n            (default-directory project-root)\r\n            (tags-file (expand-file-name projectile-tags-file-name))\r\n            (command (format projectile-tags-command tags-file tags-exclude))\r\n            shell-output exit-code)\r\n        (with-temp-buffer\r\n            (setq exit-code\r\n                (call-process-shell-command command nil (current-buffer))\r\n                shell-output (projectile-trim-string\r\n                                (buffer-substring (point-min) (point-max)))))\r\n        (unless (zerop exit-code)\r\n            (error shell-output))\r\n        (visit-tags-table tags-file))))\r\n\r\nAha, then look up what `projectile-tags-command` consists of. \r\n\r\n    (defcustom projectile-tags-command \"ctags -Re -f \\\"%s\\\" %s\"\r\n    \"The command Projectile's going to use to generate a TAGS file.\"\r\n    :group 'projectile\r\n    :type 'string)\r\n\r\n\r\nSo in my `init.el`, I setted the variable `projectile-tags-command` to the following:\r\n\r\n    (setq projectile-tags-command \"ctags -Re -f \\\"%s\\\" %s --langmap=php:+.inc.foo.bar --list-maps=php\")\r\n\r\nEvaluated it, and calling `projectile-regenate-tags`, I still don't get any relevant files with the extension `.inc`. So perhaps Projectile is not getting he value of setted variable `projectile-tags-command`. \r\n\r\nAny suggestion to do in order to debug this? "},"comment":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/comments/167136083","html_url":"https://github.com/bbatsov/projectile/issues/841#issuecomment-167136083","issue_url":"https://api.github.com/repos/bbatsov/projectile/issues/841","id":167136083,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T16:49:50Z","updated_at":"2015-12-24T16:49:50Z","body":"https://github.com/fommil/dotfiles/blob/master/.ctags\r\n\r\nThis is needed for any language that isn't supported by default. BTW, I use exuberant-ctags not the etags that came with Emacs."}}