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.
Summary: | [65cat] Formatting settings are not imported from 6.0 to 6.5 | ||
---|---|---|---|
Product: | editor | Reporter: | Jiri Prox <jiriprox> |
Component: | Settings | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | hmichel, jskrivanek, mmetelka, mmirilovic |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2008-08-25 11:12:01 UTC
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/java/source/CodeStyle/default.properties and 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) Changeset: http://hg.netbeans.org/main/rev/7963b79881eb User: Vita Stejskal <vstejskal@netbeans.org> 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 |