Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The --tags-absolute option is incompatible with reading files from stdin. #22

Open
ntc2 opened this issue Mar 3, 2016 · 1 comment
Open

Comments

@ntc2
Copy link

ntc2 commented Mar 3, 2016

Doing

hasktags --tags-absolute STDIN

results in the error

hasktags: STDIN: canonicalizePath: does not exist (No such file or directory)

because canonicalizePath is applied to all files at

then sequence $ map canonicalizePath files_or_dirs_unexpanded
.

It think the correct behavior is to first convert STDIN into a list of files read from stdin and then call canonicalizePath. If you agree with this solution and don't want to implement it yourself, I would be happy to submit a pull request.

@ntc2
Copy link
Author

ntc2 commented Mar 3, 2016

Work around on systems with readlink -f (Linux has it but Mac does not, I think):

<generate files> | xargs -n1 readlink -f | hasktags STDIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant