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.
Created attachment 136650 [details] Message logs After importing my settings, the whole code was in grey so I took a look on the Fonts and Colors and it looks broken (see attached screenshot). From a fresh installation all seems fine.
Created attachment 136651 [details] Screenshot
Created attachment 136652 [details] My imported settings
I did it on build 201307022300. Also I've imported JBoss formatting preferences from https://github.com/wildfly/wildfly/blob/master/ide-configs/netbeans/netbeans-jboss-community-formatter.zip and I don't have the problem.
I do no see something related to the import process that malfunctioned in the log. Not sure what are the f&C values that should be imported. The fact that the JBoss formatting preferences were imported as expected might indicate an issue with F&C. re-assigning for evaluation. Thank you
Import creates Defaults_hidden file in userdir/config/Editors/FontsColors. After deleting this file fonts and colors works. I am evaluating why the file is created.
Created attachment 136948 [details] Proposed Patch
The bug was probably introduced in changeset http://hg.netbeans.org/core-main/rev/e85094309400 The problem is that ensureParent creates some directories in userdir, which are not synchronized with System FileSystem (changes made by external tools or java.io.File are not guaranteed to be detected automatically). So the MultiFileSystem thinks that the new folder is supposed to override original folder (which appeared suddenly because refresh was invoked during the operation) and it hides all children of the original folder. The attached patch works fine for me. Please check it and apply it if you find it OK. Thank you.
*** Bug 233022 has been marked as a duplicate of this bug. ***
*** Bug 233184 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > The bug was probably introduced in changeset > http://hg.netbeans.org/core-main/rev/e85094309400 > > The problem is that ensureParent creates some directories in userdir, which are > not synchronized with System FileSystem (changes made by external tools or > java.io.File are not guaranteed to be detected automatically). > > So the MultiFileSystem thinks that the new folder is supposed to override > original folder (which appeared suddenly because refresh was invoked during the > operation) and it hides all children of the original folder. Thank you for the explanation Jardo > > The attached patch works fine for me. Please check it and apply it if you find > it OK. Thank you. Milutin, since you did most of the debugging on this, could you confirm that the patch works also for you? If yes I will integrate. Thank you
*** Bug 231759 has been marked as a duplicate of this bug. ***
Yes, I checked patch and it fixes this issue. Please push it ASAP to repository, there are many duplicates reported and a lot of confusion from users.
*** Bug 233668 has been marked as a duplicate of this bug. ***
Fixed in core-main: http://hg.netbeans.org/core-main/rev/153ecd05de7e
Integrated into 'main-silver', will be available in build *201307312300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/153ecd05de7e User: Theofanis Oikonomou <theofanis@netbeans.org> Log: #232200 - Importing my settings break the formatting options
In case anyone comes looking, I ran into this bug, or a very similar one where my java source formatting stopped working after upgrading to 8.0 from 7.3 (imported settings). I worked around it by deleting %APPDATA%\NetBeans\8.0\config\Editors\text\x-java (windows) and restarting NB.