FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

Connection reset in 'watch' mode

Open davedawkins opened this issue 4 years ago • 2 comments

Running this command on mac: dotnet fsdocs watch

Output:

  copying /Users/david/.nuget/packages/fsharp.formatting.commandtool/11.4.1/extras/content/img/copy-xml-hover.png --> ./content/img/copy-xml-hover.png
starting server on http://localhost:8901 for content in /Users/david/projects/Sutil/tmp/watch
launching browser window to open http://localhost:8901/

Press any key to continue ...[15:53:29 INF] Smooth! Suave listener started in 41.886ms with binding 127.0.0.1:8901

Browser says:

The connection was reset

The connection to the server was reset while the page was loading.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Not sure how to diagnose this further. Nothing in the browser dev console.

It looks like docs are generated fine. What actually I want to do is view the docs locally with links and image references that point at local pages/images instead of https://github.... I was hoping fsdocs watch would do that for me.

davedawkins avatar Jul 28 '21 15:07 davedawkins

This is caused by an empty docs folder (I've only wanted API docs). I will try and submit a PR for this - either documentation or code fix (issue warning or just handle empty docs folder)

davedawkins avatar Jul 28 '21 15:07 davedawkins

I'm having this issue even with docs not being empty.

That folder should contain the .xml, right?

reinux avatar Jun 26 '23 22:06 reinux