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.
Note: This might be a duplicate of Issue #19707. Tested on 3.3.1 fcs, JDK1.3.1 1. Go into the editor and perform Reformat (Ctrl-Shift-F) (not sure whether necessary). 2. Go into: Tools/Options/Editing/Indentation Engines 3. Rename the "Java Indentation Engine" (when renaming, you will see "code name" of the service (see Issue #17247). This is probably harmless.) 4. Copy&paste the indentation engine, and rename the new copy. 5. Now, change property "Number of spaces per tab" to different values (let each of the indent engines have different value, and also different from the default). 6. Now, you see under Tools/Options/Editing/Indentation Engines two engines of the JavaIndentationEngine with different settings. 7. Go into: Tools/Options/Editing/Java Editor/Indentation Engine, and press elipsis. You will see, that there are also two indentation engines of type JavaIndentationEngine, but one of them will be missing in previous list, and one from previous list will be missing here. This can be proven by checking properties.
So, just found that the same applies to Compilers (Options/Building/Compiler Types). As services can be used "External compiler", as identifying property can be used "Encoding" and the list from point 7 can be used from "Execution" tab of any Java source. Build 200205020100, Solaris 8. Rising priority and re-assigning to core.
I was playing with this a bit now, and found that what is wrong is the copy&paste of the service (part of point 4). The other steps are not necessary. A little better description what seems to happen: It seems that there are three instances of the service after copy&paste. One is shared in both lists (as supposed) - this is the copy. The other two are one in each list. In the list from "Execution" tab, there is a brand new default instance, in the list in the options, there is original instance (the one created in the IDE start).
Settings problem? Honzo, can you please evaluate? Thanks
Here is my evaluation. The culprit is InstanceDataObjcet that resets original ServiceType after its copying to null. I've prepared 4-lines fix solving the issue.
Created attachment 5626 [details] place the patch under lib/patches
Jan L. can you verify the patch with orion-fcs please?
Fixed in the trunk. http://openide.netbeans.org/source/browse/openide/src/org/openide/load ers/InstanceDataObject.java.diff?r1=1.125&r2=1.126
Honza, verify this one please. Thanks. Do you really want get it into Orion ?
I verified in on 200205030100 (orion not yet). (btw: found a small bug, probably in editor, related to this: Issue #23081.)
Using the attached patch, the problem disapeared from orion (build 020501_1).
integrated in orion_fcs and release33 branches. http://openide.netbeans.org/source/browse/openide/src/org/openide/load ers/InstanceDataObject.java.diff?r1=1.113.2.7&r2=1.113.2.7.4.1 http://openide.netbeans.org/source/browse/openide/src/org/openide/load ers/InstanceDataObject.java.diff?r1=1.113.2.7&r2=1.113.2.8
Verified in orion 20020505, EE.
Resolved for 3.4.x or earlier, no new info since then -> closing.