Designer does not save project any longer

Hi all,
we are experiencing a weird Designer behavior (Ignition 8.1.34) while developing scripting functions in the global project, i.e. the project which is configured as the Gateway Scripting Project - we are 2 people developing functions on the same project, but on different Python packages: sometimes after saving our edits, our changed functions run with the old logic, even if the Designer says it saved the project correctly. From now on it is no more possible to save changes, until we restart the gateway service. Any idea?

Thanks in advance, regards

Are you using import with library scripts to have short names? This is a common cause of broken code references. Always use fully qualified references to objects and functions in other project script libraries.

Use import only for site packages, the standard library, and java classes.

Hi @pturmel , thanks for your answer. I've got just 2 imports for each of my scripts:

import time
import re

Then I implemented a couple of decorators which import functools - one is to execute the decorated function inside a try...except without adding it explicitly and the other is to log the parameters the function was called with to a database table.

Hmmm. Sounds fine. You'll probably want support to look at it, as their may be other nuances besides ensuring fully qualified names everywhere. Or share more for us to see.