[IGN-16691]Gateway Event Script Compile Error

I'm not sure if I'm crazy or what but I'm running into a compile error when trying to save a script for a Gateway Event.

Crazy thing it I'm positive I was not getting this error running on 8.3.2. Then I upgraded to 8.3.7 and went into the script to add something and when I try to close & save I get a compile error.

The other crazy thing is that I don't think I should be getting a compile error because the error is complaining about indent and my indent looks fine to me.

Since the code is on the long side I tried just creating a short piece of code to see if is still a problem and it seems it is.

So here's the error:

And here's the test code:

def onTagChange(initialChange, newValue, previousValue, event, executionCount):
	if initialChange == False:
		myPrinter = system.print.getDefaultPrinterName()

But if I change the code to the following it compiles just fine:

def onTagChange(initialChange, newValue, previousValue, event, executionCount):
	if initialChange == False:
			myPrinter = system.print.getDefaultPrinterName()

To me it looks like there's an additional indent there for no reason. Anything after works fine.

Have I missed something/done something stupid, or did I discover a weird bug or something?

@paul-griffith didn't you see this from a support rep the other day? Known bug? Any workaround?

tl;dr: You're not doing anything wrong.

The easiest real workaround would be to put all your logic into the project library and just not have any indentation in the body in the actual tag change script.

Past that...you can just ignore it. It's unpleasant and scary, but if your code is written correctly it will still be executing and working fine. The "compilation" error is because of something we're doing wrong in the validation mechanism.

Thank you Paul - I thought I was losing my mind there lol.

I'm facing the same error after upgrading to 8.3.7

I've noticed that the issue is on the first indent/keyword. If you don't want to move your logic into libraries, another workaround is by adding triple-quoted string on first line.

""""""


and it let you save. I hope it gets fixed soon.

This popped up too late to get into 8.3.8, but a fix should land in 8.3.9.

Confirmed that it persists in version 8.3.8

There should be a big red warning right next to the downloads making it clear this affects both versions. We only update once a year and picked 8.3.7 today — we can't sit on a known bug for a full year. I intentionally avoided 8.3.8 thinking I was playing it safe on a stable release. Just got off the phone with support and now I'm looking at a full uninstall and rolling back to at least 8.3.6.

I've confirmed your confirmation

This is fixed in 8.3.9, projected for release at the end of August.

Hi everyone,
ignition 8.3.8

we are waiting for 8.3.9, so I think this error in the log is also due to the same problem. Correct?
Thanks

I don't think it's the same problem. The error mentioned by the OP is an annoyance, but not fatal. I've seen this error crop up from time to time on the forums. You may need to restart the gateway service.

Yes, I actually restarted the gateway and the error disappeared.

During this error, the gateway events stopped working and it didn't intercept any tagChanges.
I restarted and everything was fixed. I haven't fully figured out the cause, but I hope it doesn't happen often. In any case, this is the first time I've seen this error.

Thanks

Search results for 'error notifying listener about project update' - Inductive Automation Forum