Menu

#136 "Unexpected at this time" error during generation

_
open
nobody
None
1
2013-08-17
2013-08-17
alwyndavis
No

Running NaturalDocs for the first time generated the following error:

c:\Program Files\NaturalDocs>NaturalDocs.bat -i "C:\inetpub\wwwroot\accsys-framework-ui" -o HTML "C:\inetpub\wwwroot\accsys-framework-ui_help" -p "C:\Program Files\NaturalDocs\Projects\accsys-framework-ui"
Files\NaturalDocs\Projects\accsys-framework-ui""=="" was unexpected at this time.

This was with:

  • Natural Docs 1.52
  • ActivePerl 5.6.13 x64
  • Windows 8 x64

Fix:
Changed:

if "%1"=="" goto NOMORE
to:
if [%1]==[] goto NOMORE

Based on http://stackoverflow.com/questions/2541767/what-is-the-proper-way-to-test-is-variable-is-empty-in-a-batch-file-if-not-1

Discussion


Log in to post a comment.

Monday.com Logo