[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.