Page 1 of 1

Annoying Bug

Posted: Wed Mar 12, 2025 8:32 pm
by Alan_37
Hello,

I've encountered a bug in the C-code block. If you add a C-code block, delete everything inside, and start writing from the second line, the code appears to save correctly. However, after pressing "OK" and reopening the block, all the code is gone.

This issue only occurs when the first line is left blank.

It is not an urgent one, but very annoying

Re: Annoying Bug

Posted: Thu Mar 13, 2025 8:51 am
by Steve-Matrix
Hi Alan,

Thanks for letting us know. If this happens, then I have a workaround that can be used to retain this.

If you open a C code icon and discover there is no code there, click cancel and then view the macro as C code. Then edit the code of the C-code icon directly in the C-code view (by double-clicking the code) and change the text, ensuring the first line is not blank. Then it can be opened in the flowchart view without issue.

Re: Annoying Bug

Posted: Fri Mar 14, 2025 9:52 pm
by Alan_37
Hi Steve,

Thanks for your reply, I was not able to do that, if you are referring to the customize code option
that is only available to Pro users.

The only method I found is to compile to C, then in the Build menu View Code, search for the C-code Part, copy and paste it in
a new c-block

Re: Annoying Bug

Posted: Mon Mar 17, 2025 9:21 am
by Steve-Matrix
Thanks, Alan. That other workaround should help others who face the same issue.