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 116748 - Expand tabs to spaces trouble
Summary: Expand tabs to spaces trouble
Status: RESOLVED DUPLICATE of bug 115997
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 20:20 UTC by kronenthaler
Modified: 2007-11-05 13:39 UTC (History)
0 users

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 kronenthaler 2007-09-25 20:20:42 UTC
I untick the checkbox "expand tabs to spaces", I set the "tab size" to 4, and the "number of spaces per indent" to 4.
This is the behavior:
after close the options dialog, write a tab in the source editor and press the backspace key. The caret go back just an
space, instead a complete tab (4 spaces).

I restart the IDE and the problem persist.

But if I put the value "number of spaces per indent" in 8 instead 4 work as expected.

I think is a misconfiguration issue.

Thanks, and sorry my english
Comment 1 janicki 2007-09-25 22:08:11 UTC
Same problem for me on Mac.  I've also noticed an "<Unrecognized setting>" node under the "Indentation Engines" node in the Advanced Configuration.  
Maybe this is related.

Note: On my Intel-based Mac, the indentation seems to work during a session after I reselect my preferences, but gets lost when restarting.  On my 
PowerPC-based Mac, the indentation doesn't seem to fully respond to preferences even during the session.  (Maybe it's me.)

Another related observation: Any tabs that existed in the java file when it was loaded seem to indent per preferences.  Any indentation changes expand the 
selected lines' tabs to spaces, and the wrong number of spaces too. 

<rant>The indentation preferences in NetBeans have been flaky for years... I dread new versions because I know the imported indentation settings will be 
messed up, if they work at all.  An overhaul of this part of the editor might be due?</rant>   
Comment 2 janicki 2007-09-25 22:26:23 UTC
See the note from 'jiriprox' on Sep 24 on bug# 115997 ( http://www.netbeans.org/issues/show_bug.cgi?id=115997 )

This worked for me too.  (That may explain why I got it working on my other computer... I had tinkered with it longer and probably got lucky.)

I'd suggest this bug be closed in favor of 115997.
Comment 3 Jiri Prox 2007-09-26 10:40:59 UTC
If your broken indentation comes from imported 5.5.1 (or earlier) settings  then I'll close this issue as duplicate. 
Feel free to reopen or enter new issue if you encounter any further problems. 
Thanks for your investigation of this issue.

*** This issue has been marked as a duplicate of 115997 ***
Comment 4 janicki 2007-09-26 16:24:22 UTC
Yes, I believe my problem was caused by the importing of 5.5.1 settings.