Book a Demo

Author Topic: Problem with Code Generation in Python  (Read 2572 times)

bob_d

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Problem with Code Generation in Python
« on: October 25, 2005, 01:07:43 pm »
(likely pilot error, but here goes anyway)

I've got a hierarchy of classes defined.  Every one of them has Python as the individual class "Language" and the default language for code generation is Python.

The top-level class (an abstract one) generates and the next-level down does also (some are abstract, some not at that level).  Everything below that level in the class hierarchy is coming out in Java despite the fact that the individual classes and the default are set to Python.

Any help ????

Secondary question, when code generation throws an error dialog, is there some additional logfile or debugging info I can get (ie "parse error in line 12" is not exactly helpful when the source is the class definition tabbed dialog.

Thanks in advance,

Bob
"Whoever undertakes to set himself up as a judge of Truth and
Knowledge is shipwrecked by the laughter of the gods." - Albert Einstein

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem with Code Generation in Python
« Reply #1 on: October 25, 2005, 05:15:54 pm »
The first thing I would try is resetting the language from Java to Python at a package level.  (Just in case)  To do this select Code Engineering | Reset Options for this Package from the context menu of a package in the tree.

Typically if I get a parse error I would open the file in another editor to see what's gone wrong.