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 228391 - importing saved settings does not restore file filter
Summary: importing saved settings does not restore file filter
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 20:24 UTC by tbrunhoff
Modified: 2013-04-09 16:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
settings (2.32 MB, application/zip)
2013-04-08 20:24 UTC, tbrunhoff
Details
nbi logs (22.30 KB, application/gzip)
2013-04-09 16:11 UTC, tbrunhoff
Details
messages.log (43.55 KB, text/x-log)
2013-04-09 16:44 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2013-04-08 20:24:29 UTC
Created attachment 133381 [details]
settings

The attached file are saved settings from the version below. If I remove ~/.netbeans/dev, then restart the ide, then restore all of the settings, the ignored file filter set with Tools-->options-->Miscelaneous-->Files-->Files Ignored by the IDE is not restored.

See the file in the attachment ./config/Preferences/org/netbeans/core.properties for the property IgnoredFiles.

Product Version: NetBeans IDE Dev (Build 201303192300)
Updates: Updates available
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Theofanis Oikonomou 2013-04-09 08:40:10 UTC
(In reply to comment #0)
> The attached file are saved settings from the version below. If I remove
> ~/.netbeans/dev, then restart the ide, then restore all of the settings, the

I assume you restore from the Import button in the Options window, right?

> ignored file filter set with Tools-->options-->Miscelaneous-->Files-->Files
> Ignored by the IDE is not restored.

Please reopen attaching your log file. 

I am getting an exception while trying to import from the options window:
Caused: org.openide.filesystems.FSException: Invalid lock [null] for file Services/MIMEResolver/.nbattrs in Multi-Filesystem with current lock [null].

Is this the case for you as well? Thank you
Comment 2 tbrunhoff 2013-04-09 16:11:58 UTC
Created attachment 133396 [details]
nbi logs

Several attempts at install attached.  For clarity, the most recent one this morning (20130409085743.log) is a 7.3 install.
Comment 3 tbrunhoff 2013-04-09 16:12:36 UTC
The last two comments relate to fedora 18.
Comment 4 tbrunhoff 2013-04-09 16:19:04 UTC
Sorry... attachment and last two comments were meant for Bug 228389.
Comment 5 tbrunhoff 2013-04-09 16:29:36 UTC
> I assume you restore from the Import button in the Options window, right?

Yes.

> I am getting an exception while trying to import from the options window:
> Caused: org.openide.filesystems.FSException: Invalid lock [null] for file
> Services/MIMEResolver/.nbattrs in Multi-Filesystem with current lock [null].

> Is this the case for you as well?

Well, not during import, but I am seeing similar statements about invalid lock during normal run. So far, I have not seen enough info in the log to attempt any repair. Perhaps that is the cause of some of this.
Comment 6 tbrunhoff 2013-04-09 16:44:39 UTC
Created attachment 133398 [details]
messages.log

For this run (which worked correctly) I moved ~/.netbeans/dev aside and ~/.cache/netbeans aside, then started the ide, then imported the settings.  I did not move the latter aside on previous attempts.  That appears to be the cause as the ide regained the file filters.

It would suggest that failures caused by the presence of the old .cache/netbeans prevented the settings from being restored.