vim-erlang / vim-erlang-tags

Generate Vim tags for Erlang files
https://vim-erlang.github.io
Other
61 stars 23 forks source link

--ignore not working with wildcards after recent refactor #35

Closed lukebakken closed 5 years ago

lukebakken commented 5 years ago

To reproduce:

vim_erlang_tags.erl --ignore '*/dialyzer/*'

Output:

File ""*/dialyzer/*"" is not a proper file.

Caused by this commit:

https://github.com/vim-erlang/vim-erlang-tags/commit/1fb0a9dc5a88c568cbd9a25417edfdbaa52a5a4a

https://github.com/vim-erlang/vim-erlang-tags/blob/master/bin/vim_erlang_tags.erl#L249-L258

The previous behavior allowed for wildcards, as indicated by the help doc:

  -i, --ignore FILE_WILDCARD
                Ignore the files/directories that match the given wildcard.
                Read http://www.erlang.org/doc/man/filelib.html#wildcard-1 for
                the wildcard patterns.
lukebakken commented 5 years ago

@NelsonVides I thought I'd bring this to your attention. Thanks!

NelsonVides commented 5 years ago

@lukebakken Ah, I see what happened! That reminds me, that the best thing this repo needs next is proper testing. I just didn't try wildcards :cry: I'm fixing this asap, hold on!

NelsonVides commented 5 years ago

@lukebakken solved on #36, just wait for merge ;)