SmartThings icon indicating copy to clipboard operation
SmartThings copied to clipboard

No signature of method

Open nwill opened this issue 8 years ago • 5 comments

Hiya,

Bit of a noob here, but I'm receiving the following message when pasting the code when creating "A new Smartapp" within the smarthings ide.

No signature of method: script_app_metadata_4f356889_0d09_44c6_907d_1332e8358580.metadata() is applicable for argument types: (script_app_metadata_4f356889_0d09_44c6_907d_1332e8358580$_run_closure1) values: [script_app_metadata_4f356889_0d09_44c6_907d_1332e8358580$_run_closure1@54bdd45f] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Any suggestions?

Thanks

nwill avatar Dec 02 '17 02:12 nwill

I had this issue and finally figured it out. You have to add in the groovy paths for your github areas.

tlbtechnology avatar Apr 01 '18 03:04 tlbtechnology

Thanks. Know of any references on how to do this?

nwill avatar Apr 01 '18 03:04 nwill

I went here (https://github.com/apache/groovy) and forked it. Worked after that.

tlbtechnology avatar Apr 01 '18 12:04 tlbtechnology

You will also run into this issue if you tried to add a smart app rather than a device handler. From the instructions:

Within the SmartThings IDE, click on 'My Device Handlers'. Click the '+ Create New Device Handler' button.

tylercal avatar Apr 26 '19 19:04 tylercal

Thanks. Know of any references on how to do this?

Did you figure it out?

orenatan avatar Dec 18 '20 14:12 orenatan