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

-o- oddity #86

Open
joeyh opened this issue Mar 24, 2022 · 0 comments
Open

-o- oddity #86

joeyh opened this issue Mar 24, 2022 · 0 comments

Comments

@joeyh
Copy link

joeyh commented Mar 24, 2022

hasktags . -o-
hasktags: <stdout>: hPutStr: illegal operation (handle is closed)

This is surprising and seems broken. I eventually figured out that, since hasktags defaults to generating both ctags and etags (-b is default), with -o- it first outputs one, and then tries to output the other. Apparently the output of the first ends by closing stdout, so the output of the second one fails.

The workaround is to use -c or -e. But I think it would probably make sense to make -b not be the default when using -o. As it is, -o foo first writes the ctags to foo, then overwrites that file with the etags.

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