|
From: Michalis K. <mic...@gm...> - 2013-09-28 14:48:49
|
Harald Schmid wrote: > Hi guys, > The error occurs with the compiled binary from the current source, and > the 0.13 binaries I got from sourceforge. Would you point me towards the > direction where I can find my mistake? > pasdoc --output doc MyUnit.pas > Error[1]: Could not create HTML unit doc file for unit MyUnit. > Error[1]: Could not create output file "automated.gif". > Error[1]: Could not create output file "private.gif". > Error[1]: Could not create output file "protected.gif". > Error[1]: Could not create output file "public.gif". > Error[1]: Could not create output file "published.gif". > Fatal Error: Unable to create file "doc/pasdoc.css" All these errors mean that pasdoc tried to write a file, but received an exception. This means that operating system doesn't allow to write such file. Most probable cause is that you did not create directory "doc" (which you indicated by --output doc). PasDoc *does not* (at least now) create it automatically. Use "mkdir -p doc/" in your scripts to always first make sure that doc/ subdirectory exists. Other possible causes are that you disk is full, or you don't have permission to write files inside doc subdirectory. I documented this on http://pasdoc.sipsolutions.net/OutputOption . I also committed a change to code so that CreateStream now shows the underlying message (from TFileStream.Create), that *could* describe an exact reason why creation failed (unfortunately this depends on RTL, and on Linux it just shows "Unable to create file" without any more information). Regards, Michalis |