Import settings clears recently used projects list

I exported by IDEA settings from work to a Dropbox folder, and imported them at home. After I'd done that, the list of recently opened projects (Reopen...) was cleared.

It's not a huge deal, but I still wonder if there's a way to avoid that. I didn't see anything in the types of settings to export and import that specifically said it was that list.

Does anyone know if this is just an inherent side-effect of importing settings? If not, what aspect of settings can I skip to avoid it, and what else is in that group that I also won't get?

Thanks.

5 comments

Hi Dave,

It happens because IDEA can't see the paths to those project files, so it
removes them from the list. I've noticed the same problem on a single instance
of IDEA when I have a project file located on a shared/network drive, but
the drive is unavailable when IDEA starts up. It's a bit annoying in that
particular situation, though the feature can be quite nice too since it automatically
clears out deleted/moved/non-existant projects from the list.

For me the ideal compromise would be for IDEA to still remember the project
if it happens to be on a drive/mount that doesn't (currently) exist, but
get of of the projects otherwise.

Chris

I exported by IDEA settings from work to a Dropbox folder, and
imported them at home. After I'd done that, the list of recently
opened projects (Reopen...) was cleared.



0

I'm not sure I understand what you're saying. On the two machines, my projects and their locations are completely different, but they haven't changed. The projects that were visible before on my work machine should still be visible, and the same at home.

Something about the import process seems to have cleared out the recent projects list. Logically, either a) importing settings just does that, regardless of which settings you choose to import, or b) some section of the import contains the recent projects list, and when you import that info, any projects that can't be found (because they don't exist or are in different locations) get cleared.

I'm trhying to udnerstand whether (a) or (b) applies, and if it's (b), which section's settings include the recent files list, and what else that section contains, so I can decide whether to skip it or not.

Make sense?

Thanks.

0

Hello Dave,

(b) applies, that was exactly what I was describing. You don't need to export/import
settings across machines to see this, just exit IDEA, move/rename one of
your recent projects, restart IDEA. That project will automagically get removed
from the recent projects list.

Have a look in the settings.jar at options/other.xml and search for RecentProjectsManager,
you'll see where the entries are stored. It seems IDEA only considers them
valid if the project file actually exists at that location, otherwise the
entry is removed.

Chris

I'm not sure I understand what you're saying. On the two machines, my
projects and their locations are completely different, but they
haven't changed. The projects that were visible before on my work
machine should still be visible, and the same at home.

Something about the import process seems to have cleared out the
recent projects list. Logically, either a) importing settings just
does that, regardless of which settings you choose to import, or b)
some section of the import contains the recent projects list, and when
you import that info, any projects that can't be found (because they
don't exist or are in different locations) get cleared.

I'm trhying to udnerstand whether (a) or (b) applies, and if it's (b),
which section's settings include the recent files list, and what else
that section contains, so I can decide whether to skip it or not.

Make sense?

Thanks.



0

Yes, 'Other' is definitely the file I don't want to export/import.

Is there an export setting that won't save that file? Of all the checkboxes in the export dlg, the only one that didn't look like it was something else was General Settings, but unchecking it still included the Other file.

Any idea what would happen if I deleted it out of the jar by hand? I wouldn't be surprised if IDEA got upset during the import.

Thanks for any other ideas or insight.

Dave

0

FYI, I filed an issue to separate out the machine-specific stuff so you can supress it if desired:
  http://youtrack.jetbrains.net/issue/IDEA-58910

We'll see what happesn with that.

Dave

0

Please sign in to leave a comment.