This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76749 - Design editor stopped generating source code
Summary: Design editor stopped generating source code
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 17:26 UTC by gajanik
Modified: 2006-05-31 21:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Note the use of jPanel1 in initComponents() instead of subnetMaskPanel (19.59 KB, text/plain)
2006-05-23 17:31 UTC, gajanik
Details
Screen shot showing navigator and design form editor, note vdtSettingsPanel cannot be resized (49.67 KB, image/jpeg)
2006-05-23 17:33 UTC, gajanik
Details
.Form file generated by IDE (28.51 KB, text/xml)
2006-05-23 17:34 UTC, gajanik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gajanik 2006-05-23 17:26:12 UTC
This bug is occurring on only one Form, and doesn't happen on any other Forms 
in the project (i.e. i can't reproduce this bug).  I don't know what caused 
the bug, but it started after I had been designing this Form for a while.  The 
IDE stopped updating the generated source code at a seemingly arbitrary point 
in design.  I may have to start the form again and lose hours of work.

Variable declarations and names update correctly in the design and source 
editors and in the .Form file, but many components are not initialized in the 
generated initComponents() method.  Attempting to add an event to a component 
simply jumps to the source editor without actually creating an new code.  The 
event does not appear in the .Form file either.  Attempting to copy and paste 
a certain panel (which is the only one that doesn't display correctly in the 
design editor, but did at one time) to a new form will create variables but 
the inspector does not show the components and they do not display in the 
design editor.

Some properties of some components are locked, such as Horizontal Resizeable.  
Attempting to move a component meets with either no change or locks NetBeans 
into 100% CPU usage while not responding to commands, but the Windows Task 
Manager says NetBeans is still responding.  At one point the form displayed 
all components correctly, but all this started after a save and reload 
(between which the souce code was not modified).

Its as though NetBeans can no longer update code in the initComponents 
generation area or perhaps something happened to the .Form file, however I 
don't see anything obviously wrong with it.
Comment 1 gajanik 2006-05-23 17:31:11 UTC
Created attachment 30566 [details]
Note the use of jPanel1 in initComponents() instead of subnetMaskPanel
Comment 2 gajanik 2006-05-23 17:33:26 UTC
Created attachment 30567 [details]
Screen shot showing navigator and design form editor, note vdtSettingsPanel cannot be resized
Comment 3 gajanik 2006-05-23 17:34:46 UTC
Created attachment 30568 [details]
.Form file generated by IDE
Comment 4 Peter Pis 2006-05-31 10:17:39 UTC
Reassigning to "form" for evaluation.
Comment 5 Tomas Pavek 2006-05-31 18:23:55 UTC
The attached form is broken, not sure what caused it (sorry). jLabel12 
component is wrongly referenced in the layout definition part of the form file. 
I think the problems you see are caused by this error. The problem is that the 
error is not detected.

Could you try to do a simple search/replace in the .form file (open it in some 
external editor and replace  id="null"  with  id="jLabel12" )? After doing this 
change, do the problems disappear?

I've already integrated a fix that should detect errors like this already when 
opening the form.
Comment 6 gajanik 2006-05-31 21:14:08 UTC
That fixed the problem alright.  Everything looks and acts the way it was 
intended to.

You've got a sharp eye, thanks.
Comment 7 gajanik 2006-05-31 21:30:02 UTC
I don't know if this is related but in the generated source code jPanel1 was 
used instead of subnetMaskPanel which caused a cannot find symbol compiler 
error, but using the navigator to change subnetMaskPanel's variable name to 
jPanel1 and then back to subnetMaskPanel resolved the problem.

This was after I said everything was working again, but closing NetBeans and 
loading again did not fix the subnetMaskPanel misnomer issue.