v4 Codeless: Try / Catch block produces broken code

Hi Vlad! - I’m going to assume you’re the one assigned for codeless stuff :wink:

I think the try/catch block is broken, since it is producing weird code output like we’ve run into before …

    I created a try/catch block where I want to login a user, then log the same user out in the "finally" chunk. When I use the "Logout current user" block in the finally, it "sticks" for the time being When I deploy, it gets jumbled when I open the designer again (and other code also disappears) Upon closer look at the code, it seems like the "finally" block isn't even created in the code. If I add a simple print statement to the finally chunk, it gets created in code (and uses the logout call), but there is that weird parse error with the "99":
http://support.backendless.com/public/attachments/e8aa0d3a79e8c013ac67f1bdf1f03bdc.png</img>

Renato

1 Like

Extra context:

Appears to be fine when the block is dropped on the canvas window:

http://support.backendless.com/public/attachments/22d36264e0af069b2916d4e2333f4f7b.png&lt;/img&gt;

But, when it is moved BELOW the print out, it’s broken:
http://support.backendless.com/public/attachments/a78ed15b70836eff337901b254c25f6a.png&lt;/img&gt;

and if it’s put before, the code isn’t even replicated to where it should be:
http://support.backendless.com/public/attachments/82590362a11577b8265fc3213ad4916c.png&lt;/img&gt;

Hi Renato

Thanks for reporting! I’ll definitely forward it to Vlad :wink: We’ll notify you here when it will be fixed

Best Regards

Hi Renato

Yeah, thanks for your report.
“Logout current user” is one of the first blocks and some logic has been little changed.
I checked all the other blocks where may be the same problem and catch yet one block with this behaviour (Recover User Password)

so, all the blocks has been fixed and we will release this changes asap

Regards, Vlad

Amazing, thank you Vlad! :slight_smile:

The fix is released.

Please check if everything works as expected

Regards, Vlad

All good! Thanks Vlad!