Product Version: NetBeans IDE Dev (Build 20080825043643)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)
Java code formatting setting are not imported from 6.0 to 6.5.
Steps to reproduce:
1) start 6.0
2) custom formatting settings in Java Code (braces placement, blank lines)
3) start 6.5 and import settings
-> formatting settings are not imported
I know, I'm sorry, it's a known deficiency mentioned at the bottom of http://wiki.netbeans.org/EditorFormattingSettings.
Note that this impacts importing from 6.1 to 6.5 as well.
*** Issue 151142 has been marked as a duplicate of this issue. ***
Doesn't work from 6.1 either. Raising priority.
I pushed a fix to main: http://hg.netbeans.org/main/rev/7963b79881eb
For QA: The two languages that had advanced formatting settings in 6.0/6.1 and their storage was changed in 6.5 are java
and ruby. C/C++ also has advanced settings, but they are still kept in NbPreferences. So, when you modify java/ruby
formatting settings in 6.0/6.1 there should be two files in <userdir>/config/Preferences/:
org/netbeans/modules/ruby/CodeStyle/default.properties. These two files are imported to the new userdir when 6.5 starts
for the first time with a fresh userdir. After that when you open Tools-Options -> Editor -> Formatting and select Java
or Ruby you should see the settings from 6.0/6.1. Also when (but only when!) you modify settings for any of those mime
types and store the changes by OKing the Tools-Options the corresponding file under <65userdir>/config/Preferences/
should be deleted.
This is probably not that important, but since the fix is done in the editor infrastructure it's going to work no matter
if you import the old userdir to or simply just use it in Nb6.5.
Please let me know when you test the fix and I'll transplant the changeset to release65 clone. Milo could you please
peer review the fix? Thank you to all
Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Vita Stejskal <email@example.com>
Log: #144987 - fixing formatting settings import from 6.0/6.1 to 6.5 for java and ruby
The fix is ok,
verified in trunk by QA
I approve the fix.
Transplanted to release65 as http://hg.netbeans.org/release65/rev/4d9cfc12320e