Repository navigation
Closed
fsprojects/ProjectScaffold
#217Description
Hello,
I've tried to build the doc (running build.sh DocsWatch or build.sh DocsDev) but get into troubles (see error report bellow).
Do you have any thoughts how to bypass this ?
Thank you,
Lionel
System : mac OSX 10.10.5 - mono 4.0.4 - xamarin studio
132 Warning(s)
0 Error(s)
Time Elapsed 00:00:28.5451170
Finished Target: BuildMain
Starting Target: Build (==> BuildMain)
Finished Target: Build
Starting Target: CleanDocs (==> Start, Build)
Deleting contents of out/docs
Finished Target: CleanDocs
Starting Target: DocsDev (==> CleanDocs)
fsharpi build-docs.fsx
FSharp.Formatting Information: 0 : FSharp.Formatting Logging setup!
Yaaf.FSharp.Scriping Information: 0 : Yaaf.FSharp.Scripting Logging setup!
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/docs/tools/build-docs.fsx(26,1): error FS0078: Unable to find the file 'Microsoft.Web.XmlTransform.dll' in any of
/Library/Frameworks/Mono.framework/Versions/4.0.4/lib/mono/4.5
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/packages/FSharp.Formatting/.
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/packages/FSharp.Formatting/lib/net40
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/packages/FSharp.Formatting/../FSharp.Compiler.Service/lib/net45
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/packages/FSharp.Formatting/../FSharpVSPowerTools.Core/lib/net45
/Users/Lionel/Public/Git/GitHub/mathnet-numerics/docs/tools
/Library/Frameworks/Mono.framework/Versions/4.0.4/lib/mono/4.5/
Running build failed.
Error:
System.Exception: Generating documentation failed
at FSI_0001.Build.generateDocs (Boolean fail, Boolean local) [0x00000] in <filename unknown>:0
at [email protected] (Microsoft.FSharp.Core.Unit _arg2) [0x00000] in <filename unknown>:0
at Fake.TargetHelper+targetFromTemplate@155[Microsoft.FSharp.Core.Unit].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in <filename unknown>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) [0x00000] in <filename unknown>:0
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
Start 00:00:00.0008006
Clean 00:00:00.0382193
ApplyVersion 00:00:00.0804056
Prepare 00:00:00.0000392
BuildMain 00:00:28.8446678
Build 00:00:00.0000672
CleanDocs 00:00:00.0006310
Total: 00:00:38.4068042
Status: Failure
---------------------------------------------------------------------
1) System.Exception: Generating documentation failed
at FSI_0001.Build.generateDocs (Boolean fail, Boolean local) [0x00000] in <filename unknown>:0
at [email protected] (Microsoft.FSharp.Core.Unit _arg2) [0x00000] in <filename unknown>:0
at Fake.TargetHelper+targetFromTemplate@155[Microsoft.FSharp.Core.Unit].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in <filename unknown>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) [0x00000] in <filename unknown>:0
---------------------------------------------------------------------
lionel:mathnet-numerics Lionel$
Metadata
Metadata
Assignees
Labels
No labels
Activity
lionpeloux commentedon Oct 18, 2015
Just one more question : have you ever thought about a readthedoc version of the doc ? It might simplify the process of documenting mathnet ?
Lionel
cdrnet commentedon Oct 26, 2015
Thanks for reporting this. I've upgraded to a newer version of Fsharp.Formatting (1.10 -> 1.12), if this doesn't resolve the issue we may want to open an issue over there.
Wouldn't readthedoc depend on a local installation of both python and sphinx, and thus no longer be self-contained (and in fact introduce a whole new development ecosystem)? Neither would necessarily be a blocker, but I've been quite happy with Fsharp.Formatting so far.
lionpeloux commentedon Oct 27, 2015
Dear Christopher,
I've pulled the latest revision of the master branch but I still get the same error while building the doc :
lionpeloux commentedon Oct 27, 2015
For RTD use, it looks quite promising, but may not be adapted to this project. It's an idea that may (or may not !) be explored.
It's true that you need a local install of sphinx (however very easy to do) if you want to render the doc on your local machine.
But on the RTD service, you can set up a webhook to the github \docs folder, so it rebuilds the docs automatically every time you append to github. It provides also an automatic pdf version of your doc (useful when you're just an end-user of mathnet and did not clone the repo, if you're working off-line).
However I'm not sure you can easily generate an auto-doc of your code by reading the docstrings you've written. That could be a problem to make API doc.
Otherwise, the RTD sphinx theme looks pretty good. And it's responsive. All you need is to write .rst or .md doc file. See RTD : adding markdown support.
The .Net Core Help is on RTD.
So autodoc of code might be released soon, as explained here. I've also found a sphinx .Net domain.
cdrnet commentedon Nov 8, 2015
The docs build problem could be related to: fsprojects/ProjectScaffold#210
lionpeloux commentedon Nov 9, 2015
Thanks Christoph,
I’ve tried to compile the doc agin, but it still doesn’t work ...
cdrnet commentedon Nov 20, 2015
fsprojects/FSharp.Formatting#328
Build: try to fix doc generation on OS X #346
cdrnet commentedon Nov 24, 2015
I've changed the way we execute the doc generation script. This seems to resolve such build problems on OS X in other projects. Could you give it a spin? Thanks!
lionpeloux commentedon Nov 26, 2015
Hi Chris,
I’ve just build the doc on my mac : it’s working !
Thanks,
Lionel
cdrnet commentedon Nov 27, 2015
Great, thanks for the update!
Leaving this open for now as readthedocs would still be an option.