NAS IDE breaks when script contains bracket and colon ( ]: ) in sequence.

book

Article ID: 221618

calendar_today

Updated On:

Products

DX Infrastructure Management

Issue/Introduction

If I have a script that contains something like:

mystring = "[hello]:[goodbye]"

print(mystring)

Then the print looks like this:

 

[hello

... for some reason the ]: and everything after it is truncated/missing.

 

Cause

This is a side effect of some internal error-parsing code in the NAS LUA IDE.

Environment

Release : 20.3

Component : UIM NAS

Resolution

At this time, we consider this a limitation of the IDE which is caused by a bit of error-parsing code in the GUI.

It does not affect scripts at runtime, it only affects the display in the output window of the NAS scripting IDE.

You should avoid using this sequence, or use an alternate IDE for script development if this cannot be avoided.