codex icon indicating copy to clipboard operation
codex copied to clipboard

hasktags --ignore-close-implementation seems broken

Open ggVGc opened this issue 8 years ago • 3 comments

Setting tagsCmd to hasktags --ignore-close-implementation seems to only have effect on the files in the current project, and not in any of the dependencies. This is a bit annoying since without it the tags file ends up having duplicates of every function, once for the declaration and once for implementations.

ggVGc avatar Feb 27 '16 01:02 ggVGc

+1 but actually, Codex should be set to use --ignore-close-implementation by default for everything in addition to fixing having it work correctly.

wolftune avatar Mar 02 '16 21:03 wolftune

@ggVGc I do not see how the behavior you describe could happen, besides the fact that you are getting outdated tags file from the cache.

Could you try to run codex cache clean before re-running codex update, this required if you change the tagger configuration and you had used codex before.

@wolftune you mean in the default configuration, similar to how follow-symlinks is defined? (https://github.com/aloiscochard/codex/blob/master/src/Codex.hs#L71-L73)

aloiscochard avatar Apr 05 '16 13:04 aloiscochard

@aloiscochard yes, that sounds like exactly what I mean. I didn't investigate thoroughly, but yes, --ignore-close-implementation should be always on as default for hasktags. The truth is, it should be made the default behavior for hasktags itself, and then it wouldn't be a codex issue, but for now…

wolftune avatar Apr 05 '16 16:04 wolftune