BUG! exception in phase 'class generation' in source unit

When saving a smartapp into the IDE, I just encountered this strange error:

BUG! exception in phase ‘class generation’ in source unit ‘script147458316405373590574.groovy’ MapEntryExpression should not be visited here

Does anyone have an idea what this means or what type of error I should be looking for? I have no idea.

Does anyone know how I figure out what ‘script147458316405373590574.groovy’ is?

Thanks!

tagging @slagle @Jim

I tracked it down (but thanks anyway @JDRoberts) .

Groovy apparently REALLY REALLY doesn’t like if you forget to include the equals sign in:

state.scheduleEnabled = [scheduleId: “None”]

2 Likes