Unit test errors in F# functional tests

10 views
Skip to first unread message

Drew Miller

unread,
Oct 15, 2010, 8:16:28 PM10/15/10
to nhaml-users
I apologize if this is covered somewhere that I missed.

I just cloned the NHaml sources in advance of building a package for
NuPack and spiking on getting NHaml working with ASP.NET MVC 3 Beta.
The F# functional tests are failing, like this one:

Test
'NHaml.Tests.Functional.FSharpFunctionalTests.FunctionalTestFixture.AttributeEval'
failed: System.TypeLoadException : Could not load type '_Cons' from
assembly 'FSharp.Core, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.FSharp.Compiler.CodeDom.Internal.Generator.mapFilter[a,b]
(FSharpFunc`2 f, FSharpList`1 l)
at
Microsoft.FSharp.Compiler.CodeDom.Internal.Generator.generateClassOrStruct(String
structOrCls, FSharpList`1 scope, CodeTypeDeclaration c, Context ctx)
at
Microsoft.FSharp.Compiler.CodeDom....@1616-10.Invoke(Context
ctx)
at
Microsoft.FSharp.Compiler.CodeDom....@1623-17.Invoke(Context
x)
at
Microsoft.FSharp.Compiler.CodeDom....@1624-19.Invoke(Context
x)
at Microsoft.FSharp.Compiler.CodeDom.Internal.Generator.colT[T]
(FSharpFunc`2 fs, IEnumerable`1 c, FSharpFunc`2 f, Context ctx)
at
Microsoft.FSharp.Compiler.CodeDom.Inter...@1727-40.Invoke(Context
ctx)
at
Microsoft.FSharp.Compiler.CodeDom.Inter...@1728-45.Invoke(Context
x)
at
Microsoft.FSharp.Compiler.CodeDom.Inter...@1729-48.Invoke(Context
x)
at
Microsoft.FSharp.Compiler.CodeDom.Inter...@1730-50.Invoke(Context
x)
at
Microsoft.FSharp.Compiler.CodeDom....@161.GenerateCodeFromNamespace(CodeNamespace
e, TextWriter w, CodeGeneratorOptions o)
Compilers\CodeDomClassBuilder.cs(394,0): at
NHaml.Compilers.CodeDomClassBuilder.Build(IList`1 imports)
FSharpTemplateClassBuilder.cs(59,0): at
NHaml.Compilers.FSharp.FSharpTemplateClassBuilder.Build(IList`1
imports)
Compilers\CodeDomTemplateCompiler.cs(30,0): at
NHaml.Compilers.CodeDomTemplateCompiler.Compile(ViewSourceReader
viewSourceReader, TemplateOptions options, TemplateClassBuilder
builder)
CompiledTemplate.cs(76,0): at NHaml.CompiledTemplate.Compile(Object
context)
CompiledTemplate.cs(26,0): at
NHaml.CompiledTemplate..ctor(TemplateOptions options, IList`1
layoutViewSources, Type templateBaseType, Object context)
TemplateEngine.cs(108,0): at NHaml.TemplateEngine.Compile(Type
templateBaseType, IList`1 templateViewSources, Object context)
TemplateEngine.cs(86,0): at NHaml.TemplateEngine.Compile(IList`1
templateViewSources, Type templateBaseType)
TemplateEngine.cs(70,0): at NHaml.TemplateEngine.Compile(IList`1
templatePaths, Type templateBaseType)
TemplateEngine.cs(48,0): at NHaml.TemplateEngine.Compile(String[]
templatePath)
TestFixtureBase.cs(63,0): at
NHaml.Tests.TestFixtureBase.CreateTemplate(String[] templates)
TestFixtureBase.cs(51,0): at
NHaml.Tests.TestFixtureBase.AssertRender(String expectedName, String[]
templates)
TestFixtureBase.cs(34,0): at
NHaml.Tests.TestFixtureBase.AssertRender(String templateName)
FunctionalTestFixture.cs(254,0): at
NHaml.Tests.FunctionalTestFixture.AttributeEval()

I GAC'd the version of F# in \lib. Has anyone seen this before, or
have an idea what the problem is?

Simon Cropp

unread,
Oct 15, 2010, 10:04:59 PM10/15/10
to nhaml...@googlegroups.com, e...@anglicangeek.com
what version of fsharp do u have installed?

> --
> You received this message because you are subscribed to the Google Groups "nhaml-users" group.
> To post to this group, send email to nhaml...@googlegroups.com.
> To unsubscribe from this group, send email to nhaml-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nhaml-users?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages