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 11189 - [Win2K NB 3.2.23] Indentation engine doesn't
Summary: [Win2K NB 3.2.23] Indentation engine doesn't
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 11200 11550 11719 12006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-07 21:04 UTC by javaiware
Modified: 2008-12-22 16:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zipped system directory with my projects which causes 'no indentation' behaviour as well (170.33 KB, application/octet-stream)
2001-07-20 20:48 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javaiware 2001-04-07 21:04:12 UTC
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
Comment 1 Miloslav Metelka 2001-04-09 10:27:38 UTC
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.
Comment 2 David Strupl 2001-04-09 11:39:48 UTC
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.
Comment 3 David Konecny 2001-04-09 12:53:23 UTC
Created attachment 1046 [details]
zipped system directory with my projects which causes 'no indentation' behaviour as well
Comment 4 David Strupl 2001-04-10 10:51:59 UTC
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.
Comment 5 David Strupl 2001-04-10 12:47:15 UTC
I forgot to mention that the bug is fixed in [dev] and [release32].
Comment 6 David Strupl 2001-04-10 13:09:09 UTC
*** Issue 11200 has been marked as a duplicate of this issue. ***
Comment 7 javaiware 2001-04-12 04:07:57 UTC
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
Comment 8 David Konecny 2001-04-12 08:11:39 UTC
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.
Comment 9 David Strupl 2001-04-12 08:31:24 UTC
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).
Comment 10 Jan Lahoda 2001-04-12 13:10:07 UTC
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.
Comment 11 David Konecny 2001-04-19 07:44:00 UTC
*** Issue 11550 has been marked as a duplicate of this issue. ***
Comment 12 David Konecny 2001-04-25 08:10:13 UTC
*** Issue 11719 has been marked as a duplicate of this issue. ***
Comment 13 Jan Chalupa 2001-05-05 20:53:08 UTC
Target milestone 3.2
Comment 14 David Strupl 2001-05-09 09:17:38 UTC
*** Issue 12006 has been marked as a duplicate of this issue. ***
Comment 15 Quality Engineering 2003-07-01 16:40:59 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.