On Clean and Build where a form is a guibuilder form delets a single line after code changes

10 views
Skip to first unread message

Mark Bolduc

unread,
Jan 1, 2020, 10:22:36 AM1/1/20
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11
Desktop OS Windows 10 Pro
Simulator Latest
Device Gui Builder Version 6.4

When clean and build on a gui form where changes to code were made, Codenameone rebuilds the .java class and
adds additional comments (//) here : //////////////////////////////////////////////////////////////////////////-- DON'T EDIT BELOW THIS LINE!!!
VS //-- DON'T EDIT BELOW THIS LINE!!!

and (the issue) delets the line below :  //-- DON'T EDIT ABOVE THIS LINE!!! 
resulting in : //-- DON'T EDIT ABOVE THIS LINE!!!    protected void showOtherForm(Resources res) {
        new A3HomePage(res, inc).showBack();
    }
where the method definition is now part of a commented line.

The immediate fix is to add the new line.
    protected void showOtherForm(Resources res) {
        new A3HomePage(res, inc).showBack();
    }

Thoughts?
Regards.

Message has been deleted

Fuad Nassar

unread,
Jan 1, 2020, 1:33:59 PM1/1/20
to CodenameOne Discussions
i also have same this problem.this may be caused from last update.

Capture.PNG

111.png

until waiting to update, you can set tow line in end of generated code to fix that.
like this

Capture.PNG

Shai Almog

unread,
Jan 1, 2020, 9:19:16 PM1/1/20
to CodenameOne Discussions
I saw another report for this. We're looking into it.
Reply all
Reply to author
Forward
0 new messages