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 141974 - [65cat] Disabling of "Expand tabs to spaces" has no effect
Summary: [65cat] Disabling of "Expand tabs to spaces" has no effect
Status: RESOLVED DUPLICATE of bug 142146
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 02:35 UTC by piero
Modified: 2008-08-20 17:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piero 2008-07-29 02:35:40 UTC
[ JDK VERSION : 1.6.0_07 ]

Options -> Editor -> Formatting 
-> Expand Tabs to Spaces

Disabling the checkbox has no effect.
Comment 1 Michel Graciano 2008-07-29 03:08:26 UTC
Product Version: NetBeans IDE Dev (Build 200807280848)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Linux version 2.6.24-20-generic running on i386; ISO-8859-1; pt_BR (nb)
Comment 2 Jiri Prox 2008-07-30 07:53:52 UTC
*** Issue 142146 has been marked as a duplicate of this issue. ***
Comment 3 Michel Graciano 2008-07-30 13:37:40 UTC
The problem here is the follow, there is two 'Expand tabs to spaces', one for 'All languages' and other for 'Java'. So,
you should change the Java to see the behaviour change for java sources.
To solve this ambiguous understand, I filed the issue http://www.netbeans.org/issues/show_bug.cgi?id=142146

Maybe it is a invalid issue. What do you think?
Comment 4 Petr Dvorak 2008-07-30 13:50:58 UTC
hmichel is very probably right here - the problem is probably that reporter set the setting for "All Languages",
expecting this would affect Java settings.

Is this right, piero?

I have tested this with build from 29.07 and "Expand tabs to spaces" works for me as expected...

jirka, what do you think? Try to check/uncheck expand tabs to spaces when Java is selected in the list... It works well,
doesn't it?
Comment 5 Petr Dvorak 2008-07-30 13:51:19 UTC
hmichel is very probably right here - the problem is probably that reporter set the setting for "All Languages",
expecting this would affect Java settings.

Is this right, piero?

I have tested this with build from 29.07 and "Expand tabs to spaces" works for me as expected...

jirka, what do you think? Try to check/uncheck expand tabs to spaces when Java is selected in the list... It works well,
doesn't it?
Comment 6 Jiri Prox 2008-07-30 14:13:32 UTC
Yes it works for me as well. 
The problem the ambiguous label as hmichel reported.
This options really didn't work short time ago but this bug was already fixed (issue 138991)

I guess this issue can be closed now if it is working for everyone.
Comment 7 piero 2008-07-31 12:17:13 UTC
for me it is working now as well. 
and it is totally possible that I used the "All languages" tab.
Comment 8 Petr Dvorak 2008-07-31 12:22:47 UTC
OK, I will now close this issue as INVALID. Please watch issue 138991 and maybe read issue 142208 too (if you like the
idea, make some noise on the netcat mailing list;))
Comment 9 Petr Dvorak 2008-07-31 12:23:32 UTC
-
Comment 10 Petr Dvorak 2008-07-31 12:27:17 UTC
Ups... I meant this issue as the first one (submitted by hmichel): http://www.netbeans.org/issues/show_bug.cgi?id=142146
Comment 11 Vitezslav Stejskal 2008-08-01 12:57:05 UTC
This is a valid problem. 'All languages' customizer is meant to control settings of all languages, see also my comments
in issue #142146.
Comment 12 twolf2919 2008-08-07 22:02:46 UTC
I'm not adding anything new, but like to chime in by saying this is a definite UI issue.  I mean, any reasonable person
would take "All Languages" to mean *All* languages - including Java.  Either you relabel the combobox to "All Other
Languages" and default to Java (it *is* the IDE's first language, right??) - or have "All Languages" and individual ones
for all the other things the IDE supports (e.g. Java, HTML, XML, C++, etc.)
Comment 13 Vitezslav Stejskal 2008-08-08 09:33:33 UTC
This will be solved in issue #142146.

*** This issue has been marked as a duplicate of 142146 ***
Comment 14 Quality Engineering 2008-08-20 17:24:45 UTC
Integrated into 'main-golden', available in build *200808201401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/1054ca493e54
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #141974: better formatting settings customizers