fsprojects / FsBlog

Blog aware, static site generation using F#.
http://fsprojects.github.io/FsBlog
132 stars 47 forks source link

Raw clone then build doesn't work #58

Open simendsjo opened 8 years ago

simendsjo commented 8 years ago

Description

Cannot build blog from direct clone

Repro steps

1) clone 2) ./build 3) ./fake

Expected behavior

Build the default site

Actual behavior

Crash

Known workarounds

None

Related information

cdrnet commented 8 years ago

Do you see an exception or stack trace?

simendsjo commented 8 years ago
Paket version 2.62.6.0
0 seconds - ready.
Building project with version: LocalBuild
Shortened DependencyGraph for Target Preview:
<== Preview
   <== Clean

The resulting target order is:
 - Clean
 - Preview
Starting Target: Clean 
Deleting contents of /home/simendsjo/code/tmp/fsblog-bug/FsBlog/output/
Finished Target: Clean
Starting Target: Preview (==> Clean)
Generating archive: 2013 November
Something went wrong: RazorEngine.Templating.TemplateCompilationException: Errors while compiling a Template.
Please try the following to solve the situation:
  * If the problem is about missing/invalid references or multiple defines either try to load 
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  * If you get 'class' does not contain a definition for 'member': 
        try another modelType (for example 'null' to make the model dynamic).
        NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
More details about the error:
 - error: (0, 0) 慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸱ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹
Temporary files of the compilation can be found in (please delete the folder): /tmp/RazorEngine_glq4zn1u.l67
The template we tried to compile is: 
------------- START -----------
@{
    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";
}
@using System.Linq

@foreach (var post in Enumerable.Take(Model.Posts, 10))
{
    <a href="blog/@post.Url/index.html">@post.Title</a>
}
------------- END -----------

The generated source code is: 
------------- START -----------
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 4.0.30319.42000
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace CompiledRazorTemplates.Dynamic {
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using FsBlogLib;

    public class RazorEngine_30afa64a947d4888b535046bc4e9f353 : FsBlogLib.TemplateBaseExtensions<FsBlogLib.Model> {

        public RazorEngine_30afa64a947d4888b535046bc4e9f353() {
        }

        public override void Execute() {

    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";

WriteLiteral("\n");

WriteLiteral("\n");

 foreach (var post in Enumerable.Take(Model.Posts, 10))
{

WriteLiteral("    <a");

WriteAttribute("href", Tuple.Create(" href=\"", 204), Tuple.Create("\"", 236)
, Tuple.Create(Tuple.Create("", 211), Tuple.Create("blog/", 211), true)
, Tuple.Create(Tuple.Create("", 216), Tuple.Create<System.Object, System.Int32>(post.Url
, 216), false)
, Tuple.Create(Tuple.Create("", 225), Tuple.Create("/index.html", 225), true)
);

WriteLiteral(">");

                                   Write(post.Title);

WriteLiteral("</a>\n");

}
        }
    }
}

------------- END -----------

List of loaded Assemblies:
/usr/lib/mono/4.5/mscorlib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.exe
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FSharp.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FakeLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/Argu.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
    Loaded Assembly: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/HashLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.FSharp.Compiler.Service.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.CompilerServices.SymbolWriter/4.0.0.0__0738eb9f132ed756/Mono.CompilerServices.SymbolWriter.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/FSharp.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Runtime.Caching/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/SharpYaml.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FsBlogLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/Suave/lib/net40/Suave.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/RazorEngine/lib/net40/RazorEngine.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Literate.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.CodeFormat.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharpVSPowerTools.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Compiler.Service.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Markdown.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll
    Loaded Assembly: /usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl (RazorEngine.Compilation.TypeContext context) <0x41847600 + 0x00267> in <filename unknown>:0 
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType (RazorEngine.Compilation.TypeContext context) <0x41847470 + 0x000b3> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.CreateTemplateType (ITemplateSource razorTemplate, System.Type modelType) <0x41846470 + 0x00336> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.Compile (ITemplateKey key, System.Type modelType) <0x418461b0 + 0x00034> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal (ITemplateKey key, System.Type modelType) <0x41846120 + 0x0002f> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) RazorEngine.Templating.RazorEngineService:CompileAndCacheInternal (RazorEngine.Templating.ITemplateKey,System.Type)
  at RazorEngine.Templating.TemplateService.CreateTemplate (System.String razorTemplate, System.Type staticType, System.Object model) <0x418450b0 + 0x00083> in <filename unknown>:0 
  at RazorEngine.Templating.TemplateService.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String cacheName) <0x41845010 + 0x00045> in <filename unknown>:0 
  at RazorEngine.Razor.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String name) <0x41844ea0 + 0x0003d> in <filename unknown>:0 
  at FsBlogLib.Razor.ProcessFile (System.String source) <0x41844970 + 0x000f7> in <filename unknown>:0 
Running build failed.
Error:
System.Exception: Processing the file '/home/simendsjo/code/tmp/fsblog-bug/FsBlog/source/blog/index.cshtml' failed with exception:
RazorEngine.Templating.TemplateCompilationException: Errors while compiling a Template.
Please try the following to solve the situation:
  * If the problem is about missing/invalid references or multiple defines either try to load 
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  * If you get 'class' does not contain a definition for 'member': 
        try another modelType (for example 'null' to make the model dynamic).
        NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
More details about the error:
 - error: (0, 0) 慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸱ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹
Temporary files of the compilation can be found in (please delete the folder): /tmp/RazorEngine_glq4zn1u.l67
The template we tried to compile is: 
------------- START -----------
@{
    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";
}
@using System.Linq

@foreach (var post in Enumerable.Take(Model.Posts, 10))
{
    <a href="blog/@post.Url/index.html">@post.Title</a>
}
------------- END -----------

The generated source code is: 
------------- START -----------
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 4.0.30319.42000
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace CompiledRazorTemplates.Dynamic {
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using FsBlogLib;

    public class RazorEngine_30afa64a947d4888b535046bc4e9f353 : FsBlogLib.TemplateBaseExtensions<FsBlogLib.Model> {

        public RazorEngine_30afa64a947d4888b535046bc4e9f353() {
        }

        public override void Execute() {

    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";

WriteLiteral("\n");

WriteLiteral("\n");

 foreach (var post in Enumerable.Take(Model.Posts, 10))
{

WriteLiteral("    <a");

WriteAttribute("href", Tuple.Create(" href=\"", 204), Tuple.Create("\"", 236)
, Tuple.Create(Tuple.Create("", 211), Tuple.Create("blog/", 211), true)
, Tuple.Create(Tuple.Create("", 216), Tuple.Create<System.Object, System.Int32>(post.Url
, 216), false)
, Tuple.Create(Tuple.Create("", 225), Tuple.Create("/index.html", 225), true)
);

WriteLiteral(">");

                                   Write(post.Title);

WriteLiteral("</a>\n");

}
        }
    }
}

------------- END -----------

List of loaded Assemblies:
/usr/lib/mono/4.5/mscorlib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.exe
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FSharp.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FakeLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/Argu.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
    Loaded Assembly: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/HashLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.FSharp.Compiler.Service.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.CompilerServices.SymbolWriter/4.0.0.0__0738eb9f132ed756/Mono.CompilerServices.SymbolWriter.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/FSharp.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Runtime.Caching/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/SharpYaml.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FsBlogLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/Suave/lib/net40/Suave.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/RazorEngine/lib/net40/RazorEngine.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Literate.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.CodeFormat.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharpVSPowerTools.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Compiler.Service.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Markdown.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll
    Loaded Assembly: /usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl (RazorEngine.Compilation.TypeContext context) <0x41847600 + 0x00267> in <filename unknown>:0 
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType (RazorEngine.Compilation.TypeContext context) <0x41847470 + 0x000b3> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.CreateTemplateType (ITemplateSource razorTemplate, System.Type modelType) <0x41846470 + 0x00336> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.Compile (ITemplateKey key, System.Type modelType) <0x418461b0 + 0x00034> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal (ITemplateKey key, System.Type modelType) <0x41846120 + 0x0002f> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) RazorEngine.Templating.RazorEngineService:CompileAndCacheInternal (RazorEngine.Templating.ITemplateKey,System.Type)
  at RazorEngine.Templating.TemplateService.CreateTemplate (System.String razorTemplate, System.Type staticType, System.Object model) <0x418450b0 + 0x00083> in <filename unknown>:0 
  at RazorEngine.Templating.TemplateService.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String cacheName) <0x41845010 + 0x00045> in <filename unknown>:0 
  at RazorEngine.Razor.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String name) <0x41844ea0 + 0x0003d> in <filename unknown>:0 
  at FsBlogLib.Razor.ProcessFile (System.String source) <0x41844970 + 0x000f7> in <filename unknown>:0 
Source written to: '/tmp/tmp39637458.tmp.cs'.
  at FsBlogLib.Razor.ProcessFile (System.String source) <0x41844970 + 0x004b7> in <filename unknown>:0 
  at FsBlogLib.Blog.TransformFile (System.String template, Boolean hasHeader, FsBlogLib.Razor razor, Microsoft.FSharp.Core.FSharpOption`1 prefix, System.String current, System.String target) <0x418447e0 + 0x00103> in <filename unknown>:0 
  at FsBlogLib.Blog.GeneratePostListing[a,b] (System.String layouts, System.String template, System.String blogIndex, FsBlogLib.Model model, IEnumerable`1 posts, Microsoft.FSharp.Core.FSharpFunc`2 urlFunc, Microsoft.FSharp.Core.FSharpFunc`2 needsUpdate, Microsoft.FSharp.Core.FSharpFunc`2 infoFunc, Microsoft.FSharp.Core.FSharpFunc`2 getPosts) <0x41842e90 + 0x0033b> in <filename unknown>:0 
  at FSI_0005.Fsblog.buildSite (FSI_0005.RoutingMode routing, Boolean updateTagArchive) <0x417f47e0 + 0x004cb> in <filename unknown>:0 
  at FSI_0005.Fsblog+clo@178-1.Invoke (Microsoft.FSharp.Core.Unit _arg2) <0x417f42a0 + 0x0003b> in <filename unknown>:0 
  at Fake.TargetHelper+targetFromTemplate@195[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x417f3150 + 0x00023> in <filename unknown>:0 
  at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) <0x417ea2a0 + 0x000ca> in <filename unknown>:0 

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0011944
Total:     00:00:00.4258182
Status:    Failure
---------------------------------------------------------------------
  1) System.Exception: Processing the file '/home/simendsjo/code/tmp/fsblog-bug/FsBlog/source/blog/index.cshtml' failed with exception:
RazorEngine.Templating.TemplateCompilationException: Errors while compiling a Template.
Please try the following to solve the situation:
  * If the problem is about missing/invalid references or multiple defines either try to load 
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  * If you get 'class' does not contain a definition for 'member': 
        try another modelType (for example 'null' to make the model dynamic).
        NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
More details about the error:
 - error: (0, 0) 慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹慷湲湩⁧千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据⁥䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸳⸱ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲‬敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污‬畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡‮潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹
Temporary files of the compilation can be found in (please delete the folder): /tmp/RazorEngine_glq4zn1u.l67
The template we tried to compile is: 
------------- START -----------
@{
    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";
}
@using System.Linq

@foreach (var post in Enumerable.Take(Model.Posts, 10))
{
    <a href="blog/@post.Url/index.html">@post.Title</a>
}
------------- END -----------

The generated source code is: 
------------- START -----------
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 4.0.30319.42000
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace CompiledRazorTemplates.Dynamic {
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using FsBlogLib;

    public class RazorEngine_30afa64a947d4888b535046bc4e9f353 : FsBlogLib.TemplateBaseExtensions<FsBlogLib.Model> {

        public RazorEngine_30afa64a947d4888b535046bc4e9f353() {
        }

        public override void Execute() {

    Layout = "default";
    Title = "FsBlog";
    Description = "A blog aware static site generator in mostly F#";

WriteLiteral("\n");

WriteLiteral("\n");

 foreach (var post in Enumerable.Take(Model.Posts, 10))
{

WriteLiteral("    <a");

WriteAttribute("href", Tuple.Create(" href=\"", 204), Tuple.Create("\"", 236)
, Tuple.Create(Tuple.Create("", 211), Tuple.Create("blog/", 211), true)
, Tuple.Create(Tuple.Create("", 216), Tuple.Create<System.Object, System.Int32>(post.Url
, 216), false)
, Tuple.Create(Tuple.Create("", 225), Tuple.Create("/index.html", 225), true)
);

WriteLiteral(">");

                                   Write(post.Title);

WriteLiteral("</a>\n");

}
        }
    }
}

------------- END -----------

List of loaded Assemblies:
/usr/lib/mono/4.5/mscorlib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.exe
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FSharp.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FakeLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/Argu.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
    Loaded Assembly: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/HashLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FAKE/tools/FAKE.FSharp.Compiler.Service.dll
    Loaded Assembly: /usr/lib/mono/gac/Mono.CompilerServices.SymbolWriter/4.0.0.0__0738eb9f132ed756/Mono.CompilerServices.SymbolWriter.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/FSharp.Configuration.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Runtime.Caching/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/FSharp.Configuration/lib/net40/SharpYaml.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FsBlogLib.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/Suave/lib/net40/Suave.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/packages/RazorEngine/lib/net40/RazorEngine.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Literate.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.CodeFormat.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharpVSPowerTools.Core.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Compiler.Service.dll
    Loaded Assembly: /home/simendsjo/code/tmp/fsblog-bug/FsBlog/bin/FsBlogLib/FSharp.Markdown.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    Loaded Assembly: /usr/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll
    Loaded Assembly: /usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl (RazorEngine.Compilation.TypeContext context) <0x41847600 + 0x00267> in <filename unknown>:0 
  at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType (RazorEngine.Compilation.TypeContext context) <0x41847470 + 0x000b3> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.CreateTemplateType (ITemplateSource razorTemplate, System.Type modelType) <0x41846470 + 0x00336> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineCore.Compile (ITemplateKey key, System.Type modelType) <0x418461b0 + 0x00034> in <filename unknown>:0 
  at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal (ITemplateKey key, System.Type modelType) <0x41846120 + 0x0002f> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) RazorEngine.Templating.RazorEngineService:CompileAndCacheInternal (RazorEngine.Templating.ITemplateKey,System.Type)
  at RazorEngine.Templating.TemplateService.CreateTemplate (System.String razorTemplate, System.Type staticType, System.Object model) <0x418450b0 + 0x00083> in <filename unknown>:0 
  at RazorEngine.Templating.TemplateService.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String cacheName) <0x41845010 + 0x00045> in <filename unknown>:0 
  at RazorEngine.Razor.Parse (System.String razorTemplate, System.Object model, RazorEngine.Templating.DynamicViewBag viewBag, System.String name) <0x41844ea0 + 0x0003d> in <filename unknown>:0 
  at FsBlogLib.Razor.ProcessFile (System.String source) <0x41844970 + 0x000f7> in <filename unknown>:0 
Source written to: '/tmp/tmp39637458.tmp.cs'.
  at FsBlogLib.Razor.ProcessFile (System.String source) <0x41844970 + 0x004b7> in <filename unknown>:0 
  at FsBlogLib.Blog.TransformFile (System.String template, Boolean hasHeader, FsBlogLib.Razor razor, Microsoft.FSharp.Core.FSharpOption`1 prefix, System.String current, System.String target) <0x418447e0 + 0x00103> in <filename unknown>:0 
  at FsBlogLib.Blog.GeneratePostListing[a,b] (System.String layouts, System.String template, System.String blogIndex, FsBlogLib.Model model, IEnumerable`1 posts, Microsoft.FSharp.Core.FSharpFunc`2 urlFunc, Microsoft.FSharp.Core.FSharpFunc`2 needsUpdate, Microsoft.FSharp.Core.FSharpFunc`2 infoFunc, Microsoft.FSharp.Core.FSharpFunc`2 getPosts) <0x41842e90 + 0x0033b> in <filename unknown>:0 
  at FSI_0005.Fsblog.buildSite (FSI_0005.RoutingMode routing, Boolean updateTagArchive) <0x417f47e0 + 0x004cb> in <filename unknown>:0 
  at FSI_0005.Fsblog+clo@178-1.Invoke (Microsoft.FSharp.Core.Unit _arg2) <0x417f42a0 + 0x0003b> in <filename unknown>:0 
  at Fake.TargetHelper+targetFromTemplate@195[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x417f3150 + 0x00023> in <filename unknown>:0 
  at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) <0x417ea2a0 + 0x000ca> in <filename unknown>:0 
---------------------------------------------------------------------

Dynamic assemblies were generated during evaluation of script (tmp6080c44b).
Can not save cache.
t-smirnov commented 6 years ago

Same thing as raw clone & build doesn`t work for me win10 Stacktrace:


Build started 2/25/2018 6:56:33 PM.
     1>Project "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" on node 1 (Rebuild target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|Any CPU".
     1>Project "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" (1) is building "C:\Users\tsmirnov\github\FsBlog\Code\tools\FsBlogLib\FsBlogLib.fsproj" (2) on node 1 (Rebuild target(s)).
     2>C:\Users\tsmirnov\github\FsBlog\Code\tools\FsBlogLib\FsBlogLib.fsproj : error MSB4057: The target "Rebuild" does not exist in the project.
     2>Done Building Project "C:\Users\tsmirnov\github\FsBlog\Code\tools\FsBlogLib\FsBlogLib.fsproj" (Rebuild target(s)) -- FAILED.
     1>Project "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" (1) is building "C:\Users\tsmirnov\github\FsBlog\Code\tests\FsBlogLib.Tests\FsBlogLib.Tests.fsproj" (3) on node 2 (Rebuild target(s)).
     3>C:\Users\tsmirnov\github\FsBlog\Code\tests\FsBlogLib.Tests\FsBlogLib.Tests.fsproj(52,3): error MSB4020: The value "" of the "Project" attribute in element <Import> is invalid.
     3>Done Building Project "C:\Users\tsmirnov\github\FsBlog\Code\tests\FsBlogLib.Tests\FsBlogLib.Tests.fsproj" (Rebuild target(s)) -- FAILED.
     1>Done Building Project "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" (Rebuild target(s)) -- FAILED.

Build FAILED.

       "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" (Rebuild target) (1) ->
       "C:\Users\tsmirnov\github\FsBlog\Code\tools\FsBlogLib\FsBlogLib.fsproj" (Rebuild target) (2) ->
         C:\Users\tsmirnov\github\FsBlog\Code\tools\FsBlogLib\FsBlogLib.fsproj : error MSB4057: The target "Rebuild" does not exist in the project.

       "C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln" (Rebuild target) (1) ->
       "C:\Users\tsmirnov\github\FsBlog\Code\tests\FsBlogLib.Tests\FsBlogLib.Tests.fsproj" (Rebuild target) (3) ->
         C:\Users\tsmirnov\github\FsBlog\Code\tests\FsBlogLib.Tests\FsBlogLib.Tests.fsproj(52,3): error MSB4020: The value "" of the "Project" attribute in element <Import> is invalid.

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.01
Running build failed.
Error:
Building C:\Users\tsmirnov\github\FsBlog\Code\FsBlog.sln failed with exitcode 1.

Maybe I'm doing smth wrong?