Hi

I found the problem ­ there was an extra ³/³ at the top of one of the source
files

John

From:  John Spackman <john-li...@zenesis.com>
Reply-To:  qooxdoo Development <qooxdoo-devel@lists.sourceforge.net>
Date:  Thursday, 26 June 2014 10:54
To:  qooxdoo Development <qooxdoo-devel@lists.sourceforge.net>
Subject:  [qooxdoo-devel] Generator exception "list index out of range"

Hi

I¹m suddenly getting this exception when trying to run the generator:

<type 'exceptions.IndexError'> : list index out of range

What could cause this?  The output from generate.py ­s ­v is:

> ----------------------------------------------------------------------------
>     Initializing: controlpanel
> ----------------------------------------------------------------------------
>>>> >>> Processing configuration
>   - Warning: ! Shadowing job "source" with local one
>   - Warning: ! Shadowing job "common" with local one
>   - Warning: ! Shadowing job "libraries" with local one
>   - Warning: ! Shadowing job "source-hybrid" with local one
>   - Warning: ! Shadowing job "source-all" with local one
>   - Warning: ! Shadowing job "build" with local one
>   - Warning: ! Shadowing job "source-script" with local one
>   - Warning: ! Shadowing job "qxoo" with local one
> 
> ----------------------------------------------------------------------------
>     Executing: source::source-script
> ----------------------------------------------------------------------------
>>>> >>> Initializing cache...
>     - Checking path
> '/Users/John/dev/Grasshopper/smart/Local/temp/cache-qooxdoo-trunk'
>     - Using existing directory
>>>> >>> Scanning libraries
> 
>>>> >>> Loaded 14 libraries
> 
>>>> >>> Preparing include configuration...
>   - Including 2 items smart, 0 items explicit
>   - Expanding expressions...
>>>> >>> Collecting classes
>   - Gathering dependencies: anonymousapp.Application
>   - Gathering dependencies: qx.Bootstrap
>   - Gathering dependencies: qx.util.OOUtil
>   - Gathering dependencies: qx.Class
>   - Gathering dependencies: qx.lang.normalize.Function
>   - Gathering dependencies: qx.bom.client.EcmaScript
>   - Gathering dependencies: qx.core.Environment
>   - Gathering dependencies: qx.Mixin
>   - Gathering dependencies: qx.lang.normalize.Array
>   - Gathering dependencies: qx.core.Aspect
>   - Gathering dependencies: qx.lang.normalize.String
>   - Gathering dependencies: qx.lang.normalize.Object
>   - Gathering dependencies: qx.Interface
>   - Gathering dependencies: qx.lang.normalize.Error
>   - Gathering dependencies: qx.lang.normalize.Date
>   - Gathering dependencies: qx.core.Property
>   - Gathering dependencies: qx.event.type.Data
>   - Gathering dependencies: qx.Class
>   - Gathering dependencies: qx.event.type.Event
>   - Gathering dependencies: qx.core.Object
>   - Gathering dependencies: qx.data.MBinding
>   - Gathering dependencies: qx.data.SingleValueBinding
>   - Gathering dependencies: qx.core.Assert
>   - Gathering dependencies: qx.lang.Type
>   - Gathering dependencies: qx.core.AssertionError
>   - Gathering dependencies: qx.type.BaseError
>   - Gathering dependencies: qx.dev.StackTrace
>   - Gathering dependencies: qx.lang.Array
>   - Gathering dependencies: qx.bom.client.Engine
>   - Gathering dependencies: qx.lang.Function
>   - Gathering dependencies: qx.event.GlobalError
>   - Gathering dependencies: qx.core.WindowError
>   - Gathering dependencies: qx.core.GlobalError
>   - Gathering dependencies: qx.core.ObjectRegistry
>   - Gathering dependencies: qx.lang.Json
>   - Gathering dependencies: qx.bom.client.OperatingSystem
>   - Gathering dependencies: qx.bom.client.Browser
>   - Gathering dependencies: qx.bom.client.Runtime
>   - Gathering dependencies: qx.lang.String
>   - Gathering dependencies: qx.data.IListData
>   - Gathering dependencies: qx.core.ValidationError
>   - Gathering dependencies: qx.log.Logger
>   - Gathering dependencies: qx.util.RingBuffer
>   - Gathering dependencies: qx.log.appender.RingBuffer
>   - Gathering dependencies: qx.core.MLogging
>   - Gathering dependencies: qx.core.MEvent
>   - Gathering dependencies: qx.event.Registration
>   - Gathering dependencies: qx.dom.Node
>   - Gathering dependencies: qx.event.Manager
>   - Gathering dependencies: qx.bom.Event
>   - Gathering dependencies: qx.bom.Style
>   - Gathering dependencies: qx.bom.client.CssTransition
>   - Gathering dependencies: qx.event.IEventHandler
>   - Gathering dependencies: qx.event.type.Event
>   - Gathering dependencies: qx.core.Object
>   - Gathering dependencies: qx.core.MEvent
>   - Gathering dependencies: qx.event.Registration
>   - Gathering dependencies: qx.event.type.Event
>   - Gathering dependencies: qx.core.Object
>   - Gathering dependencies: qx.core.MEvent
>   - Gathering dependencies: qx.event.handler.Object
>   - Gathering dependencies: qx.core.Object
>   - Gathering dependencies: qx.core.MProperty
>   - Gathering dependencies: qx.core.MAssert
>   - Gathering dependencies: qx.util.DisposeUtil
>   - Gathering dependencies: qx.event.dispatch.Direct
>   - Gathering dependencies: qx.event.IEventDispatcher
>   - Gathering dependencies: qx.event.type.Event
>   - Gathering dependencies: qx.event.Pool
>   - Gathering dependencies: qx.util.ObjectPool
>   - Gathering dependencies: qx.event.type.Data
>   - Gathering dependencies: sitelib.client.ControlPanelApp
>     - Parsing file: sitelib.client.ControlPanelApp...
> Traceback (most recent call last):
>   File 
> "/Users/John/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/bin/generator.py", line 268, in <module>
>     main()
>   File 
> "/Users/John/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/bin/generator.py", line 259, in main
>     generatorObj.run()
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/Generator.py", line 583, in run
>     includeNoDeps, excludeWithDepsHard, script, verifyDeps=True)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/Generator.py", line 217, in computeClassList
>     classList = self._depLoader.getClassList(includeWithDeps, excludeWithDeps,
> includeNoDeps, excludeWithDepsHard, script, verifyDeps)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/DependencyLoader.py", line 111, in
> getClassList
>     result = resolveDepsSmartCludes(includeWithDeps, excludeList)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/DependencyLoader.py", line 85, in
> resolveDepsSmartCludes
>     result = self.classlistFromInclude(includeWithDeps, excludeWithDeps,
> script.variants, verifyDeps, script)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/DependencyLoader.py", line 286, in
> classlistFromInclude
>     classlistFromClassRecursive(depsItem, excludeWithDeps, variants, result,
> warn_deps, [], allowBlockLoaddeps)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/DependencyLoader.py", line 190, in
> classlistFromClassRecursive
>     classlistFromClassRecursive(subitem, excludeWithDeps, variants, result,
> warn_deps, loadDepsChain, allowBlockLoaddeps)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/DependencyLoader.py", line 153, in
> classlistFromClassRecursive
>     deps, cached = classObj.getCombinedDeps(self._classesObj, variants,
> self._jobconf)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/clazz/MClassDependencies.py", line 216, in
> getCombinedDeps
>     static, cached = self.dependencies (variants, force, tree=tree)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/clazz/MClassDependencies.py", line 169, in
> dependencies
>     classVariants = self.classVariants()
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/clazz/MClassCode.py", line 167, in
> classVariants
>     tree = self.tree()  # get complete tree
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/generator/code/clazz/MClassCode.py", line 75, in tree
>     tokens = tokenizer.Tokenizer().parseStream(fileContent, self.id)
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/ecmascript/frontend/tokenizer.py", line 112, in parseStream
>     for token in self.token_pipe:
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/ecmascript/frontend/Scanner.py", line 218, in __iter__
>     self.queue.append(self.iterator.next())  # let self.iterator's
> StopIteration propagate
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/ecmascript/frontend/tokenizer.py", line 242, in parseToken
>     not is_last_escaped_token(self.out_stream)):
>   File 
> "/Users/john/dev/Grasshopper/smart/Local/WebContent/public/grasshopper/qooxdoo
> -trunk/tool/pylib/ecmascript/frontend/tokenizer.py", line 66, in
> is_last_escaped_token
>     if tokens[-i]['source'] == '\\¹:
> IndexError: list index out of range
> 
Regards
John
----------------------------------------------------------------------------
-- Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows Winner of
BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft______________________________________________
_ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to