Opened 7 years ago

Closed 7 years ago

#15855 closed defect (wontfix)

generate.php fails on dojo/request/notify.js

Reported by: jandockx Owned by:
Priority: undecided Milestone: tbd
Component: Documentation Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:

Description

php generate.php fails with the following console log:

...

dojo/request/node.js                                                                                  8,279 KB
dojo/request/notify.js                                                                                8,243 KB

Fatal error: Uncaught exception 'Exception' with message 'Line 25, char 27: New statement preceeds unknown' in /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/JavaScriptSymbol.php:112
Stack trace:
#0 /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/JavaScriptArray.php(90): JavaScriptSymbol->convert()
#1 /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/JavaScriptArray.php(37): JavaScriptArray->all()
#2 /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/JavaScriptArray.php(71): JavaScriptArray->getType(0, 'JavaScriptFunct...')
#3 /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/dojo2.inc(321): JavaScriptArray->getFunction(0)
#4 /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/generate.php(136): dojo_get_contents('dojo', 'request/notify....')
#5 {main}
  thrown in /Users/jand/Documents/Aptana/Workspace/Dojo 1.8/util/docscripts/lib/parser2/JavaScriptSymbol.php on line 112

By removing dojo/request/notify.js from the source, php generate.php completes without error.

So, I presume there is a doc problem in dojo/request/notify.js.

Observed on Mac OS X 10.7.4, with source tarbal 1.8.0,

$ php --version
PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
$ 

Change History (1)

comment:1 Changed 7 years ago by bill

Resolution: wontfix
Status: newclosed

util/docscripts is deprecated, and no longer used to parse dojo source code. It's replaced by a new doc parser and api viewer, see https://github.com/wkeese/api-viewer/blob/master/README.rst for details on both.

Note: See TracTickets for help on using tickets.