Bug 579429 - [Smart project import] Show the import wizard for closed projects where .project is missing
Summary: [Smart project import] Show the import wizard for closed projects where .proj...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.24   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 02:23 EDT by Christoph Laeubrich CLA
Modified: 2022-03-26 04:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2022-03-26 02:23:11 EDT
I sometimes have a maven project where no .project file is checked in the code repository.

Then I import it using the Smart project import and a .project is generated, after a while the project file might get missing (e.g. because I clean the git state or stack unversioned filed.

Then one ends up with a closed project (what is fine), but can't reopen it because it shows an error:

The project description file (.project) for '...' is missing.  This file contains important information about the project.  The project will not function properly until this file is restored.

Of course I can't restore it because it is not versioned, instead it would be good to open the Smart project import here again so I can choose to import it as whatever type it was imported before.
Comment 1 Wim Jongman CLA 2022-03-26 03:43:42 EDT
You describe quite a corner case :)

Maybe offer to generate a .project file? What about other metadata that can go missing?
Comment 2 Christoph Laeubrich CLA 2022-03-26 04:04:52 EDT
(In reply to Wim Jongman from comment #1)
> You describe quite a corner case :)
> 
> Maybe offer to generate a .project file? What about other metadata that can
> go missing?

If other metadata is missing I can do "Project > Update Maven project" for a closed project this obviously do not work...
Comment 3 Christoph Laeubrich CLA 2022-03-26 04:07:15 EDT
(In reply to Wim Jongman from comment #1)
> Maybe offer to generate a .project file?

By the way that's exactly what the wizard does generating a .project file (depending on detected type) + necessary metadata.

So what i currently need to do is:

1) remove the closed project from the workspace
2) navigate to its location in git and choose "Import Projects"