-
Notifications
You must be signed in to change notification settings - Fork 900
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
Unable to build the doc #346
Comments
Just one more question : have you ever thought about a readthedoc version of the doc ? It might simplify the process of documenting mathnet ? Lionel |
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. |
Dear Christopher, I've pulled the latest revision of the master branch but I still get the same error while building the doc : Time Elapsed 00:00:18.4307190
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: Docs (==> CleanDocs, Build)
fsharpi --define:RELEASE 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 FSI_0001.Build+clo@763-102.Invoke (Microsoft.FSharp.Core.Unit _arg1) [0x00000] in <filename unknown>:0
at Fake.TargetHelper+targetFromTemplate@195[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.0002999
Clean 00:00:00.0393224
ApplyVersion 00:00:00.0570878
Prepare 00:00:00.0000296
BuildMain 00:00:18.6538081
Build 00:00:00.0000557
CleanDocs 00:00:00.0005591
Total: 00:00:24.2969990
Status: Failure
---------------------------------------------------------------------
1) System.Exception: Generating documentation failed
at FSI_0001.Build.generateDocs (Boolean fail, Boolean local) [0x00000] in <filename unknown>:0
at FSI_0001.Build+clo@763-102.Invoke (Microsoft.FSharp.Core.Unit _arg1) [0x00000] in <filename unknown>:0
at Fake.TargetHelper+targetFromTemplate@195[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
--------------------------------------------------------------------- |
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. |
The docs build problem could be related to: fsprojects/ProjectScaffold#210 |
Thanks Christoph,
|
Adapt and apply patch from fsprojects/ProjectScaffold#217
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! |
Hi Chris, I’ve just build the doc on my mac : it’s working ! Thanks,
|
Great, thanks for the update! Leaving this open for now as readthedocs would still be an option. |
Hello,
I've tried to build the doc (running
build.sh DocsWatch
orbuild.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
The text was updated successfully, but these errors were encountered: