SRL Archive - FAQ

Function list disappears


Nufineek

2014-02-22 15:37:44

Hello. The function list on left side of the simba client has stopped showing list of my functions and procedures. What is wrong? Thanks.

rj

2014-02-22 15:41:00

You probably disabled it by accident


Nufineek

2014-02-23 14:21:44

From: Officer Barbrady
You probably disabled it by accident



I didn't, that's the thing.[ATTACH=CONFIG]22980[/ATTACH] I can see the script and it's constants, but not the procedures and functions.

rj

2014-02-23 15:48:02

From: Nufineek
I didn't, that's the thing.[ATTACH=CONFIG]22980[/ATTACH] I can see the script and it's constants, but not the procedures and functions.


try


Also your image is small I can't see anything

masterBB

2014-02-23 16:36:57

The function list reads your script from top to bottom. It probably couldn't parse something. Could you post the script?

From: Officer Barbrady
Also your image is small I can't see anything



You should click on it ;)

Smidqe

2014-02-23 16:39:07

Constants can cause this kind of behaviour, if you are assigning values to them with := instead of = . To my knowledge both are valid uses, but the former one causes the other functions, variables, types, constants to disappear from the function list. There are also other methods to cause this bug, one being string functions.


const
scriptVersion := '1.0'; //this causes lines below to "vanish" from the function list.

scriptVersion = '1.0'; //doesn't cause any odd behaviour.

So check your constants and if you are using the former method, change it to latter and see if it does fix your issue.

E: Based on your picture your problem is just what I wrote to this post. Also @masterBB; is right, parser somehow doesn't know how to parse := when it's used in constants, therefore it messes up every line parsing.

Nufineek

2014-02-23 18:41:54

From: Smidqe
Constants can cause this kind of behaviour, if you are assigning values to them with := instead of = . To my knowledge both are valid uses, but the former one causes the other functions, variables, types, constants to disappear from the function list. There are also other methods to cause this bug, one being string functions.


const
scriptVersion := '1.0'; //this causes lines below to "vanish" from the function list.

scriptVersion = '1.0'; //doesn't cause any odd behaviour.

So check your constants and if you are using the former method, change it to latter and see if it does fix your issue.

E: Based on your picture your problem is just what I wrote to this post. Also @masterBB; is right, parser somehow doesn't know how to parse := when it's used in constants, therefore it messes up every line parsing.


That was it!! Thank you so much. It was driving me crazy.