Vincent Vandenschrick wrote: > Hi all, > > Jython 2.5.0 final is out and I was trying to use it to build a > Qoooxdoo app (actually a freshly generated application). I followed > the wiki guide
Which one? > (except for the element tree section since it's now > included) and faced a runtime error during the JS source parsing (of > course, it works with "normal" Python): > > Could not parse file qx.Class > Generally this means that there is a syntactial problem with your > source-code. > Please omit the usage of nested comments like '/* foo /* bar */'. > > After tweaking the tokenizer.py generator class to add some > stacktrace, it now shows : > > Traceback (most recent call last): > File > "C:\envdev\qooxdoo-0.8.2-sdk\tool\pylib\ecmascript\frontend\tokenizer.py", > line 271, in parseStream > all = R_ALL.findall(content) > RuntimeError: maximum recursion depth exceeded > > I then tried to increase sys.setrecursionlimit() but it didn't solve > the problem. > > I know that this is not directly related to Qooxdoo, but using jython > to make a Qooxdoo build might be a first step towards a maven > integration... > You can always integrate Python with maven, or am I missing a point?! > BTW, the jython build is fine whenever the cache is used, i.e. after a > 1st python build has been done. So a "clean" is needed to reproduce > the problem and trigger the source parsing again. > > Any idea ? > I have no experiences wit Jython, so I can't comment. Maybe Andreas can, he played a bit with Jython. But you stacktrace suggests that it is not related to the Elementtree module. It also suggests that the re.findall function might be implemented recursively in Jython (since we don't call it in a recursive function), which is interesting. Is there a way of increasing the recursion depth in Java (command line option, ...)?! T. > Cheers, > Vincent > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
