fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
517 stars 153 forks source link

Generating reference docs fails on linux #159

Open lfn3 opened 9 years ago

lfn3 commented 9 years ago

After trying the fix in #156, which got me past the error described there, I ran into this:

Missing method FSharp.MetadataFormat.AssemblyGroup::get_Namespaces() in assembly /home/liam/Code/fsharp/ProjectScaffold/packages/FSharp.Formatting/lib/net40/FSharp.MetadataFormat.dll, referenced in assembly data-0x48030d0
System.MissingMethodException: Method not found: 'FSharp.MetadataFormat.AssemblyGroup.get_Namespaces'.
  at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run (RazorEngine.Templating.ExecuteContext context, System.IO.TextWriter reader) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.RunTemplate (ICompiledTemplate template, System.IO.TextWriter writer, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineService.Run (ITemplateKey key, System.IO.TextWriter writer, System.Type modelType, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) RazorEngine.Templating.RazorEngineService:Run (RazorEngine.Templating.ITemplateKey,System.IO.TextWriter,System.Type,object,RazorEngine.Templating.DynamicViewBag)
  at RazorEngine.Templating.RazorEngineService.RunCompile (ITemplateKey key, System.IO.TextWriter writer, System.Type modelType, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.DynamicWrapperService.RunCompile (ITemplateKey key, System.IO.TextWriter writer, System.Type modelType, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile (IRazorEngineService service, System.String name, System.IO.TextWriter writer, System.Type modelType, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineServiceExtensions+<>c__DisplayClass4.<RunCompile>b__3 (System.IO.TextWriter writer) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter (System.Action`1 withWriter) [0x00000] in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile (IRazorEngineService service, System.String name, System.Type modelType, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag) [0x00000] in <filename unknown>:0 
  at <StartupCode$FSharp-MetadataFormat>.$Razor+ProcessFileModel@212[System.Collections.Generic.IDictionary`2[System.String,System.String]].Invoke (Microsoft.FSharp.Core.Unit _arg1) [0x00000] in <filename unknown>:0 
  at FSharp.MetadataFormat.RazorRender.handleCompile[String] (System.String source, Microsoft.FSharp.Core.FSharpFunc`2 f) [0x00000] in <filename unknown>:0 
Stopped due to error

At the "Generating Reference Documentation" step.

This is under Mono 3.2.8, FSharp 3.0 and nuget 2.8.60318.667

I'm not really sure how to debug it further, I'm only really just getting started with F#.

matthid commented 9 years ago

This looks you compile razor templates with a different version of FSharp.Formatting than what you are using at execution time. As normally you should get a TemplateCompilationException for such things. Have you multiple versions of FSharp.Formatting laying around? Is this a clean ProjectScaffold project? Do you have a repro?

lfn3 commented 9 years ago

It was a clean pull, I didn't change any code aside from the package version lock thing in #156.

I did have some issues pulling the packages (intermittent failures during download) but that shouldn't have resulted in multiple copies of the same package... right?

In any case, I'll try another pull and let you know if the same issue occurs.

rneatherway commented 9 years ago

It works fine with mono 4.0.2.