-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack haddock
should always return location of index.html
#781
Comments
stack haddock
should always return location of index.html (Enhancement)stack haddock
should always return location of index.html
Yeah, that makes sense. I wonder if it should show the locations of all three indices (stack version 0.1.3.1 also generates an index that includes all dependencies, as well as one for all snapshot packages ever installed). A pull request would certainly be welcome. |
OK, I'll see what other responses this gets first. |
Good point! Along with always outputting the filepath, it would be good to ensure that this, and similar outputs, always come at the end of the build. For example, I'd be quite surprised if |
This would be really nice! It's handy that stack prints it out the first time, but it's not exactly a memorable path :) |
I think this is less important now that there's |
Re: However, given the |
I'd prefer to keep it an implementation change. The less caveats that need to be documented, the better! |
I can't see the resolved behavior - neither in stack 1.4 nor stack 1.5. My command will dump some haddock warnings and nothing more. I don't know if it fails - maybe that's why it doesn't write any output, but if so it should say that instead of being silent. |
For me on stack 1.5/Win10:
So as it is I can't reproduce your problem. If you are sure the Paths don't show up while haddock/build does succeed please post OS, Console Log and a project on which it happens so I can take a look. |
No, the paths don't show up when haddock fails, but whether haddock succeeds or not is not apparent. I think either the url should be printed anyways, or some "last message" saying why it's not provided (the haddock build failed) should be printed. |
When would printing the expected URL after a failed haddock call be useful?
Personally I don't see much value in printing it in any of these cases. Improving the feedback to make it clearer that haddock failed is a good idea but doesn't really match this issue imo so if you want to make that feature request it would be better to open a new Issue. Also for me |
Hello,
I propose that
stack haddock
always finishes by printing the location of theindex.html
file.It can be inconvenient tracking down the documentation produced by
stack haddock
while developing a package.When the command produces documentation, the last line of the output is
The last line would be useful when there is no new documentation generated.
Steps to reproduce:
stack haddock
stack haddock
Expected:
The second run produces something like
Actual:
The command prints nothing.
Here is the
stack --version
outputHere is the command I ran with
--verbose
The text was updated successfully, but these errors were encountered: