Closed julian-miras closed 1 year ago
Hi Julian, Thanks for reporting this issue we will take a look at it.
No problem. Thanks @machaval
Hi We have just merged the fix. So I will make a new release of the cli this week for you to try out.
Thanks @machaval for the update.
Fixed on latest version
Describe the bug It looks like the var fileName (see script below) is like a “promise” ? so when we force it to be logged (line 8 , it gets instantiated and therefore the substring works, but when we don’t enable the log line, then the substring finds the “promise” and it fails? Forgive me if my usage of “promise” is not adequate here, but I meant to say that the instantiation of the variable hasn’t really happened when the substring takes action?
To Reproduce
This is the script:
if you run the previous code, you get an exception:
But if you uncomment the line 8 ( //var dummy = log(fileName))
The script runs without problems showing the log entry:
This behaviour has started to happen after upgrading to CLI version V1.0.28. My previous version was V1.0.25 and it didn't happen.
Expected behavior The substring function should work regardless of whether we log the content of the variable or not
Desktop (please complete the following information):