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


(Tony - SmartThings Unpublished Contributor ) #1

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!


#2

tagging @slagle @Jim


(Tony - SmartThings Unpublished Contributor ) #3

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”]