# \[BUG\] Ignition 8.0.16-RC1 - script library have no autocompletion for functions from module which depends from perspective

**URL:** <https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [August 20, 2020, 12:11pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939 "2020-08-20T12:11:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 20, 2020, 12:11pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/1 "2020-08-20T12:11:05Z")

</div>

**Ignition 8.0.16-RC1**  
I have a gateway with **perspective** and **vision** module installed.

I’ve create a module with some script functions exposed in the gateway scope.  
This module depends from perspective module.

```auto
<depends>
	<depend>
		<scope>G</scope>
		<moduleId>com.inductiveautomation.perspective</moduleId>
	</depend>
	<depend>
		<scope>D</scope>
		<moduleId>com.inductiveautomation.perspective</moduleId>
	</depend>
</depends>

<hooks>
	<hook>
		<scope>G</scope>
		<hookClass>com.bouyguesenergiesservices.ignition.gateway.utilsperspective.GatewayHook</hookClass>
	</hook>
</hooks>

```

Thoses scripts functions are available in Action Script for perspective components with autocompletion.

**Nevertheless, those scripts functions are not available in the script project library with autocompletion.**

In my perspective module I don’t have a designer scope. It’s seems not necessary for exposing gateway script function for perspective components.  
It’s seems to be a bug.

**I have the same issue with IA built-in script functions**  
IA script function **system.perspective.** \* are not available **for autocompletion** in the project script library, but those fonction are available **for autocompletion** in the perspective component action script

**perspective component action script**

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

**project script library**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/5/15d40df010978cdd47a51abd4565cc235e2f5cac.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 20, 2020, 2:34pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/2 "2020-08-20T14:34:21Z")

</div>

Yes, this is a bug. The script library always gives you scripting hints for the local scope. I filed a ticket a while back to add a selector, so you can choose (while in the scripting area) which scope’s autocompletion you want.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 20, 2020, 2:45pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/3 "2020-08-20T14:45:03Z")

</div>

IMO, project scripts library need to show hints for all scope: gateway scope, vision scope and “gateway/perspective” scope.  
Of course a selector will be the icing on the cake.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 25, 2021, 4:10pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/4 "2021-02-25T16:10:37Z")

</div>

@paul-griffith, any news about this bug ? perhaps solved with the next script editor 🙂

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 25, 2021, 4:45pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/5 "2021-02-25T16:45:30Z")

</div>

No progress to report yet, but yes, this is still something we’d like to add as part of a general script editing experience refinement.
