Driver syntax error

Issue #801 resolved
Suttisak Denduangchai created an issue

Some driver is created with incorrect syntax such as

SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

Comments (5)

  1. Thomas Larsson repo owner

    It looks like you have removed some morphs, probably with the Remove Cateogry tool. A disadvantage of the new morphing system (the only disadvantage I think) is that it is trickier to remove morphs, because the driver expression has to be parsed and rebuilt. This is not done very well today, which is why you see these terms that are equal to zero.

  2. Thomas Larsson repo owner

    The code for removing morphs has been improved. I’m not sure if that will help in your case (which I cannot reproduce), but the terms for the form constant * 0 don’t appear anymore.

  3. Suttisak Denduangchai reporter

    Thanks Thomas, I have updated the last commit and re-import Units morph. The problem suddenly disappears.

  4. Log in to comment