fsprojects-archive / zzarchive-Projekt

Deprecated: Please use Forge: https://github.com/fsharp-editing/Forge
http://fsprojects.github.io/Projekt/
MIT License
21 stars 14 forks source link

Can't build v0.0.4 #36

Open girvo opened 8 years ago

girvo commented 8 years ago

Hi there, trying to compile this on OS X by running build.sh gives me the following failing test:

  Expected: True
  But was:  False

at Projekt.Tests.assertDeepEquals (System.Xml.Linq.XNode expected, System.Xml.Linq.XNode result) <0x10893c580 + 0x0009b> in <filename unknown>:0
at Projekt.Tests.delFile should remove file in later ItemGroups () <0x108afeef0 + 0x000e5> in <filename unknown>:0

Running build failed.
Error:
Fake.UnitTestCommon+FailedTestsException: NUnit test failed (2).
  at Fake.NUnitSequential.NUnit (Microsoft.FSharp.Core.FSharpFunc`2 setParams, IEnumerable`1 assemblies) <0x114af0620 + 0x00456> in <filename unknown>:0
  at FSI_0001.Build+clo@145-11.Invoke (Microsoft.FSharp.Core.Unit _arg7) <0x114af0590 + 0x00076> in <filename unknown>:0
  at Fake.TargetHelper+targetFromTemplate@155[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x114ade860 + 0x00023> in <filename unknown>:0
  at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) <0x114ad2aa0 + 0x000fd> in <filename unknown>:0

Any ideas what's going on there?

rneatherway commented 8 years ago

Basically the version of Mono you are using has a different implementation of System.XML, which in this case leaves an empty section behind like <TagName />. Only the nested tags are of interest so they are semantically equivalent, but the test is too coarse.

jwulf commented 8 years ago

Is there a fix / patch for this? Hitting the same problem.

rneatherway commented 8 years ago

If you just want to build then use ./build.sh build. This is only a problem with a failing test.