# Designer launcher do not recognited define function

**URL:** <https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [December 10, 2021, 4:18am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982 "2021-12-10T04:18:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [December 10, 2021, 4:18am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/1 "2021-12-10T04:18:26Z")

</div>

Hi everyone, I have a problem about Scripting in Designer Launch tool. I have a Class with some define function. Sometime, when I write a new function, Compiler Ignition or anything do not recognited this. I think Scripting in Designer Launch have some problem. This problem disappear when I restart gateway several time. Can I compile source code in Scripting?  
Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 10, 2021, 12:33pm UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/2 "2021-12-10T12:33:49Z")

</div>

The scripts are _where_? Please show your script.

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [December 11, 2021, 1:53am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/3 "2021-12-11T01:53:22Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/8/181d5e6d0978683eebca34a9e74c6c08bb9539a7.png)

This is Project Library. Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2021, 2:04pm UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/4 "2021-12-11T14:04:46Z")

</div>

Please show your script. Also, look for red marks in the right margin of the script when open–that indicates a syntax error.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 11, 2021, 8:27pm UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/5 "2021-12-11T20:27:35Z")

</div>

With your experience Phil, don’t you know where the issue is without seeing the code? 🤔

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2021, 9:48pm UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/6 "2021-12-11T21:48:30Z")

</div>

Of course. I’m holding back as a learning exercise. 🤪

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [December 13, 2021, 2:54am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/7 "2021-12-13T02:54:33Z")

</div>

Script in Project Library

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/5/95a3b929e1f30cc4fc066c783574571ac5ef6bb6.png)

Script Timer in Gateway Events

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/9/897634adf2d36334dc2df4181b5da8a5ddd3d02f.png)

In Timer, I call 2 function having the same task. But just one done. And Logger show this. My script in Project Library haven’t any errors.

**Error case**  
Firstly ManualCalculation is a function with command code. The Compiler Ignition or any things do not recognite this although I had modified this.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d7302d32033e8d339c995973259eac04fd37023.png)

**True case**  
I start write ManualCalculation as new function. And Compiler Ignition recognited this.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bdda6bdd32399523fc44f28acd015573576ef03a.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 13, 2021, 4:23am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/8 "2021-12-13T04:23:34Z")

</div>

Since some work, I’m going to guess that you’ve managed to put something other than a `Site` instance in one of the dictionary entries. Consider not using `Site.Site.Site` as a class. A different name at each level of nesting may help you troubleshoot this.

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [December 14, 2021, 3:23am UTC](https://forum.inductiveautomation.com/t/designer-launcher-do-not-recognited-define-function/53982/9 "2021-12-14T03:23:59Z")

</div>

Thank you so much! I try to fix them.
