Skip to content

Generating Docs on Mono fails #119

Closed

Description

@devboy

When trying to generate docs on Mono (v3.10 on OSX 10.10) it complains about a missing dll: /Users/devboy/Development/devboy/Paket.Unity3D/docs/tools/generate.fsx(30,1): error FS0078: Unable to find the file 'Microsoft.Web.XmlTransform.dll'

When adding the Microsoft.Web.Xdt dependency and add it to my generate.fsx #I "../../packages/Microsoft.Web.Xdt/lib/net40" I get the following error:

Processing the file 'docpage' failed
Source written to: '/var/folders/_d/n081d8b13hg_xtwhdk94cyx80000gn/T/tmp1743356.tmp.cs'
Compilation errors:
 - error: (0, 0) Assembly `fsi, Version=4.3.1.0, Culture=neutral, PublicKeyToken=f536804aa0eb945b' references `FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

System.Exception: Generating HTML failed.
  at FSharp.Literate.RazorRender.handleCompile[String] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) [0x00000] in <filename unknown>:0
  at FSharp.Literate.RazorRender.ProcessFile[IDictionary`2] (Microsoft.FSharp.Core.FSharpOption`1 properties) [0x00000] in <filename unknown>:0
  at FSharp.Literate.Templating.generateFile (System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) [0x00000] in <filename unknown>:0
  at FSharp.Literate.Templating.processFile (FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in <filename unknown>:0
  at FSharp.Literate.Literate.ProcessMarkdown (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors) [0x00000] in <filename unknown>:0
  at <StartupCode$FSharp-Literate>[email protected] (System.String file, System.String output) [0x00000] in <filename unknown>:0
  at Microsoft.FSharp.Core.FSharpFunc`2[System.String,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, System.String arg2) [0x00000] in <filename unknown>:0
  at <StartupCode$FSharp-Literate>.$Main.processDirectory@180 (Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpFunc`2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc`2 processMarkdown, System.String indir, System.String outdir) [0x00000] in <filename unknown>:0
  at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 outputDirectory, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors) [0x00000] in <filename unknown>:0
  at FSI_0002.buildDocumentation () [0x00000] in <filename unknown>:0
  at <StartupCode$FSI_0002>.$FSI_0002.main@ () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

I am not a .NET developer (just yet) and can't even find the 4.3.1.0 of FSharp.Core, or if that is even the real issue.
Can you give me any pointers?

Activity

  1. forki commented on Nov 8, 2014

    @forki
    Member

    we also see this guy (Microsoft.Web.XmlTransform.dll) making trouble in
    other FAKE builds. I assume there is something fucky in mono+FAKE.

    2014-11-08 21:21 GMT+01:00 Dominic Graefen [email protected]:

    When trying to generate docs on Mono (v3.10 on OSX 10.10) it complains
    about a missing dll: /Users/devboy/Development/devboy/Paket.Unity3D/docs/tools/generate.fsx(30,1):
    error FS0078: Unable to find the file 'Microsoft.Web.XmlTransform.dll'

    When adding the Microsoft.Web.Xdt dependency and add it to my
    generate.fsx #I "../../packages/Microsoft.Web.Xdt/lib/net40" I get the
    following error:

    Processing the file 'docpage' failed
    Source written to: '/var/folders/_d/n081d8b13hg_xtwhdk94cyx80000gn/T/tmp1743356.tmp.cs'
    Compilation errors:

    • error: (0, 0) Assembly fsi, Version=4.3.1.0, Culture=neutral, PublicKeyToken=f536804aa0eb945b' referencesFSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

    System.Exception: Generating HTML failed.
    at FSharp.Literate.RazorRender.handleCompile[String](System.String source, Microsoft.FSharp.Core.FSharpFunc2 f) [0x00000] in <filename unknown>:0 at FSharp.Literate.RazorRender.ProcessFile[IDictionary2](Microsoft.FSharp.Core.FSharpOption1 properties) [0x00000] in <filename unknown>:0 at FSharp.Literate.Templating.generateFile (System.String contentTag, IEnumerable1 parameters, Microsoft.FSharp.Core.FSharpOption1 templateOpt, System.String output, IEnumerable1 layoutRoots) [0x00000] in :0
    at FSharp.Literate.Templating.processFile (FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in :0
    at FSharp.Literate.Literate.ProcessMarkdown (System.String input, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 output, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors) [0x00000] in :0
    at <StartupCode$FSharp-Literate>.$[email protected] (System.String file, System.String output) [0x00000] in :0
    at Microsoft.FSharp.Core.FSharpFunc2[System.String,System.String].InvokeFast[Unit](Microsoft.FSharp.Core.FSharpFunc2 func, System.String arg1, System.String arg2) [0x00000] in :0
    at <StartupCode$FSharp-Literate>.$Main.processDirectory@180 (Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpFunc2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc2 processMarkdown, System.String indir, System.String outdir) [0x00000] in <filename unknown>:0 at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 outputDirectory, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors) [0x00000] in :0
    at FSI_0002.buildDocumentation () [0x00000] in :0
    at <StartupCode$FSI_0002>.$FSI_0002.main@ () [0x00000] in :0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0

    I am not a .NET developer (just yet) and can't even find the 4.3.1.0 of
    FSharp.Core.
    Can you give me any pointers?

    —
    Reply to this email directly or view it on GitHub
    #119.

  2. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    First of all it seems to be missing from Mono as I had to specifically add it, whereas on .NET it works just fine. Google is not really helpful either.

  3. forki commented on Nov 8, 2014

    @forki
    Member

    I think we need to get rid of it in FAKE. Could please open issue there?
    On Nov 8, 2014 9:30 PM, "Dominic Graefen" [email protected] wrote:

    First of all it seems to be missing from Mono as I had to specifically add
    it, wheres on .NET it works just fine. Google is not really helpful either.

    —
    Reply to this email directly or view it on GitHub
    #119 (comment)
    .

  4. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    Could this be related to this issue here fsprojects/FSharp.Formatting#202

    Theres some code snippet where it forces FSharp.Core 4.3.1.0 on Mono, but I can't see if that code made it into the release.

  5. forki commented on Nov 8, 2014

    @forki
    Member

    mhm. you use paket, right? you could try to use latest FAKE and older FSharp.Formatting.
    The we might see which one is guilty.

    /cc @tpetricek @matthid

  6. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    Can you give me a hint which versions i should compare?
    And yes, I use Paket.

  7. forki commented on Nov 8, 2014

    @forki
    Member

    fsprojects/FSharp.Formatting#202 was released in 2.4.26

  8. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    In 2.4.25 I am getting System.TypeLoadException: Could not load type 'FSharp.CodeFormat.CodeFormatAgent' from assembly 'FSharp.CodeFormat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

    In 2.4.24 this

    System.Exception: Generating HTML failed.
      at FSharp.Literate.RazorRender.ProcessFile[IDictionary`2] (System.String source, Microsoft.FSharp.Core.FSharpOption`1 properties) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.generateFile (System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.processFile (FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessMarkdown (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>[email protected] (System.String file, System.String output) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[System.String,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, System.String arg2) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>.$Main.processDirectory@180 (Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpFunc`2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc`2 processMarkdown, System.String indir, System.String outdir) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Mi
    

    Going down the rabbit hole.

  9. matthid commented on Nov 8, 2014

    @matthid
    Member

    One can work around the "System.Exception: Generation HTML failed." error with fsprojects/FSharp.Formatting#209 (which was reverted because FSharp.Formatting has to decide how to handle dependencies in the future). Basically if you want to have mono support right now you need to bundle your own version of FSharp.Formatting.

    Because this error seems to come up quite often here a short explanation:
    Basically RazorEngine references all currently loaded assemblies for the compilation, but for some assemblies the mono c# compiler throws compilation exceptions because the loaded assemblies seem to be incompatible (most often versioning problems like here)

  10. matthid commented on Nov 8, 2014

    @matthid
    Member

    Because you mentioned it in the initial post FSharp.Core the 4.3.1.0 version is really weird on mono.
    if you do something like Assembly.Load on the 4.3.1.0 verison you get the 4.3.0.0 Assembly...

    Try the following in fsharpi on linux:

    > open System.Reflection;;
    > let ass = Assembly.Load("FSharp.Core, Version=4.3.1.0");;
    
    val ass : Assembly =
      FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    

    That's where the chaos begins.

  11. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    So i've built https://github.com/matthid/FSharp.Formatting/tree/razor_engine_update
    but still getting:

    Generating 'index.html'
    
    Processing the file 'docpage' failed
    Source written to: '/var/folders/_d/n081d8b13hg_xtwhdk94cyx80000gn/T/tmp3eb6119c.tmp.cs'
    Compilation errors:
     - error: (0, 0) Assembly `fsi, Version=4.3.1.0, Culture=neutral, PublicKeyToken=f536804aa0eb945b' references `FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    
    System.Exception: Generating HTML failed.
      at FSharp.Literate.RazorRender.handleCompile[String] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) [0x00000] in <filename unknown>:0
      at FSharp.Literate.RazorRender.ProcessFileModel[IDictionary`2] (System.Object model, Microsoft.FSharp.Core.FSharpOption`1 properties) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption`1 references, System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption`1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessMarkdown (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>[email protected] (System.String file, System.String output) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[System.String,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, System.String arg2) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>.$Main.processDirectory@180 (Microsoft.FSharp.Core.FSharpOption`1 format, Boolean processRecursive, Microsoft.FSharp.Core.FSharpFunc`2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc`2 processMarkdown, System.String indir, System.String outdir) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 outputDirectory, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 processRecursive) [0x00000] in <filename unknown>:0
      at FSI_0002.buildDocumentation () [0x00000] in <filename unknown>:0
      at <StartupCode$FSI_0002>.$FSI_0002.main@ () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Stopped due to error
    Running build failed.
    Error:
    System.Exception: generating help documentation failed
    
  12. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    And changed my imports in the generate.fsx

    //#I "../../packages/FSharp.Formatting/lib/net40"
    //#I "../../packages/RazorEngine/lib/net40"
    //#I "../../packages/FSharp.Compiler.Service/lib/net40"
    #I "../../../FSharp.Formatting/bin"
    #I "../../packages/Microsoft.Web.Xdt/lib/net40"
    #r "../../packages/Microsoft.AspNet.Razor/lib/net40/System.Web.Razor.dll"
    #r "../../packages/FAKE/tools/NuGet.Core.dll"
    #r "../../packages/FAKE/tools/FakeLib.dll"
    #r "RazorEngine.dll"
    #r "FSharp.Literate.dll"
    #r "FSharp.CodeFormat.dll"
    #r "FSharp.MetadataFormat.dll"
    
  13. matthid commented on Nov 8, 2014

    @matthid
    Member

    exactly, now you should be able to work around this by specifying the assemblies for compilation manually (as explained in fsprojects/FSharp.Formatting#209)... (ie specifying the references parameter in the modified FSharp.Formatting API... the ProcessDirectory call in your case).

    Please tell me if you need more help.

  14. devboy commented on Nov 8, 2014

    @devboy
    ContributorAuthor

    That makes sense. Overlooked that part. Will give it a try tomorrow.

  15. tpetricek commented on Nov 9, 2014

    @tpetricek
    Member

    I'd be happy with anything that makes this work better.

    I chatted with @swlaschin and a few others interested in F# Formatting and the general conclusion was that using DotLiquid would be much nicer - so this is the long term plan.

    In the short term, I wouldn't mind using another NuGet package or even just packaging the DLLs we need with the project directly (yes, this breaks generate.fsx scripts, but I think that's fine - most projects only update F# Formatting by hand - so they'll notice and the fix won't be that hard).

  16. added a commit that references this issue on Jan 18, 2015
    a4818b5
  17. matthid commented on Jan 20, 2015

    @matthid
    Member

    You can now try with #135.

  18. devshorts commented on Jul 26, 2015

    @devshorts

    Hey everyone, came to try out the scaffolds today on mono as well and getting a similar error:

    FSharp.Formatting Information: 0 : FSharp.Formatting Logging setup!
    Yaaf.FSharp.Scriping Information: 0 : Yaaf.FSharp.Scripting Logging setup!
    Copying file: /Users/akropp/src/personal/ProjectScaffold/docs/output/img/logo-template.pdn
    Copying file: /Users/akropp/src/personal/ProjectScaffold/docs/output/img/logo.png
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/style.css
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/style.css.bak
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/style_light.css
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/tips.js
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/img/github-blue.png
    Copying styles and scripts: /Users/akropp/src/personal/ProjectScaffold/docs/output/content/img/github.png
    Generating '/Users/akropp/src/personal/ProjectScaffold/docs/tools/../content/index.html'
    FSharp.Formatting Critical: 0 :
    Processing the file 'docpage' failed
    Source written to: '/var/folders/14/q83_4prd2pj0wq43hqk88j5w4kx0d8/T/tmp21816c2e.tmp.cs'
    Compilation errors:
     - error: (0, 0) Assembly `fsi, Version=4.3.1.0, Culture=neutral, PublicKeyToken=f536804aa0eb945b' references `FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    
    System.Exception: Generating HTML failed.
      at FSharp.Literate.RazorRender.handleCompile[String] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) [0x00000] in <filename unknown>:0
      at FSharp.Literate.RazorRender.ProcessFileModel[IDictionary`2] (System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption`1 properties) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption`1 references, System.String contentTag, IEnumerable`1 parameters, Microsoft.FSharp.Core.FSharpOption`1 templateOpt, System.String output, IEnumerable`1 layoutRoots) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption`1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 output, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>[email protected] (System.String file, System.String output) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[System.String,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, System.String arg2) [0x00000] in <filename unknown>:0
      at <StartupCode$FSharp-Literate>.$Main.processDirectory@199 (Microsoft.FSharp.Core.FSharpOption`1 format, Boolean processRecursive, Microsoft.FSharp.Core.FSharpFunc`2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc`2 processMarkdown, System.String indir, System.String outdir) [0x00000] in <filename unknown>:0
      at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption`1 templateFile, Microsoft.FSharp.Core.FSharpOption`1 outputDirectory, Microsoft.FSharp.Core.FSharpOption`1 format, Microsoft.FSharp.Core.FSharpOption`1 formatAgent, Microsoft.FSharp.Core.FSharpOption`1 prefix, Microsoft.FSharp.Core.FSharpOption`1 compilerOptions, Microsoft.FSharp.Core.FSharpOption`1 lineNumbers, Microsoft.FSharp.Core.FSharpOption`1 references, Microsoft.FSharp.Core.FSharpOption`1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption`1 replacements, Microsoft.FSharp.Core.FSharpOption`1 includeSource, Microsoft.FSharp.Core.FSharpOption`1 layoutRoots, Microsoft.FSharp.Core.FSharpOption`1 generateAnchors, Microsoft.FSharp.Core.FSharpOption`1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption`1 processRecursive, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) [0x00000] in <filename unknown>:0
      at FSI_0003.buildDocumentation () [0x00000] in <filename unknown>:0
      at <StartupCode$FSI_0003>.$FSI_0003.main@ () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Stopped due to error
    Running build failed.
    Error:
    System.Exception: generating help documentation failed
      at FSI_0001.Build.generateHelp' (Boolean fail, Boolean debug) [0x00000] in <filename unknown>:0
      at [email protected] (Microsoft.FSharp.Core.Unit _arg1) [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
    ------         --------
    Clean          00:00:00.0032827
    AssemblyInfo   00:00:00.0090185
    Build          00:00:03.8195270
    CopyBinaries   00:00:00.0035621
    RunTests       00:00:00.7889371
    CleanDocs      00:00:00.0031411
    Total:         00:00:11.4937800
    Status:        Failure
    ---------------------------------------------------------------------
      1) System.Exception: generating help documentation failed
      at FSI_0001.Build.generateHelp' (Boolean fail, Boolean debug) [0x00000] in <filename unknown>:0
      at [email protected] (Microsoft.FSharp.Core.Unit _arg1) [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```
    
    I did a git clone of the scaffolds project and ran `./build.sh`
    
  19. matthid commented on Jul 26, 2015

    @matthid
    Member

    @devshorts This seems to be similar to fsprojects/FSharp.Formatting#323. Can you try to update your packages (especially mono)? Otherwise add the workaround I suggested in the linked issue.

  20. edhzsz commented on Oct 10, 2015

    @edhzsz

    Also similar to #205. I have updated everything and I can still reproduce the issue. My workaround still works after updating everything.

    My OSX 10.11 installation was a clean install. So right now I have a clean environment with the latests versions of XCode, Xamarin and Node on it.

    For me, this is a OSX only issue as I am able to build the project as is on Windows and Ubuntu.

    Building FSharp.Formatting on my Macbook generates the same error message when building its own documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions