docu icon indicating copy to clipboard operation
docu copied to clipboard

mono support?

Open liamstask opened this issue 14 years ago • 5 comments

Hi! docu looks like a nice project, I was just giving it a try to see if it would work for my mono-based project. I'm getting the following exception, when building docu from latest github sources with mono 2.10.2, and I've tried both .NET 3.5 and 4.0 with the same result:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at View27cbb8f340f74456ae98202eb7b446f7.RenderViewLevel0 () [0x00000] in <filename unknown>:0 
  at View27cbb8f340f74456ae98202eb7b446f7.Render () [0x00000] in <filename unknown>:0 
  at Spark.SparkViewBase.RenderView (System.IO.TextWriter writer) [0x00000] in <filename unknown>:0 
  at Spark.SparkViewDecorator.RenderView (System.IO.TextWriter writer) [0x00000] in <filename unknown>:0 
  at Docu.Output.HtmlGenerator.Convert (System.String templateName, Docu.Output.ViewData data, System.String relativeOutputPath) [0x00000] in <filename unknown>:0 
  at Docu.Output.PageWriter.CreatePages (System.String templateDirectory, System.String destination, IList`1 namespaces) [0x00000] in <filename unknown>:0 
  at Docu.Output.BulkPageWriter.CreatePagesFromDirectory (System.String templatePath, System.String destination, IList`1 namespaces) [0x00000] in <filename unknown>:0 
  at Docu.DocumentationGenerator.Generate () [0x00000] in <filename unknown>:0 
  at Docu.Console.ConsoleApplication.Run () [0x00000] in <filename unknown>:0 
  at Docu.Console.ConsoleApplication.Run (IEnumerable`1 args) [0x00000] in <filename unknown>:0 
  at Docu.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

Not sure if this is likely to be mono related or not, but this is currently preventing me from getting much further. Thanks!

liamstask avatar Jul 04 '11 20:07 liamstask

Looks like a Spark issue rather than anything specific to Docu. I'll summon Robert the Grey and see if he can shed any light on the matter...

dylanbeattie avatar Jul 04 '11 22:07 dylanbeattie

Yeah - this issue has come up occasionally in the past when the requests per second start going up and some of the TextWriters in Spark were disposing prematurely. What version of Spark are you using? I fixed this in one of the 1.5.x releases for the .NET 4 bin. If you're already using Spark v1.6 then I need to have another look at this - may be a regression, but I doubt it. What version of .Net are you targeting?

RobertTheGrey avatar Jul 04 '11 22:07 RobertTheGrey

I'm using whatever version comes bundled with docu...not sure off the top of my head. I've tried building docu on both 3.5 and 4.0, running against my 3.5 assembly. Sorry for typos...from my phone :)

liamstask avatar Jul 05 '11 00:07 liamstask

The original fix went in to Spark v1.5.1.3 so I'll need to know if you're using a version later than that. If not, then you'll need to upgrade - you can just check the version number on the binary you're referencing and let me know.

RobertTheGrey avatar Jul 05 '11 10:07 RobertTheGrey

Spark is ILMerged into Docu at build time. I've just had a look and I belive we're running v1.5.0.0. Looks like we'll need to upgrade then.

jagregory avatar Jul 05 '11 13:07 jagregory