Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

mono support? #4

Open
liamstask opened this issue Jul 4, 2011 · 5 comments
Open

mono support? #4

liamstask opened this issue Jul 4, 2011 · 5 comments

Comments

@liamstask
Copy link

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!

@dylanbeattie
Copy link
Collaborator

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...

@RobertTheGrey
Copy link

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?

@liamstask
Copy link
Author

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 :)

@RobertTheGrey
Copy link

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.

@jagregory
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants