Installing Xdebug for use with Eclipse or Netbeans on Linux
Visualising Website Performance with Flame Graphs
Getting Set up with Ogre 3D on Ubuntu
Scrollable Tables with Floating Header using CSS
Enforce Coding Standards with PHP_CodeSniffer and Eclipse IDE on Ubuntu Linux
Changing Mailman Python Scripts for Virtual Host Support

Relocating Eclipse Projects: The project description file (.project) for XXX is missing

Tuesday, 2 November 10, 2:40 pm
Recently I changed the name of the mountpoint where my Eclipse projects are located, and while a lot of my projects opened without any problem, others would not, instead generating the error message:

The project description file (.project) for PROJECTNAME is missing

By default, Eclipse will look for the .project file in the root directory of the project itself. In some cases though, you may want to have the .project file outside of the main project directory, and you can do this by specifying the location in a file saved at workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/PROJECTNAME/.location.

In my case though the .project file was in the default location, but for some reason Eclipse had created a .location file anyway. To get around the issue and allow the projects to be opened from their new location, I simply had to delete the .location files for the affected projects.

This will only work however for projects that have the same name as the project directory. If the project name is different, you will need to create a new project from the existing source, by using the File > Import... option.

When relocating an Eclipse project, it's always best to use the Move Project feature in the IDE itself wherever possible. Select the project in either the PHP Explorer or the Navigator (Window > Show View > Other..), and then select File > Move..

L Oliveira

1:59 am, Thursday, 28 May 20

Thank you so much, Man! It fixed my problem!

Please enter your comment in the box below. Comments will be moderated before going live. Thanks for your feedback!

Cancel Post

/xkcd/ Arizona Chess