Bug 290708 - Source control removing .project Keeps project from refreshing or opening
Summary: Source control removing .project Keeps project from refreshing or opening
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.5.1   Edit
Hardware: All All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-28 10:55 EDT by Mr. Gaffo CLA
Modified: 2019-09-06 16:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. Gaffo CLA 2009-09-28 10:55:34 EDT
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Build Identifier: 20090619-0625

When you are working on a non-eclipse based project (such as git or jgit) there is no .project file, and either refreshing or opening a project in this state in eclipse causes it to fail on the project and close it. I would propose that a better behaviour in this case would to be to just treat the project as a "General" Project. 

This is VERY frustrating and annoying when I'm trying to use eclipse to edit projects like this. I have to stash the .project file away for most commits and updates.

Reproducible: Always

Steps to Reproduce:
1. Create a general project
2. Close the project
3. Remove the .project file outside of eclipse
4. Re-open project

1. Create a general project
2. Remove .project
3. Refresh the project.
Comment 1 Prakash Rangaraj CLA 2009-09-29 01:03:19 EDT
Eclipse needs that .project file, as it contains all the info about the project. Deleting it externally and expecting Eclipse to work fine is not fair :-)

You should either checkin the .project file or add it to the 'ignore list' (the equivalent of .cvsignore in your repo) and have it locally.
Comment 2 Francis Upton IV CLA 2009-09-29 02:11:06 EDT
Actually I think he has a point.  It's reasonable to allow the project to open in the event that the .project file is missing.  But it's not our decision.
Comment 3 Szymon Brandys CLA 2009-09-29 05:14:34 EDT
I would use Prakash hint.

Some resources facilities like linked resources, builders and natures need .project. Projects without the description file would probably have limited number of operations. However we could perhaps create .project on demand.
Comment 4 Mr. Gaffo CLA 2009-09-29 11:27:40 EDT
@Szymon Brandys: Somthing like your last sentence is all I'm asking for.

@Prakash G.R.: When it's a "Generic Project" the only item in there is the project name which isn't even respected, and I'm fine with no builders. 

Also on some open source projects, people don't want you putting in .project into the ignore files and commiting those ignores. At least if I have a basic project (a glorified file explorer) I can read my files with my eclipse editors and fix conflicts. This mainly comes up when doing things like rebases in git, but also when updating in SVN.
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:10:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.