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.
Hi, In NB 3.2.23, the indentation engine doesn't work: - After unzipping and using my NB 3.2.21 user-dir, the indentation engine for Java was missing. So re-formatting didn't work, neither did the automatic indentation of brackets, new methods, new fields etc etc. - After recreating the indentation engine and assigning it to Java sources, it still didn't work. No indentation what so ever, not even with a reformat. - After restart of NB, the indentation engine is gone again. Iwan
I have checked that the indentation engines are listed properly in the editor manifest file as services. They are also set as "global" in the beandescriptor. So I think that from the editor point of view it should be OK. From the testing it seems that it happens only on Windows when the older settings are used.
Could someone attach zipped system dir with configuration when this happen so we can examine the problem? Thanks a lot in advance for your help.
Created attachment 1046 [details] zipped system directory with my projects which causes 'no indentation' behaviour as well
The problem is in the services.xml file under given project. In correct old project the services file starts with <diff-set clear="true" version="1.0"> in version 3.2 it should start with <diff-set clear="false" version="1.1"> (I am talking about services.xml in system/projects/default/ here). If the clear tag in version 1.1 is set to true the file is wrong. This should not happen and it is fixed by my last commit into PSupport class. If you can find a way how can you get a project with such corrupted file please reopen and let me know. Thanks for your help.
I forgot to mention that the bug is fixed in [dev] and [release32].
*** Issue 11200 has been marked as a duplicate of this issue. ***
Sorry to have to reopen it again, but in NB 3.2.27 the settings regarding the indentation engine are not being saved. Everytime I startup NB I need to recreate a new java-indentation engine and configure it. On top of that, the engine only kicks in after I close all editor windows and open a file again. Only then the indentation works. I use NB 3.2.27 on Win2K with my NB 3.2.25 user-dir, that I've been using since NB 3.2.1 Iwan
Iwan, > On top of that, the engine only kicks in > after I close all editor windows and > open a file again. Only then the indentation works. I had the same problem. Temporary better solution how to persuade indent engine to work, is to switch the indentation engine for java editor to Simple Indentation Engine (or No Indentation) and then back to the Java Indentation Engine. Then it should work.
Iwan, I understand your concern but I have to mark this one as fixed again. The problem is that unfortunately there was a series of builds that corrupted the config files. Please see my comment from 2001-04-10 02:51. The correct state is to have one services.xml file in the Projects dir containing two indent engines and the services.xml file under the project dir (e.g. Default) having the clear flag consistent. If you have those files wrong you can manually edit the services.xml files. If you upgrade from user dir created in version 3.1 everything should work ok. If you don't want to loose your settings you can send me your system dir and i will manually edit the file for you. But this is not something we want to generally support (saving user data from dev builds).
Yesterday I was not able to write the comment here, so I am doing today. I tryied upgrade from release 3.1, build 36 to release 3.2, build 28 and I played with the indent engines for a some time and it works OK. If you do not agree, reopen the issue.
*** Issue 11550 has been marked as a duplicate of this issue. ***
*** Issue 11719 has been marked as a duplicate of this issue. ***
Target milestone 3.2
*** Issue 12006 has been marked as a duplicate of this issue. ***
Resolved for 3.4.x or earlier, no new info since then -> closing.