sergei-mironov/haskdogs

Argument list is too long for big project.

Closed this issue · 4 comments

The error happens when calling hasktags -c -x a-long-list-of-files, and the list is more than 400kilobytes.
The full log is:

...
> hasktags -c -x ...
haskdogs: hasktags: readCreateProcess: runInteractiveProcess: exec: resource exhausted (Argument list too long)

Could you please provide the exact error message? Did you try to use --dir-list or --file-list options to make haskdogs read input from files?

@grwlf Thanks for the reply, I've added more details in the question.
I find hasktags has an option to read file list from stdin, maybe we should use that.
I tried to save the file list to a file one line per file name, and run:

hasktags -c -x STDIN < /tmp/filelist

It works well.

Thanks, I've understood the problem. Could you please check https://hackage.haskell.org/package/haskdogs-0.5.3 or latest master ?

Yeah, it works now.